(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{65858:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r,i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(r={},function(e){return void 0===r[e]&&(r[e]=i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)),r[e]})},53303:function(e,t,n){"use strict";n.d(t,{EK:function(){return rn},hJ:function(){return oI},oe:function(){return lA},AK:function(){return lO},JU:function(){return oR},Jm:function(){return oO},QT:function(){return lC},PL:function(){return lI},ad:function(){return oP},b9:function(){return lp},cf:function(){return lD},Xo:function(){return lh},IO:function(){return ll},i3:function(){return lM},Bt:function(){return lF},pl:function(){return lR},TQ:function(){return lg},r7:function(){return lj},ar:function(){return lc},qs:function(){return lU}});var r,i,a,s,o,l,u,c,d,h=n(93859),f=n(57087),p=n(84959),m=n(29901),g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},v={},y=y||{},_=g||self;function b(){}function x(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function w(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function k(e,t,n){return e.call.apply(e.bind,arguments)}function E(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function S(e,t,n){return(S=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?k:E).apply(null,arguments)}function C(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function T(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Vb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function I(){this.s=this.s,this.o=this.o}I.prototype.s=!1,I.prototype.na=function(){this.s||(this.s=!0,this.M())},I.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};let R=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(let n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return -1},j=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){let r=e.length,i="string"==typeof e?e.split(""):e;for(let a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};function A(e){return Array.prototype.concat.apply([],arguments)}function D(e){let t=e.length;if(0<t){let n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function P(e){return/^[\s\xa0]*$/.test(e)}var N=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function L(e,t){return -1!=e.indexOf(t)}function M(e,t){return e<t?-1:e>t?1:0}e:{var O=_.navigator;if(O){var F=O.userAgent;if(F){i=F;break e}}i=""}function U(e,t,n){for(let r in e)t.call(n,e[r],r,e)}function V(e){let t={};for(let n in e)t[n]=e[n];return t}var B="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function q(e,t){let n,r;for(let t=1;t<arguments.length;t++){for(n in r=arguments[t])e[n]=r[n];for(let t=0;t<B.length;t++)n=B[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Z(e){return Z[" "](e),e}Z[" "]=b;var z=L(i,"Opera"),H=L(i,"Trident")||L(i,"MSIE"),K=L(i,"Edge"),W=K||H,$=L(i,"Gecko")&&!(L(i.toLowerCase(),"webkit")&&!L(i,"Edge"))&&!(L(i,"Trident")||L(i,"MSIE"))&&!L(i,"Edge"),G=L(i.toLowerCase(),"webkit")&&!L(i,"Edge");function Y(){var e=_.document;return e?e.documentMode:void 0}e:{var Q,X="",J=(Q=i,$?/rv:([^\);]+)(\)|;)/.exec(Q):K?/Edge\/([\d\.]+)/.exec(Q):H?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Q):G?/WebKit\/(\S+)/.exec(Q):z?/(?:Version)[ \/]?(\S+)/.exec(Q):void 0);if(J&&(X=J?J[1]:""),H){var ee=Y();if(null!=ee&&ee>parseFloat(X)){a=String(ee);break e}}a=X}var et={},en=_.document&&H&&(Y()||parseInt(a,10))||void 0,er=function(){if(!_.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{_.addEventListener("test",b,t),_.removeEventListener("test",b,t)}catch(e){}return e}();function ei(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}function ea(e,t){if(ei.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if($){e:{try{Z(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:es[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&ea.Z.h.call(this)}}ei.prototype.h=function(){this.defaultPrevented=!0},T(ea,ei);var es={2:"touch",3:"pen",4:"mouse"};ea.prototype.h=function(){ea.Z.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var eo="closure_listenable_"+(1e6*Math.random()|0),el=0;function eu(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ia=i,this.key=++el,this.ca=this.fa=!1}function ec(e){e.ca=!0,e.listener=null,e.proxy=null,e.src=null,e.ia=null}function ed(e){this.src=e,this.g={},this.h=0}function eh(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],a=R(i,t);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(ec(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function ef(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.ca&&a.listener==t&&!!n==a.capture&&a.ia==r)return i}return -1}ed.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.g[a])||(e=this.g[a]=[],this.h++);var s=ef(e,t,r,i);return -1<s?(t=e[s],n||(t.fa=!1)):((t=new eu(t,this.src,a,!!r,i)).fa=n,e.push(t)),t};var ep="closure_lm_"+(1e6*Math.random()|0),em={};function eg(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var s=w(i)?!!i.capture:!!i,o=eb(e);if(o||(e[ep]=o=new ed(e)),(n=o.add(t,n,r,s,a)).proxy)return n;if(r=function e(t){return e_.call(e.src,e.listener,t)},n.proxy=r,r.src=e,r.listener=n,e.addEventListener)er||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ey(t.toString()),r);else if(e.addListener&&e.removeListener)e.addListener(r);else throw Error("addEventListener and attachEvent are unavailable.");return n}function ev(e){if("number"!=typeof e&&e&&!e.ca){var t=e.src;if(t&&t[eo])eh(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ey(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=eb(t))?(eh(n,e),0==n.h&&(n.src=null,t[ep]=null)):ec(e)}}}function ey(e){return e in em?em[e]:em[e]="on"+e}function e_(e,t){if(e.ca)e=!0;else{t=new ea(t,this);var n=e.listener,r=e.ia||e.src;e.fa&&ev(e),e=n.call(r,t)}return e}function eb(e){return(e=e[ep])instanceof ed?e:null}var ex="__closure_events_fn_"+(1e9*Math.random()>>>0);function ew(e){return"function"==typeof e?e:(e[ex]||(e[ex]=function(t){return e.handleEvent(t)}),e[ex])}function ek(){I.call(this),this.i=new ed(this),this.P=this,this.I=null}function eE(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"==typeof t)t=new ei(t,e);else if(t instanceof ei)t.target=t.target||e;else{var i=t;q(t=new ei(r,e),i)}if(i=!0,n)for(var a=n.length-1;0<=a;a--){var s=t.g=n[a];i=eS(s,r,!0,t)&&i}if(i=eS(s=t.g=e,r,!0,t)&&i,i=eS(s,r,!1,t)&&i,n)for(a=0;a<n.length;a++)i=eS(s=t.g=n[a],r,!1,t)&&i}function eS(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var s=t[a];if(s&&!s.ca&&s.capture==n){var o=s.listener,l=s.ia||s.src;s.fa&&eh(e.i,s),i=!1!==o.call(l,r)&&i}}return i&&!r.defaultPrevented}T(ek,I),ek.prototype[eo]=!0,ek.prototype.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,a){if(Array.isArray(n))for(var s=0;s<n.length;s++)e(t,n[s],r,i,a);else(i=w(i)?!!i.capture:!!i,r=ew(r),t&&t[eo])?(t=t.i,(n=String(n).toString())in t.g&&-1<(r=ef(s=t.g[n],r,i,a))&&(ec(s[r]),Array.prototype.splice.call(s,r,1),0==s.length&&(delete t.g[n],t.h--))):t&&(t=eb(t))&&(n=t.g[n.toString()],t=-1,n&&(t=ef(n,r,i,a)),(r=-1<t?n[t]:null)&&ev(r))}(this,e,t,n,r)},ek.prototype.M=function(){if(ek.Z.M.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)ec(n[r]);delete t.g[e],t.h--}}this.I=null},ek.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},ek.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var eC=_.JSON.stringify,eT=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new eI,e=>e.reset());class eI{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function eR(e,t){var n;o||(n=_.Promise.resolve(void 0),o=function(){n.then(eD)}),ej||(o(),ej=!0),eA.add(e,t)}var ej=!1,eA=new class{constructor(){this.h=this.g=null}add(e,t){let n=eT.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}};function eD(){let e;for(;e=null,(t=eA).g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),n=e;){try{n.h.call(n.g)}catch(e){!function(e){_.setTimeout(()=>{throw e},0)}(e)}var t,n,r=eT;r.j(n),100>r.h&&(r.h++,n.next=r.g,r.g=n)}ej=!1}function eP(e,t){ek.call(this),this.h=e||1,this.g=t||_,this.j=S(this.kb,this),this.l=Date.now()}function eN(e){e.da=!1,e.S&&(e.g.clearTimeout(e.S),e.S=null)}function eL(e,t,n){if("function"==typeof e)n&&(e=S(e,n));else if(e&&"function"==typeof e.handleEvent)e=S(e.handleEvent,e);else throw Error("Invalid listener argument");return 2147483647<Number(t)?-1:_.setTimeout(e,t||0)}T(eP,ek),(d=eP.prototype).da=!1,d.S=null,d.kb=function(){if(this.da){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-e):(this.S&&(this.g.clearTimeout(this.S),this.S=null),eE(this,"tick"),this.da&&(eN(this),this.start()))}},d.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},d.M=function(){eP.Z.M.call(this),eN(this),delete this.g};class eM extends I{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=eL(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.j);let n=t.h;t.h=null,t.m.apply(null,n)}(this)}M(){super.M(),this.g&&(_.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function eO(e){I.call(this),this.h=e,this.g={}}T(eO,I);var eF=[];function eU(e,t,n,r){Array.isArray(n)||(n&&(eF[0]=n.toString()),n=eF);for(var i=0;i<n.length;i++){var a=function e(t,n,r,i,a){if(i&&i.once)return function e(t,n,r,i,a){if(Array.isArray(n)){for(var s=0;s<n.length;s++)e(t,n[s],r,i,a);return null}return r=ew(r),t&&t[eo]?t.O(n,r,w(i)?!!i.capture:!!i,a):eg(t,n,r,!0,i,a)}(t,n,r,i,a);if(Array.isArray(n)){for(var s=0;s<n.length;s++)e(t,n[s],r,i,a);return null}return r=ew(r),t&&t[eo]?t.N(n,r,w(i)?!!i.capture:!!i,a):eg(t,n,r,!1,i,a)}(t,n[i],r||e.handleEvent,!1,e.h||e);if(!a)break;e.g[a.key]=a}}function eV(e){U(e.g,function(e,t){this.g.hasOwnProperty(t)&&ev(e)},e),e.g={}}function eB(){this.g=!0}function eq(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n){for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var a=i[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var s=1;s<i.length;s++)i[s]=""}}}}return eC(n)}catch(e){return t}}(e,n)+(r?" "+r:"")})}eO.prototype.M=function(){eO.Z.M.call(this),eV(this)},eO.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},eB.prototype.Aa=function(){this.g=!1},eB.prototype.info=function(){};var eZ={},ez=null;function eH(){return ez=ez||new ek}function eK(e){ei.call(this,eZ.Ma,e)}function eW(e){let t=eH();eE(t,new eK(t,e))}function e$(e,t){ei.call(this,eZ.STAT_EVENT,e),this.stat=t}function eG(e){let t=eH();eE(t,new e$(t,e))}function eY(e,t){ei.call(this,eZ.Na,e),this.size=t}function eQ(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return _.setTimeout(function(){e()},t)}eZ.Ma="serverreachability",T(eK,ei),eZ.STAT_EVENT="statevent",T(e$,ei),eZ.Na="timingevent",T(eY,ei);var eX={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},eJ={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function e0(){}function e1(e){return e.h||(e.h=e.i())}function e2(){}e0.prototype.h=null;var e3={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function e5(){ei.call(this,"d")}function e4(){ei.call(this,"c")}function e6(){}function e7(e,t,n,r){this.l=e,this.j=t,this.m=n,this.X=r||1,this.V=new eO(this),this.P=e9,e=W?125:void 0,this.W=new eP(e),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new e8}function e8(){this.i=null,this.g="",this.h=!1}T(e5,ei),T(e4,ei),T(e6,e0),e6.prototype.g=function(){return new XMLHttpRequest},e6.prototype.i=function(){return{}},l=new e6;var e9=45e3,te={},tt={};function tn(e,t,n){e.K=1,e.v=tE(ty(t)),e.s=n,e.U=!0,tr(e,null)}function tr(e,t){e.F=Date.now(),ts(e),e.A=ty(e.v);var n=e.A,r=e.X;Array.isArray(r)||(r=[String(r)]),tO(n.h,"t",r),e.C=0,n=e.l.H,e.h=new e8,e.g=nT(e.l,n?t:null,!e.s),0<e.O&&(e.L=new eM(S(e.Ia,e,e.g),e.O)),eU(e.V,e.g,"readystatechange",e.gb),t=e.H?V(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.s,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),eW(1),function(e,t,n,r,i,a){e.info(function(){if(e.g){if(a)for(var s="",o=a.split("&"),l=0;l<o.length;l++){var u=o[l].split("=");if(1<u.length){var c=u[0];u=u[1];var d=c.split("_");s=2<=d.length&&"type"==d[1]?s+(c+"=")+u+"&":s+(c+"=redacted&")}}else s=null}else s=a;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+s})}(e.j,e.u,e.A,e.m,e.X,e.s)}function ti(e){return!!e.g&&"GET"==e.u&&2!=e.K&&e.l.Ba}function ta(e,t,n){let r=!0,i;for(;!e.I&&e.C<n.length;)if((i=function(e,t){var n=e.C,r=t.indexOf("\n",n);return -1==r?tt:isNaN(n=Number(t.substring(n,r)))?te:(r+=1)+n>t.length?tt:(t=t.substr(r,n),e.C=r+n,t)}(e,n))==tt){4==t&&(e.o=4,eG(14),r=!1),eq(e.j,e.m,null,"[Incomplete Response]");break}else if(i==te){e.o=4,eG(15),eq(e.j,e.m,n,"[Invalid Chunk]"),r=!1;break}else eq(e.j,e.m,i,null),td(e,i);ti(e)&&i!=tt&&i!=te&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,eG(16),r=!1),e.i=e.i&&r,r?0<n.length&&!e.aa&&(e.aa=!0,(t=e.l).g==e&&t.$&&!t.L&&(t.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),n_(t),t.L=!0,eG(11))):(eq(e.j,e.m,n,"[Invalid Chunked Response]"),tc(e),tu(e))}function ts(e){e.Y=Date.now()+e.P,to(e,e.P)}function to(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=eQ(S(e.eb,e),t)}function tl(e){e.B&&(_.clearTimeout(e.B),e.B=null)}function tu(e){0==e.l.G||e.I||nw(e.l,e)}function tc(e){tl(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,eN(e.W),eV(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function td(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||tz(n.i,e))){if(n.I=e.N,!e.J&&tz(n.i,e)&&3==n.G){try{var r=n.Ca.g.parse(t)}catch(e){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(n.g.F+3e3<e.F)nx(n),nc(n);else break e}ny(n),eG(18)}}else n.ta=i[1],0<n.ta-n.U&&37500>i[2]&&n.N&&0==n.A&&!n.v&&(n.v=eQ(S(n.ab,n),6e3));if(1>=tZ(n.i)&&n.ka){try{n.ka()}catch(e){}n.ka=void 0}}else nE(n,11)}else if((e.J||n.g==e)&&nx(n),!P(t))for(i=n.Ca.g.parse(t),t=0;t<i.length;t++){let o=i[t];if(n.U=o[0],o=o[1],2==n.G){if("c"==o[0]){n.J=o[1],n.la=o[2];let t=o[3];null!=t&&(n.ma=t,n.h.info("VER="+n.ma));let i=o[4];null!=i&&(n.za=i,n.h.info("SVER="+n.za));let l=o[5];null!=l&&"number"==typeof l&&0<l&&(r=1.5*l,n.K=r,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;let u=e.g;if(u){let e=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var a=r.i;!a.g&&(L(e,"spdy")||L(e,"quic")||L(e,"h2"))&&(a.j=a.l,a.g=new Set,a.h&&(tH(a,a.h),a.h=null))}if(r.D){let e=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.sa=e,tk(r.F,r.D,e))}}if(n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-e.F,n.h.info("Handshake RTT: "+n.O+"ms")),(r=n).oa=nC(r,r.H?r.la:null,r.W),e.J){tK(r.i,e);var s=r.K;s&&e.setTimeout(s),e.B&&(tl(e),ts(e)),r.g=e}else nv(r);0<n.l.length&&nf(n)}else"stop"!=o[0]&&"close"!=o[0]||nE(n,7)}else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?nE(n,7):nu(n):"noop"!=o[0]&&n.j&&n.j.wa(o),n.A=0)}}eW(4)}catch(e){}}function th(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(x(e)||"string"==typeof e)j(e,t,void 0);else{if(e.T&&"function"==typeof e.T)var n=e.T();else if(e.R&&"function"==typeof e.R)n=void 0;else if(x(e)||"string"==typeof e){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.R&&"function"==typeof e.R)return e.R();if("string"==typeof e)return e.split("");if(x(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}}function tf(e,t){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e){if(e instanceof tf)for(n=e.T(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}}function tp(e){if(e.i!=e.g.length){for(var t=0,n=0;t<e.g.length;){var r=e.g[t];tm(e.h,r)&&(e.g[n++]=r),t++}e.g.length=n}if(e.i!=e.g.length){var i={};for(n=t=0;t<e.g.length;)tm(i,r=e.g[t])||(e.g[n++]=r,i[r]=1),t++;e.g.length=n}}function tm(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(d=e7.prototype).setTimeout=function(e){this.P=e},d.gb=function(e){e=e.target;let t=this.L;t&&3==ni(e)?t.l():this.Ia(e)},d.Ia=function(e){try{if(e==this.g)e:{let c=ni(this.g);var t=this.g.Da();let d=this.g.ba();if(!(3>c)&&(3!=c||W||this.g&&(this.h.h||this.g.ga()||na(this.g)))){this.I||4!=c||7==t||(8==t||0>=d?eW(3):eW(2)),tl(this);var n=this.g.ba();this.N=n;t:if(ti(this)){var r=na(this.g);e="";var i=r.length,a=4==ni(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){tc(this),tu(this);var s="";break t}this.h.i=new _.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:a&&t==i-1});r.splice(0,i),this.h.g+=e,this.C=0,s=this.h.g}else s=this.g.ga();if(this.i=200==n,function(e,t,n,r,i,a,s){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+a+" "+s})}(this.j,this.u,this.A,this.m,this.X,c,n),this.i){if(this.$&&!this.J){t:{if(this.g){var o,l=this.g;if((o=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!P(o)){var u=o;break t}}u=null}if(n=u)eq(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,td(this,n);else{this.i=!1,this.o=3,eG(12),tc(this),tu(this);break e}}this.U?(ta(this,c,s),W&&this.i&&3==c&&(eU(this.V,this.W,"tick",this.fb),this.W.start())):(eq(this.j,this.m,s,null),td(this,s)),4==c&&tc(this),this.i&&!this.I&&(4==c?nw(this.l,this):(this.i=!1,ts(this)))}else 400==n&&0<s.indexOf("Unknown SID")?(this.o=3,eG(12)):(this.o=0,eG(13)),tc(this),tu(this)}}}catch(e){}finally{}},d.fb=function(){if(this.g){var e=ni(this.g),t=this.g.ga();this.C<t.length&&(tl(this),ta(this,e,t),this.i&&4!=e&&ts(this))}},d.cancel=function(){this.I=!0,tc(this)},d.eb=function(){this.B=null;let e=Date.now();0<=e-this.Y?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.j,this.A),2!=this.K&&(eW(3),eG(17)),tc(this),this.o=2,tu(this)):to(this,this.Y-e)},(d=tf.prototype).R=function(){tp(this);for(var e=[],t=0;t<this.g.length;t++)e.push(this.h[this.g[t]]);return e},d.T=function(){return tp(this),this.g.concat()},d.get=function(e,t){return tm(this.h,e)?this.h[e]:t},d.set=function(e,t){tm(this.h,e)||(this.i++,this.g.push(e)),this.h[e]=t},d.forEach=function(e,t){for(var n=this.T(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var tg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function tv(e,t){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,e instanceof tv){this.g=void 0!==t?t:e.g,t_(this,e.j),this.s=e.s,tb(this,e.i),tx(this,e.m),this.l=e.l,t=e.h;var n=new tP;n.i=t.i,t.g&&(n.g=new tf(t.g),n.h=t.h),tw(this,n),this.o=e.o}else e&&(n=String(e).match(tg))?(this.g=!!t,t_(this,n[1]||"",!0),this.s=tS(n[2]||""),tb(this,n[3]||"",!0),tx(this,n[4]),this.l=tS(n[5]||"",!0),tw(this,n[6]||"",!0),this.o=tS(n[7]||"")):(this.g=!!t,this.h=new tP(null,this.g))}function ty(e){return new tv(e)}function t_(e,t,n){e.j=n?tS(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function tb(e,t,n){e.i=n?tS(t,!0):t}function tx(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function tw(e,t,n){var r,i;t instanceof tP?(e.h=t,r=e.h,(i=e.g)&&!r.j&&(tN(r),r.i=null,r.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(tL(this,t),tO(this,n,e))},r)),r.j=i):(n||(t=tC(t,tA)),e.h=new tP(t,e.g))}function tk(e,t,n){e.h.set(t,n)}function tE(e){return tk(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function tS(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tC(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,tT),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function tT(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}tv.prototype.toString=function(){var e=[],t=this.j;t&&e.push(tC(t,tI,!0),":");var n=this.i;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(tC(t,tI,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&e.push("/"),e.push(tC(n,"/"==n.charAt(0)?tj:tR,!0))),(n=this.h.toString())&&e.push("?",n),(n=this.o)&&e.push("#",tC(n,tD)),e.join("")};var tI=/[#\/\?@]/g,tR=/[#\?:]/g,tj=/[#\?]/g,tA=/[#\?@]/g,tD=/#/g;function tP(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function tN(e){e.g||(e.g=new tf,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function tL(e,t){tN(e),t=tF(e,t),tm(e.g.h,t)&&(e.i=null,e.h-=e.g.get(t).length,tm((e=e.g).h,t)&&(delete e.h[t],e.i--,e.g.length>2*e.i&&tp(e)))}function tM(e,t){return tN(e),t=tF(e,t),tm(e.g.h,t)}function tO(e,t,n){tL(e,t),0<n.length&&(e.i=null,e.g.set(tF(e,t),D(n)),e.h+=n.length)}function tF(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(d=tP.prototype).add=function(e,t){tN(this),this.i=null,e=tF(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},d.forEach=function(e,t){tN(this),this.g.forEach(function(n,r){j(n,function(n){e.call(t,n,r,this)},this)},this)},d.T=function(){tN(this);for(var e=this.g.R(),t=this.g.T(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},d.R=function(e){tN(this);var t=[];if("string"==typeof e)tM(this,e)&&(t=A(t,this.g.get(tF(this,e))));else{e=this.g.R();for(var n=0;n<e.length;n++)t=A(t,e[n])}return t},d.set=function(e,t){return tN(this),this.i=null,tM(this,e=tF(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},d.get=function(e,t){return e&&0<(e=this.R(e)).length?String(e[0]):t},d.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=this.g.T(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.R(r);for(var a=0;a<r.length;a++){var s=i;""!==r[a]&&(s+="="+encodeURIComponent(String(r[a]))),e.push(s)}}return this.i=e.join("&")};var tU=class{constructor(e,t){this.h=e,this.g=t}};function tV(e){this.l=e||tB,e=_.PerformanceNavigationTiming?0<(e=_.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(_.g&&_.g.Ea&&_.g.Ea()&&_.g.Ea().Zb),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var tB=10;function tq(e){return!!e.h||!!e.g&&e.g.size>=e.j}function tZ(e){return e.h?1:e.g?e.g.size:0}function tz(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function tH(e,t){e.g?e.g.add(t):e.h=t}function tK(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function tW(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let n of e.g.values())t=t.concat(n.D);return t}return D(e.i)}function t$(){}function tG(){this.g=new t$}function tY(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(e){}}function tQ(e){this.l=e.$b||null,this.j=e.ib||!1}function tX(e,t){ek.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=tJ,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}tV.prototype.cancel=function(){if(this.i=tW(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}},t$.prototype.stringify=function(e){return _.JSON.stringify(e,void 0)},t$.prototype.parse=function(e){return _.JSON.parse(e,void 0)},T(tQ,e0),tQ.prototype.g=function(){return new tX(this.l,this.j)},tQ.prototype.i=(r={},function(){return r}),T(tX,ek);var tJ=0;function t0(e){e.j.read().then(e.Sa.bind(e)).catch(e.ha.bind(e))}function t1(e){e.readyState=4,e.l=null,e.j=null,e.A=null,t2(e)}function t2(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(d=tX.prototype).open=function(e,t){if(this.readyState!=tJ)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,t2(this)},d.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||_).fetch(new Request(this.B,t)).then(this.Va.bind(this),this.ha.bind(this))},d.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,t1(this)),this.readyState=tJ},d.Va=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,t2(this)),this.g&&(this.readyState=3,t2(this),this.g))){if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==_.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;t0(this)}else e.text().then(this.Ua.bind(this),this.ha.bind(this))}},d.Sa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?t1(this):t2(this),3==this.readyState&&t0(this)}},d.Ua=function(e){this.g&&(this.response=this.responseText=e,t1(this))},d.Ta=function(e){this.g&&(this.response=e,t1(this))},d.ha=function(){this.g&&t1(this)},d.setRequestHeader=function(e,t){this.v.append(e,t)},d.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},d.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var n=t.next();!n.done;)e.push((n=n.value)[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(tX.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var t3=_.JSON.parse;function t5(e){ek.call(this),this.headers=new tf,this.u=e||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=t4,this.K=this.L=!1}T(t5,ek);var t4="",t6=/^https?$/i,t7=["POST","PUT"];function t8(e){return"content-type"==e.toLowerCase()}function t9(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,ne(e),nn(e)}function ne(e){e.D||(e.D=!0,eE(e,"complete"),eE(e,"error"))}function nt(e){if(e.h&&void 0!==y&&(!e.C[1]||4!=ni(e)||2!=e.ba())){if(e.v&&4==ni(e))eL(e.Fa,0,e);else if(eE(e,"readystatechange"),4==ni(e)){e.h=!1;try{let o=e.ba();e:switch(o){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,n,r=!0;break e;default:r=!1}if(!(t=r)){if(n=0===o){var i=String(e.H).match(tg)[1]||null;if(!i&&_.self&&_.self.location){var a=_.self.location.protocol;i=a.substr(0,a.length-1)}n=!t6.test(i?i.toLowerCase():"")}t=n}if(t)eE(e,"complete"),eE(e,"success");else{e.m=6;try{var s=2<ni(e)?e.g.statusText:""}catch(e){s=""}e.j=s+" ["+e.ba()+"]",ne(e)}}finally{nn(e)}}}}function nn(e,t){if(e.g){nr(e);let n=e.g,r=e.C[0]?b:null;e.g=null,e.C=null,t||eE(e,"ready");try{n.onreadystatechange=r}catch(e){}}}function nr(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(_.clearTimeout(e.A),e.A=null)}function ni(e){return e.g?e.g.readyState:0}function na(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case t4:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function ns(e,t,n){let r;e:{for(i in n){var i=!1;break e}i=!0}i||(r="",U(n,function(e,t){r+=t+":"+e+"\r\n"}),n=r,"string"==typeof e?null!=n&&encodeURIComponent(String(n)):tk(e,t,n))}function no(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function nl(e){this.za=0,this.l=[],this.h=new eB,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=no("failFast",!1,e),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=no("baseRetryDelayMs",5e3,e),this.$a=no("retryDelaySeedMs",1e4,e),this.Ya=no("forwardChannelMaxRetries",2,e),this.ra=no("forwardChannelRequestTimeoutMs",2e4,e),this.qa=e&&e.xmlHttpFactory||void 0,this.Ba=e&&e.Yb||!1,this.K=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.J="",this.i=new tV(e&&e.concurrentRequestLimit),this.Ca=new tG,this.ja=e&&e.fastHandshake||!1,this.Ra=e&&e.Wb||!1,e&&e.Aa&&this.h.Aa(),e&&e.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&e&&e.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!e||!1!==e.Xb}function nu(e){if(nd(e),3==e.G){var t=e.V++,n=ty(e.F);tk(n,"SID",e.J),tk(n,"RID",t),tk(n,"TYPE","terminate"),nm(e,n),(t=new e7(e,e.h,t,void 0)).K=2,t.v=tE(ty(n)),n=!1,_.navigator&&_.navigator.sendBeacon&&(n=_.navigator.sendBeacon(t.v.toString(),"")),!n&&_.Image&&((new Image).src=t.v,n=!0),n||(t.g=nT(t.l,null),t.g.ea(t.v)),t.F=Date.now(),ts(t)}nS(e)}function nc(e){e.g&&(n_(e),e.g.cancel(),e.g=null)}function nd(e){nc(e),e.u&&(_.clearTimeout(e.u),e.u=null),nx(e),e.i.cancel(),e.m&&("number"==typeof e.m&&_.clearTimeout(e.m),e.m=null)}function nh(e,t){e.l.push(new tU(e.Za++,t)),3==e.G&&nf(e)}function nf(e){tq(e.i)||e.m||(e.m=!0,eR(e.Ha,e),e.C=0)}function np(e,t){var n;n=t?t.m:e.V++;let r=ty(e.F);tk(r,"SID",e.J),tk(r,"RID",n),tk(r,"AID",e.U),nm(e,r),e.o&&e.s&&ns(r,e.o,e.s),n=new e7(e,e.h,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.l=t.D.concat(e.l)),t=ng(e,n,1e3),n.setTimeout(Math.round(.5*e.ra)+Math.round(.5*e.ra*Math.random())),tH(e.i,n),tn(n,r,t)}function nm(e,t){e.j&&th({},function(e,n){tk(t,n,e)})}function ng(e,t,n){n=Math.min(e.l.length,n);var r=e.j?S(e.j.Oa,e.j,e):null;e:{var i=e.l;let t=-1;for(;;){let e=["count="+n];-1==t?0<n?(t=i[0].h,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let s=0;s<n;s++){let n=i[s].h,o=i[s].g;if(0>(n-=t))t=Math.max(0,i[s].h-100),a=!1;else try{!function(e,t,n){let r=n||"";try{th(e,function(e,n){let i=e;w(e)&&(i=eC(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}(o,e,"req"+n+"_")}catch(e){r&&r(o)}}if(a){r=e.join("&");break e}}}return e=e.l.splice(0,n),t.D=e,r}function nv(e){e.g||e.u||(e.Y=1,eR(e.Ga,e),e.A=0)}function ny(e){return!e.g&&!e.u&&!(3<=e.A)&&(e.Y++,e.u=eQ(S(e.Ga,e),nk(e,e.A)),e.A++,!0)}function n_(e){null!=e.B&&(_.clearTimeout(e.B),e.B=null)}function nb(e){e.g=new e7(e,e.h,"rpc",e.Y),null===e.o&&(e.g.H=e.s),e.g.O=0;var t=ty(e.oa);tk(t,"RID","rpc"),tk(t,"SID",e.J),tk(t,"CI",e.N?"0":"1"),tk(t,"AID",e.U),nm(e,t),tk(t,"TYPE","xmlhttp"),e.o&&e.s&&ns(t,e.o,e.s),e.K&&e.g.setTimeout(e.K);var n=e.g;e=e.la,n.K=1,n.v=tE(ty(t)),n.s=null,n.U=!0,tr(n,e)}function nx(e){null!=e.v&&(_.clearTimeout(e.v),e.v=null)}function nw(e,t){var n=null;if(e.g==t){nx(e),n_(e),e.g=null;var r=2}else{if(!tz(e.i,t))return;n=t.D,tK(e.i,t),r=1}if(e.I=t.N,0!=e.G){if(t.i){if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i,a,s=e.C;eE(r=eH(),new eY(r,n,t,s)),nf(e)}else nv(e)}else if(3==(s=t.o)||0==s&&0<e.I||!(1==r&&(i=e,a=t,!(tZ(i.i)>=i.i.j-(i.m?1:0))&&(i.m?(i.l=a.D.concat(i.l),!0):1!=i.G&&2!=i.G&&!(i.C>=(i.Xa?0:i.Ya))&&(i.m=eQ(S(i.Ha,i,a),nk(i,i.C)),i.C++,!0)))||2==r&&ny(e)))switch(n&&0<n.length&&((t=e.i).i=t.i.concat(n)),s){case 1:nE(e,5);break;case 4:nE(e,10);break;case 3:nE(e,6);break;default:nE(e,2)}}}function nk(e,t){let n=e.Pa+Math.floor(Math.random()*e.$a);return e.j||(n*=2),n*t}function nE(e,t){if(e.h.info("Error code "+t),2==t){var n=null;e.j&&(n=null);var r=S(e.jb,e);n||(n=new tv("//www.google.com/images/cleardot.gif"),_.location&&"http"==_.location.protocol||t_(n,"https"),tE(n)),function(e,t){let n=new eB;if(_.Image){let r=new Image;r.onload=C(tY,n,r,"TestLoadImage: loaded",!0,t),r.onerror=C(tY,n,r,"TestLoadImage: error",!1,t),r.onabort=C(tY,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=C(tY,n,r,"TestLoadImage: timeout",!1,t),_.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(n.toString(),r)}else eG(2);e.G=0,e.j&&e.j.va(t),nS(e),nd(e)}function nS(e){e.G=0,e.I=-1,e.j&&((0!=tW(e.i).length||0!=e.l.length)&&(e.i.i.length=0,D(e.l),e.l.length=0),e.j.ua())}function nC(e,t,n){var r,i,a,s,o,l;let u=(r=n)instanceof tv?ty(r):new tv(r,void 0);if(""!=u.i)t&&tb(u,t+"."+u.i),tx(u,u.m);else{let e=_.location;i=e.protocol,a=t?t+"."+e.hostname:e.hostname,s=+e.port,o=n,l=new tv(null,void 0),i&&t_(l,i),a&&tb(l,a),s&&tx(l,s),o&&(l.l=o),u=l}return e.aa&&U(e.aa,function(e,t){tk(u,t,e)}),t=e.D,n=e.sa,t&&n&&tk(u,t,n),tk(u,"VER",e.ma),nm(e,u),u}function nT(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new t5(n&&e.Ba&&!e.qa?new tQ({ib:!0}):e.qa)).L=e.H,t}function nI(){}function nR(){if(H&&!(10<=Number(en)))throw Error("Environmental error: no available transport.")}function nj(e,t){ek.call(this),this.g=new nl(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.P=e,(e=t&&t.httpHeadersOverwriteParam)&&!P(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!P(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new nP(this)}function nA(e){e5.call(this);var t=e.__sm__;if(t){e:{for(let n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function nD(){e4.call(this),this.status=1}function nP(e){this.g=e}(d=t5.prototype).ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():l.g(),this.C=this.u?e1(this.u):e1(l),this.g.onreadystatechange=S(this.Fa,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(e){t9(this,e);return}e=n||"";let i=new tf(this.headers);r&&th(r,function(e,t){i.set(t,e)}),r=function(e){e:{var t=t8;let n=e.length,r="string"==typeof e?e.split(""):e;for(let i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(i.T()),n=_.FormData&&e instanceof _.FormData,!(0<=R(t7,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(e,t){this.g.setRequestHeader(t,e)},this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{var s,o;nr(this),0<this.B&&((this.K=(s=this.g,H&&(o=et,Object.prototype.hasOwnProperty.call(o,9)?o[9]:o[9]=function(){let e=0,t=N(String(a)).split("."),n=N("9").split("."),r=Math.max(t.length,n.length);for(let a=0;0==e&&a<r;a++){var i=t[a]||"",s=n[a]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==i[0].length&&0==s[0].length)break;e=M(0==i[1].length?0:parseInt(i[1],10),0==s[1].length?0:parseInt(s[1],10))||M(0==i[2].length,0==s[2].length)||M(i[2],s[2]),i=i[3],s=s[3]}while(0==e)}return 0<=e}(9))&&"number"==typeof s.timeout&&void 0!==s.ontimeout))?(this.g.timeout=this.B,this.g.ontimeout=S(this.pa,this)):this.A=eL(this.pa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(e){t9(this,e)}},d.pa=function(){void 0!==y&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,eE(this,"timeout"),this.abort(8))},d.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,eE(this,"complete"),eE(this,"abort"),nn(this))},d.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),nn(this,!0)),t5.Z.M.call(this)},d.Fa=function(){this.s||(this.F||this.v||this.l?nt(this):this.cb())},d.cb=function(){nt(this)},d.ba=function(){try{return 2<ni(this)?this.g.status:-1}catch(e){return -1}},d.ga=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},d.Qa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),t3(t)}},d.Da=function(){return this.m},d.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(d=nl.prototype).ma=8,d.G=1,d.hb=function(e){try{this.h.info("Origin Trials invoked: "+e)}catch(e){}},d.Ha=function(e){if(this.m){if(this.m=null,1==this.G){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;let i=new e7(this,this.h,e,void 0),a=this.s;if(this.P&&(a?q(a=V(a),this.P):a=this.P),null===this.o&&(i.H=a),this.ja)e:{for(var t=0,n=0;n<this.l.length;n++){t:{var r=this.l[n];if("__data__"in r.g&&"string"==typeof(r=r.g.__data__)){r=r.length;break t}r=void 0}if(void 0===r)break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.l.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=ng(this,i,t),tk(n=ty(this.F),"RID",e),tk(n,"CVER",22),this.D&&tk(n,"X-HTTP-Session-Id",this.D),nm(this,n),this.o&&a&&ns(n,this.o,a),tH(this.i,i),this.Ra&&tk(n,"TYPE","init"),this.ja?(tk(n,"$req",t),tk(n,"SID","null"),i.$=!0,tn(i,n,null)):tn(i,n,t),this.G=2}}else 3==this.G&&(e?np(this,e):0==this.l.length||tq(this.i)||np(this))}},d.Ga=function(){if(this.u=null,nb(this),this.$&&!(this.L||null==this.g||0>=this.O)){var e=2*this.O;this.h.info("BP detection timer enabled: "+e),this.B=eQ(S(this.bb,this),e)}},d.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,eG(10),nc(this),nb(this))},d.ab=function(){null!=this.v&&(this.v=null,nc(this),ny(this),eG(19))},d.jb=function(e){e?(this.h.info("Successfully pinged google.com"),eG(2)):(this.h.info("Failed to ping google.com"),eG(1))},(d=nI.prototype).xa=function(){},d.wa=function(){},d.va=function(){},d.ua=function(){},d.Oa=function(){},nR.prototype.g=function(e,t){return new nj(e,t)},T(nj,ek),nj.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;e.Wa&&(e.h.info("Origin Trials enabled."),eR(S(e.hb,e,t))),eG(0),e.W=t,e.aa=n||{},e.N=e.X,e.F=nC(e,null,e.W),nf(e)},nj.prototype.close=function(){nu(this.g)},nj.prototype.u=function(e){if("string"==typeof e){var t={};t.__data__=e,nh(this.g,t)}else this.v?((t={}).__data__=eC(e),nh(this.g,t)):nh(this.g,e)},nj.prototype.M=function(){this.g.j=null,delete this.j,nu(this.g),delete this.g,nj.Z.M.call(this)},T(nA,e5),T(nD,e4),T(nP,nI),nP.prototype.xa=function(){eE(this.g,"a")},nP.prototype.wa=function(e){eE(this.g,new nA(e))},nP.prototype.va=function(e){eE(this.g,new nD(e))},nP.prototype.ua=function(){eE(this.g,"b")},nR.prototype.createWebChannel=nR.prototype.g,nj.prototype.send=nj.prototype.u,nj.prototype.open=nj.prototype.m,nj.prototype.close=nj.prototype.close,eX.NO_ERROR=0,eX.TIMEOUT=8,eX.HTTP_ERROR=6,eJ.COMPLETE="complete",e2.EventType=e3,e3.OPEN="a",e3.CLOSE="b",e3.ERROR="c",e3.MESSAGE="d",ek.prototype.listen=ek.prototype.N,t5.prototype.listenOnce=t5.prototype.O,t5.prototype.getLastError=t5.prototype.La,t5.prototype.getLastErrorCode=t5.prototype.Da,t5.prototype.getStatus=t5.prototype.ba,t5.prototype.getResponseJson=t5.prototype.Qa,t5.prototype.getResponseText=t5.prototype.ga,t5.prototype.send=t5.prototype.ea;var nN=v.createWebChannelTransport=function(){return new nR},nL=v.getStatEventTarget=function(){return eH()},nM=v.ErrorCode=eX,nO=v.EventType=eJ,nF=v.Event=eZ,nU=v.Stat={rb:0,ub:1,vb:2,Ob:3,Tb:4,Qb:5,Rb:6,Pb:7,Nb:8,Sb:9,PROXY:10,NOPROXY:11,Lb:12,Hb:13,Ib:14,Gb:15,Jb:16,Kb:17,nb:18,mb:19,ob:20},nV=v.FetchXmlHttpFactory=tQ,nB=v.WebChannel=e2,nq=v.XhrIo=t5;n(14284);let nZ="@firebase/firestore";/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nz{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}nz.UNAUTHENTICATED=new nz(null),nz.GOOGLE_CREDENTIALS=new nz("google-credentials-uid"),nz.FIRST_PARTY=new nz("first-party-uid"),nz.MOCK_USER=new nz("mock-user");/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let nH="9.9.2",nK=new p.Yd("@firebase/firestore");function nW(){return nK.logLevel}function n$(e,...t){if(nK.logLevel<=p.in.DEBUG){let n=t.map(nQ);nK.debug(`Firestore (${nH}): ${e}`,...n)}}function nG(e,...t){if(nK.logLevel<=p.in.ERROR){let n=t.map(nQ);nK.error(`Firestore (${nH}): ${e}`,...n)}}function nY(e,...t){if(nK.logLevel<=p.in.WARN){let n=t.map(nQ);nK.warn(`Firestore (${nH}): ${e}`,...n)}}function nQ(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(t){return e}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nX(e="Unexpected state"){let t=`FIRESTORE (${nH}) INTERNAL ASSERTION FAILED: `+e;throw nG(t),Error(t)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let nJ={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class n0 extends m.ZR{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class n1{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class n2{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class n3{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(nz.UNAUTHENTICATED))}shutdown(){}}class n5{constructor(e){this.t=e,this.currentUser=nz.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){let n=this.i,r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve(),i=new n1;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new n1,e.enqueueRetryable(()=>r(this.currentUser))};let a=()=>{let t=i;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},s=e=>{n$("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(e=>s(e)),setTimeout(()=>{if(!this.auth){let e=this.t.getImmediate({optional:!0});e?s(e):(n$("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new n1)}},0),a()}getToken(){let e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(n$("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?("string"==typeof t.accessToken||nX(),new n2(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){let e=this.auth&&this.auth.getUid();return null===e||"string"==typeof e||nX(),new nz(e)}}class n4{constructor(e,t,n){this.type="FirstParty",this.user=nz.FIRST_PARTY,this.headers=new Map,this.headers.set("X-Goog-AuthUser",t);let r=e.auth.getAuthHeaderValueForFirstParty([]);r&&this.headers.set("Authorization",r),n&&this.headers.set("X-Goog-Iam-Authorization-Token",n)}}class n6{constructor(e,t,n){this.h=e,this.l=t,this.m=n}getToken(){return Promise.resolve(new n4(this.h,this.l,this.m))}start(e,t){e.enqueueRetryable(()=>t(nz.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class n7{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class n8{constructor(e){this.g=e,this.forceRefresh=!1,this.appCheck=null,this.p=null}start(e,t){let n=e=>{null!=e.error&&n$("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);let n=e.token!==this.p;return this.p=e.token,n$("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};let r=e=>{n$("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.appCheck.addTokenListener(this.o)};this.g.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){let e=this.g.getImmediate({optional:!0});e?r(e):n$("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?("string"==typeof e.token||nX(),this.p=e.token,new n7(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class n9{static I(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";for(;n.length<20;){let r=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){let t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let t=0;t<e;t++)n[t]=Math.floor(256*Math.random());return n}(40);for(let i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length))}return n}}function re(e,t){return e<t?-1:e>t?1:0}function rt(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rn{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0||t>=1e9)throw new n0(nJ.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800||e>=253402300800)throw new n0(nJ.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return rn.fromMillis(Date.now())}static fromDate(e){return rn.fromMillis(e.getTime())}static fromMillis(e){let t=Math.floor(e/1e3);return new rn(t,Math.floor(1e6*(e-1e3*t)))}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?re(this.nanoseconds,e.nanoseconds):re(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){let e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rr{constructor(e){this.timestamp=e}static fromTimestamp(e){return new rr(e)}static min(){return new rr(new rn(0,0))}static max(){return new rr(new rn(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ri{constructor(e,t,n){void 0===t?t=0:t>e.length&&nX(),void 0===n?n=e.length-t:n>e.length-t&&nX(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===ri.comparator(this,e)}child(e){let t=this.segments.slice(this.offset,this.limit());return e instanceof ri?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.get(r),i=t.get(r);if(n<i)return -1;if(n>i)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class ra extends ri{construct(e,t,n){return new ra(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){let t=[];for(let n of e){if(n.indexOf("//")>=0)throw new n0(nJ.INVALID_ARGUMENT,`Invalid segment (${n}). Paths must not contain // in them.`);t.push(...n.split("/").filter(e=>e.length>0))}return new ra(t)}static emptyPath(){return new ra([])}}let rs=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class ro extends ri{construct(e,t,n){return new ro(e,t,n)}static isValidIdentifier(e){return rs.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),ro.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new ro(["__name__"])}static fromServerFormat(e){let t=[],n="",r=0,i=()=>{if(0===n.length)throw new n0(nJ.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""},a=!1;for(;r<e.length;){let t=e[r];if("\\"===t){if(r+1===e.length)throw new n0(nJ.INVALID_ARGUMENT,"Path has trailing escape character: "+e);let t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new n0(nJ.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(a=!a,r++):"."!==t||a?(n+=t,r++):(i(),r++)}if(i(),a)throw new n0(nJ.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new ro(t)}static emptyPath(){return new ro([])}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rl{constructor(e){this.path=e}static fromPath(e){return new rl(ra.fromString(e))}static fromName(e){return new rl(ra.fromString(e).popFirst(5))}static empty(){return new rl(ra.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===ra.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return ra.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new rl(new ra(e.slice()))}}class ru{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new ru(rr.min(),rl.empty(),-1)}static max(){return new ru(rr.max(),rl.empty(),-1)}}class rc{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function rd(e){if(e.code!==nJ.FAILED_PRECONDITION||"The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab."!==e.message)throw e;n$("LocalStore","Unexpectedly lost primary lease")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rh{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&nX(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new rh((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{let t=e();return t instanceof rh?t:rh.resolve(t)}catch(e){return rh.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):rh.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):rh.reject(t)}static resolve(e){return new rh((t,n)=>{t(e)})}static reject(e){return new rh((t,n)=>{n(e)})}static waitFor(e){return new rh((t,n)=>{let r=0,i=0,a=!1;e.forEach(e=>{++r,e.next(()=>{++i,a&&i===r&&t()},e=>n(e))}),a=!0,i===r&&t()})}static or(e){let t=rh.resolve(!1);for(let n of e)t=t.next(e=>e?rh.resolve(e):n());return t}static forEach(e,t){let n=[];return e.forEach((e,r)=>{n.push(t.call(this,e,r))}),this.waitFor(n)}static mapArray(e,t){return new rh((n,r)=>{let i=e.length,a=Array(i),s=0;for(let o=0;o<i;o++){let l=o;t(e[l]).next(e=>{a[l]=e,++s===i&&n(a)},e=>r(e))}})}static doWhile(e,t){return new rh((n,r)=>{let i=()=>{!0===e()?t().next(()=>{i()},r):n()};i()})}}function rf(e){return"IndexedDbTransactionError"===e.name}/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rp{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.it(e),this.rt=e=>t.writeSequenceNumber(e))}it(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){let e=++this.previousValue;return this.rt&&this.rt(e),e}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function rm(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function rg(e,t){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function rv(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */rp.ot=-1;class ry{constructor(e,t){this.comparator=e,this.root=t||rb.EMPTY}insert(e,t){return new ry(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,rb.BLACK,null,null))}remove(e){return new ry(this.comparator,this.root.remove(e,this.comparator).copy(null,null,rb.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){let n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){let r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return -1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){let e=[];return this.inorderTraversal((t,n)=>(e.push(`${t}:${n}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new r_(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new r_(this.root,e,this.comparator,!1)}getReverseIterator(){return new r_(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new r_(this.root,e,this.comparator,!0)}}class r_{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;let e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class rb{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:rb.RED,this.left=null!=r?r:rb.EMPTY,this.right=null!=i?i:rb.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new rb(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()}removeMin(){if(this.left.isEmpty())return rb.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()}remove(e,t){let n,r=this;if(0>t(e,r.key))r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return rb.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}rotateLeft(){let e=this.copy(null,null,rb.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){let e=this.copy(null,null,rb.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){let e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw nX();let e=this.left.check();if(e!==this.right.check())throw nX();return e+(this.isRed()?0:1)}}rb.EMPTY=null,rb.RED=!0,rb.BLACK=!1,rb.EMPTY=new class{constructor(){this.size=0}get key(){throw nX()}get value(){throw nX()}get color(){throw nX()}get left(){throw nX()}get right(){throw nX()}copy(e,t,n,r,i){return this}insert(e,t,n){return new rb(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rx{constructor(e){this.comparator=e,this.data=new ry(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){let n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){let r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){let t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new rw(this.data.getIterator())}getIteratorFrom(e){return new rw(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof rx)||this.size!==e.size)return!1;let t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){let e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){let e=[];return this.forEach(t=>{e.push(t)}),e}toString(){let e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){let t=new rx(this.comparator);return t.data=e,t}}class rw{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rk{constructor(e){this.fields=e,e.sort(ro.comparator)}static empty(){return new rk([])}unionWith(e){let t=new rx(ro.comparator);for(let e of this.fields)t=t.add(e);for(let n of e)t=t.add(n);return new rk(t.toArray())}covers(e){for(let t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return rt(this.fields,e.fields,(e,t)=>e.isEqual(t))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rE{constructor(e){this.binaryString=e}static fromBase64String(e){let t=atob(e);return new rE(t)}static fromUint8Array(e){let t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new rE(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return re(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}rE.EMPTY_BYTE_STRING=new rE("");let rS=RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function rC(e){if(e||nX(),"string"==typeof e){let t=0,n=rS.exec(e);if(n||nX(),n[1]){let e=n[1];t=Number(e=(e+"000000000").substr(0,9))}let r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:rT(e.seconds),nanos:rT(e.nanos)}}function rT(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function rI(e){return"string"==typeof e?rE.fromBase64String(e):rE.fromUint8Array(e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function rR(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function rj(e){let t=rC(e.mapValue.fields.__local_write_time__.timestampValue);return new rn(t.seconds,t.nanos)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rA{constructor(e,t,n,r,i,a,s,o){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=a,this.autoDetectLongPolling=s,this.useFetchStreams=o}}class rD{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new rD("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof rD&&e.projectId===this.projectId&&e.database===this.database}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function rP(e){return null==e}function rN(e){return 0===e&&1/e==-1/0}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let rL={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function rM(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?rR(e)?4:rG(e)?9007199254740991:10:nX()}function rO(e,t){if(e===t)return!0;let n=rM(e);if(n!==rM(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return rj(e).isEqual(rj(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;let n=rC(e.timestampValue),r=rC(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return rI(e.bytesValue).isEqual(rI(t.bytesValue));case 7:return e.referenceValue===t.referenceValue;case 8:return rT(e.geoPointValue.latitude)===rT(t.geoPointValue.latitude)&&rT(e.geoPointValue.longitude)===rT(t.geoPointValue.longitude);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return rT(e.integerValue)===rT(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){let n=rT(e.doubleValue),r=rT(t.doubleValue);return n===r?rN(n)===rN(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return rt(e.arrayValue.values||[],t.arrayValue.values||[],rO);case 10:return function(e,t){let n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(rm(n)!==rm(r))return!1;for(let e in n)if(n.hasOwnProperty(e)&&(void 0===r[e]||!rO(n[e],r[e])))return!1;return!0}(e,t);default:return nX()}}function rF(e,t){return void 0!==(e.values||[]).find(e=>rO(e,t))}function rU(e,t){if(e===t)return 0;let n=rM(e),r=rM(t);if(n!==r)return re(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return re(e.booleanValue,t.booleanValue);case 2:return function(e,t){let n=rT(e.integerValue||e.doubleValue),r=rT(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return rV(e.timestampValue,t.timestampValue);case 4:return rV(rj(e),rj(t));case 5:return re(e.stringValue,t.stringValue);case 6:return function(e,t){let n=rI(e),r=rI(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){let n=e.split("/"),r=t.split("/");for(let e=0;e<n.length&&e<r.length;e++){let t=re(n[e],r[e]);if(0!==t)return t}return re(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){let n=re(rT(e.latitude),rT(t.latitude));return 0!==n?n:re(rT(e.longitude),rT(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){let n=e.values||[],r=t.values||[];for(let e=0;e<n.length&&e<r.length;++e){let t=rU(n[e],r[e]);if(t)return t}return re(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===rL.mapValue&&t===rL.mapValue)return 0;if(e===rL.mapValue)return 1;if(t===rL.mapValue)return -1;let n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(let e=0;e<r.length&&e<a.length;++e){let t=re(r[e],a[e]);if(0!==t)return t;let s=rU(n[r[e]],i[a[e]]);if(0!==s)return s}return re(r.length,a.length)}(e.mapValue,t.mapValue);default:throw nX()}}function rV(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return re(e,t);let n=rC(e),r=rC(t),i=re(n.seconds,r.seconds);return 0!==i?i:re(n.nanos,r.nanos)}function rB(e){var t,n;return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){let t=rC(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?rI(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,rl.fromName(n).toString()):"geoPointValue"in e?`geo(${(t=e.geoPointValue).latitude},${t.longitude})`:"arrayValue"in e?function(e){let t="[",n=!0;for(let r of e.values||[])n?n=!1:t+=",",t+=rB(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){let t=Object.keys(e.fields||{}).sort(),n="{",r=!0;for(let i of t)r?r=!1:n+=",",n+=`${i}:${rB(e.fields[i])}`;return n+"}"}(e.mapValue):nX()}function rq(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function rZ(e){return!!e&&"integerValue"in e}function rz(e){return!!e&&"arrayValue"in e}function rH(e){return!!e&&"nullValue"in e}function rK(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function rW(e){return!!e&&"mapValue"in e}function r$(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){let t={mapValue:{fields:{}}};return rg(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=r$(n)),t}if(e.arrayValue){let t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=r$(e.arrayValue.values[n]);return t}return Object.assign({},e)}function rG(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rY{constructor(e){this.value=e}static empty(){return new rY({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(!rW(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=r$(t)}setAll(e){let t=ro.emptyPath(),n={},r=[];e.forEach((e,i)=>{if(!t.isImmediateParentOf(i)){let e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=r$(e):r.push(i.lastSegment())});let i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){let t=this.field(e.popLast());rW(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return rO(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];rW(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){for(let r of(rg(t,(t,n)=>e[t]=n),n))delete e[r]}clone(){return new rY(r$(this.value))}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rQ{constructor(e,t,n,r,i,a){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.data=i,this.documentState=a}static newInvalidDocument(e){return new rQ(e,0,rr.min(),rr.min(),rY.empty(),0)}static newFoundDocument(e,t,n){return new rQ(e,1,t,rr.min(),n,0)}static newNoDocument(e,t){return new rQ(e,2,t,rr.min(),rY.empty(),0)}static newUnknownDocument(e,t){return new rQ(e,3,t,rr.min(),rY.empty(),2)}convertToFoundDocument(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=rY.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=rY.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=rr.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof rQ&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new rQ(this.key,this.documentType,this.version,this.readTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rX{constructor(e,t=null,n=[],r=[],i=null,a=null,s=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=a,this.endAt=s,this.ut=null}}function rJ(e,t=null,n=[],r=[],i=null,a=null,s=null){return new rX(e,t,n,r,i,a,s)}function r0(e){let t=e;if(null===t.ut){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:"+t.filters.map(e=>e.field.canonicalString()+e.op.toString()+rB(e.value)).join(",")+"|ob:"+t.orderBy.map(e=>e.field.canonicalString()+e.dir).join(","),rP(t.limit)||(e+="|l:"+t.limit),t.startAt&&(e+="|lb:"+(t.startAt.inclusive?"b:":"a:")+t.startAt.position.map(e=>rB(e)).join(",")),t.endAt&&(e+="|ub:"+(t.endAt.inclusive?"a:":"b:")+t.endAt.position.map(e=>rB(e)).join(",")),t.ut=e}return t.ut}function r1(e,t){var n,r,i,a;if(e.limit!==t.limit||e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(i=e.orderBy[n],a=t.orderBy[n],!(i.dir===a.dir&&i.field.isEqual(a.field)))return!1;if(e.filters.length!==t.filters.length)return!1;for(let i=0;i<e.filters.length;i++)if(n=e.filters[i],r=t.filters[i],n.op!==r.op||!n.field.isEqual(r.field)||!rO(n.value,r.value))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!is(e.startAt,t.startAt)&&is(e.endAt,t.endAt)}function r2(e){return rl.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class r3 extends class{}{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.ct(e,t,n):new r5(e,t,n):"array-contains"===t?new r8(e,n):"in"===t?new r9(e,n):"not-in"===t?new ie(e,n):"array-contains-any"===t?new it(e,n):new r3(e,t,n)}static ct(e,t,n){return"in"===t?new r4(e,n):new r6(e,n)}matches(e){let t=e.data.field(this.field);return"!="===this.op?null!==t&&this.at(rU(t,this.value)):null!==t&&rM(this.value)===rM(t)&&this.at(rU(t,this.value))}at(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return nX()}}ht(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}}class r5 extends r3{constructor(e,t,n){super(e,t,n),this.key=rl.fromName(n.referenceValue)}matches(e){let t=rl.comparator(e.key,this.key);return this.at(t)}}class r4 extends r3{constructor(e,t){super(e,"in",t),this.keys=r7("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class r6 extends r3{constructor(e,t){super(e,"not-in",t),this.keys=r7("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function r7(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map(e=>rl.fromName(e.referenceValue))}class r8 extends r3{constructor(e,t){super(e,"array-contains",t)}matches(e){let t=e.data.field(this.field);return rz(t)&&rF(t.arrayValue,this.value)}}class r9 extends r3{constructor(e,t){super(e,"in",t)}matches(e){let t=e.data.field(this.field);return null!==t&&rF(this.value.arrayValue,t)}}class ie extends r3{constructor(e,t){super(e,"not-in",t)}matches(e){if(rF(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;let t=e.data.field(this.field);return null!==t&&!rF(this.value.arrayValue,t)}}class it extends r3{constructor(e,t){super(e,"array-contains-any",t)}matches(e){let t=e.data.field(this.field);return!(!rz(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>rF(this.value.arrayValue,e))}}class ir{constructor(e,t){this.position=e,this.inclusive=t}}class ii{constructor(e,t="asc"){this.field=e,this.dir=t}}function ia(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){let a=t[i],s=e.position[i];if(r=a.field.isKeyField()?rl.comparator(rl.fromName(s.referenceValue),n.key):rU(s,n.data.field(a.field)),"desc"===a.dir&&(r*=-1),0!==r)break}return r}function is(e,t){if(null===e)return null===t;if(null===t||e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!rO(e.position[n],t.position[n]))return!1;return!0}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class io{constructor(e,t=null,n=[],r=[],i=null,a="F",s=null,o=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=a,this.startAt=s,this.endAt=o,this.lt=null,this.ft=null,this.startAt,this.endAt}}function il(e){return new io(e)}function iu(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function ic(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function id(e){for(let t of e.filters)if(t.ht())return t.field;return null}function ih(e){return null!==e.collectionGroup}function ip(e){let t=e;if(null===t.lt){t.lt=[];let e=id(t),n=ic(t);if(null!==e&&null===n)e.isKeyField()||t.lt.push(new ii(e)),t.lt.push(new ii(ro.keyField(),"asc"));else{let e=!1;for(let n of t.explicitOrderBy)t.lt.push(n),n.field.isKeyField()&&(e=!0);if(!e){let e=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.lt.push(new ii(ro.keyField(),e))}}}return t.lt}function im(e){let t=e;if(!t.ft){if("F"===t.limitType)t.ft=rJ(t.path,t.collectionGroup,ip(t),t.filters,t.limit,t.startAt,t.endAt);else{let e=[];for(let n of ip(t)){let t="desc"===n.dir?"asc":"desc";e.push(new ii(n.field,t))}let n=t.endAt?new ir(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new ir(t.startAt.position,t.startAt.inclusive):null;t.ft=rJ(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}return t.ft}function ig(e,t,n){return new io(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function iv(e,t){return r1(im(e),im(t))&&e.limitType===t.limitType}function iy(e){return`${r0(im(e))}|lt:${e.limitType}`}function i_(e){var t;let n;return`Query(target=${n=(t=im(e)).path.canonicalString(),null!==t.collectionGroup&&(n+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(n+=`, filters: [${t.filters.map(e=>`${e.field.canonicalString()} ${e.op} ${rB(e.value)}`).join(", ")}]`),rP(t.limit)||(n+=", limit: "+t.limit),t.orderBy.length>0&&(n+=`, orderBy: [${t.orderBy.map(e=>`${e.field.canonicalString()} (${e.dir})`).join(", ")}]`),t.startAt&&(n+=", startAt: "+(t.startAt.inclusive?"b:":"a:")+t.startAt.position.map(e=>rB(e)).join(",")),t.endAt&&(n+=", endAt: "+(t.endAt.inclusive?"a:":"b:")+t.endAt.position.map(e=>rB(e)).join(",")),`Target(${n})`}; limitType=${e.limitType})`}function ib(e,t){return t.isFoundDocument()&&function(e,t){let n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):rl.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(let n of e.explicitOrderBy)if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(let n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&(!e.startAt||!!function(e,t,n){let r=ia(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,ip(e),t))&&(!e.endAt||!!function(e,t,n){let r=ia(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,ip(e),t))}function ix(e){return(t,n)=>{let r=!1;for(let i of ip(e)){let e=function(e,t,n){let r=e.field.isKeyField()?rl.comparator(t.key,n.key):function(e,t,n){let r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?rU(r,i):nX()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return -1*r;default:return nX()}}(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function iw(e,t){if(e.dt){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:rN(t)?"-0":t}}function ik(e){return{integerValue:""+e}}/**
 * @license
 * Copyright 2018 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iE{constructor(){this._=void 0}}function iS(e,t){return e instanceof iA?rZ(t)||t&&"doubleValue"in t?t:{integerValue:0}:null}class iC extends iE{}class iT extends iE{constructor(e){super(),this.elements=e}}function iI(e,t){let n=iP(t);for(let t of e.elements)n.some(e=>rO(e,t))||n.push(t);return{arrayValue:{values:n}}}class iR extends iE{constructor(e){super(),this.elements=e}}function ij(e,t){let n=iP(t);for(let t of e.elements)n=n.filter(e=>!rO(e,t));return{arrayValue:{values:n}}}class iA extends iE{constructor(e,t){super(),this.wt=e,this._t=t}}function iD(e){return rT(e.integerValue||e.doubleValue)}function iP(e){return rz(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iN{constructor(e,t){this.field=e,this.transform=t}}class iL{constructor(e,t){this.version=e,this.transformResults=t}}class iM{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new iM}static exists(e){return new iM(void 0,e)}static updateTime(e){return new iM(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function iO(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class iF{}function iU(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new iW(e.key,iM.none()):new iq(e.key,e.data,iM.none());{let n=e.data,r=rY.empty(),i=new rx(ro.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),i=i.add(e)}return new iZ(e.key,r,new rk(i.toArray()),iM.none())}}function iV(e,t,n,r){return e instanceof iq?function(e,t,n,r){if(!iO(e.precondition,t))return n;let i=e.value.clone(),a=iK(e.fieldTransforms,r,t);return i.setAll(a),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof iZ?function(e,t,n,r){if(!iO(e.precondition,t))return n;let i=iK(e.fieldTransforms,r,t),a=t.data;return(a.setAll(iz(e)),a.setAll(i),t.convertToFoundDocument(t.version,a).setHasLocalMutations(),null===n)?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,n,r):iO(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}function iB(e,t){var n,r;return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&(n=e.fieldTransforms,r=t.fieldTransforms,!!(void 0===n&&void 0===r||!(!n||!r)&&rt(n,r,(e,t)=>{var n,r;return e.field.isEqual(t.field)&&(n=e.transform,r=t.transform,n instanceof iT&&r instanceof iT||n instanceof iR&&r instanceof iR?rt(n.elements,r.elements,rO):n instanceof iA&&r instanceof iA?rO(n._t,r._t):n instanceof iC&&r instanceof iC)})))&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class iq extends iF{constructor(e,t,n,r=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class iZ extends iF{constructor(e,t,n,r,i=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function iz(e){let t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){let r=e.data.field(n);t.set(n,r)}}),t}function iH(e,t,n){var r;let i=new Map;e.length===n.length||nX();for(let a=0;a<n.length;a++){let s=e[a],o=s.transform,l=t.data.field(s.field);i.set(s.field,(r=n[a],o instanceof iT?iI(o,l):o instanceof iR?ij(o,l):r))}return i}function iK(e,t,n){let r=new Map;for(let i of e){let e=i.transform,a=n.data.field(i.field);r.set(i.field,e instanceof iC?function(e,t){let n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(t,a):e instanceof iT?iI(e,a):e instanceof iR?ij(e,a):function(e,t){let n=iS(e,t),r=iD(n)+iD(e._t);return rZ(n)&&rZ(e._t)?ik(r):iw(e.wt,r)}(e,a))}return r}class iW extends iF{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class i$ extends iF{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iG{constructor(e){this.count=e}}function iY(e){switch(e){default:return nX();case nJ.CANCELLED:case nJ.UNKNOWN:case nJ.DEADLINE_EXCEEDED:case nJ.RESOURCE_EXHAUSTED:case nJ.INTERNAL:case nJ.UNAVAILABLE:case nJ.UNAUTHENTICATED:return!1;case nJ.INVALID_ARGUMENT:case nJ.NOT_FOUND:case nJ.ALREADY_EXISTS:case nJ.PERMISSION_DENIED:case nJ.FAILED_PRECONDITION:case nJ.ABORTED:case nJ.OUT_OF_RANGE:case nJ.UNIMPLEMENTED:case nJ.DATA_LOSS:return!0}}function iQ(e){if(void 0===e)return nG("GRPC error has no .code"),nJ.UNKNOWN;switch(e){case u.OK:return nJ.OK;case u.CANCELLED:return nJ.CANCELLED;case u.UNKNOWN:return nJ.UNKNOWN;case u.DEADLINE_EXCEEDED:return nJ.DEADLINE_EXCEEDED;case u.RESOURCE_EXHAUSTED:return nJ.RESOURCE_EXHAUSTED;case u.INTERNAL:return nJ.INTERNAL;case u.UNAVAILABLE:return nJ.UNAVAILABLE;case u.UNAUTHENTICATED:return nJ.UNAUTHENTICATED;case u.INVALID_ARGUMENT:return nJ.INVALID_ARGUMENT;case u.NOT_FOUND:return nJ.NOT_FOUND;case u.ALREADY_EXISTS:return nJ.ALREADY_EXISTS;case u.PERMISSION_DENIED:return nJ.PERMISSION_DENIED;case u.FAILED_PRECONDITION:return nJ.FAILED_PRECONDITION;case u.ABORTED:return nJ.ABORTED;case u.OUT_OF_RANGE:return nJ.OUT_OF_RANGE;case u.UNIMPLEMENTED:return nJ.UNIMPLEMENTED;case u.DATA_LOSS:return nJ.DATA_LOSS;default:return nX()}}(c=u||(u={}))[c.OK=0]="OK",c[c.CANCELLED=1]="CANCELLED",c[c.UNKNOWN=2]="UNKNOWN",c[c.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",c[c.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",c[c.NOT_FOUND=5]="NOT_FOUND",c[c.ALREADY_EXISTS=6]="ALREADY_EXISTS",c[c.PERMISSION_DENIED=7]="PERMISSION_DENIED",c[c.UNAUTHENTICATED=16]="UNAUTHENTICATED",c[c.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",c[c.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",c[c.ABORTED=10]="ABORTED",c[c.OUT_OF_RANGE=11]="OUT_OF_RANGE",c[c.UNIMPLEMENTED=12]="UNIMPLEMENTED",c[c.INTERNAL=13]="INTERNAL",c[c.UNAVAILABLE=14]="UNAVAILABLE",c[c.DATA_LOSS=15]="DATA_LOSS";/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iX{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){let t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n){for(let[t,r]of n)if(this.equalsFn(t,e))return r}}has(e){return void 0!==this.get(e)}set(e,t){let n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let n=0;n<r.length;n++)if(this.equalsFn(r[n][0],e))return void(r[n]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){let t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){rg(this.inner,(t,n)=>{for(let[t,r]of n)e(t,r)})}isEmpty(){return rv(this.inner)}size(){return this.innerSize}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let iJ=new ry(rl.comparator),i0=new ry(rl.comparator);function i1(...e){let t=i0;for(let n of e)t=t.insert(n.key,n);return t}function i2(e){let t=i0;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function i3(){return new iX(e=>e.toString(),(e,t)=>e.isEqual(t))}let i5=new ry(rl.comparator),i4=new rx(rl.comparator);function i6(...e){let t=i4;for(let n of e)t=t.add(n);return t}let i7=new rx(re);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class i8{constructor(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t){let n=new Map;return n.set(e,i9.createSynthesizedTargetChangeForCurrentChange(e,t)),new i8(rr.min(),n,i7,iJ,i6())}}class i9{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t){return new i9(rE.EMPTY_BYTE_STRING,t,i6(),i6(),i6())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ae{constructor(e,t,n,r){this.gt=e,this.removedTargetIds=t,this.key=n,this.yt=r}}class at{constructor(e,t){this.targetId=e,this.It=t}}class an{constructor(e,t,n=rE.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class ar{constructor(){this.Tt=0,this.Et=as(),this.At=rE.EMPTY_BYTE_STRING,this.Rt=!1,this.bt=!0}get current(){return this.Rt}get resumeToken(){return this.At}get Pt(){return 0!==this.Tt}get vt(){return this.bt}Vt(e){e.approximateByteSize()>0&&(this.bt=!0,this.At=e)}St(){let e=i6(),t=i6(),n=i6();return this.Et.forEach((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:nX()}}),new i9(this.At,this.Rt,e,t,n)}Dt(){this.bt=!1,this.Et=as()}Ct(e,t){this.bt=!0,this.Et=this.Et.insert(e,t)}xt(e){this.bt=!0,this.Et=this.Et.remove(e)}Nt(){this.Tt+=1}kt(){this.Tt-=1}Mt(){this.bt=!0,this.Rt=!0}}class ai{constructor(e){this.Ot=e,this.Ft=new Map,this.$t=iJ,this.Bt=aa(),this.Lt=new rx(re)}Ut(e){for(let t of e.gt)e.yt&&e.yt.isFoundDocument()?this.qt(t,e.yt):this.Kt(t,e.key,e.yt);for(let t of e.removedTargetIds)this.Kt(t,e.key,e.yt)}Gt(e){this.forEachTarget(e,t=>{let n=this.Qt(t);switch(e.state){case 0:this.jt(t)&&n.Vt(e.resumeToken);break;case 1:n.kt(),n.Pt||n.Dt(),n.Vt(e.resumeToken);break;case 2:n.kt(),n.Pt||this.removeTarget(t);break;case 3:this.jt(t)&&(n.Mt(),n.Vt(e.resumeToken));break;case 4:this.jt(t)&&(this.Wt(t),n.Vt(e.resumeToken));break;default:nX()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Ft.forEach((e,n)=>{this.jt(n)&&t(n)})}zt(e){let t=e.targetId,n=e.It.count,r=this.Ht(t);if(r){let e=r.target;if(r2(e)){if(0===n){let n=new rl(e.path);this.Kt(t,n,rQ.newNoDocument(n,rr.min()))}else 1===n||nX()}else this.Jt(t)!==n&&(this.Wt(t),this.Lt=this.Lt.add(t))}}Yt(e){let t=new Map;this.Ft.forEach((n,r)=>{let i=this.Ht(r);if(i){if(n.current&&r2(i.target)){let t=new rl(i.target.path);null!==this.$t.get(t)||this.Xt(r,t)||this.Kt(r,t,rQ.newNoDocument(t,e))}n.vt&&(t.set(r,n.St()),n.Dt())}});let n=i6();this.Bt.forEach((e,t)=>{let r=!0;t.forEachWhile(e=>{let t=this.Ht(e);return!t||2===t.purpose||(r=!1,!1)}),r&&(n=n.add(e))}),this.$t.forEach((t,n)=>n.setReadTime(e));let r=new i8(e,t,this.Lt,this.$t,n);return this.$t=iJ,this.Bt=aa(),this.Lt=new rx(re),r}qt(e,t){if(!this.jt(e))return;let n=this.Xt(e,t.key)?2:0;this.Qt(e).Ct(t.key,n),this.$t=this.$t.insert(t.key,t),this.Bt=this.Bt.insert(t.key,this.Zt(t.key).add(e))}Kt(e,t,n){if(!this.jt(e))return;let r=this.Qt(e);this.Xt(e,t)?r.Ct(t,1):r.xt(t),this.Bt=this.Bt.insert(t,this.Zt(t).delete(e)),n&&(this.$t=this.$t.insert(t,n))}removeTarget(e){this.Ft.delete(e)}Jt(e){let t=this.Qt(e).St();return this.Ot.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Nt(e){this.Qt(e).Nt()}Qt(e){let t=this.Ft.get(e);return t||(t=new ar,this.Ft.set(e,t)),t}Zt(e){let t=this.Bt.get(e);return t||(t=new rx(re),this.Bt=this.Bt.insert(e,t)),t}jt(e){let t=null!==this.Ht(e);return t||n$("WatchChangeAggregator","Detected inactive target",e),t}Ht(e){let t=this.Ft.get(e);return t&&t.Pt?null:this.Ot.te(e)}Wt(e){this.Ft.set(e,new ar),this.Ot.getRemoteKeysForTarget(e).forEach(t=>{this.Kt(e,t,null)})}Xt(e,t){return this.Ot.getRemoteKeysForTarget(e).has(t)}}function aa(){return new ry(rl.comparator)}function as(){return new ry(rl.comparator)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ao={asc:"ASCENDING",desc:"DESCENDING"},al={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"};class au{constructor(e,t){this.databaseId=e,this.dt=t}}function ac(e,t){return e.dt?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function ad(e,t){return e.dt?t.toBase64():t.toUint8Array()}function ah(e){return e||nX(),rr.fromTimestamp(function(e){let t=rC(e);return new rn(t.seconds,t.nanos)}(e))}function af(e,t){return new ra(["projects",e.projectId,"databases",e.database]).child("documents").child(t).canonicalString()}function ap(e){let t=ra.fromString(e);return aE(t)||nX(),t}function am(e,t){return af(e.databaseId,t.path)}function ag(e,t){let n=ap(t);if(n.get(1)!==e.databaseId.projectId)throw new n0(nJ.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new n0(nJ.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new rl(a_(n))}function av(e,t){return af(e.databaseId,t)}function ay(e){return new ra(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function a_(e){return e.length>4&&"documents"===e.get(4)||nX(),e.popFirst(5)}function ab(e,t,n){return{name:am(e,t),fields:n.value.mapValue.fields}}function ax(e,t){var n;let r;if(t instanceof iq)r={update:ab(e,t.key,t.value)};else if(t instanceof iW)r={delete:am(e,t.key)};else if(t instanceof iZ)r={update:ab(e,t.key,t.data),updateMask:function(e){let t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}(t.fieldMask)};else{if(!(t instanceof i$))return nX();r={verify:am(e,t.key)}}return t.fieldTransforms.length>0&&(r.updateTransforms=t.fieldTransforms.map(e=>(function(e,t){let n=t.transform;if(n instanceof iC)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof iT)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof iR)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof iA)return{fieldPath:t.field.canonicalString(),increment:n._t};throw nX()})(0,e))),t.precondition.isNone||(r.currentDocument=void 0!==(n=t.precondition).updateTime?{updateTime:ac(e,n.updateTime.toTimestamp())}:void 0!==n.exists?{exists:n.exists}:nX()),r}function aw(e){return{fieldPath:e.canonicalString()}}function ak(e){return ro.fromServerFormat(e.fieldPath)}function aE(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aS{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){let n=t.mutationResults;for(let t=0;t<this.mutations.length;t++){let i=this.mutations[t];if(i.key.isEqual(e.key)){var r;r=n[t],i instanceof iq?function(e,t,n){let r=e.value.clone(),i=iH(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(i,e,r):i instanceof iZ?function(e,t,n){if(!iO(e.precondition,t))return void t.convertToUnknownDocument(n.version);let r=iH(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(iz(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(i,e,r):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,r)}}}applyToLocalView(e,t){for(let n of this.baseMutations)n.key.isEqual(e.key)&&(t=iV(n,e,t,this.localWriteTime));for(let n of this.mutations)n.key.isEqual(e.key)&&(t=iV(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let n=i3();return this.mutations.forEach(r=>{let i=e.get(r.key),a=i.overlayedDocument,s=this.applyToLocalView(a,i.mutatedFields);s=t.has(r.key)?null:s;let o=iU(a,s);null!==o&&n.set(r.key,o),a.isValidDocument()||a.convertToNoDocument(rr.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),i6())}isEqual(e){return this.batchId===e.batchId&&rt(this.mutations,e.mutations,(e,t)=>iB(e,t))&&rt(this.baseMutations,e.baseMutations,(e,t)=>iB(e,t))}}class aC{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){e.mutations.length===n.length||nX();let r=i5,i=e.mutations;for(let e=0;e<i.length;e++)r=r.insert(i[e].key,n[e].version);return new aC(e,t,n,r)}}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aT{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{
      largestBatchId: ${this.largestBatchId},
      mutation: ${this.mutation.toString()}
    }`}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aI{constructor(e,t,n,r,i=rr.min(),a=rr.min(),s=rE.EMPTY_BYTE_STRING){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=s}withSequenceNumber(e){return new aI(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}withResumeToken(e,t){return new aI(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e)}withLastLimboFreeSnapshotVersion(e){return new aI(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aR{constructor(e){this.ne=e}}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aj{constructor(){}re(e,t){this.oe(e,t),t.ue()}oe(e,t){if("nullValue"in e)this.ce(t,5);else if("booleanValue"in e)this.ce(t,10),t.ae(e.booleanValue?1:0);else if("integerValue"in e)this.ce(t,15),t.ae(rT(e.integerValue));else if("doubleValue"in e){let n=rT(e.doubleValue);isNaN(n)?this.ce(t,13):(this.ce(t,15),rN(n)?t.ae(0):t.ae(n))}else if("timestampValue"in e){let n=e.timestampValue;this.ce(t,20),"string"==typeof n?t.he(n):(t.he(`${n.seconds||""}`),t.ae(n.nanos||0))}else if("stringValue"in e)this.le(e.stringValue,t),this.fe(t);else if("bytesValue"in e)this.ce(t,30),t.de(rI(e.bytesValue)),this.fe(t);else if("referenceValue"in e)this._e(e.referenceValue,t);else if("geoPointValue"in e){let n=e.geoPointValue;this.ce(t,45),t.ae(n.latitude||0),t.ae(n.longitude||0)}else"mapValue"in e?rG(e)?this.ce(t,Number.MAX_SAFE_INTEGER):(this.we(e.mapValue,t),this.fe(t)):"arrayValue"in e?(this.me(e.arrayValue,t),this.fe(t)):nX()}le(e,t){this.ce(t,25),this.ge(e,t)}ge(e,t){t.he(e)}we(e,t){let n=e.fields||{};for(let e of(this.ce(t,55),Object.keys(n)))this.le(e,t),this.oe(n[e],t)}me(e,t){let n=e.values||[];for(let e of(this.ce(t,50),n))this.oe(e,t)}_e(e,t){this.ce(t,37),rl.fromName(e).path.forEach(e=>{this.ce(t,60),this.ge(e,t)})}ce(e,t){e.ae(t)}fe(e){e.ae(2)}}aj.ye=new aj;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aA{constructor(){this.ze=new aD}addToCollectionParentIndex(e,t){return this.ze.add(t),rh.resolve()}getCollectionParents(e,t){return rh.resolve(this.ze.getEntries(t))}addFieldIndex(e,t){return rh.resolve()}deleteFieldIndex(e,t){return rh.resolve()}getDocumentsMatchingTarget(e,t){return rh.resolve(null)}getIndexType(e,t){return rh.resolve(0)}getFieldIndexes(e,t){return rh.resolve([])}getNextCollectionGroupToUpdate(e){return rh.resolve(null)}getMinOffset(e,t){return rh.resolve(ru.min())}getMinOffsetFromCollectionGroup(e,t){return rh.resolve(ru.min())}updateCollectionGroup(e,t,n){return rh.resolve()}updateIndexEntries(e,t){return rh.resolve()}}class aD{constructor(){this.index={}}add(e){let t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new rx(ra.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){let t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new rx(ra.comparator)).toArray()}}new Uint8Array(0);class aP{constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}static withCacheSize(e){return new aP(e,aP.DEFAULT_COLLECTION_PERCENTILE,aP.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */aP.DEFAULT_COLLECTION_PERCENTILE=10,aP.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,aP.DEFAULT=new aP(41943040,aP.DEFAULT_COLLECTION_PERCENTILE,aP.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),aP.DISABLED=new aP(-1,0,0);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aN{constructor(e){this.En=e}next(){return this.En+=2,this.En}static An(){return new aN(0)}static Rn(){return new aN(-1)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aL{constructor(){this.changes=new iX(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,rQ.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let n=this.changes.get(t);return void 0!==n?rh.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aM{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aO{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(n=r,this.getBaseDocument(e,t,n))).next(e=>(null!==n&&iV(n.mutation,e,rk.empty(),rn.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,i6()).next(()=>t))}getLocalViewOfDocuments(e,t,n=i6()){let r=i3();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,n).next(e=>{let t=i1();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){let n=i3();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,i6()))}populateOverlays(e,t,n){let r=[];return n.forEach(e=>{t.has(e)||r.push(e)}),this.documentOverlayCache.getOverlays(e,r).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,r){let i=iJ,a=i3(),s=i3();return t.forEach((e,t)=>{let s=n.get(t.key);r.has(t.key)&&(void 0===s||s.mutation instanceof iZ)?i=i.insert(t.key,t):void 0!==s&&(a.set(t.key,s.mutation.getFieldMask()),iV(s.mutation,t,s.mutation.getFieldMask(),rn.now()))}),this.recalculateAndSaveOverlays(e,i).next(e=>(e.forEach((e,t)=>a.set(e,t)),t.forEach((e,t)=>{var n;return s.set(e,new aM(t,null!==(n=a.get(e))&&void 0!==n?n:null))}),s))}recalculateAndSaveOverlays(e,t){let n=i3(),r=new ry((e,t)=>e-t),i=i6();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(let i of e)i.keys().forEach(e=>{let a=t.get(e);if(null===a)return;let s=n.get(e)||rk.empty();s=i.applyToLocalView(a,s),n.set(e,s);let o=(r.get(i.batchId)||i6()).add(e);r=r.insert(i.batchId,o)})}).next(()=>{let a=[],s=r.getReverseIterator();for(;s.hasNext();){let r=s.getNext(),o=r.key,l=r.value,u=i3();l.forEach(e=>{if(!i.has(e)){let r=iU(t.get(e),n.get(e));null!==r&&u.set(e,r),i=i.add(e)}}),a.push(this.documentOverlayCache.saveOverlays(e,o,u))}return rh.waitFor(a)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n){return rl.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):ih(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n):this.getDocumentsMatchingCollectionQuery(e,t,n)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next(i=>{let a=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):rh.resolve(i3()),s=-1,o=i;return a.next(t=>rh.forEach(t,(t,n)=>(s<n.largestBatchId&&(s=n.largestBatchId),i.get(t)?rh.resolve():this.getBaseDocument(e,t,n).next(e=>{o=o.insert(t,e)}))).next(()=>this.populateOverlays(e,t,i)).next(()=>this.computeViews(e,o,t,i6())).next(e=>({batchId:s,changes:i2(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new rl(t)).next(e=>{let t=i1();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n){let r=t.collectionGroup,i=i1();return this.indexManager.getCollectionParents(e,r).next(a=>rh.forEach(a,a=>{var s;let o=(s=a.child(r),new io(s,null,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt));return this.getDocumentsMatchingCollectionQuery(e,o,n).next(e=>{e.forEach((e,t)=>{i=i.insert(e,t)})})}).next(()=>i))}getDocumentsMatchingCollectionQuery(e,t,n){let r;return this.remoteDocumentCache.getAllFromCollection(e,t.path,n).next(i=>(r=i,this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId))).next(e=>{e.forEach((e,t)=>{let n=t.getKey();null===r.get(n)&&(r=r.insert(n,rQ.newInvalidDocument(n)))});let n=i1();return r.forEach((r,i)=>{let a=e.get(r);void 0!==a&&iV(a.mutation,i,rk.empty(),rn.now()),ib(t,i)&&(n=n.insert(r,i))}),n})}getBaseDocument(e,t,n){return null===n||1===n.mutation.type?this.remoteDocumentCache.getEntry(e,t):rh.resolve(rQ.newInvalidDocument(t))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aF{constructor(e){this.wt=e,this.Jn=new Map,this.Yn=new Map}getBundleMetadata(e,t){return rh.resolve(this.Jn.get(t))}saveBundleMetadata(e,t){return this.Jn.set(t.id,{id:t.id,version:t.version,createTime:ah(t.createTime)}),rh.resolve()}getNamedQuery(e,t){return rh.resolve(this.Yn.get(t))}saveNamedQuery(e,t){return this.Yn.set(t.name,{name:t.name,query:function(e){let t=function(e){var t,n,r,i,a,s,o,l;let u,c=function(e){let t=ap(e);return 4===t.length?ra.emptyPath():a_(t)}(e.parent),d=e.structuredQuery,h=d.from?d.from.length:0,f=null;if(h>0){1===h||nX();let e=d.from[0];e.allDescendants?f=e.collectionId:c=c.child(e.collectionId)}let p=[];d.where&&(p=function e(t){return t?void 0!==t.unaryFilter?[function(e){switch(e.unaryFilter.op){case"IS_NAN":let t=ak(e.unaryFilter.field);return r3.create(t,"==",{doubleValue:NaN});case"IS_NULL":let n=ak(e.unaryFilter.field);return r3.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":let r=ak(e.unaryFilter.field);return r3.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":let i=ak(e.unaryFilter.field);return r3.create(i,"!=",{nullValue:"NULL_VALUE"});default:return nX()}}(t)]:void 0!==t.fieldFilter?[r3.create(ak(t.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return nX()}}(t.fieldFilter.op),t.fieldFilter.value)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map(t=>e(t)).reduce((e,t)=>e.concat(t)):nX():[]}(d.where));let m=[];d.orderBy&&(m=d.orderBy.map(e=>new ii(ak(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))));let g=null;d.limit&&(g=rP(u="object"==typeof(t=d.limit)?t.value:t)?null:u);let v=null;d.startAt&&(v=function(e){let t=!!e.before,n=e.values||[];return new ir(n,t)}(d.startAt));let y=null;return d.endAt&&(y=function(e){let t=!e.before,n=e.values||[];return new ir(n,t)}(d.endAt)),n=c,r=f,i=m,a=p,s=g,o=v,l=y,new io(n,r,i,a,s,"F",o,l)}({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?ig(t,t.limit,"L"):t}(t.bundledQuery),readTime:ah(t.readTime)}),rh.resolve()}}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aU{constructor(){this.overlays=new ry(rl.comparator),this.Xn=new Map}getOverlay(e,t){return rh.resolve(this.overlays.get(t))}getOverlays(e,t){let n=i3();return rh.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}saveOverlays(e,t,n){return n.forEach((n,r)=>{this.ie(e,t,r)}),rh.resolve()}removeOverlaysForBatchId(e,t,n){let r=this.Xn.get(n);return void 0!==r&&(r.forEach(e=>this.overlays=this.overlays.remove(e)),this.Xn.delete(n)),rh.resolve()}getOverlaysForCollection(e,t,n){let r=i3(),i=t.length+1,a=new rl(t.child("")),s=this.overlays.getIteratorFrom(a);for(;s.hasNext();){let e=s.getNext().value,a=e.getKey();if(!t.isPrefixOf(a.path))break;a.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return rh.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new ry((e,t)=>e-t),a=this.overlays.getIterator();for(;a.hasNext();){let e=a.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=i3(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}let s=i3(),o=i.getIterator();for(;o.hasNext()&&(o.getNext().value.forEach((e,t)=>s.set(e,t)),!(s.size()>=r)););return rh.resolve(s)}ie(e,t,n){let r=this.overlays.get(n.key);if(null!==r){let e=this.Xn.get(r.largestBatchId).delete(n.key);this.Xn.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new aT(t,n));let i=this.Xn.get(t);void 0===i&&(i=i6(),this.Xn.set(t,i)),this.Xn.set(t,i.add(n.key))}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aV{constructor(){this.Zn=new rx(aB.ts),this.es=new rx(aB.ns)}isEmpty(){return this.Zn.isEmpty()}addReference(e,t){let n=new aB(e,t);this.Zn=this.Zn.add(n),this.es=this.es.add(n)}ss(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.rs(new aB(e,t))}os(e,t){e.forEach(e=>this.removeReference(e,t))}us(e){let t=new rl(new ra([])),n=new aB(t,e),r=new aB(t,e+1),i=[];return this.es.forEachInRange([n,r],e=>{this.rs(e),i.push(e.key)}),i}cs(){this.Zn.forEach(e=>this.rs(e))}rs(e){this.Zn=this.Zn.delete(e),this.es=this.es.delete(e)}hs(e){let t=new rl(new ra([])),n=new aB(t,e),r=new aB(t,e+1),i=i6();return this.es.forEachInRange([n,r],e=>{i=i.add(e.key)}),i}containsKey(e){let t=new aB(e,0),n=this.Zn.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class aB{constructor(e,t){this.key=e,this.ls=t}static ts(e,t){return rl.comparator(e.key,t.key)||re(e.ls,t.ls)}static ns(e,t){return re(e.ls,t.ls)||rl.comparator(e.key,t.key)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aq{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.fs=1,this.ds=new rx(aB.ts)}checkEmpty(e){return rh.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){let i=this.fs;this.fs++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let a=new aS(i,t,n,r);for(let t of(this.mutationQueue.push(a),r))this.ds=this.ds.add(new aB(t.key,i)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return rh.resolve(a)}lookupMutationBatch(e,t){return rh.resolve(this._s(t))}getNextMutationBatchAfterBatchId(e,t){let n=this.ws(t+1),r=n<0?0:n;return rh.resolve(this.mutationQueue.length>r?this.mutationQueue[r]:null)}getHighestUnacknowledgedBatchId(){return rh.resolve(0===this.mutationQueue.length?-1:this.fs-1)}getAllMutationBatches(e){return rh.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let n=new aB(t,0),r=new aB(t,Number.POSITIVE_INFINITY),i=[];return this.ds.forEachInRange([n,r],e=>{let t=this._s(e.ls);i.push(t)}),rh.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new rx(re);return t.forEach(e=>{let t=new aB(e,0),r=new aB(e,Number.POSITIVE_INFINITY);this.ds.forEachInRange([t,r],e=>{n=n.add(e.ls)})}),rh.resolve(this.gs(n))}getAllMutationBatchesAffectingQuery(e,t){let n=t.path,r=n.length+1,i=n;rl.isDocumentKey(i)||(i=i.child(""));let a=new aB(new rl(i),0),s=new rx(re);return this.ds.forEachWhile(e=>{let t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(s=s.add(e.ls)),!0)},a),rh.resolve(this.gs(s))}gs(e){let t=[];return e.forEach(e=>{let n=this._s(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){0===this.ys(t.batchId,"removed")||nX(),this.mutationQueue.shift();let n=this.ds;return rh.forEach(t.mutations,r=>{let i=new aB(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.ds=n})}In(e){}containsKey(e,t){let n=new aB(t,0),r=this.ds.firstAfterOrEqual(n);return rh.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,rh.resolve()}ys(e,t){return this.ws(e)}ws(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}_s(e){let t=this.ws(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aZ{constructor(e){this.ps=e,this.docs=new ry(rl.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){let n=t.key,r=this.docs.get(n),i=r?r.size:0,a=this.ps(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:a}),this.size+=a-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){let t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){let n=this.docs.get(t);return rh.resolve(n?n.document.mutableCopy():rQ.newInvalidDocument(t))}getEntries(e,t){let n=iJ;return t.forEach(e=>{let t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():rQ.newInvalidDocument(e))}),rh.resolve(n)}getAllFromCollection(e,t,n){let r=iJ,i=new rl(t.child("")),a=this.docs.getIteratorFrom(i);for(;a.hasNext();){let{key:e,value:{document:i}}=a.getNext();if(!t.isPrefixOf(e.path))break;e.path.length>t.length+1||0>=function(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:0!==(n=rl.comparator(e.documentKey,t.documentKey))?n:re(e.largestBatchId,t.largestBatchId)}(new ru(i.readTime,i.key,-1),n)||(r=r.insert(i.key,i.mutableCopy()))}return rh.resolve(r)}getAllFromCollectionGroup(e,t,n,r){nX()}Is(e,t){return rh.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new az(this)}getSize(e){return rh.resolve(this.size)}}class az extends aL{constructor(e){super(),this.zn=e}applyChanges(e){let t=[];return this.changes.forEach((n,r)=>{r.isValidDocument()?t.push(this.zn.addEntry(e,r)):this.zn.removeEntry(n)}),rh.waitFor(t)}getFromCache(e,t){return this.zn.getEntry(e,t)}getAllFromCache(e,t){return this.zn.getEntries(e,t)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aH{constructor(e){this.persistence=e,this.Ts=new iX(e=>r0(e),r1),this.lastRemoteSnapshotVersion=rr.min(),this.highestTargetId=0,this.Es=0,this.As=new aV,this.targetCount=0,this.Rs=aN.An()}forEachTarget(e,t){return this.Ts.forEach((e,n)=>t(n)),rh.resolve()}getLastRemoteSnapshotVersion(e){return rh.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return rh.resolve(this.Es)}allocateTargetId(e){return this.highestTargetId=this.Rs.next(),rh.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Es&&(this.Es=t),rh.resolve()}vn(e){this.Ts.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this.Rs=new aN(t),this.highestTargetId=t),e.sequenceNumber>this.Es&&(this.Es=e.sequenceNumber)}addTargetData(e,t){return this.vn(t),this.targetCount+=1,rh.resolve()}updateTargetData(e,t){return this.vn(t),rh.resolve()}removeTargetData(e,t){return this.Ts.delete(t.target),this.As.us(t.targetId),this.targetCount-=1,rh.resolve()}removeTargets(e,t,n){let r=0,i=[];return this.Ts.forEach((a,s)=>{s.sequenceNumber<=t&&null===n.get(s.targetId)&&(this.Ts.delete(a),i.push(this.removeMatchingKeysForTargetId(e,s.targetId)),r++)}),rh.waitFor(i).next(()=>r)}getTargetCount(e){return rh.resolve(this.targetCount)}getTargetData(e,t){let n=this.Ts.get(t)||null;return rh.resolve(n)}addMatchingKeys(e,t,n){return this.As.ss(t,n),rh.resolve()}removeMatchingKeys(e,t,n){this.As.os(t,n);let r=this.persistence.referenceDelegate,i=[];return r&&t.forEach(t=>{i.push(r.markPotentiallyOrphaned(e,t))}),rh.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.As.us(t),rh.resolve()}getMatchingKeysForTargetId(e,t){let n=this.As.hs(t);return rh.resolve(n)}containsKey(e,t){return rh.resolve(this.As.containsKey(t))}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aK{constructor(e,t){var n;this.bs={},this.overlays={},this.Ps=new rp(0),this.vs=!1,this.vs=!0,this.referenceDelegate=e(this),this.Vs=new aH(this),this.indexManager=new aA,this.remoteDocumentCache=(n=e=>this.referenceDelegate.Ss(e),new aZ(n)),this.wt=new aR(t),this.Ds=new aF(this.wt)}start(){return Promise.resolve()}shutdown(){return this.vs=!1,Promise.resolve()}get started(){return this.vs}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new aU,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.bs[e.toKey()];return n||(n=new aq(t,this.referenceDelegate),this.bs[e.toKey()]=n),n}getTargetCache(){return this.Vs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ds}runTransaction(e,t,n){n$("MemoryPersistence","Starting transaction:",e);let r=new aW(this.Ps.next());return this.referenceDelegate.Cs(),n(r).next(e=>this.referenceDelegate.xs(r).next(()=>e)).toPromise().then(e=>(r.raiseOnCommittedEvent(),e))}Ns(e,t){return rh.or(Object.values(this.bs).map(n=>()=>n.containsKey(e,t)))}}class aW extends rc{constructor(e){super(),this.currentSequenceNumber=e}}class a${constructor(e){this.persistence=e,this.ks=new aV,this.Ms=null}static Os(e){return new a$(e)}get Fs(){if(this.Ms)return this.Ms;throw nX()}addReference(e,t,n){return this.ks.addReference(n,t),this.Fs.delete(n.toString()),rh.resolve()}removeReference(e,t,n){return this.ks.removeReference(n,t),this.Fs.add(n.toString()),rh.resolve()}markPotentiallyOrphaned(e,t){return this.Fs.add(t.toString()),rh.resolve()}removeTarget(e,t){this.ks.us(t.targetId).forEach(e=>this.Fs.add(e.toString()));let n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.Fs.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}Cs(){this.Ms=new Set}xs(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return rh.forEach(this.Fs,n=>{let r=rl.fromPath(n);return this.$s(e,r).next(e=>{e||t.removeEntry(r,rr.min())})}).next(()=>(this.Ms=null,t.apply(e)))}updateLimboDocument(e,t){return this.$s(e,t).next(e=>{e?this.Fs.delete(t.toString()):this.Fs.add(t.toString())})}Ss(e){return 0}$s(e,t){return rh.or([()=>rh.resolve(this.ks.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ns(e,t)])}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aG{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Pi=n,this.vi=r}static Vi(e,t){let n=i6(),r=i6();for(let e of t.docChanges)switch(e.type){case 0:n=n.add(e.doc.key);break;case 1:r=r.add(e.doc.key)}return new aG(e,t.fromCache,n,r)}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aY{constructor(){this.Si=!1}initialize(e,t){this.Di=e,this.indexManager=t,this.Si=!0}getDocumentsMatchingQuery(e,t,n,r){return this.Ci(e,t).next(i=>i||this.xi(e,t,r,n)).next(n=>n||this.Ni(e,t))}Ci(e,t){if(iu(t))return rh.resolve(null);let n=im(t);return this.indexManager.getIndexType(e,n).next(r=>0===r?null:(null!==t.limit&&1===r&&(n=im(t=ig(t,null,"F"))),this.indexManager.getDocumentsMatchingTarget(e,n).next(r=>{let i=i6(...r);return this.Di.getDocuments(e,i).next(r=>this.indexManager.getMinOffset(e,n).next(n=>{let a=this.ki(t,r);return this.Mi(t,a,i,n.readTime)?this.Ci(e,ig(t,null,"F")):this.Oi(e,a,t,n)}))})))}xi(e,t,n,r){return iu(t)||r.isEqual(rr.min())?this.Ni(e,t):this.Di.getDocuments(e,n).next(i=>{let a=this.ki(t,i);return this.Mi(t,a,n,r)?this.Ni(e,t):(nW()<=p.in.DEBUG&&n$("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),i_(t)),this.Oi(e,a,t,function(e,t){let n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=rr.fromTimestamp(1e9===r?new rn(n+1,0):new rn(n,r));return new ru(i,rl.empty(),-1)}(r,0)))})}ki(e,t){let n=new rx(ix(e));return t.forEach((t,r)=>{ib(e,r)&&(n=n.add(r))}),n}Mi(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;let i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}Ni(e,t){return nW()<=p.in.DEBUG&&n$("QueryEngine","Using full collection scan to execute query:",i_(t)),this.Di.getDocumentsMatchingQuery(e,t,ru.min())}Oi(e,t,n,r){return this.Di.getDocumentsMatchingQuery(e,n,r).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class aQ{constructor(e,t,n,r){this.persistence=e,this.Fi=t,this.wt=r,this.$i=new ry(re),this.Bi=new iX(e=>r0(e),r1),this.Li=new Map,this.Ui=e.getRemoteDocumentCache(),this.Vs=e.getTargetCache(),this.Ds=e.getBundleCache(),this.qi(n)}qi(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new aO(this.Ui,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Ui.setIndexManager(this.indexManager),this.Fi.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.$i))}}async function aX(e,t){return await e.persistence.runTransaction("Handle user change","readonly",n=>{let r;return e.mutationQueue.getAllMutationBatches(n).next(i=>(r=i,e.qi(t),e.mutationQueue.getAllMutationBatches(n))).next(t=>{let i=[],a=[],s=i6();for(let e of r)for(let t of(i.push(e.batchId),e.mutations))s=s.add(t.key);for(let e of t)for(let t of(a.push(e.batchId),e.mutations))s=s.add(t.key);return e.localDocuments.getDocuments(n,s).next(e=>({Ki:e,removedBatchIds:i,addedBatchIds:a}))})})}function aJ(e){return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Vs.getLastRemoteSnapshotVersion(t))}async function a0(e,t,n){let r=e,i=r.$i.get(t);try{n||await r.persistence.runTransaction("Release target",n?"readwrite":"readwrite-primary",e=>r.persistence.referenceDelegate.removeTarget(e,i))}catch(e){if(!rf(e))throw e;n$("LocalStore",`Failed to update sequence numbers for target ${t}: ${e}`)}r.$i=r.$i.remove(t),r.Bi.delete(i.target)}function a1(e,t,n){let r=rr.min(),i=i6();return e.persistence.runTransaction("Execute query","readonly",a=>(function(e,t,n){let r=e.Bi.get(n);return void 0!==r?rh.resolve(e.$i.get(r)):e.Vs.getTargetData(t,n)})(e,a,im(t)).next(t=>{if(t)return r=t.lastLimboFreeSnapshotVersion,e.Vs.getMatchingKeysForTargetId(a,t.targetId).next(e=>{i=e})}).next(()=>e.Fi.getDocumentsMatchingQuery(a,t,n?r:rr.min(),n?i:i6())).next(n=>{var r;let a;return r=t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2)),a=rr.min(),n.forEach((e,t)=>{t.readTime.compareTo(a)>0&&(a=t.readTime)}),e.Li.set(r,a),{documents:n,ji:i}}))}class a2{constructor(){this.activeTargetIds=i7}Xi(e){this.activeTargetIds=this.activeTargetIds.add(e)}Zi(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Yi(){let e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class a3{constructor(){this.Fr=new a2,this.$r={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return this.Fr.Xi(e),this.$r[e]||"not-current"}updateQueryState(e,t,n){this.$r[e]=t}removeLocalQueryTarget(e){this.Fr.Zi(e)}isLocalQueryTarget(e){return this.Fr.activeTargetIds.has(e)}clearQueryState(e){delete this.$r[e]}getAllActiveQueryTargets(){return this.Fr.activeTargetIds}isActiveQueryTarget(e){return this.Fr.activeTargetIds.has(e)}start(){return this.Fr=new a2,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class a5{Br(e){}shutdown(){}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class a4{constructor(){this.Lr=()=>this.Ur(),this.qr=()=>this.Kr(),this.Gr=[],this.Qr()}Br(e){this.Gr.push(e)}shutdown(){window.removeEventListener("online",this.Lr),window.removeEventListener("offline",this.qr)}Qr(){window.addEventListener("online",this.Lr),window.addEventListener("offline",this.qr)}Ur(){for(let e of(n$("ConnectivityMonitor","Network connectivity changed: AVAILABLE"),this.Gr))e(0)}Kr(){for(let e of(n$("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE"),this.Gr))e(1)}static V(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let a6={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class a7{constructor(e){this.jr=e.jr,this.Wr=e.Wr}zr(e){this.Hr=e}Jr(e){this.Yr=e}onMessage(e){this.Xr=e}close(){this.Wr()}send(e){this.jr(e)}Zr(){this.Hr()}eo(e){this.Yr(e)}no(e){this.Xr(e)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class a8 extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;let t=e.ssl?"https":"http";this.so=t+"://"+e.host,this.io="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}ro(e,t,n,r,i){let a=this.oo(e,t);n$("RestConnection","Sending: ",a,n);let s={};return this.uo(s,r,i),this.co(e,a,s,n).then(e=>(n$("RestConnection","Received: ",e),e),t=>{throw nY("RestConnection",`${e} failed with error: `,t,"url: ",a,"request:",n),t})}ao(e,t,n,r,i,a){return this.ro(e,t,n,r,i)}uo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+nH,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}oo(e,t){let n=a6[e];return`${this.so}/v1/${t}:${n}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams}co(e,t,n,r){return new Promise((i,a)=>{let s=new nq;s.listenOnce(nO.COMPLETE,()=>{try{switch(s.getLastErrorCode()){case nM.NO_ERROR:let t=s.getResponseJson();n$("Connection","XHR received:",JSON.stringify(t)),i(t);break;case nM.TIMEOUT:n$("Connection",'RPC "'+e+'" timed out'),a(new n0(nJ.DEADLINE_EXCEEDED,"Request time out"));break;case nM.HTTP_ERROR:let n=s.getStatus();if(n$("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){let e=s.getResponseJson().error;if(e&&e.status&&e.message){let t=function(e){let t=e.toLowerCase().replace(/_/g,"-");return Object.values(nJ).indexOf(t)>=0?t:nJ.UNKNOWN}(e.status);a(new n0(t,e.message))}else a(new n0(nJ.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new n0(nJ.UNAVAILABLE,"Connection failed."));break;default:nX()}}finally{n$("Connection",'RPC "'+e+'" completed.')}});let o=JSON.stringify(r);s.send(t,"POST",o,n,15)})}ho(e,t,n){let r=[this.so,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=nN(),a=nL(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(s.xmlHttpFactory=new nV({})),this.uo(s.initMessageHeaders,t,n),(0,m.uI)()||(0,m.b$)()||(0,m.d)()||(0,m.w1)()||(0,m.Mn)()||(0,m.ru)()||(s.httpHeadersOverwriteParam="$httpHeaders");let o=r.join("");n$("Connection","Creating WebChannel: "+o,s);let l=i.createWebChannel(o,s),c=!1,d=!1,h=new a7({jr:e=>{d?n$("Connection","Not sending because WebChannel is closed:",e):(c||(n$("Connection","Opening WebChannel transport."),l.open(),c=!0),n$("Connection","WebChannel sending:",e),l.send(e))},Wr:()=>l.close()}),f=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(e){setTimeout(()=>{throw e},0)}})};return f(l,nB.EventType.OPEN,()=>{d||n$("Connection","WebChannel transport opened.")}),f(l,nB.EventType.CLOSE,()=>{d||(d=!0,n$("Connection","WebChannel transport closed"),h.eo())}),f(l,nB.EventType.ERROR,e=>{d||(d=!0,nY("Connection","WebChannel transport errored:",e),h.eo(new n0(nJ.UNAVAILABLE,"The operation could not be completed")))}),f(l,nB.EventType.MESSAGE,e=>{var t;if(!d){let n=e.data[0];n||nX();let r=n.error||(null===(t=n[0])||void 0===t?void 0:t.error);if(r){n$("Connection","WebChannel received error:",r);let e=r.status,t=function(e){let t=u[e];if(void 0!==t)return iQ(t)}(e),n=r.message;void 0===t&&(t=nJ.INTERNAL,n="Unknown error status: "+e+" with message "+r.message),d=!0,h.eo(new n0(t,n)),l.close()}else n$("Connection","WebChannel received:",n),h.no(n)}}),f(a,nF.STAT_EVENT,e=>{e.stat===nU.PROXY?n$("Connection","Detected buffering proxy"):e.stat===nU.NOPROXY&&n$("Connection","Detected no buffering proxy")}),setTimeout(()=>{h.Zr()},0),h}}function a9(){return"undefined"!=typeof document?document:null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function se(e){return new au(e,!0)}class st{constructor(e,t,n=1e3,r=1.5,i=6e4){this.js=e,this.timerId=t,this.lo=n,this.fo=r,this._o=i,this.wo=0,this.mo=null,this.yo=Date.now(),this.reset()}reset(){this.wo=0}po(){this.wo=this._o}Io(e){this.cancel();let t=Math.floor(this.wo+this.To()),n=Math.max(0,Date.now()-this.yo),r=Math.max(0,t-n);r>0&&n$("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.wo} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.mo=this.js.enqueueAfterDelay(this.timerId,r,()=>(this.yo=Date.now(),e())),this.wo*=this.fo,this.wo<this.lo&&(this.wo=this.lo),this.wo>this._o&&(this.wo=this._o)}Eo(){null!==this.mo&&(this.mo.skipDelay(),this.mo=null)}cancel(){null!==this.mo&&(this.mo.cancel(),this.mo=null)}To(){return(Math.random()-.5)*this.wo}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sn{constructor(e,t,n,r,i,a,s,o){this.js=e,this.Ao=n,this.Ro=r,this.bo=i,this.authCredentialsProvider=a,this.appCheckCredentialsProvider=s,this.listener=o,this.state=0,this.Po=0,this.vo=null,this.Vo=null,this.stream=null,this.So=new st(e,t)}Do(){return 1===this.state||5===this.state||this.Co()}Co(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.xo()}async stop(){this.Do()&&await this.close(0)}No(){this.state=0,this.So.reset()}ko(){this.Co()&&null===this.vo&&(this.vo=this.js.enqueueAfterDelay(this.Ao,6e4,()=>this.Mo()))}Oo(e){this.Fo(),this.stream.send(e)}async Mo(){if(this.Co())return this.close(0)}Fo(){this.vo&&(this.vo.cancel(),this.vo=null)}$o(){this.Vo&&(this.Vo.cancel(),this.Vo=null)}async close(e,t){this.Fo(),this.$o(),this.So.cancel(),this.Po++,4!==e?this.So.reset():t&&t.code===nJ.RESOURCE_EXHAUSTED?(nG(t.toString()),nG("Using maximum backoff delay to prevent overloading the backend."),this.So.po()):t&&t.code===nJ.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.Bo(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Jr(t)}Bo(){}auth(){this.state=1;let e=this.Lo(this.Po),t=this.Po;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,n])=>{this.Po===t&&this.Uo(e,n)},t=>{e(()=>{let e=new n0(nJ.UNKNOWN,"Fetching auth token failed: "+t.message);return this.qo(e)})})}Uo(e,t){let n=this.Lo(this.Po);this.stream=this.Ko(e,t),this.stream.zr(()=>{n(()=>(this.state=2,this.Vo=this.js.enqueueAfterDelay(this.Ro,1e4,()=>(this.Co()&&(this.state=3),Promise.resolve())),this.listener.zr()))}),this.stream.Jr(e=>{n(()=>this.qo(e))}),this.stream.onMessage(e=>{n(()=>this.onMessage(e))})}xo(){this.state=5,this.So.Io(async()=>{this.state=0,this.start()})}qo(e){return n$("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}Lo(e){return t=>{this.js.enqueueAndForget(()=>this.Po===e?t():(n$("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class sr extends sn{constructor(e,t,n,r,i,a){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,a),this.wt=i}Ko(e,t){return this.bo.ho("Listen",e,t)}onMessage(e){this.So.reset();let t=function(e,t){let n;if("targetChange"in t){var r,i;t.targetChange;let a="NO_CHANGE"===(r=t.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===r?1:"REMOVE"===r?2:"CURRENT"===r?3:"RESET"===r?4:nX(),s=t.targetChange.targetIds||[],o=(i=t.targetChange.resumeToken,e.dt?(void 0===i||"string"==typeof i||nX(),rE.fromBase64String(i||"")):(void 0===i||i instanceof Uint8Array||nX(),rE.fromUint8Array(i||new Uint8Array))),l=t.targetChange.cause,u=l&&function(e){let t=void 0===e.code?nJ.UNKNOWN:iQ(e.code);return new n0(t,e.message||"")}(l);n=new an(a,s,o,u||null)}else if("documentChange"in t){t.documentChange;let r=t.documentChange;r.document,r.document.name,r.document.updateTime;let i=ag(e,r.document.name),a=ah(r.document.updateTime),s=new rY({mapValue:{fields:r.document.fields}}),o=rQ.newFoundDocument(i,a,s),l=r.targetIds||[],u=r.removedTargetIds||[];n=new ae(l,u,o.key,o)}else if("documentDelete"in t){t.documentDelete;let r=t.documentDelete;r.document;let i=ag(e,r.document),a=r.readTime?ah(r.readTime):rr.min(),s=rQ.newNoDocument(i,a),o=r.removedTargetIds||[];n=new ae([],o,s.key,s)}else if("documentRemove"in t){t.documentRemove;let r=t.documentRemove;r.document;let i=ag(e,r.document),a=r.removedTargetIds||[];n=new ae([],a,i,null)}else{if(!("filter"in t))return nX();{t.filter;let e=t.filter;e.targetId;let r=e.count||0,i=new iG(r),a=e.targetId;n=new at(a,i)}}return n}(this.wt,e),n=function(e){if(!("targetChange"in e))return rr.min();let t=e.targetChange;return t.targetIds&&t.targetIds.length?rr.min():t.readTime?ah(t.readTime):rr.min()}(e);return this.listener.Go(t,n)}Qo(e){let t={};t.database=ay(this.wt),t.addTarget=function(e,t){let n;let r=t.target;return(n=r2(r)?{documents:{documents:[av(e,r.path)]}}:{query:function(e,t){var n,r,i;let a={structuredQuery:{}},s=t.path;null!==t.collectionGroup?(a.parent=av(e,s),a.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(a.parent=av(e,s.popLast()),a.structuredQuery.from=[{collectionId:s.lastSegment()}]);let o=function(e){if(0===e.length)return;let t=e.map(e=>(function(e){if("=="===e.op){if(rK(e.value))return{unaryFilter:{field:aw(e.field),op:"IS_NAN"}};if(rH(e.value))return{unaryFilter:{field:aw(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(rK(e.value))return{unaryFilter:{field:aw(e.field),op:"IS_NOT_NAN"}};if(rH(e.value))return{unaryFilter:{field:aw(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:aw(e.field),op:al[e.op],value:e.value}}})(e));return 1===t.length?t[0]:{compositeFilter:{op:"AND",filters:t}}}(t.filters);o&&(a.structuredQuery.where=o);let l=function(e){if(0!==e.length)return e.map(e=>({field:aw(e.field),direction:ao[e.dir]}))}(t.orderBy);l&&(a.structuredQuery.orderBy=l);let u=(r=t.limit,e.dt||rP(r)?r:{value:r});return null!==u&&(a.structuredQuery.limit=u),t.startAt&&(a.structuredQuery.startAt={before:(n=t.startAt).inclusive,values:n.position}),t.endAt&&(a.structuredQuery.endAt={before:!(i=t.endAt).inclusive,values:i.position}),a}(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=ad(e,t.resumeToken):t.snapshotVersion.compareTo(rr.min())>0&&(n.readTime=ac(e,t.snapshotVersion.toTimestamp())),n}(this.wt,e);let n=function(e,t){let n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return nX()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.wt,e);n&&(t.labels=n),this.Oo(t)}jo(e){let t={};t.database=ay(this.wt),t.removeTarget=e,this.Oo(t)}}class si extends sn{constructor(e,t,n,r,i,a){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,a),this.wt=i,this.Wo=!1}get zo(){return this.Wo}start(){this.Wo=!1,this.lastStreamToken=void 0,super.start()}Bo(){this.Wo&&this.Ho([])}Ko(e,t){return this.bo.ho("Write",e,t)}onMessage(e){var t,n;if(e.streamToken||nX(),this.lastStreamToken=e.streamToken,this.Wo){this.So.reset();let r=(t=e.writeResults,n=e.commitTime,t&&t.length>0?(void 0!==n||nX(),t.map(e=>{let t;return(t=e.updateTime?ah(e.updateTime):ah(n)).isEqual(rr.min())&&(t=ah(n)),new iL(t,e.transformResults||[])})):[]),i=ah(e.commitTime);return this.listener.Jo(i,r)}return e.writeResults&&0!==e.writeResults.length&&nX(),this.Wo=!0,this.listener.Yo()}Xo(){let e={};e.database=ay(this.wt),this.Oo(e)}Ho(e){let t={streamToken:this.lastStreamToken,writes:e.map(e=>ax(this.wt,e))};this.Oo(t)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sa extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.bo=n,this.wt=r,this.Zo=!1}tu(){if(this.Zo)throw new n0(nJ.FAILED_PRECONDITION,"The client has already been terminated.")}ro(e,t,n){return this.tu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([r,i])=>this.bo.ro(e,t,n,r,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===nJ.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new n0(nJ.UNKNOWN,e.toString())})}ao(e,t,n,r){return this.tu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,a])=>this.bo.ao(e,t,n,i,a,r)).catch(e=>{throw"FirebaseError"===e.name?(e.code===nJ.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new n0(nJ.UNKNOWN,e.toString())})}terminate(){this.Zo=!0}}class ss{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.eu=0,this.nu=null,this.su=!0}iu(){0===this.eu&&(this.ru("Unknown"),this.nu=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.nu=null,this.ou("Backend didn't respond within 10 seconds."),this.ru("Offline"),Promise.resolve())))}uu(e){"Online"===this.state?this.ru("Unknown"):(this.eu++,this.eu>=1&&(this.cu(),this.ou(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ru("Offline")))}set(e){this.cu(),this.eu=0,"Online"===e&&(this.su=!1),this.ru(e)}ru(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ou(e){let t=`Could not reach Cloud Firestore backend. ${e}
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.su?(nG(t),this.su=!1):n$("OnlineStateTracker",t)}cu(){null!==this.nu&&(this.nu.cancel(),this.nu=null)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class so{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.au=[],this.hu=new Map,this.lu=new Set,this.fu=[],this.du=i,this.du.Br(e=>{n.enqueueAndForget(async()=>{sg(this)&&(n$("RemoteStore","Restarting streams for network reachability change."),await async function(e){e.lu.add(4),await su(e),e._u.set("Unknown"),e.lu.delete(4),await sl(e)}(this))})}),this._u=new ss(n,r)}}async function sl(e){if(sg(e))for(let t of e.fu)await t(!0)}async function su(e){for(let t of e.fu)await t(!1)}function sc(e,t){e.hu.has(t.targetId)||(e.hu.set(t.targetId,t),sm(e)?sp(e):sA(e).Co()&&sh(e,t))}function sd(e,t){let n=sA(e);e.hu.delete(t),n.Co()&&sf(e,t),0===e.hu.size&&(n.Co()?n.ko():sg(e)&&e._u.set("Unknown"))}function sh(e,t){e.wu.Nt(t.targetId),sA(e).Qo(t)}function sf(e,t){e.wu.Nt(t),sA(e).jo(t)}function sp(e){e.wu=new ai({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),te:t=>e.hu.get(t)||null}),sA(e).start(),e._u.iu()}function sm(e){return sg(e)&&!sA(e).Do()&&e.hu.size>0}function sg(e){return 0===e.lu.size}async function sv(e){e.hu.forEach((t,n)=>{sh(e,t)})}async function sy(e,t){e.wu=void 0,sm(e)?(e._u.uu(t),sp(e)):e._u.set("Unknown")}async function s_(e,t,n){if(e._u.set("Online"),t instanceof an&&2===t.state&&t.cause)try{await async function(e,t){let n=t.cause;for(let r of t.targetIds)e.hu.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.hu.delete(r),e.wu.removeTarget(r))}(e,t)}catch(n){n$("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),await sb(e,n)}else if(t instanceof ae?e.wu.Ut(t):t instanceof at?e.wu.zt(t):e.wu.Gt(t),!n.isEqual(rr.min()))try{let t=await aJ(e.localStore);n.compareTo(t)>=0&&await function(e,t){let n=e.wu.Yt(t);return n.targetChanges.forEach((n,r)=>{if(n.resumeToken.approximateByteSize()>0){let i=e.hu.get(r);i&&e.hu.set(r,i.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach(t=>{let n=e.hu.get(t);if(!n)return;e.hu.set(t,n.withResumeToken(rE.EMPTY_BYTE_STRING,n.snapshotVersion)),sf(e,t);let r=new aI(n.target,t,1,n.sequenceNumber);sh(e,r)}),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){n$("RemoteStore","Failed to raise snapshot:",t),await sb(e,t)}}async function sb(e,t,n){if(!rf(t))throw t;e.lu.add(1),await su(e),e._u.set("Offline"),n||(n=()=>aJ(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{n$("RemoteStore","Retrying IndexedDB access"),await n(),e.lu.delete(1),await sl(e)})}function sx(e,t){return t().catch(n=>sb(e,n,t))}async function sw(e){let t=sD(e),n=e.au.length>0?e.au[e.au.length-1].batchId:-1;for(;sg(e)&&e.au.length<10;)try{let r=await function(e,t){return e.persistence.runTransaction("Get next mutation batch","readonly",n=>(void 0===t&&(t=-1),e.mutationQueue.getNextMutationBatchAfterBatchId(n,t)))}(e.localStore,n);if(null===r){0===e.au.length&&t.ko();break}n=r.batchId,function(e,t){e.au.push(t);let n=sD(e);n.Co()&&n.zo&&n.Ho(t.mutations)}(e,r)}catch(t){await sb(e,t)}sk(e)&&sE(e)}function sk(e){return sg(e)&&!sD(e).Do()&&e.au.length>0}function sE(e){sD(e).start()}async function sS(e){sD(e).Xo()}async function sC(e){let t=sD(e);for(let n of e.au)t.Ho(n.mutations)}async function sT(e,t,n){let r=e.au.shift(),i=aC.from(r,t,n);await sx(e,()=>e.remoteSyncer.applySuccessfulWrite(i)),await sw(e)}async function sI(e,t){t&&sD(e).zo&&await async function(e,t){var n;if(iY(n=t.code)&&n!==nJ.ABORTED){let n=e.au.shift();sD(e).No(),await sx(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await sw(e)}}(e,t),sk(e)&&sE(e)}async function sR(e,t){e.asyncQueue.verifyOperationInProgress(),n$("RemoteStore","RemoteStore received new credentials");let n=sg(e);e.lu.add(3),await su(e),n&&e._u.set("Unknown"),await e.remoteSyncer.handleCredentialChange(t),e.lu.delete(3),await sl(e)}async function sj(e,t){t?(e.lu.delete(2),await sl(e)):t||(e.lu.add(2),await su(e),e._u.set("Unknown"))}function sA(e){var t,n,r;return e.mu||(e.mu=(t=e.datastore,n=e.asyncQueue,r={zr:sv.bind(null,e),Jr:sy.bind(null,e),Go:s_.bind(null,e)},t.tu(),new sr(n,t.bo,t.authCredentials,t.appCheckCredentials,t.wt,r)),e.fu.push(async t=>{t?(e.mu.No(),sm(e)?sp(e):e._u.set("Unknown")):(await e.mu.stop(),e.wu=void 0)})),e.mu}function sD(e){var t,n,r;return e.gu||(e.gu=(t=e.datastore,n=e.asyncQueue,r={zr:sS.bind(null,e),Jr:sI.bind(null,e),Yo:sC.bind(null,e),Jo:sT.bind(null,e)},t.tu(),new si(n,t.bo,t.authCredentials,t.appCheckCredentials,t.wt,r)),e.fu.push(async t=>{t?(e.gu.No(),await sw(e)):(await e.gu.stop(),e.au.length>0&&(n$("RemoteStore",`Stopping write stream with ${e.au.length} pending writes`),e.au=[]))})),e.gu}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sP{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new n1,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}static createAndSchedule(e,t,n,r,i){let a=Date.now()+n,s=new sP(e,t,a,r,i);return s.start(n),s}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new n0(nJ.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function sN(e,t){if(nG("AsyncQueue",`${t}: ${e}`),rf(e))return new n0(nJ.UNAVAILABLE,`${t}: ${e}`);throw e}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sL{constructor(e){this.comparator=e?(t,n)=>e(t,n)||rl.comparator(t.key,n.key):(e,t)=>rl.comparator(e.key,t.key),this.keyedMap=i1(),this.sortedSet=new ry(this.comparator)}static emptySet(e){return new sL(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){let t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){let t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){let t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof sL)||this.size!==e.size)return!1;let t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){let e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){let e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){let n=new sL;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sM{constructor(){this.yu=new ry(rl.comparator)}track(e){let t=e.doc.key,n=this.yu.get(t);n?0!==e.type&&3===n.type?this.yu=this.yu.insert(t,e):3===e.type&&1!==n.type?this.yu=this.yu.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.yu=this.yu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.yu=this.yu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.yu=this.yu.remove(t):1===e.type&&2===n.type?this.yu=this.yu.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.yu=this.yu.insert(t,{type:2,doc:e.doc}):nX():this.yu=this.yu.insert(t,e)}pu(){let e=[];return this.yu.inorderTraversal((t,n)=>{e.push(n)}),e}}class sO{constructor(e,t,n,r,i,a,s,o){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=a,this.syncStateChanged=s,this.excludesMetadataChanges=o}static fromInitialDocuments(e,t,n,r){let i=[];return t.forEach(e=>{i.push({type:0,doc:e})}),new sO(e,t,sL.emptySet(t),i,n,r,!0,!1)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&iv(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;let t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e].type!==n[e].type||!t[e].doc.isEqual(n[e].doc))return!1;return!0}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sF{constructor(){this.Iu=void 0,this.listeners=[]}}class sU{constructor(){this.queries=new iX(e=>iy(e),iv),this.onlineState="Unknown",this.Tu=new Set}}async function sV(e,t){let n=t.query,r=!1,i=e.queries.get(n);if(i||(r=!0,i=new sF),r)try{i.Iu=await e.onListen(n)}catch(n){let e=sN(n,`Initialization of query '${i_(t.query)}' failed`);return void t.onError(e)}e.queries.set(n,i),i.listeners.push(t),t.Eu(e.onlineState),i.Iu&&t.Au(i.Iu)&&sz(e)}async function sB(e,t){let n=t.query,r=!1,i=e.queries.get(n);if(i){let e=i.listeners.indexOf(t);e>=0&&(i.listeners.splice(e,1),r=0===i.listeners.length)}if(r)return e.queries.delete(n),e.onUnlisten(n)}function sq(e,t){let n=!1;for(let r of t){let t=r.query,i=e.queries.get(t);if(i){for(let e of i.listeners)e.Au(r)&&(n=!0);i.Iu=r}}n&&sz(e)}function sZ(e,t,n){let r=e.queries.get(t);if(r)for(let e of r.listeners)e.onError(n);e.queries.delete(t)}function sz(e){e.Tu.forEach(e=>{e.next()})}class sH{constructor(e,t,n){this.query=e,this.Ru=t,this.bu=!1,this.Pu=null,this.onlineState="Unknown",this.options=n||{}}Au(e){if(!this.options.includeMetadataChanges){let t=[];for(let n of e.docChanges)3!==n.type&&t.push(n);e=new sO(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}let t=!1;return this.bu?this.vu(e)&&(this.Ru.next(e),t=!0):this.Vu(e,this.onlineState)&&(this.Su(e),t=!0),this.Pu=e,t}onError(e){this.Ru.error(e)}Eu(e){this.onlineState=e;let t=!1;return this.Pu&&!this.bu&&this.Vu(this.Pu,e)&&(this.Su(this.Pu),t=!0),t}Vu(e,t){return!e.fromCache||(!this.options.Du||!("Offline"!==t))&&(!e.docs.isEmpty()||"Offline"===t)}vu(e){if(e.docChanges.length>0)return!0;let t=this.Pu&&this.Pu.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}Su(e){e=sO.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.bu=!0,this.Ru.next(e)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class sK{constructor(e){this.key=e}}class sW{constructor(e){this.key=e}}class s${constructor(e,t){this.query=e,this.Fu=t,this.$u=null,this.current=!1,this.Bu=i6(),this.mutatedKeys=i6(),this.Lu=ix(e),this.Uu=new sL(this.Lu)}get qu(){return this.Fu}Ku(e,t){let n=t?t.Gu:new sM,r=t?t.Uu:this.Uu,i=t?t.mutatedKeys:this.mutatedKeys,a=r,s=!1,o="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((e,t)=>{let u=r.get(e),c=ib(this.query,t)?t:null,d=!!u&&this.mutatedKeys.has(u.key),h=!!c&&(c.hasLocalMutations||this.mutatedKeys.has(c.key)&&c.hasCommittedMutations),f=!1;u&&c?u.data.isEqual(c.data)?d!==h&&(n.track({type:3,doc:c}),f=!0):this.Qu(u,c)||(n.track({type:2,doc:c}),f=!0,(o&&this.Lu(c,o)>0||l&&0>this.Lu(c,l))&&(s=!0)):!u&&c?(n.track({type:0,doc:c}),f=!0):u&&!c&&(n.track({type:1,doc:u}),f=!0,(o||l)&&(s=!0)),f&&(c?(a=a.add(c),i=h?i.add(e):i.delete(e)):(a=a.delete(e),i=i.delete(e)))}),null!==this.query.limit)for(;a.size>this.query.limit;){let e="F"===this.query.limitType?a.last():a.first();a=a.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{Uu:a,Gu:n,Mi:s,mutatedKeys:i}}Qu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n){let r=this.Uu;this.Uu=e.Uu,this.mutatedKeys=e.mutatedKeys;let i=e.Gu.pu();i.sort((e,t)=>(function(e,t){let n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return nX()}};return n(e)-n(t)})(e.type,t.type)||this.Lu(e.doc,t.doc)),this.ju(n);let a=t?this.Wu():[],s=0===this.Bu.size&&this.current?1:0,o=s!==this.$u;return(this.$u=s,0!==i.length||o)?{snapshot:new sO(this.query,e.Uu,r,i,e.mutatedKeys,0===s,o,!1),zu:a}:{zu:a}}Eu(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Uu:this.Uu,Gu:new sM,mutatedKeys:this.mutatedKeys,Mi:!1},!1)):{zu:[]}}Hu(e){return!this.Fu.has(e)&&!!this.Uu.has(e)&&!this.Uu.get(e).hasLocalMutations}ju(e){e&&(e.addedDocuments.forEach(e=>this.Fu=this.Fu.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.Fu=this.Fu.delete(e)),this.current=e.current)}Wu(){if(!this.current)return[];let e=this.Bu;this.Bu=i6(),this.Uu.forEach(e=>{this.Hu(e.key)&&(this.Bu=this.Bu.add(e.key))});let t=[];return e.forEach(e=>{this.Bu.has(e)||t.push(new sW(e))}),this.Bu.forEach(n=>{e.has(n)||t.push(new sK(n))}),t}Ju(e){this.Fu=e.ji,this.Bu=i6();let t=this.Ku(e.documents);return this.applyChanges(t,!0)}Yu(){return sO.fromInitialDocuments(this.query,this.Uu,this.mutatedKeys,0===this.$u)}}class sG{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class sY{constructor(e){this.key=e,this.Xu=!1}}class sQ{constructor(e,t,n,r,i,a){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=a,this.Zu={},this.tc=new iX(e=>iy(e),iv),this.ec=new Map,this.nc=new Set,this.sc=new ry(rl.comparator),this.ic=new Map,this.rc=new aV,this.oc={},this.uc=new Map,this.cc=aN.Rn(),this.onlineState="Unknown",this.ac=void 0}get isPrimaryClient(){return!0===this.ac}}async function sX(e,t){let n,r;let i=function(e){let t=e;return t.remoteStore.remoteSyncer.applyRemoteEvent=s2.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=oa.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=s5.bind(null,t),t.Zu.Go=sq.bind(null,t.eventManager),t.Zu.lc=sZ.bind(null,t.eventManager),t}(e),a=i.tc.get(t);if(a)n=a.targetId,i.sharedClientState.addLocalQueryTarget(n),r=a.view.Yu();else{let e=await function(e,t){let n=e;return n.persistence.runTransaction("Allocate target","readwrite",e=>{let r;return n.Vs.getTargetData(e,t).next(i=>i?(r=i,rh.resolve(r)):n.Vs.allocateTargetId(e).next(i=>(r=new aI(t,i,0,e.currentSequenceNumber),n.Vs.addTargetData(e,r).next(()=>r))))}).then(e=>{let r=n.$i.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.$i=n.$i.insert(e.targetId,e),n.Bi.set(t,e.targetId)),e})}(i.localStore,im(t));i.isPrimaryClient&&sc(i.remoteStore,e);let a=i.sharedClientState.addLocalQueryTarget(e.targetId);n=e.targetId,r=await sJ(i,t,n,"current"===a)}return r}async function sJ(e,t,n,r){e.hc=(t,n,r)=>(async function(e,t,n,r){let i=t.view.Ku(n);i.Mi&&(i=await a1(e.localStore,t.query,!1).then(({documents:e})=>t.view.Ku(e,i)));let a=r&&r.targetChanges.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,a);return ot(e,t.targetId,s.zu),s.snapshot})(e,t,n,r);let i=await a1(e.localStore,t,!0),a=new s$(t,i.ji),s=a.Ku(i.documents),o=i9.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState),l=a.applyChanges(s,e.isPrimaryClient,o);ot(e,n,l.zu);let u=new sG(t,n,a);return e.tc.set(t,u),e.ec.has(n)?e.ec.get(n).push(t):e.ec.set(n,[t]),l.snapshot}async function s0(e,t){let n=e.tc.get(t),r=e.ec.get(n.targetId);if(r.length>1)return e.ec.set(n.targetId,r.filter(e=>!iv(e,t))),void e.tc.delete(t);e.isPrimaryClient?(e.sharedClientState.removeLocalQueryTarget(n.targetId),e.sharedClientState.isActiveQueryTarget(n.targetId)||await a0(e.localStore,n.targetId,!1).then(()=>{e.sharedClientState.clearQueryState(n.targetId),sd(e.remoteStore,n.targetId),s9(e,n.targetId)}).catch(rd)):(s9(e,n.targetId),await a0(e.localStore,n.targetId,!0))}async function s1(e,t,n){let r=function(e){let t=e;return t.remoteStore.remoteSyncer.applySuccessfulWrite=s4.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=s6.bind(null,t),t}(e);try{var i,a;let e;let s=await function(e,t){let n,r;let i=rn.now(),a=t.reduce((e,t)=>e.add(t.key),i6());return e.persistence.runTransaction("Locally write mutations","readwrite",s=>{let o=iJ,l=i6();return e.Ui.getEntries(s,a).next(e=>{(o=e).forEach((e,t)=>{t.isValidDocument()||(l=l.add(e))})}).next(()=>e.localDocuments.getOverlayedDocuments(s,o)).next(r=>{n=r;let a=[];for(let e of t){let t=function(e,t){let n=null;for(let r of e.fieldTransforms){let e=t.data.field(r.field),i=iS(r.transform,e||null);null!=i&&(null===n&&(n=rY.empty()),n.set(r.field,i))}return n||null}(e,n.get(e.key).overlayedDocument);null!=t&&a.push(new iZ(e.key,t,function e(t){let n=[];return rg(t.fields,(t,r)=>{let i=new ro([t]);if(rW(r)){let t=e(r.mapValue).fields;if(0===t.length)n.push(i);else for(let e of t)n.push(i.child(e))}else n.push(i)}),new rk(n)}(t.value.mapValue),iM.exists(!0)))}return e.mutationQueue.addMutationBatch(s,i,a,t)}).next(t=>{r=t;let i=t.applyToLocalDocumentSet(n,l);return e.documentOverlayCache.saveOverlays(s,t.batchId,i)})}).then(()=>({batchId:r.batchId,changes:i2(n)}))}(r.localStore,t);r.sharedClientState.addPendingMutation(s.batchId),i=r,a=s.batchId,(e=i.oc[i.currentUser.toKey()])||(e=new ry(re)),e=e.insert(a,n),i.oc[i.currentUser.toKey()]=e,await or(r,s.changes),await sw(r.remoteStore)}catch(t){let e=sN(t,"Failed to persist write");n.reject(e)}}async function s2(e,t){try{let n=await function(e,t){let n=e,r=t.snapshotVersion,i=n.$i;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{var a;let s,o;let l=n.Ui.newChangeBuffer({trackRemovals:!0});i=n.$i;let u=[];t.targetChanges.forEach((a,s)=>{var o;let l=i.get(s);if(!l)return;u.push(n.Vs.removeMatchingKeys(e,a.removedDocuments,s).next(()=>n.Vs.addMatchingKeys(e,a.addedDocuments,s)));let c=l.withSequenceNumber(e.currentSequenceNumber);t.targetMismatches.has(s)?c=c.withResumeToken(rE.EMPTY_BYTE_STRING,rr.min()).withLastLimboFreeSnapshotVersion(rr.min()):a.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(a.resumeToken,r)),i=i.insert(s,c),o=c,(0===l.resumeToken.approximateByteSize()||o.snapshotVersion.toMicroseconds()-l.snapshotVersion.toMicroseconds()>=3e8||a.addedDocuments.size+a.modifiedDocuments.size+a.removedDocuments.size>0)&&u.push(n.Vs.updateTargetData(e,c))});let c=iJ,d=i6();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&u.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),u.push((a=t.documentUpdates,s=i6(),o=i6(),a.forEach(e=>s=s.add(e)),l.getEntries(e,s).next(e=>{let t=iJ;return a.forEach((n,r)=>{let i=e.get(n);r.isFoundDocument()!==i.isFoundDocument()&&(o=o.add(n)),r.isNoDocument()&&r.version.isEqual(rr.min())?(l.removeEntry(n,r.readTime),t=t.insert(n,r)):!i.isValidDocument()||r.version.compareTo(i.version)>0||0===r.version.compareTo(i.version)&&i.hasPendingWrites?(l.addEntry(r),t=t.insert(n,r)):n$("LocalStore","Ignoring outdated watch update for ",n,". Current version:",i.version," Watch version:",r.version)}),{Gi:t,Qi:o}})).next(e=>{c=e.Gi,d=e.Qi})),!r.isEqual(rr.min())){let t=n.Vs.getLastRemoteSnapshotVersion(e).next(t=>n.Vs.setTargetsMetadata(e,e.currentSequenceNumber,r));u.push(t)}return rh.waitFor(u).next(()=>l.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,c,d)).next(()=>c)}).then(e=>(n.$i=i,e))}(e.localStore,t);t.targetChanges.forEach((t,n)=>{let r=e.ic.get(n);r&&(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1||nX(),t.addedDocuments.size>0?r.Xu=!0:t.modifiedDocuments.size>0?r.Xu||nX():t.removedDocuments.size>0&&(r.Xu||nX(),r.Xu=!1))}),await or(e,n,t)}catch(e){await rd(e)}}function s3(e,t,n){let r=e;if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){let e=[];r.tc.forEach((n,r)=>{let i=r.view.Eu(t);i.snapshot&&e.push(i.snapshot)}),function(e,t){let n=e;n.onlineState=t;let r=!1;n.queries.forEach((e,n)=>{for(let e of n.listeners)e.Eu(t)&&(r=!0)}),r&&sz(n)}(r.eventManager,t),e.length&&r.Zu.Go(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function s5(e,t,n){let r=e;r.sharedClientState.updateQueryState(t,"rejected",n);let i=r.ic.get(t),a=i&&i.key;if(a){let e=new ry(rl.comparator);e=e.insert(a,rQ.newNoDocument(a,rr.min()));let n=i6().add(a),i=new i8(rr.min(),new Map,new rx(re),e,n);await s2(r,i),r.sc=r.sc.remove(a),r.ic.delete(t),on(r)}else await a0(r.localStore,t,!1).then(()=>s9(r,t,n)).catch(rd)}async function s4(e,t){var n;let r=t.batch.batchId;try{let i=await (n=e.localStore).persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{let r=t.batch.keys(),i=n.Ui.newChangeBuffer({trackRemovals:!0});return(function(e,t,n,r){let i=n.batch,a=i.keys(),s=rh.resolve();return a.forEach(e=>{s=s.next(()=>r.getEntry(t,e)).next(t=>{let a=n.docVersions.get(e);null!==a||nX(),0>t.version.compareTo(a)&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))})}),s.next(()=>e.mutationQueue.removeMutationBatch(t,i))})(n,e,t,i).next(()=>i.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=i6();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))).next(()=>n.localDocuments.getDocuments(e,r))});s8(e,r,null),s7(e,r),e.sharedClientState.updateMutationState(r,"acknowledged"),await or(e,i)}catch(e){await rd(e)}}async function s6(e,t,n){var r;try{let i=await (r=e.localStore).persistence.runTransaction("Reject batch","readwrite-primary",e=>{let n;return r.mutationQueue.lookupMutationBatch(e,t).next(t=>(null!==t||nX(),n=t.keys(),r.mutationQueue.removeMutationBatch(e,t))).next(()=>r.mutationQueue.performConsistencyCheck(e)).next(()=>r.documentOverlayCache.removeOverlaysForBatchId(e,n,t)).next(()=>r.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,n)).next(()=>r.localDocuments.getDocuments(e,n))});s8(e,t,n),s7(e,t),e.sharedClientState.updateMutationState(t,"rejected",n),await or(e,i)}catch(e){await rd(e)}}function s7(e,t){(e.uc.get(t)||[]).forEach(e=>{e.resolve()}),e.uc.delete(t)}function s8(e,t,n){let r=e,i=r.oc[r.currentUser.toKey()];if(i){let e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.oc[r.currentUser.toKey()]=i}}function s9(e,t,n=null){for(let r of(e.sharedClientState.removeLocalQueryTarget(t),e.ec.get(t)))e.tc.delete(r),n&&e.Zu.lc(r,n);e.ec.delete(t),e.isPrimaryClient&&e.rc.us(t).forEach(t=>{e.rc.containsKey(t)||oe(e,t)})}function oe(e,t){e.nc.delete(t.path.canonicalString());let n=e.sc.get(t);null!==n&&(sd(e.remoteStore,n),e.sc=e.sc.remove(t),e.ic.delete(n),on(e))}function ot(e,t,n){for(let r of n)r instanceof sK?(e.rc.addReference(r.key,t),function(e,t){let n=t.key,r=n.path.canonicalString();e.sc.get(n)||e.nc.has(r)||(n$("SyncEngine","New document in limbo: "+n),e.nc.add(r),on(e))}(e,r)):r instanceof sW?(n$("SyncEngine","Document no longer in limbo: "+r.key),e.rc.removeReference(r.key,t),e.rc.containsKey(r.key)||oe(e,r.key)):nX()}function on(e){for(;e.nc.size>0&&e.sc.size<e.maxConcurrentLimboResolutions;){let t=e.nc.values().next().value;e.nc.delete(t);let n=new rl(ra.fromString(t)),r=e.cc.next();e.ic.set(r,new sY(n)),e.sc=e.sc.insert(n,r),sc(e.remoteStore,new aI(im(il(n.path)),r,2,rp.ot))}}async function or(e,t,n){let r=[],i=[],a=[];e.tc.isEmpty()||(e.tc.forEach((s,o)=>{a.push(e.hc(o,t,n).then(t=>{if(t){e.isPrimaryClient&&e.sharedClientState.updateQueryState(o.targetId,t.fromCache?"not-current":"current"),r.push(t);let n=aG.Vi(o.targetId,t);i.push(n)}}))}),await Promise.all(a),e.Zu.Go(r),await async function(e,t){let n=e;try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>rh.forEach(t,t=>rh.forEach(t.Pi,r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r)).next(()=>rh.forEach(t.vi,r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))}catch(e){if(!rf(e))throw e;n$("LocalStore","Failed to update sequence numbers: "+e)}for(let e of t){let t=e.targetId;if(!e.fromCache){let e=n.$i.get(t),r=e.snapshotVersion,i=e.withLastLimboFreeSnapshotVersion(r);n.$i=n.$i.insert(t,i)}}}(e.localStore,i))}async function oi(e,t){let n=e;if(!n.currentUser.isEqual(t)){n$("SyncEngine","User change. New user:",t.toKey());let e=await aX(n.localStore,t);n.currentUser=t,n.uc.forEach(e=>{e.forEach(e=>{e.reject(new n0(nJ.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),n.uc.clear(),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await or(n,e.Ki)}}function oa(e,t){let n=e.ic.get(t);if(n&&n.Xu)return i6().add(n.key);{let n=i6(),r=e.ec.get(t);if(!r)return n;for(let t of r){let r=e.tc.get(t);n=n.unionWith(r.view.qu)}return n}}class os{constructor(){this.synchronizeTabs=!1}async initialize(e){this.wt=se(e.databaseInfo.databaseId),this.sharedClientState=this.dc(e),this.persistence=this._c(e),await this.persistence.start(),this.localStore=this.wc(e),this.gcScheduler=this.mc(e,this.localStore),this.indexBackfillerScheduler=this.gc(e,this.localStore)}mc(e,t){return null}gc(e,t){return null}wc(e){var t,n,r,i;return t=this.persistence,n=new aY,r=e.initialUser,i=this.wt,new aQ(t,n,r,i)}_c(e){return new aK(a$.Os,this.wt)}dc(e){return new a3}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class oo{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>s3(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=oi.bind(null,this.syncEngine),await sj(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new sU}createDatastore(e){var t,n,r;let i=se(e.databaseInfo.databaseId),a=(t=e.databaseInfo,new a8(t));return n=e.authCredentials,r=e.appCheckCredentials,new sa(n,r,a,i)}createRemoteStore(e){var t,n,r,i,a;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=e=>s3(this.syncEngine,e,0),a=a4.V()?new a4:new a5,new so(t,n,r,i,a)}createSyncEngine(e,t){return function(e,t,n,r,i,a,s){let o=new sQ(e,t,n,r,i,a);return s&&(o.ac=!0),o}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){return async function(e){n$("RemoteStore","RemoteStore shutting down."),e.lu.add(5),await su(e),e.du.shutdown(),e._u.set("Unknown")}(this.remoteStore)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ol{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ic(this.observer.next,e)}error(e){this.observer.error?this.Ic(this.observer.error,e):nG("Uncaught Error in snapshot listener:",e)}Tc(){this.muted=!0}Ic(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ou{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}async lookup(e){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new n0(nJ.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");let t=await async function(e,t){let n=ay(e.wt)+"/documents",r={documents:t.map(t=>am(e.wt,t))},i=await e.ao("BatchGetDocuments",n,r,t.length),a=new Map;i.forEach(t=>{var n;let r=(n=e.wt,"found"in t?function(e,t){t.found||nX(),t.found.name,t.found.updateTime;let n=ag(e,t.found.name),r=ah(t.found.updateTime),i=new rY({mapValue:{fields:t.found.fields}});return rQ.newFoundDocument(n,r,i)}(n,t):"missing"in t?function(e,t){t.missing||nX(),t.readTime||nX();let n=ag(e,t.missing),r=ah(t.readTime);return rQ.newNoDocument(n,r)}(n,t):nX());a.set(r.key.toString(),r)});let s=[];return t.forEach(e=>{let t=a.get(e.toString());t||nX(),s.push(t)}),s}(this.datastore,e);return t.forEach(e=>this.recordVersion(e)),t}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastWriteError=e}this.writtenDocs.add(e.toString())}delete(e){this.write(new iW(e,this.precondition(e))),this.writtenDocs.add(e.toString())}async commit(){if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;let e=this.readVersions;this.mutations.forEach(t=>{e.delete(t.key.toString())}),e.forEach((e,t)=>{let n=rl.fromPath(t);this.mutations.push(new i$(n,this.precondition(n)))}),await async function(e,t){let n=ay(e.wt)+"/documents",r={writes:t.map(t=>ax(e.wt,t))};await e.ro("Commit",n,r)}(this.datastore,this.mutations),this.committed=!0}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw nX();t=rr.min()}let n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new n0(nJ.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){let t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?iM.updateTime(t):iM.none()}preconditionForUpdate(e){let t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(rr.min()))throw new n0(nJ.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return iM.updateTime(t)}return iM.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oc{constructor(e,t,n,r,i){this.asyncQueue=e,this.datastore=t,this.options=n,this.updateFunction=r,this.deferred=i,this.Dc=n.maxAttempts,this.So=new st(this.asyncQueue,"transaction_retry")}run(){this.Dc-=1,this.Cc()}Cc(){this.So.Io(async()=>{let e=new ou(this.datastore),t=this.xc(e);t&&t.then(t=>{this.asyncQueue.enqueueAndForget(()=>e.commit().then(()=>{this.deferred.resolve(t)}).catch(e=>{this.Nc(e)}))}).catch(e=>{this.Nc(e)})})}xc(e){try{let t=this.updateFunction(e);return!rP(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}}Nc(e){this.Dc>0&&this.kc(e)?(this.Dc-=1,this.asyncQueue.enqueueAndForget(()=>(this.Cc(),Promise.resolve()))):this.deferred.reject(e)}kc(e){if("FirebaseError"===e.name){let t=e.code;return"aborted"===t||"failed-precondition"===t||!iY(t)}return!1}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class od{constructor(e,t,n,r){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=nz.UNAUTHENTICATED,this.clientId=n9.I(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,async e=>{n$("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(n$("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}async getConfiguration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new n0(nJ.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();let e=new n1;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this.onlineComponents&&await this.onlineComponents.terminate(),this.offlineComponents&&await this.offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){let t=sN(n,"Failed to shutdown persistence");e.reject(t)}}),e.promise}}async function oh(e,t){e.asyncQueue.verifyOperationInProgress(),n$("FirestoreClient","Initializing OfflineComponentProvider");let n=await e.getConfiguration();await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener(async e=>{r.isEqual(e)||(await aX(t.localStore,e),r=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e.offlineComponents=t}async function of(e,t){e.asyncQueue.verifyOperationInProgress();let n=await op(e);n$("FirestoreClient","Initializing OnlineComponentProvider");let r=await e.getConfiguration();await t.initialize(n,r),e.setCredentialChangeListener(e=>sR(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>sR(t.remoteStore,n)),e.onlineComponents=t}async function op(e){return e.offlineComponents||(n$("FirestoreClient","Using default OfflineComponentProvider"),await oh(e,new os)),e.offlineComponents}async function om(e){return e.onlineComponents||(n$("FirestoreClient","Using default OnlineComponentProvider"),await of(e,new oo)),e.onlineComponents}async function og(e){let t=await om(e),n=t.eventManager;return n.onListen=sX.bind(null,t.syncEngine),n.onUnlisten=s0.bind(null,t.syncEngine),n}let ov=new Map;/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function oy(e,t,n){if(!n)throw new n0(nJ.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function o_(e){if(!rl.isDocumentKey(e))throw new n0(nJ.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function ob(e){if(rl.isDocumentKey(e))throw new n0(nJ.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function ox(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{var t;let n=(t=e).constructor?t.constructor.name:null;return n?`a custom ${n} object`:"an object"}}return"function"==typeof e?"a function":nX()}function ow(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new n0(nJ.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{let n=ox(e);throw new n0(nJ.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ok{constructor(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new n0(nJ.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new n0(nJ.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.useFetchStreams=!!e.useFetchStreams,function(e,t,n,r){if(!0===t&&!0===r)throw new n0(nJ.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling)}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oE{constructor(e,t,n){this._authCredentials=t,this._appCheckCredentials=n,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ok({}),this._settingsFrozen=!1,e instanceof rD?this._databaseId=e:(this._app=e,this._databaseId=function(e){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new n0(nJ.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new rD(e.options.projectId)}(e))}get app(){if(!this._app)throw new n0(nJ.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new n0(nJ.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new ok(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new n3;switch(e.type){case"gapi":let t=e.client;return"object"==typeof t&&null!==t&&t.auth&&t.auth.getAuthHeaderValueForFirstParty||nX(),new n6(t,e.sessionIndex||"0",e.iamToken||null);case"provider":return e.client;default:throw new n0(nJ.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){let t=ov.get(e);t&&(n$("ComponentProvider","Removing Datastore"),ov.delete(e),t.terminate())}(this),Promise.resolve()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oS{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new oT(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new oS(this.firestore,e,this._key)}}class oC{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new oC(this.firestore,e,this._query)}}class oT extends oC{constructor(e,t,n){super(e,t,il(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let e=this._path.popLast();return e.isEmpty()?null:new oS(this.firestore,null,new rl(e))}withConverter(e){return new oT(this.firestore,e,this._path)}}function oI(e,t,...n){if(e=(0,m.m9)(e),oy("collection","path",t),e instanceof oE){let r=ra.fromString(t,...n);return ob(r),new oT(e,null,r)}{if(!(e instanceof oS||e instanceof oT))throw new n0(nJ.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let r=e._path.child(ra.fromString(t,...n));return ob(r),new oT(e.firestore,null,r)}}function oR(e,t,...n){if(e=(0,m.m9)(e),1==arguments.length&&(t=n9.I()),oy("doc","path",t),e instanceof oE){let r=ra.fromString(t,...n);return o_(r),new oS(e,null,new rl(r))}{if(!(e instanceof oS||e instanceof oT))throw new n0(nJ.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let r=e._path.child(ra.fromString(t,...n));return o_(r),new oS(e.firestore,e instanceof oT?e.converter:null,new rl(r))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oj{constructor(){this.Mc=Promise.resolve(),this.Oc=[],this.Fc=!1,this.$c=[],this.Bc=null,this.Lc=!1,this.Uc=!1,this.qc=[],this.So=new st(this,"async_queue_retry"),this.Kc=()=>{let e=a9();e&&n$("AsyncQueue","Visibility state changed to "+e.visibilityState),this.So.Eo()};let e=a9();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Kc)}get isShuttingDown(){return this.Fc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Gc(),this.Qc(e)}enterRestrictedMode(e){if(!this.Fc){this.Fc=!0,this.Uc=e||!1;let t=a9();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Kc)}}enqueue(e){if(this.Gc(),this.Fc)return new Promise(()=>{});let t=new n1;return this.Qc(()=>this.Fc&&this.Uc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Oc.push(e),this.jc()))}async jc(){if(0!==this.Oc.length){try{await this.Oc[0](),this.Oc.shift(),this.So.reset()}catch(e){if(!rf(e))throw e;n$("AsyncQueue","Operation failed with retryable error: "+e)}this.Oc.length>0&&this.So.Io(()=>this.jc())}}Qc(e){let t=this.Mc.then(()=>(this.Lc=!0,e().catch(e=>{let t;this.Bc=e,this.Lc=!1;let n=(t=e.message||"",e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t);throw nG("INTERNAL UNHANDLED ERROR: ",n),e}).then(e=>(this.Lc=!1,e))));return this.Mc=t,t}enqueueAfterDelay(e,t,n){this.Gc(),this.qc.indexOf(e)>-1&&(t=0);let r=sP.createAndSchedule(this,e,t,n,e=>this.Wc(e));return this.$c.push(r),r}Gc(){this.Bc&&nX()}verifyOperationInProgress(){}async zc(){let e;do e=this.Mc,await e;while(e!==this.Mc)}Hc(e){for(let t of this.$c)if(t.timerId===e)return!0;return!1}Jc(e){return this.zc().then(()=>{for(let t of(this.$c.sort((e,t)=>e.targetTimeMs-t.targetTimeMs),this.$c))if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.zc()})}Yc(e){this.qc.push(e)}Wc(e){let t=this.$c.indexOf(e);this.$c.splice(t,1)}}function oA(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(let n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])}class oD extends oE{constructor(e,t,n){super(e,t,n),this.type="firestore",this._queue=new oj,this._persistenceKey="name"in e?e.name:"[DEFAULT]"}_terminate(){return this._firestoreClient||oL(this),this._firestoreClient.terminate()}}function oP(e=(0,h.Mq)()){return(0,h.qX)(e,"firestore").getImmediate()}function oN(e){return e._firestoreClient||oL(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function oL(e){var t,n,r,i;let a=e._freezeSettings(),s=(n=e._databaseId,r=(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",i=e._persistenceKey,new rA(n,r,i,a.host,a.ssl,a.experimentalForceLongPolling,a.experimentalAutoDetectLongPolling,a.useFetchStreams));e._firestoreClient=new od(e._authCredentials,e._appCheckCredentials,e._queue,s)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oM{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new n0(nJ.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ro(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}function oO(){return new oM("__name__")}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oF{constructor(e){this._byteString=e}static fromBase64String(e){try{return new oF(rE.fromBase64String(e))}catch(e){throw new n0(nJ.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new oF(rE.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oU{constructor(e){this._methodName=e}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class oV{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new n0(nJ.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new n0(nJ.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return re(this._lat,e._lat)||re(this._long,e._long)}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let oB=/^__.*__$/;class oq{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new iZ(e,this.data,this.fieldMask,t,this.fieldTransforms):new iq(e,this.data,t,this.fieldTransforms)}}class oZ{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new iZ(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function oz(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw nX()}}class oH{constructor(e,t,n,r,i,a){this.settings=e,this.databaseId=t,this.wt=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Xc(),this.fieldTransforms=i||[],this.fieldMask=a||[]}get path(){return this.settings.path}get Zc(){return this.settings.Zc}ta(e){return new oH(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.wt,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ea(e){var t;let n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ta({path:n,na:!1});return r.sa(e),r}ia(e){var t;let n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ta({path:n,na:!1});return r.Xc(),r}ra(e){return this.ta({path:void 0,na:!0})}oa(e){return o7(e,this.settings.methodName,this.settings.ua||!1,this.path,this.settings.ca)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Xc(){if(this.path)for(let e=0;e<this.path.length;e++)this.sa(this.path.get(e))}sa(e){if(0===e.length)throw this.oa("Document fields must not be empty");if(oz(this.Zc)&&oB.test(e))throw this.oa('Document fields cannot begin and end with "__"')}}class oK{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.wt=n||se(e)}aa(e,t,n,r=!1){return new oH({Zc:e,methodName:t,ca:n,path:ro.emptyPath(),na:!1,ua:r},this.databaseId,this.wt,this.ignoreUndefinedProperties)}}function oW(e){let t=e._freezeSettings(),n=se(e._databaseId);return new oK(e._databaseId,!!t.ignoreUndefinedProperties,n)}function o$(e,t,n,r,i,a={}){let s,o;let l=e.aa(a.merge||a.mergeFields?2:0,t,n,i);o3("Data must be an object, but it was:",l,r);let u=o1(r,l);if(a.merge)s=new rk(l.fieldMask),o=l.fieldTransforms;else if(a.mergeFields){let e=[];for(let r of a.mergeFields){let i=o5(t,r,n);if(!l.contains(i))throw new n0(nJ.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);o8(e,i)||e.push(i)}s=new rk(e),o=l.fieldTransforms.filter(e=>s.covers(e.field))}else s=null,o=l.fieldTransforms;return new oq(new rY(u),s,o)}class oG extends oU{_toFieldTransform(e){if(2!==e.Zc)throw 1===e.Zc?e.oa(`${this._methodName}() can only appear at the top level of your update data`):e.oa(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof oG}}class oY extends oU{_toFieldTransform(e){return new iN(e.path,new iC)}isEqual(e){return e instanceof oY}}function oQ(e,t,n,r){let i=e.aa(1,t,n);o3("Data must be an object, but it was:",i,r);let a=[],s=rY.empty();rg(r,(e,r)=>{let o=o6(t,e,n);r=(0,m.m9)(r);let l=i.ia(o);if(r instanceof oG)a.push(o);else{let e=o0(r,l);null!=e&&(a.push(o),s.set(o,e))}});let o=new rk(a);return new oZ(s,o,i.fieldTransforms)}function oX(e,t,n,r,i,a){let s=e.aa(1,t,n),o=[o5(t,r,n)],l=[i];if(a.length%2!=0)throw new n0(nJ.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let e=0;e<a.length;e+=2)o.push(o5(t,a[e])),l.push(a[e+1]);let u=[],c=rY.empty();for(let e=o.length-1;e>=0;--e)if(!o8(u,o[e])){let t=o[e],n=l[e];n=(0,m.m9)(n);let r=s.ia(t);if(n instanceof oG)u.push(t);else{let e=o0(n,r);null!=e&&(u.push(t),c.set(t,e))}}let d=new rk(u);return new oZ(c,d,s.fieldTransforms)}function oJ(e,t,n,r=!1){return o0(n,e.aa(r?4:3,t))}function o0(e,t){if(o2(e=(0,m.m9)(e)))return o3("Unsupported field value:",t,e),o1(e,t);if(e instanceof oU)return function(e,t){if(!oz(t.Zc))throw t.oa(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.oa(`${e._methodName}() is not currently supported inside arrays`);let n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.na&&4!==t.Zc)throw t.oa("Nested arrays are not supported");return function(e,t){let n=[],r=0;for(let i of e){let e=o0(i,t.ra(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=(0,m.m9)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e){var n,r,i;return n=t.wt,"number"==typeof(i=r=e)&&Number.isInteger(i)&&!rN(i)&&i<=Number.MAX_SAFE_INTEGER&&i>=Number.MIN_SAFE_INTEGER?ik(r):iw(n,r)}if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){let n=rn.fromDate(e);return{timestampValue:ac(t.wt,n)}}if(e instanceof rn){let n=new rn(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:ac(t.wt,n)}}if(e instanceof oV)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof oF)return{bytesValue:ad(t.wt,e._byteString)};if(e instanceof oS){let n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.oa(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:af(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.oa(`Unsupported field value: ${ox(e)}`)}(e,t)}function o1(e,t){let n={};return rv(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):rg(e,(e,r)=>{let i=o0(r,t.ea(e));null!=i&&(n[e]=i)}),{mapValue:{fields:n}}}function o2(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof rn||e instanceof oV||e instanceof oF||e instanceof oS||e instanceof oU)}function o3(e,t,n){if(!o2(n)||!("object"==typeof n&&null!==n&&(Object.getPrototypeOf(n)===Object.prototype||null===Object.getPrototypeOf(n)))){let r=ox(n);throw"an object"===r?t.oa(e+" a custom object"):t.oa(e+" "+r)}}function o5(e,t,n){if((t=(0,m.m9)(t))instanceof oM)return t._internalPath;if("string"==typeof t)return o6(e,t);throw o7("Field path arguments must be of type string or ",e,!1,void 0,n)}let o4=RegExp("[~\\*/\\[\\]]");function o6(e,t,n){if(t.search(o4)>=0)throw o7(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new oM(...t.split("."))._internalPath}catch(r){throw o7(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function o7(e,t,n,r,i){let a=r&&!r.isEmpty(),s=void 0!==i,o=`Function ${t}() called with invalid data`;n&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(a||s)&&(l+=" (found",a&&(l+=` in field ${r}`),s&&(l+=` in document ${i}`),l+=")"),new n0(nJ.INVALID_ARGUMENT,o+e+l)}function o8(e,t){return e.some(e=>e.isEqual(t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class o9{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new oS(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){let e=new le(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){let t=this._document.data.field(lt("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class le extends o9{data(){return super.data()}}function lt(e,t){return"string"==typeof t?o6(e,t):t instanceof oM?t._internalPath:t._delegate._internalPath}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ln{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class lr extends o9{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new li(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let n=this._document.data.field(lt("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class li extends lr{data(e={}){return super.data(e)}}class la{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new ln(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new li(this._firestore,this._userDataWriter,n.key,n,new ln(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new n0(nJ.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>({type:"added",doc:new li(e._firestore,e._userDataWriter,n.doc.key,n.doc,new ln(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter),oldIndex:-1,newIndex:t++}))}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{let r=new li(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ln(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,a=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(a=(n=n.add(t.doc)).indexOf(t.doc.key)),{type:function(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return nX()}}(t.type),doc:r,oldIndex:i,newIndex:a}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ls(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new n0(nJ.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class lo{}function ll(e,...t){for(let n of t)e=n._apply(e);return e}class lu extends lo{constructor(e,t,n){super(),this.fa=e,this.da=t,this._a=n,this.type="where"}_apply(e){let t=oW(e.firestore),n=function(e,t,n,r,i,a,s){let o;if(i.isKeyField()){if("array-contains"===a||"array-contains-any"===a)throw new n0(nJ.INVALID_ARGUMENT,`Invalid Query. You can't perform '${a}' queries on documentId().`);if("in"===a||"not-in"===a){ly(s,a);let t=[];for(let n of s)t.push(lv(r,e,n));o={arrayValue:{values:t}}}else o=lv(r,e,s)}else"in"!==a&&"not-in"!==a&&"array-contains-any"!==a||ly(s,a),o=oJ(n,t,s,"in"===a||"not-in"===a);let l=r3.create(i,a,o);return function(e,t){if(t.ht()){let n=id(e);if(null!==n&&!n.isEqual(t.field))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${n.toString()}' and '${t.field.toString()}'`);let r=ic(e);null!==r&&l_(e,t.field,r)}let n=function(e,t){for(let n of e.filters)if(t.indexOf(n.op)>=0)return n.op;return null}(e,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new n0(nJ.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new n0(nJ.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${n.toString()}' filters.`)}(e,l),l}(e._query,"where",t,e.firestore._databaseId,this.fa,this.da,this._a);return new oC(e.firestore,e.converter,function(e,t){let n=e.filters.concat([t]);return new io(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}(e._query,n))}}function lc(e,t,n){let r=lt("where",e);return new lu(r,t,n)}class ld extends lo{constructor(e,t){super(),this.fa=e,this.wa=t,this.type="orderBy"}_apply(e){let t=function(e,t,n){if(null!==e.startAt)throw new n0(nJ.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new n0(nJ.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");let r=new ii(t,n);return function(e,t){if(null===ic(e)){let n=id(e);null!==n&&l_(e,n,t.field)}}(e,r),r}(e._query,this.fa,this.wa);return new oC(e.firestore,e.converter,function(e,t){let n=e.explicitOrderBy.concat([t]);return new io(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function lh(e,t="asc"){let n=lt("orderBy",e);return new ld(n,t)}class lf extends lo{constructor(e,t,n){super(),this.type=e,this.ma=t,this.ga=n}_apply(e){return new oC(e.firestore,e.converter,ig(e._query,this.ma,this.ga))}}function lp(e){return function(e,t){if(t<=0)throw new n0(nJ.INVALID_ARGUMENT,`Function ${e}() requires a positive number, but it was: ${t}.`)}("limit",e),new lf("limit",e,"F")}class lm extends lo{constructor(e,t,n){super(),this.type=e,this.ya=t,this.pa=n}_apply(e){var t;let n=function(e,t,n,r){if(n[0]=(0,m.m9)(n[0]),n[0]instanceof o9)return function(e,t,n,r,i){if(!r)throw new n0(nJ.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${n}().`);let a=[];for(let n of ip(e))if(n.field.isKeyField())a.push(rq(t,r.key));else{let e=r.data.field(n.field);if(rR(e))throw new n0(nJ.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+n.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){let e=n.field.canonicalString();throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}a.push(e)}return new ir(a,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{let i=oW(e.firestore);return function(e,t,n,r,i,a){let s=e.explicitOrderBy;if(i.length>s.length)throw new n0(nJ.INVALID_ARGUMENT,`Too many arguments provided to ${r}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);let o=[];for(let a=0;a<i.length;a++){let l=i[a];if(s[a].field.isKeyField()){if("string"!=typeof l)throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof l}`);if(!ih(e)&&-1!==l.indexOf("/"))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${l}' contains a slash.`);let n=e.path.child(ra.fromString(l));if(!rl.isDocumentKey(n))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${n}' is not because it contains an odd number of segments.`);let i=new rl(n);o.push(rq(t,i))}else{let e=oJ(n,r,l);o.push(e)}}return new ir(o,a)}(e._query,e.firestore._databaseId,i,t,n,r)}}(e,this.type,this.ya,this.pa);return new oC(e.firestore,e.converter,(t=e._query,new io(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,n,t.endAt)))}}function lg(...e){return new lm("startAfter",e,!1)}function lv(e,t,n){if("string"==typeof(n=(0,m.m9)(n))){if(""===n)throw new n0(nJ.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!ih(t)&&-1!==n.indexOf("/"))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);let r=t.path.child(ra.fromString(n));if(!rl.isDocumentKey(r))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return rq(e,new rl(r))}if(n instanceof oS)return rq(e,n._key);throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${ox(n)}.`)}function ly(e,t){if(!Array.isArray(e)||0===e.length)throw new n0(nJ.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`);if(e.length>10)throw new n0(nJ.INVALID_ARGUMENT,`Invalid Query. '${t.toString()}' filters support a maximum of 10 elements in the value array.`)}function l_(e,t,n){if(!n.isEqual(t))throw new n0(nJ.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${t.toString()}' and so you must also use '${t.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${n.toString()}' instead.`)}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let lb={maxAttempts:5};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class lx{convertValue(e,t="none"){switch(rM(e)){case 0:return null;case 1:return e.booleanValue;case 2:return rT(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(rI(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw nX()}}convertObject(e,t){let n={};return rg(e.fields,(e,r)=>{n[e]=this.convertValue(r,t)}),n}convertGeoPoint(e){return new oV(rT(e.latitude),rT(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":let n=function e(t){let n=t.mapValue.fields.__previous_value__;return rR(n)?e(n):n}(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(rj(e));default:return null}}convertTimestamp(e){let t=rC(e);return new rn(t.seconds,t.nanos)}convertDocumentKey(e,t){let n=ra.fromString(e);aE(n)||nX();let r=new rD(n.get(1),n.get(3)),i=new rl(n.popFirst(5));return r.isEqual(t)||nG(`Document ${i} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),i}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function lw(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}class lk extends lx{constructor(e){super(),this.firestore=e}convertBytes(e){return new oF(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new oS(this.firestore,null,t)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class lE{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=oW(e)}set(e,t,n){this._verifyNotCommitted();let r=lS(e,this._firestore),i=lw(r.converter,t,n),a=o$(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(a.toMutation(r._key,iM.none())),this}update(e,t,n,...r){let i;this._verifyNotCommitted();let a=lS(e,this._firestore);return i="string"==typeof(t=(0,m.m9)(t))||t instanceof oM?oX(this._dataReader,"WriteBatch.update",a._key,t,n,r):oQ(this._dataReader,"WriteBatch.update",a._key,t),this._mutations.push(i.toMutation(a._key,iM.exists(!0))),this}delete(e){this._verifyNotCommitted();let t=lS(e,this._firestore);return this._mutations=this._mutations.concat(new iW(t._key,iM.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new n0(nJ.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function lS(e,t){if((e=(0,m.m9)(e)).firestore!==t)throw new n0(nJ.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function lC(e){e=ow(e,oS);let t=ow(e.firestore,oD);return(function(e,t,n={}){let r=new n1;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,n,r,i){let a=new ol({next:a=>{t.enqueueAndForget(()=>sB(e,s));let o=a.docs.has(n);!o&&a.fromCache?i.reject(new n0(nJ.UNAVAILABLE,"Failed to get document because the client is offline.")):o&&a.fromCache&&r&&"server"===r.source?i.reject(new n0(nJ.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(a)},error:e=>i.reject(e)}),s=new sH(il(n.path),a,{includeMetadataChanges:!0,Du:!0});return sV(e,s)})(await og(e),e.asyncQueue,t,n,r)),r.promise})(oN(t),e._key).then(n=>lN(t,e,n))}class lT extends lx{constructor(e){super(),this.firestore=e}convertBytes(e){return new oF(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new oS(this.firestore,null,t)}}function lI(e){e=ow(e,oC);let t=ow(e.firestore,oD),n=oN(t),r=new lT(t);return ls(e._query),(function(e,t,n={}){let r=new n1;return e.asyncQueue.enqueueAndForget(async()=>(function(e,t,n,r,i){let a=new ol({next:n=>{t.enqueueAndForget(()=>sB(e,s)),n.fromCache&&"server"===r.source?i.reject(new n0(nJ.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:e=>i.reject(e)}),s=new sH(n,a,{includeMetadataChanges:!0,Du:!0});return sV(e,s)})(await og(e),e.asyncQueue,t,n,r)),r.promise})(n,e._query).then(n=>new la(t,r,e,n))}function lR(e,t,n){e=ow(e,oS);let r=ow(e.firestore,oD),i=lw(e.converter,t,n);return lP(r,[o$(oW(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,iM.none())])}function lj(e,t,n,...r){let i;e=ow(e,oS);let a=ow(e.firestore,oD),s=oW(a);return i="string"==typeof(t=(0,m.m9)(t))||t instanceof oM?oX(s,"updateDoc",e._key,t,n,r):oQ(s,"updateDoc",e._key,t),lP(a,[i.toMutation(e._key,iM.exists(!0))])}function lA(e){return lP(ow(e.firestore,oD),[new iW(e._key,iM.none())])}function lD(e,...t){var n,r,i;let a,s,o;e=(0,m.m9)(e);let l={includeMetadataChanges:!1},u=0;"object"!=typeof t[0]||oA(t[u])||(l=t[u],u++);let c={includeMetadataChanges:l.includeMetadataChanges};if(oA(t[u])){let e=t[u];t[u]=null===(n=e.next)||void 0===n?void 0:n.bind(e),t[u+1]=null===(r=e.error)||void 0===r?void 0:r.bind(e),t[u+2]=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}if(e instanceof oS)s=ow(e.firestore,oD),o=il(e._key.path),a={next:n=>{t[u]&&t[u](lN(s,e,n))},error:t[u+1],complete:t[u+2]};else{let n=ow(e,oC);s=ow(n.firestore,oD),o=n._query;let r=new lT(s);a={next:e=>{t[u]&&t[u](new la(s,r,n,e))},error:t[u+1],complete:t[u+2]},ls(e._query)}return function(e,t,n,r){let i=new ol(r),a=new sH(t,i,n);return e.asyncQueue.enqueueAndForget(async()=>sV(await og(e),a)),()=>{i.Tc(),e.asyncQueue.enqueueAndForget(async()=>sB(await og(e),a))}}(oN(s),o,c,a)}function lP(e,t){return function(e,t){let n=new n1;return e.asyncQueue.enqueueAndForget(async()=>s1(await om(e).then(e=>e.syncEngine),t,n)),n.promise}(oN(e),t)}function lN(e,t,n){let r=n.docs.get(t._key),i=new lT(e);return new lr(e,i,t._key,r,new ln(n.hasPendingWrites,n.fromCache),t.converter)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class lL extends class{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=oW(e)}get(e){let t=lS(e,this._firestore),n=new lk(this._firestore);return this._transaction.lookup([t._key]).then(e=>{if(!e||1!==e.length)return nX();let r=e[0];if(r.isFoundDocument())return new o9(this._firestore,n,r.key,r,t.converter);if(r.isNoDocument())return new o9(this._firestore,n,t._key,null,t.converter);throw nX()})}set(e,t,n){let r=lS(e,this._firestore),i=lw(r.converter,t,n),a=o$(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,a),this}update(e,t,n,...r){let i;let a=lS(e,this._firestore);return i="string"==typeof(t=(0,m.m9)(t))||t instanceof oM?oX(this._dataReader,"Transaction.update",a._key,t,n,r):oQ(this._dataReader,"Transaction.update",a._key,t),this._transaction.update(a._key,i),this}delete(e){let t=lS(e,this._firestore);return this._transaction.delete(t._key),this}}{constructor(e,t){super(e,t),this._firestore=e}get(e){let t=lS(e,this._firestore),n=new lT(this._firestore);return super.get(e).then(e=>new lr(this._firestore,n,t._key,e._document,new ln(!1,!1),t.converter))}}function lM(e,t,n){e=ow(e,oD);let r=Object.assign(Object.assign({},lb),n);return!function(e){if(e.maxAttempts<1)throw new n0(nJ.INVALID_ARGUMENT,"Max attempts must be at least 1")}(r),function(e,t,n){let r=new n1;return e.asyncQueue.enqueueAndForget(async()=>{let i=await om(e).then(e=>e.datastore);new oc(e.asyncQueue,i,n,t,r).run()}),r.promise}(oN(e),n=>t(new lL(e,n)),r)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function lO(){return new oG("deleteField")}function lF(){return new oY("serverTimestamp")}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function lU(e){return oN(e=ow(e,oD)),new lE(e,t=>lP(e,t))}!function(e,t=!0){nH=h.Jn,(0,h.Xd)(new f.wA("firestore",(e,{options:n})=>{let r=e.getProvider("app").getImmediate(),i=new oD(r,new n5(e.getProvider("auth-internal")),new n8(e.getProvider("app-check-internal")));return n=Object.assign({useFetchStreams:t},n),i._setSettings(n),i},"PUBLIC")),(0,h.KN)(nZ,"3.4.14",void 0),(0,h.KN)(nZ,"3.4.14","esm2017")}()},29901:function(e,t,n){"use strict";n.d(t,{$s:function(){return D},BH:function(){return u},L:function(){return o},LL:function(){return w},Mn:function(){return v},Sg:function(){return c},ZR:function(){return x},b$:function(){return p},d:function(){return m},eu:function(){return _},hl:function(){return y},m9:function(){return P},ne:function(){return R},pd:function(){return I},ru:function(){return f},tV:function(){return l},uI:function(){return h},vZ:function(){return function e(t,n){if(t===n)return!0;let r=Object.keys(t),i=Object.keys(n);for(let a of r){if(!i.includes(a))return!1;let r=t[a],s=n[a];if(S(r)&&S(s)){if(!e(r,s))return!1}else if(r!==s)return!1}for(let e of i)if(!r.includes(e))return!1;return!0}},w1:function(){return g},xO:function(){return C},xb:function(){return E},z$:function(){return d},zI:function(){return b},zd:function(){return T}});/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let r=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):(64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},i=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){let a=e[n++],s=e[n++],o=e[n++],l=((7&i)<<18|(63&a)<<12|(63&s)<<6|63&o)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(1023&l))}else{let a=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")},a={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){let i=e[t],a=t+1<e.length,s=a?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,u=i>>2,c=(3&i)<<4|s>>4,d=(15&s)<<2|l>>6,h=63&l;o||(h=64,a||(d=64)),r.push(n[u],n[c],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):i(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],a=t<e.length,s=a?n[e.charAt(t)]:0;++t;let o=t<e.length,l=o?n[e.charAt(t)]:64;++t;let u=t<e.length,c=u?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==l||null==c)throw Error();let d=i<<2|s>>4;if(r.push(d),64!==l){let e=s<<4&240|l>>2;if(r.push(e),64!==c){let e=l<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},s=function(e){let t=r(e);return a.encodeByteArray(t,!0)},o=function(e){return s(e).replace(/\./g,"")},l=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class u{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function c(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let a=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[o(JSON.stringify({alg:"none",type:"JWT"})),o(JSON.stringify(a)),""].join(".")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function h(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())}function f(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function p(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function m(){return d().indexOf("Electron/")>=0}function g(){let e=d();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function v(){return d().indexOf("MSAppHost/")>=0}function y(){return"object"==typeof indexedDB}function _(){return new Promise((e,t)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}function b(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}class x extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,x.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,w.prototype.create)}}class w{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){let n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?i.replace(k,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`}):"Error",s=`${this.serviceName}: ${a} (${r}).`,o=new x(r,s,n);return o}}let k=/\{\$([^}]+)}/g;function E(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function S(e){return null!==e&&"object"==typeof e}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function C(e){let t=[];for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function T(e){let t={},n=e.replace(/^\?/,"").split("&");return n.forEach(e=>{if(e){let[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function I(e){let t=e.indexOf("?");if(!t)return"";let n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function R(e,t){let n=new j(e,t);return n.subscribe.bind(n)}class j{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw Error("Missing Observer.");void 0===(r=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:n}:e).next&&(r.next=A),void 0===r.error&&(r.error=A),void 0===r.complete&&(r.complete=A);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function A(){}function D(e,t=1e3,n=2){let r=t*Math.pow(n,e);return Math.min(144e5,r+Math.round(.5*r*(Math.random()-.5)*2))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function P(e){return e&&e._delegate?e._delegate:e}},37891:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},24708:function(e,t,n){"use strict";n.d(t,{GJ:function(){return u},ME:function(){return m},aB:function(){return p},dr:function(){return f}});var r=n(60074),i=n(66885),a=n(43527),s=n(67451),o=n(48894),l=n(39109);function u(e,t){let n=d(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function c(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(h.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let h=/Minified React error #\d+;/i;function f(e,t,n,r){let i=n&&n.syntheticException||void 0,a=m(e,t,i,r);return(0,s.EG)(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),(0,o.WD)(a)}function p(e,t,n="info",r,i){let a=r&&r.syntheticException||void 0,s=g(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,o.WD)(s)}function m(e,t,n,o,u){let h;if((0,i.VW)(t)&&t.error)return c(e,t.error);if((0,i.TX)(t)||(0,i.fm)(t)){if("stack"in t)h=c(e,t);else{let r=t.name||((0,i.TX)(t)?"DOMError":"DOMException"),a=t.message?`${r}: ${t.message}`:r;h=g(e,a,n,o),(0,s.Db)(h,a)}return"code"in t&&(h.tags={...h.tags,"DOMException.code":`${t.code}`}),h}return(0,i.VZ)(t)?c(e,t):(0,i.PO)(t)||(0,i.cO)(t)?(h=function(e,t,n,s){let o=(0,r.s3)(),u=o&&o.getOptions().normalizeDepth,c={exception:{values:[{type:(0,i.cO)(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,l.zf)(e),r=t?"promise rejection":"exception";if((0,i.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,i.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:s})}]},extra:{__serialized__:(0,a.Qy)(t,u)}};if(n){let t=d(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,u),(0,s.EG)(h,{synthetic:!0}),h):(h=g(e,t,n,o),(0,s.Db)(h,`${t}`,void 0),(0,s.EG)(h,{synthetic:!0}),h)}function g(e,t,n,r){let a={};if(r&&n){let r=d(e,n);r.length&&(a.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,i.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}},51197:function(e,t,n){"use strict";n.d(t,{Wz:function(){return u},m9:function(){return o},re:function(){return function e(t,n={},i){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,a.HK)(t))return t}catch(e){return t}let o=function(){let a=Array.prototype.slice.call(arguments);try{i&&"function"==typeof i&&i.apply(this,arguments);let r=a.map(t=>e(t,n));return t.apply(this,r)}catch(e){throw l++,setTimeout(()=>{l--}),(0,r.$e)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,s.Db)(e,void 0,void 0),(0,s.EG)(e,n.mechanism)),e.extra={...e.extra,arguments:a},e)),(0,r.Tb)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(e){}(0,a.$Q)(o,t),(0,a.xp)(t,"__sentry_wrapped__",o);try{let e=Object.getOwnPropertyDescriptor(o,"name");e.configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch(e){}return o}}});var r=n(60074),i=n(74211),a=n(39109),s=n(67451);let o=i.n2,l=0;function u(){return l>0}},40613:function(e,t,n){"use strict";let r,i,a;n.d(t,{O:function(){return R},f:function(){return I}});var s=n(99354),o=n(60074),l=n(86922),u=n(39109),c=n(74211),d=n(2145);function h(){"console"in c.n2&&l.RU.forEach(function(e){e in c.n2.console&&(0,u.hl)(c.n2.console,e,function(t){return l.LD[e]=t,function(...t){(0,d.rK)("console",{args:t,level:e});let n=l.LD[e];n&&n.apply(c.n2.console,t)}})})}var f=n(67451);let p=c.n2;function m(){if(!p.document)return;let e=d.rK.bind(null,"dom"),t=g(e,!0);p.document.addEventListener("click",t,!1),p.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=p[t]&&p[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){let r=g(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,u.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function g(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let s=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!s||!s.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable))return;(0,u.xp)(n,"_sentryCaptured",!0),s&&!s._sentryId&&(0,u.xp)(s,"_sentryId",(0,f.DM)());let o="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}(n)&&(e({event:n,name:o,global:t}),i=n.type,a=s?s._sentryId:void 0),clearTimeout(r),r=p.setTimeout(()=>{a=void 0,i=void 0},1e3)}}var v=n(26405),y=n(24410),_=n(63950),b=n(61495);let x=["fatal","error","warning","log","info","debug"];var w=n(65268),k=n(94678),E=n(37891),S=n(51197);let C="Breadcrumbs",T=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:C,setupOnce(){},setup(e){var n;t.console&&function(e){let t="console";(0,d.Hj)(t,e),(0,d.D2)(t,h)}(function(t){var n;if((0,o.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":x.includes(n)?n:"log",message:(0,w.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,w.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,o.n_)(r,{input:t.args,level:t.level})}),t.dom&&(n=t.dom,(0,d.Hj)("dom",function(t){let r,i;if((0,o.s3)()!==e)return;let a="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>1024&&(E.X&&l.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof a&&(a=[a]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,b.Rt)(n,{keyAttrs:a,maxStringLength:s}),i=(0,b.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let u={category:`ui.${t.name}`,message:r};i&&(u.data={"ui.component_name":i}),(0,o.n_)(u,{event:t.event,name:t.name,global:t.global})}),(0,d.D2)("dom",m)),t.xhr&&(0,v.UK)(function(t){if((0,o.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[v.xU];if(!n||!r||!i)return;let{method:a,url:s,status_code:l,body:u}=i,c={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,o.n_)({category:"xhr",data:{method:a,url:s,status_code:l},type:"http"},c)}),t.fetch&&(0,y.U)(function(t){if((0,o.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,o.n_)({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,o.n_)({category:"fetch",data:i,type:"http"},a)}}}),t.history&&(0,_.a)(function(t){if((0,o.s3)()!==e)return;let n=t.from,r=t.to,i=(0,k.en)(S.m9.location.href),a=n?(0,k.en)(n):void 0,s=(0,k.en)(r);a&&a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),(0,o.n_)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on&&e.on("beforeSendEvent",function(t){(0,o.s3)()===e&&(0,o.n_)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,f.jH)(t)},{event:t})})}}},I=(0,s._I)(T),R=(0,s.RN)(C,I)},12836:function(e,t,n){"use strict";n.d(t,{I:function(){return u},R:function(){return l}});var r=n(99354),i=n(86922),a=n(37891);let s="Dedupe",o=()=>{let e;return{name:s,setupOnce(){},processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&d(e,t)&&c(e,t))}(t,n)||function(e,t){let n=h(t),r=h(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&d(e,t)&&c(e,t))}(t,n)))return a.X&&i.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},l=(0,r._I)(o),u=(0,r.RN)(s,l);function c(e,t){let n=f(e),r=f(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function d(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function h(e){return e.exception&&e.exception.values&&e.exception.values[0]}function f(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}},35519:function(e,t,n){"use strict";n.d(t,{d:function(){return g},k:function(){return m}});var r=n(99354),i=n(60074),a=n(79353),s=n(66885),o=n(17400),l=n(61495),u=n(86922),c=n(37891),d=n(24708),h=n(51197);let f="GlobalHandlers",p=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:f,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&((0,a.V)(t=>{let{stackParser:n,attachStacktrace:r}=_();if((0,i.s3)()!==e||(0,h.Wz)())return;let{msg:a,url:o,line:l,column:u,error:c}=t,f=void 0===c&&(0,s.HD)(a)?function(e,t,n,r){let i=(0,s.VW)(e)?e.message:e,a="Error",o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(a=o[1],i=o[2]);let l={exception:{values:[{type:a,value:i}]}};return v(l,t,n,r)}(a,o,l,u):v((0,d.ME)(n,c||a,void 0,r,!1),o,l,u);f.level="error",(0,i.eN)(f,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),y("onerror")),t.onunhandledrejection&&((0,o.h)(t=>{let{stackParser:n,attachStacktrace:r}=_();if((0,i.s3)()!==e||(0,h.Wz)())return;let a=function(e){if((0,s.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=(0,s.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:(0,d.ME)(n,a,void 0,r,!0);o.level="error",(0,i.eN)(o,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})}),y("onunhandledrejection"))}}},m=(0,r._I)(p),g=(0,r.RN)(f,m);function v(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},u=o.stacktrace=o.stacktrace||{},c=u.frames=u.frames||[],d=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(n,10))?void 0:n,f=(0,s.HD)(t)&&t.length>0?t:(0,l.l4)();return 0===c.length&&c.push({colno:d,filename:f,function:"?",in_app:!0,lineno:h}),e}function y(e){c.X&&u.kg.log(`Global Handler attached: ${e}`)}function _(){let e=(0,i.s3)(),t=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return t}},21680:function(e,t,n){"use strict";n.d(t,{q:function(){return l},s:function(){return o}});var r=n(99354),i=n(51197);let a="HttpContext",s=()=>({name:a,setupOnce(){},preprocessEvent(e){if(!i.m9.navigator&&!i.m9.location&&!i.m9.document)return;let t=e.request&&e.request.url||i.m9.location&&i.m9.location.href,{referrer:n}=i.m9.document||{},{userAgent:r}=i.m9.navigator||{},a={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:a};e.request=s}}),o=(0,r._I)(s),l=(0,r.RN)(a,o)},97373:function(e,t,n){"use strict";n.d(t,{O:function(){return l},i:function(){return u}});var r=n(99354),i=n(18401),a=n(24708);let s="LinkedErrors",o=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:s,setupOnce(){},preprocessEvent(e,r,s){let o=s.getOptions();(0,i.Z)(a.GJ,o.stackParser,o.maxValueLength,n,t,e,r)}}},l=(0,r._I)(o),u=(0,r.RN)(s,l)},34183:function(e,t,n){"use strict";n.d(t,{p:function(){return d},t:function(){return c}});var r=n(99354),i=n(39109),a=n(55514),s=n(51197);let o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],l="TryCatch",u=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:l,setupOnce(){t.setTimeout&&(0,i.hl)(s.m9,"setTimeout",h),t.setInterval&&(0,i.hl)(s.m9,"setInterval",h),t.requestAnimationFrame&&(0,i.hl)(s.m9,"requestAnimationFrame",f),t.XMLHttpRequest&&"XMLHttpRequest"in s.m9&&(0,i.hl)(XMLHttpRequest.prototype,"send",p);let e=t.eventTarget;if(e){let t=Array.isArray(e)?e:o;t.forEach(m)}}}},c=(0,r._I)(u),d=(0,r.RN)(l,c);function h(e){return function(...t){let n=t[0];return t[0]=(0,s.re)(n,{mechanism:{data:{function:(0,a.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function f(e){return function(t){return e.apply(this,[(0,s.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,a.$P)(e)},handled:!1,type:"instrument"}})])}}function p(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,i.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,a.$P)(t)},handled:!1,type:"instrument"}},r=(0,i.HK)(t);return r&&(n.mechanism.data.handler=(0,a.$P)(r)),(0,s.re)(t,n)})}),e.apply(this,t)}}function m(e){let t=s.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,i.hl)(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,s.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,a.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,s.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,a.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,i.hl)(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}},33190:function(e,t,n){"use strict";let r;n.d(t,{nV:function(){return er},S1:function(){return ei},jp:function(){return ea}});var i=n(37107),a=n(14979),s=n(99354),o=n(86922),l=n(52017),u=n(60074),c=n(6878),d=n(39109),h=n(73166);function f(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}var p=n(55514),m=n(83589),g=n(63950),v=n(67451),y=n(66885),_=n(48894),b=n(73285);class x extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var w=n(89015),k=n(99349),E=n(53010);let S="Not capturing exception because it's already been captured.";class C{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,h.vK)(e.dsn):l.X&&o.kg.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){let n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${f(e)}${e.projectId}/envelope/?${(0,d._j)({sentry_key:e.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,v.YO)(e)){l.X&&o.kg.log(S);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=(0,y.Le)(e)?e:String(e),s=(0,y.pt)(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(s.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,v.YO)(t.originalException)){l.X&&o.kg.log(S);return}let r=t&&t.event_id,i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope;return this._process(this._captureEvent(e,t,a||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?l.X&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,w.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,_.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return l.X&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];(0,s.m7)(this,e,this._integrations),t||(0,s.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i,a;let s=(0,b.HY)(n),o=e.type&&"replay_event"!==e.type?e.type:"event";i=e,(a=n&&n.sdk)&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||a.name,i.sdk.version=i.sdk.version||a.version,i.sdk.integrations=[...i.sdk.integrations||[],...a.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...a.packages||[]]);let l=(0,b.Cd)(e,s,r,t);delete e.sdkProcessingMetadata;let u=[{type:o},e];return(0,b.Jd)(l,[u])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,b.BO)(n,(0,b.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=(0,b.HY)(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,h.RA)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,b.Jd)(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;l.X&&o.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){l.X&&o.kg.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=function(e,t,n,r){let i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=(0,h.RA)(t));let a=function(e){let t=function(e){let t="";for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}
`}return t}(e),n={type:"statsd",length:t.length};return[n,t]}(e);return(0,b.Jd)(i,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=(0,s.q4)(this,e),(0,s.uf)(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let a="ok"===e.status,s=a&&0===e.errors||a&&n;s&&((0,w.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new _.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,c.aF)()){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),(0,E.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=e.contexts&&e.contexts.trace;if(!i&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts};let o=s||(0,k._)(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{l.X&&("log"===e.logLevel?o.kg.log(e.message):o.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=I(e),s=T(e),o=e.type||"error",l=`before send for type \`${o}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,_.$2)(new x(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o,c=e.sdkProcessingMetadata||{},d=c.capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new x("An event processor returned `null`, will not send event.","log");let i=t.data&&!0===t.data.__sentry__;if(i)return n;let a=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return T(t)&&r?r(t,n):I(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,y.J8)(e))return e.then(e=>{if(!(0,y.PO)(e)&&null!==e)throw new x(n);return e},e=>{throw new x(`${t} rejected with ${e}`)});if(!(0,y.PO)(e)&&null!==e)throw new x(n);return e}(a,l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new x(`${l} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);let s=r.transaction_info;return a&&s&&r.transaction!==e.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof x)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new x(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{l.X&&o.kg.error("Error while sending event:",e)});l.X&&o.kg.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function T(e){return void 0===e.type}function I(e){return"transaction"===e.type}var R=n(50432),j=n(94180),A=n(37891),D=n(24708),P=n(51197);class N extends C{constructor(e){let t=P.m9.SENTRY_SDK_SOURCE||"npm";(0,R.V)(e,"browser",["browser"],t),super(e),e.sendClientReports&&P.m9.document&&P.m9.document.addEventListener("visibilitychange",()=>{"hidden"===P.m9.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return(0,D.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return(0,D.aB)(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){A.X&&o.kg.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,h.RA)(r)}};return(0,b.Jd)(i,[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length){A.X&&o.kg.log("No outcomes to send");return}if(!this._dsn){A.X&&o.kg.log("No dsn provided, will not send outcomes");return}A.X&&o.kg.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,j.yW)(),discarded_events:e}];return(0,b.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,h.RA)(this._dsn));this._sendEnvelope(t)}}var L=n(40613),M=n(12836),O=n(35519),F=n(21680),U=n(97373),V=n(34183);function B(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let q=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Z=/\((\S*)(?::(\d+))(?::(\d+))\)/,z=e=>{let t=q.exec(e);if(t){let e=t[2]&&0===t[2].indexOf("eval");if(e){let e=Z.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[n,r]=Q(t[1]||"?",t[2]);return B(r,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},H=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,K=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,W=e=>{let t=H.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=K.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let n=t[3],r=t[1]||"?";return[r,n]=Q(r,n),B(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,G=e=>{let t=$.exec(e);return t?B(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},Y=(0,p.pE)(...[[30,z],[50,W],[40,G]]),Q=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function X(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,_.$2)(new x("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new _.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,_.WD)(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={},i=e=>n.drain(e);function a(i){let a=[];if((0,b.gv)(i,(t,n)=>{let i=(0,b.mL)(n);if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=J(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)}),0===a.length)return(0,_.WD)();let s=(0,b.Jd)(i[0],a),u=t=>{(0,b.gv)(s,(n,r)=>{let i=J(n,r);e.recordDroppedEvent(t,(0,b.mL)(r),i)})},c=()=>t({body:(0,b.V$)(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&l.X&&o.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,a]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=r+o):i[e]=r+o;else i.all=r+o}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw u("network_error"),e});return n.add(c).then(e=>e,e=>{if(e instanceof x)return l.X&&o.kg.error("Skipped sending event because buffer is full."),u("queue_overflow"),(0,_.WD)();throw e})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function J(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function ee(e,t=function(){if(r)return r;if((0,m.Du)(P.m9.fetch))return r=P.m9.fetch.bind(P.m9);let e=P.m9.document,t=P.m9.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){A.X&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return r=t.bind(P.m9)}()){let n=0,i=0;return X(e,function(a){let s=a.body.length;n+=s,i++;let o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,o).then(e=>(n-=s,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return r=void 0,n-=s,i--,(0,_.$2)(e)}})}function et(e){return X(e,function(t){return new _.cW((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let en=[(0,i.S)(),(0,a.C)(),(0,V.t)(),(0,L.f)(),(0,O.k)(),(0,U.O)(),(0,M.R)(),(0,F.s)()];function er(e){return[...en]}function ei(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=er()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),P.m9.SENTRY_RELEASE&&P.m9.SENTRY_RELEASE.id&&(e.release=P.m9.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let t={...e,stackParser:(0,p.Sq)(e.stackParser||Y),integrations:(0,s.m8)(e),transport:e.transport||((0,m.Ak)()?ee:et)};!function(e,t){!0===t.debug&&(l.X?o.kg.enable():(0,o.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,u.nZ)();n.update(t.initialScope);let r=new e(t);(function(e){let t=(0,c.Gd)(),n=t.getStackTop();n.client=e,n.scope.setClient(e)})(r),r.init?r.init():r.setupIntegrations&&r.setupIntegrations()}(N,t),e.autoSessionTracking&&function(){if(void 0===P.m9.document){A.X&&o.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,u.yj)({ignoreDuration:!0}),(0,u.cg)(),(0,g.a)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,u.yj)({ignoreDuration:!0}),(0,u.cg)())})}()}let ea=(e={},t=(0,c.Gd)())=>{if(!P.m9.document){A.X&&o.kg.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){A.X&&o.kg.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());let a=P.m9.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(e,t){let n=(0,h.vK)(e);if(!n)return"";let r=`${f(n)}embed/error-page/`,i=`dsn=${(0,h.RA)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}(i,e),e.onLoad&&(a.onload=e.onLoad);let{onClose:s}=e;if(s){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{P.m9.removeEventListener("message",e)}};P.m9.addEventListener("message",e)}let l=P.m9.document.head||P.m9.document.body;l?l.appendChild(a):A.X&&o.kg.error("Not injecting report dialog. No injection point found in HTML")}},99330:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},52017:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},70133:function(e,t,n){"use strict";n.d(t,{RP:function(){return function e(t,n,r,l=0){return new i.cW((i,u)=>{let c=t[l];if(null===n||"function"!=typeof c)i(n);else{let d=c({...n},r);o.X&&c.id&&null===d&&a.kg.log(`Event processor "${c.id}" dropped event`),(0,s.J8)(d)?d.then(n=>e(t,n,r,l+1).then(i)).then(null,u):e(t,d,r,l+1).then(i).then(null,u)}})}},cc:function(){return u},fH:function(){return l}});var r=n(74211),i=n(48894),a=n(86922),s=n(66885),o=n(52017);function l(){return(0,r.YO)("globalEventProcessors",()=>[])}function u(e){l().push(e)}},60074:function(e,t,n){"use strict";n.d(t,{$e:function(){return h},Tb:function(){return l},av:function(){return d},cg:function(){return y},eN:function(){return u},nZ:function(){return p},n_:function(){return c},s3:function(){return f},yj:function(){return m}});var r=n(74211),i=n(99330),a=n(6878),s=n(89015),o=n(53010);function l(e,t){return(0,a.Gd)().captureException(e,(0,o.U0)(t))}function u(e,t){return(0,a.Gd)().captureEvent(e,t)}function c(e,t){(0,a.Gd)().addBreadcrumb(e,t)}function d(e){(0,a.Gd)().setUser(e)}function h(...e){let t=(0,a.Gd)();if(2===e.length){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function f(){return(0,a.Gd)().getClient()}function p(){return(0,a.Gd)().getScope()}function m(e){let t=f(),n=(0,a.aF)(),o=p(),{release:l,environment:u=i.J}=t&&t.getOptions()||{},{userAgent:c}=r.n2.navigator||{},d=(0,s.Hv)({release:l,environment:u,user:o.getUser()||n.getUser(),...c&&{userAgent:c},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,s.CT)(h,{status:"exited"}),g(),n.setSession(d),o.setSession(d),d}function g(){let e=(0,a.aF)(),t=p(),n=t.getSession()||e.getSession();n&&(0,s.RJ)(n),v(),e.setSession(),t.setSession()}function v(){let e=(0,a.aF)(),t=p(),n=f(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function y(e=!1){if(e){g();return}v()}},6878:function(e,t,n){"use strict";n.d(t,{Gd:function(){return v},aF:function(){return y},cu:function(){return m}});var r=n(66885),i=n(67451),a=n(94180),s=n(86922),o=n(74211),l=n(99330),u=n(52017),c=n(25516),d=n(89015),h=n(37486);let f=parseFloat(h.J);class p{constructor(e,t,n,r=f){let i,a;this._version=r,t?i=t:(i=new c.sX).setClient(e),n?a=n:(a=new c.sX).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return(0,r.J8)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:(0,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),a=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,i.DM)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let l=(0,a.yW)(),u={timestamp:l,...e},c=i?(0,s.Cf)(()=>i(u,t)):u;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=g(this);try{e(this)}finally{g(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return u.X&&s.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(u.X&&!n){let e=this.getClient();e?s.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):s.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e.scope,n=t.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=l.J}=n&&n.getOptions()||{},{userAgent:a}=o.n2.navigator||{},s=(0,d.Hv)({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,d.CT)(u,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=m(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);u.X&&s.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function m(){return o.n2.__SENTRY__=o.n2.__SENTRY__||{extensions:{},hub:void 0},o.n2}function g(e){let t=m(),n=_(t);return b(t,e),n}function v(){let e=m();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=m()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||_(e).isOlderThan(f))&&b(e,new p),_(e)}(e)}function y(){return v().getIsolationScope()}function _(e){return(0,o.YO)("hub",()=>new p,e)}function b(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}},99354:function(e,t,n){"use strict";n.d(t,{RN:function(){return f},_I:function(){return p},m7:function(){return h},m8:function(){return u},q4:function(){return c},uf:function(){return d}});var r=n(67451),i=n(86922),a=n(52017),s=n(70133),o=n(6878);let l=[];function u(e){let t;let n=e.defaultIntegrations||[],i=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(i)?[...n,...i]:"function"==typeof i?(0,r.lE)(i(n)):n;let a=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),s=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(a,e=>"Debug"===e.name);if(-1!==s){let[e]=a.splice(s,1);a.push(e)}return a}function c(e,t){let n={};return t.forEach(t=>{t&&h(e,t,n)}),n}function d(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function h(e,t,n){if(n[t.name]){a.X&&i.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===l.indexOf(t.name)&&(t.setupOnce(s.cc,o.Gd),l.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}a.X&&i.kg.log(`Integration installed: ${t.name}`)}function f(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}function p(e){return e}},14979:function(e,t,n){"use strict";let r;n.d(t,{C:function(){return c},c:function(){return d}});var i=n(39109),a=n(60074),s=n(99354);let o="FunctionToString",l=new WeakMap,u=()=>({name:o,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,i.HK)(this),n=l.has((0,a.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){l.set(e,!0)}}),c=(0,s._I)(u),d=(0,s.RN)(o,c)},37107:function(e,t,n){"use strict";n.d(t,{Q:function(){return f},S:function(){return h}});var r=n(86922),i=n(67451),a=n(65268),s=n(52017),o=n(99354);let l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],u=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],c="InboundFilters",d=(e={})=>({name:c,setupOnce(){},processEvent(t,n,o){var c;let d=o.getOptions(),h=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:u],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,d);return(h.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(s.X&&r.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,i.jH)(t)}`),0):(c=h.ignoreErrors,!t.type&&c&&c.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),s.X&&0===n.length&&r.kg.error(`Could not extract message for event ${(0,i.jH)(e)}`),n})(t).some(e=>(0,a.U0)(e,c)))?(s.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,i.jH)(t)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,a.U0)(n,t)}(t,h.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=p(e);return!!n&&(0,a.U0)(n,t)}(t,h.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=p(e);return!n||(0,a.U0)(n,t)}(t,h.allowUrls)||(s.X&&r.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,i.jH)(t)}.
Url: ${p(t)}`),0):(s.X&&r.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,i.jH)(t)}.
Url: ${p(t)}`),0):(s.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,i.jH)(t)}`),0))?t:null}}),h=(0,o._I)(d),f=(0,o.RN)(c,h);function p(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return s.X&&r.kg.error(`Cannot extract url for event ${(0,i.jH)(e)}`),null}}},25516:function(e,t,n){"use strict";let r;n.d(t,{lW:function(){return h},sX:function(){return d}});var i=n(66885),a=n(94180),s=n(67451),o=n(86922),l=n(70133),u=n(89015),c=n(9408);class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(e){return e?e.clone():new d}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof d){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else(0,i.PO)(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=f(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,a.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){let e=this.getScopeData();return e.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:a,_level:s,_fingerprint:o,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:c,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:a,level:s,fingerprint:o||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:c,transactionName:d,span:h}}applyToEvent(e,t={},n=[]){(0,c.gi)(e,this.getScopeData());let r=[...n,...(0,l.fH)(),...this._eventProcessors];return(0,l.RP)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,s.DM)();if(!this._client)return o.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,s.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(o.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function h(){return r||(r=new d),r}function f(){return{traceId:(0,s.DM)(),spanId:(0,s.DM)().substring(16)}}},89015:function(e,t,n){"use strict";n.d(t,{CT:function(){return o},Hv:function(){return s},RJ:function(){return l}});var r=n(94180),i=n(67451),a=n(39109);function s(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,a.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&o(n,e),n}function o(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),o(e,n)}},99349:function(e,t,n){"use strict";n.d(t,{_:function(){return l},j:function(){return u}});var r=n(39109),i=n(99330),a=n(60074),s=n(20094),o=n(63449);function l(e,t,n){let a=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},l=(0,r.Jr)({environment:a.environment||i.J,release:a.release,user_segment:o,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function u(e){let t=(0,a.s3)();if(!t)return{};let n=l((0,o.XU)(e).trace_id||"",t,(0,a.nZ)()),r=(0,s.G)(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:u,source:c}=r.metadata;null!=u&&(n.sample_rate=`${u}`);let d=(0,o.XU)(r);return c&&"url"!==c&&(n.transaction=d.description),n.sampled=String((0,o.Tt)(r)),t.emit&&t.emit("createDsc",n),n}},9408:function(e,t,n){"use strict";n.d(t,{gi:function(){return l},yo:function(){return u}});var r=n(39109),i=n(67451),a=n(99349),s=n(20094),o=n(63449);function l(e,t){var n,l;let{fingerprint:u,span:c,breadcrumbs:d,sdkProcessingMetadata:h}=t;(function(e,t){let{extra:n,tags:i,user:a,contexts:s,level:o,transactionName:l}=t,u=(0,r.Jr)(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let c=(0,r.Jr)(i);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let d=(0,r.Jr)(a);d&&Object.keys(d).length&&(e.user={...d,...e.user});let h=(0,r.Jr)(s);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),o&&(e.level=o),l&&(e.transaction=l)})(e,t),c&&function(e,t){e.contexts={trace:(0,o.wy)(t),...e.contexts};let n=(0,s.G)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,a.j)(t),...e.sdkProcessingMetadata};let r=(0,o.XU)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,c),(n=e).fingerprint=n.fingerprint?(0,i.lE)(n.fingerprint):[],u&&(n.fingerprint=n.fingerprint.concat(u)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,d),(l=e).sdkProcessingMetadata={...l.sdkProcessingMetadata,...h}}function u(e,t){let{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:h,propagationContext:f,transactionName:p,span:m}=t;c(e,"extra",n),c(e,"tags",r),c(e,"user",i),c(e,"contexts",a),c(e,"sdkProcessingMetadata",o),s&&(e.level=s),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...f}}function c(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}},20094:function(e,t,n){"use strict";function r(e){return e.transaction}n.d(t,{G:function(){return r}})},53010:function(e,t,n){"use strict";n.d(t,{R:function(){return f},U0:function(){return m}});var r=n(67451),i=n(94180),a=n(65268),s=n(74211),o=n(43527),l=n(99330),u=n(70133),c=n(25516),d=n(9408),h=n(63449);function f(e,t,n,f,m,g){var v;let{normalizeDepth:y=3,normalizeMaxBreadth:_=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},x=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,a.$G)(e.message,s));let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,a.$G)(o.value,s));let u=e.request;u&&u.url&&(u.url=(0,a.$G)(u.url,s))})(b,e),v=b,x.length>0&&(v.sdk=v.sdk||{},v.sdk.integrations=[...v.sdk.integrations||[],...x]),void 0===t.type&&function(e,t){let n;let r=s.n2._sentryDebugIds;if(!r)return;let i=p.get(t);i?n=i:(n=new Map,p.set(t,n));let a=Object.keys(r).reduce((e,i)=>{let a;let s=n.get(i);s?a=s:(a=t(i),n.set(i,a));for(let t=a.length-1;t>=0;t--){let n=a[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch(e){}}(b,e.stackParser);let w=function(e,t){if(!t)return e;let n=e?e.clone():new c.sX;return n.update(t),n}(f,n.captureContext);n.mechanism&&(0,r.EG)(b,n.mechanism);let k=m&&m.getEventProcessors?m.getEventProcessors():[],E=(0,c.lW)().getScopeData();if(g){let e=g.getScopeData();(0,d.yo)(E,e)}if(w){let e=w.getScopeData();(0,d.yo)(E,e)}let S=[...n.attachments||[],...E.attachments];S.length&&(n.attachments=S),(0,d.gi)(b,E);let C=[...k,...(0,u.fH)(),...E.eventProcessors],T=(0,u.RP)(C,b,n);return T.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof y&&y>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,o.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,o.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,o.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,o.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,o.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=(0,h.XU)(e).data;return r&&(e.data=(0,o.Fv)(r,t,n)),e})),r}(e,y,_):e)}let p=new WeakMap;function m(e){return e?e instanceof c.sX||"function"==typeof e||Object.keys(e).some(e=>g.includes(e))?{captureContext:e}:e:void 0}let g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},50432:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(37486);function i(e,t,n=[t],i="npm"){let a=e._metadata||{};a.sdk||(a.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${i}:@sentry/${e}`,version:r.J})),version:r.J}),e._metadata=a}},63449:function(e,t,n){"use strict";n.d(t,{$k:function(){return c},Hb:function(){return u},Tt:function(){return f},XU:function(){return h},i0:function(){return o},ve:function(){return s},wy:function(){return l}});var r=n(39109),i=n(17502),a=n(94180);let s=0,o=1;function l(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:a,parent_span_id:s,status:o,tags:l,origin:u}=h(e);return(0,r.Jr)({data:i,op:a,parent_span_id:s,span_id:t,status:o,tags:l,trace_id:n,origin:u})}function u(e){let{traceId:t,spanId:n}=e.spanContext(),r=f(e);return(0,i.$p)(t,n,r)}function c(e){return"number"==typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,a.ph)()}function d(e){return e>9999999999?e/1e3:e}function h(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function f(e){let{traceFlags:t}=e.spanContext();return Boolean(t&o)}},37486:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="7.118.0"},18401:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66885),i=n(65268);function a(e,t,n=250,a,l,u,c){if(!u.exception||!u.exception.values||!c||!(0,r.V9)(c.originalException,Error))return;let d=u.exception.values.length>0?u.exception.values[u.exception.values.length-1]:void 0;d&&(u.exception.values=(function e(t,n,i,a,l,u,c,d){if(u.length>=i+1)return u;let h=[...u];if((0,r.V9)(a[l],Error)){s(c,d);let r=t(n,a[l]),u=h.length;o(r,l,u,d),h=e(t,n,i,a[l],l,[r,...h],r,u)}return Array.isArray(a.errors)&&a.errors.forEach((a,u)=>{if((0,r.V9)(a,Error)){s(c,d);let r=t(n,a),f=h.length;o(r,`errors[${u}]`,f,d),h=e(t,n,i,a,l,[r,...h],r,f)}}),h})(e,t,l,c.originalException,a,u.exception.values,d,0).map(e=>(e.value&&(e.value=(0,i.$G)(e.value,n)),e)))}function s(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function o(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}},82456:function(e,t,n){"use strict";n.d(t,{EN:function(){return u},IQ:function(){return c},bU:function(){return s}});var r=n(72637),i=n(66885),a=n(86922);let s="baggage",o="sentry-",l=/^sentry-/;function u(e){if(!(0,i.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=d(t);for(let t of Object.keys(n))e[t]=n[t];return e},{});else{if(!e)return;t=d(e)}let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(l)){let r=t.slice(o.length);e[r]=n}return e},{});return Object.keys(n).length>0?n:void 0}function c(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===i?s:`${e},${s}`;return o.length>8192?(r.X&&a.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},"")}(t)}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}},61495:function(e,t,n){"use strict";n.d(t,{Rt:function(){return s},iY:function(){return u},l4:function(){return o},qT:function(){return l}});var r=n(66885),i=n(74211);let a=(0,i.Rf)();function s(e,t={}){if(!e)return"<unknown>";try{let n,i=e,s=[],o=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&o++<5&&(n=function(e,t){let n,i,s,o,l;let u=[];if(!e||!e.tagName)return"";if(a.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;u.push(e.tagName.toLowerCase());let c=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(c&&c.length)c.forEach(e=>{u.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&u.push(`#${e.id}`),(n=e.className)&&(0,r.HD)(n))for(l=0,i=n.split(/\s+/);l<i.length;l++)u.push(`.${i[l]}`);let d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)s=d[l],(o=e.getAttribute(s))&&u.push(`[${s}="${o}"]`);return u.join("")}(i,u),"html"!==n&&(!(o>1)||!(l+3*s.length+n.length>=c)));)s.push(n),l+=n.length,i=i.parentNode;return s.reverse().join(" > ")}catch(e){return"<unknown>"}}function o(){try{return a.document.location.href}catch(e){return""}}function l(e){return a.document&&a.document.querySelector?a.document.querySelector(e):null}function u(e){if(!a.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},72637:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},73166:function(e,t,n){"use strict";n.d(t,{RA:function(){return s},U4:function(){return o},vK:function(){return u}});var r=n(72637),i=n(86922);let a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function o(e){let t=a.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,s="",o,u="",c]=t.slice(1),d="",h=c,f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){let e=h.match(/^\d+/);e&&(h=e[0])}return l({host:o,pass:s,path:d,projectId:h,port:u,protocol:n,publicKey:r})}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t="string"==typeof e?o(e):l(e);if(t&&function(e){if(!r.X)return!0;let{port:t,projectId:n,protocol:a}=e,s=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!s&&(n.match(/^\d+$/)?"http"===a||"https"===a?!(t&&isNaN(parseInt(t,10)))||(i.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},73285:function(e,t,n){"use strict";n.d(t,{BO:function(){return o},Cd:function(){return m},HY:function(){return p},Jd:function(){return s},V$:function(){return c},gv:function(){return l},mL:function(){return f},zQ:function(){return d}});var r=n(73166),i=n(43527),a=n(39109);function s(e,t=[]){return[e,t]}function o(e,t){let[n,r]=e;return[n,[...r,t]]}function l(e,t){let n=e[1];for(let e of n){let n=e[0].type,r=t(e,n);if(r)return!0}return!1}function u(e,t){let n=t||new TextEncoder;return n.encode(e)}function c(e,t){let[n,r]=e,a=JSON.stringify(n);function s(e){"string"==typeof a?a="string"==typeof e?a+e:[u(a,t),e]:a.push("string"==typeof e?u(e,t):e)}for(let e of r){let[t,n]=e;if(s(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,i.Fv)(n))}s(e)}}return"string"==typeof a?a:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(a)}function d(e,t){let n="string"==typeof e.data?u(e.data,t):e.data;return[(0,a.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}let h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function f(e){return h[e]}function p(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function m(e,t,n,i){let s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:(0,r.RA)(i)},...s&&{trace:(0,a.Jr)({...s})}}}},2145:function(e,t,n){"use strict";n.d(t,{D2:function(){return u},Hj:function(){return l},rK:function(){return c}});var r=n(72637),i=n(86922),a=n(55514);let s={},o={};function l(e,t){s[e]=s[e]||[],s[e].push(t)}function u(e,t){o[e]||(t(),o[e]=!0)}function c(e,t){let n=e&&s[e];if(n)for(let s of n)try{s(t)}catch(t){r.X&&i.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,a.$P)(s)}
Error:`,t)}}},24410:function(e,t,n){"use strict";n.d(t,{U:function(){return o}});var r=n(39109),i=n(83589),a=n(74211),s=n(2145);function o(e){let t="fetch";(0,s.Hj)(t,e),(0,s.D2)(t,l)}function l(){(0,i.t$)()&&(0,r.hl)(a.n2,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:c(t),method:u(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:c(t),method:u(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return(0,s.rK)("fetch",{...i}),e.apply(a.n2,t).then(e=>{let t={...i,endTimestamp:Date.now(),response:e};return(0,s.rK)("fetch",t),e},e=>{let t={...i,endTimestamp:Date.now(),error:e};throw(0,s.rK)("fetch",t),e})}})}function u(e,t){return!!e&&"object"==typeof e&&!!e[t]}function c(e){return"string"==typeof e?e:e?u(e,"url")?e.url:e.toString?e.toString():"":""}},79353:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(74211),i=n(2145);let a=null;function s(e){let t="error";(0,i.Hj)(t,e),(0,i.D2)(t,o)}function o(){a=r.n2.onerror,r.n2.onerror=function(e,t,n,r,s){return(0,i.rK)("error",{column:r,error:s,line:n,msg:e,url:t}),!!a&&!a.__SENTRY_LOADER__&&a.apply(this,arguments)},r.n2.onerror.__SENTRY_INSTRUMENTED__=!0}},17400:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(74211),i=n(2145);let a=null;function s(e){let t="unhandledrejection";(0,i.Hj)(t,e),(0,i.D2)(t,o)}function o(){a=r.n2.onunhandledrejection,r.n2.onunhandledrejection=function(e){return(0,i.rK)("unhandledrejection",e),!a||!!a.__SENTRY_LOADER__||a.apply(this,arguments)},r.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},63950:function(e,t,n){"use strict";let r;n.d(t,{a:function(){return u}});var i=n(39109),a=n(74211);let s=(0,a.Rf)();var o=n(2145);let l=a.n2;function u(e){let t="history";(0,o.Hj)(t,e),(0,o.D2)(t,c)}function c(){if(!function(){let e=s.chrome,t=e&&e.app&&e.app.runtime,n="history"in s&&!!s.history.pushState&&!!s.history.replaceState;return!t&&n}())return;let e=l.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,(0,o.rK)("history",{from:e,to:t})}return e.apply(this,t)}}l.onpopstate=function(...t){let n=l.location.href,i=r;if(r=n,(0,o.rK)("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,i.hl)(l.history,"pushState",t),(0,i.hl)(l.history,"replaceState",t)}},26405:function(e,t,n){"use strict";n.d(t,{UK:function(){return u},xU:function(){return l}});var r=n(66885),i=n(39109),a=n(74211),s=n(2145);let o=a.n2,l="__sentry_xhr_v3__";function u(e){(0,s.Hj)("xhr",e),(0,s.D2)("xhr",c)}function c(){if(!o.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,i.hl)(e,"open",function(e){return function(...t){let n=Date.now(),a=(0,r.HD)(t[0])?t[0].toUpperCase():void 0,o=function(e){if((0,r.HD)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!a||!o)return e.apply(this,t);this[l]={method:a,url:o,request_headers:{}},"POST"===a&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let u=()=>{let e=this[l];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}let t={args:[a,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this};(0,s.rK)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.hl)(this,"onreadystatechange",function(e){return function(...t){return u(),e.apply(this,t)}}):this.addEventListener("readystatechange",u),(0,i.hl)(this,"setRequestHeader",function(e){return function(...t){let[n,i]=t,a=this[l];return a&&(0,r.HD)(n)&&(0,r.HD)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(this,t)}}),e.apply(this,t)}}),(0,i.hl)(e,"send",function(e){return function(...t){let n=this[l];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);let r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return(0,s.rK)("xhr",r),e.apply(this,t)}})}},66885:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return u},J8:function(){return g},Kj:function(){return m},Le:function(){return c},PO:function(){return h},TX:function(){return o},V9:function(){return _},VW:function(){return s},VZ:function(){return i},cO:function(){return f},fm:function(){return l},i2:function(){return y},kK:function(){return p},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function a(e,t){return r.call(e)===`[object ${t}]`}function s(e){return a(e,"ErrorEvent")}function o(e){return a(e,"DOMError")}function l(e){return a(e,"DOMException")}function u(e){return a(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return a(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function p(e){return"undefined"!=typeof Element&&_(e,Element)}function m(e){return a(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},86922:function(e,t,n){"use strict";n.d(t,{Cf:function(){return o},LD:function(){return s},RU:function(){return a},kg:function(){return l}});var r=n(72637),i=n(74211);let a=["debug","info","warn","error","log","assert","trace"],s={};function o(e){if(!("console"in i.n2))return e();let t=i.n2.console,n={},r=Object.keys(s);r.forEach(e=>{let r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?a.forEach(n=>{t[n]=(...t)=>{e&&o(()=>{i.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>void 0}),t}()},67451:function(e,t,n){"use strict";n.d(t,{DM:function(){return a},Db:function(){return l},EG:function(){return u},YO:function(){return c},jH:function(){return o},lE:function(){return d}});var r=n(39109),i=n(74211);function a(){let e=i.n2,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function o(e){let{message:t,event_id:n}=e;if(t)return t;let r=s(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function u(e,t){let n=s(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},43527:function(e,t,n){"use strict";n.d(t,{Fv:function(){return s},Qy:function(){return function e(t,n=3,r=102400){let i=s(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(66885),i=n(39109),a=n(55514);function s(e,t=100,s=Infinity){try{return function e(t,s,o=Infinity,l=Infinity,u=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){let r=t[e];if(r===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[c,d]=u;if(null==s||["number","boolean","string"].includes(typeof s)&&!(0,r.i2)(s))return s;let h=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,a.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let i=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(t,s);if(!h.startsWith("[object "))return h;if(s.__sentry_skip_normalization__)return s;let f="number"==typeof s.__sentry_override_normalization_depth__?s.__sentry_override_normalization_depth__:o;if(0===f)return h.replace("object ","");if(c(s))return"[Circular ~]";if(s&&"function"==typeof s.toJSON)try{let t=s.toJSON();return e("",t,f-1,l,u)}catch(e){}let p=Array.isArray(s)?[]:{},m=0,g=(0,i.Sh)(s);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=l){p[t]="[MaxProperties ~]";break}let n=g[t];p[t]=e(t,n,f-1,l,u),m++}return d(s),p}("",e,t,s)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},39109:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},HK:function(){return d},Jr:function(){return v},Sh:function(){return f},_j:function(){return h},hl:function(){return l},xp:function(){return u},zf:function(){return g}});var r=n(61495),i=n(72637),a=n(66885),s=n(86922),o=n(65268);function l(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&c(i,r),e[t]=i}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&s.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function f(e){if((0,a.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,a.cO)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,a.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,a.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,o.$G)(r,t)}}return""}function v(e){let t=new Map;return function e(t,n){if(function(e){if(!(0,a.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,t)}},55514:function(e,t,n){"use strict";n.d(t,{$P:function(){return l},Sq:function(){return s},pE:function(){return a}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let a=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];if(n.length>1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let e of t){let t=e(i);if(t){a.push(t);break}}if(a.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),i.test(t[t.length-1].function||"")&&(t.pop(),i.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(a)}}function s(e){return Array.isArray(e)?a(...e):e}let o="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return o;return e.name||o}catch(e){return o}}},65268:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return s},nK:function(){return a}});var r=n(66885);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},83589:function(e,t,n){"use strict";n.d(t,{Ak:function(){return o},Du:function(){return l},t$:function(){return u}});var r=n(72637),i=n(86922),a=n(74211);let s=(0,a.Rf)();function o(){if(!("fetch"in s))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function l(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u(){if("string"==typeof EdgeRuntime)return!0;if(!o())return!1;if(l(s.fetch))return!0;let e=!1,t=s.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=l(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},48894:function(e,t,n){"use strict";n.d(t,{$2:function(){return o},WD:function(){return s},cW:function(){return l}});var r,i,a=n(66885);function s(e){return new l(t=>{t(e)})}function o(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,a.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},94180:function(e,t,n){"use strict";n.d(t,{Z1:function(){return s},ph:function(){return a},yW:function(){return i}});var r=n(74211);function i(){return Date.now()/1e3}let a=function(){let{performance:e}=r.n2;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),s=(()=>{let{performance:e}=r.n2;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+t-n):36e5;return i<36e5||s<36e5?i<=s?e.timeOrigin:a:n})()},17502:function(e,t,n){"use strict";n.d(t,{$p:function(){return u},KA:function(){return o},pT:function(){return l}});var r=n(82456),i=n(67451);let a=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e){let t;if(!e)return;let n=e.match(a);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function o(e,t){let n=s(e),a=(0,r.EN)(t),{traceId:o,parentSpanId:l,parentSampled:u}=n||{};return n?{traceparentData:n,dynamicSamplingContext:a||{},propagationContext:{traceId:o||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:a||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}}function l(e,t){let n=s(e),a=(0,r.EN)(t),{traceId:o,parentSpanId:l,parentSampled:u}=n||{};return n?{traceId:o||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:a||{}}:{traceId:o||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function u(e=(0,i.DM)(),t=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},94678:function(e,t,n){"use strict";function r(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function i(e){return e.split(/[\?#]/,1)[0]}n.d(t,{en:function(){return r},rt:function(){return i}})},74211:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let r=n||i,a=r.__SENTRY__=r.__SENTRY__||{},s=a[e]||(a[e]=t());return s}},23539:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r,i,a,s,o,l,u=n(27378);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=void 0!==n.g&&"[object global]"===({}).toString.call(n.g);function h(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function f(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r)return"https://vimeo.com/".concat(r);if(f(r))return r.replace("http:","https:");if(t)throw TypeError("“".concat(t,"” is not a valid video id."));throw TypeError("“".concat(r,"” is not a vimeo.com url."))}var m=void 0!==Array.prototype.indexOf,g="undefined"!=typeof window&&void 0!==window.postMessage;if(!d&&(!m||!g))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!/*!
 * weakmap-polyfill v2.0.1 - ECMAScript6 WeakMap polyfill
 * https://github.com/polygonplanet/weakmap-polyfill
 * Copyright (c) 2015-2020 Polygon Planet <polygon.planet.aqua@gmail.com>
 * @license MIT
 */function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n};e.WeakMap=function(){function e(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+a()+"."+a()),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function i(e,n){if(!r(e)||!t.call(e,"_id"))throw TypeError(n+" method called on incompatible receiver "+typeof e)}function a(){return Math.random().toString().substring(2)}return n(e.prototype,"delete",function(e){if(i(this,"delete"),!r(e))return!1;var t=e[this._id];return!!t&&t[0]===e&&(delete e[this._id],!0)}),n(e.prototype,"get",function(e){if(i(this,"get"),r(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),n(e.prototype,"has",function(e){if(i(this,"has"),!r(e))return!1;var t=e[this._id];return!!t&&t[0]===e}),n(e.prototype,"set",function(e,t){if(i(this,"set"),!r(e))throw TypeError("Invalid value used as weak map key");var a=e[this._id];return a&&a[0]===e?(a[1]=t,this):(n(e,this._id,[e,t]),this)}),n(e,"_polyfill",!0),e}()}function r(e){return Object(e)===e}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:v);var y=(r=a={exports:{}},a.exports,v[i="Promise"]=v[i]||function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function a(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null!=e&&("object"==n||"function"==n)&&(t=e.then),"function"==typeof t&&t}function o(){for(var e=0;e<this.chain.length;e++)(function(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=s(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}})(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?a(function(){var r=new d(n);try{t.call(e,function(){l.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&a(o,n))}catch(e){u.call(new d(n),e)}}}function u(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(o,t))}function c(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function d(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&a(o,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){l.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,a){r=new i(t,a),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var p=e({},"constructor",f,!1);return f.prototype=p,e(p,"__NPO__",0,!1),e(f,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,a=Array(i),s=0;c(t,e,function(e,t){a[e]=t,++s===i&&n(a)},r)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");c(t,e,function(e,t){n(t)},r)})}),f}(),r.exports&&(r.exports=v[i]),a.exports),_=new WeakMap;function b(e,t,n){var r=_.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),_.set(e.element,r)}function x(e,t){return(_.get(e.element)||{})[t]||[]}function w(e,t,n){var r=_.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],_.set(e.element,r),!0;var i=r[t].indexOf(n);return -1!==i&&r[t].splice(i,1),_.set(e.element,r),r[t]&&0===r[t].length}var k=["autopause","autoplay","background","byline","color","controls","dnt","height","id","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k.reduce(function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function S(e,t){var n=e.html;if(!t)throw TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!f(e))throw TypeError("“".concat(e,"” is not a vimeo.com url."));var a="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(a+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var o="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;o.open("GET",a,!0),o.onload=function(){if(404===o.status){i(Error("“".concat(e,"” was not found.")));return}if(403===o.status){i(Error("“".concat(e,"” is not embeddable.")));return}try{var t=JSON.parse(o.responseText);if(403===t.domain_status_code){S(t,n),i(Error("“".concat(e,"” is not embeddable.")));return}r(t)}catch(e){i(e)}},o.onerror=function(){var e=o.status?" (".concat(o.status,")"):"";i(Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},o.send()})}function T(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function I(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}var R=new WeakMap,j=new WeakMap,A={},D=function(){var e,t;function n(e){var t,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!/*! @vimeo/player v2.16.0 | (c) 2021 Vimeo | MIT License | https://github.com/vimeo/player.js */function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!Boolean((t=e)&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView))throw TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var a=e.querySelector("iframe");a&&(e=a)}if("IFRAME"===e.nodeName&&!f(e.getAttribute("src")||""))throw Error("The player element passed isn’t a Vimeo embed.");if(R.has(e))return R.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var s=new y(function(t,n){if(r._onMessage=function(e){if(f(e.origin)&&r.element.contentWindow===e.source){"*"===r.origin&&(r.origin=e.origin);var i=T(e.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var a=Error(i.data.message);a.name=i.data.name,n(a);return}var s=i&&"ready"===i.event,o=i&&"ping"===i.method;if(s||o){r.element.setAttribute("data-ready","true"),t();return}!function(e,t){t=T(t);var n,r=[];if(t.event)"error"===t.event&&x(e,t.data.method).forEach(function(n){var r=Error(t.data.message);r.name=t.data.name,n.reject(r),w(e,t.data.method,n)}),r=x(e,"event:".concat(t.event)),n=t.data;else if(t.method){var i=function(e,t){var n=x(e,t);if(n.length<1)return!1;var r=n.shift();return w(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(function(t){try{if("function"==typeof t){t.call(e,n);return}t.resolve(n)}catch(e){}})}(r,i)}},r._window.addEventListener("message",r._onMessage),"IFRAME"!==r.element.nodeName){var a=E(e,i);C(p(a),a,e).then(function(t){var n,i,a=S(t,e);return r.element=a,r._originalElement=e,n=e,i=_.get(n),_.set(a,i),_.delete(n),R.set(r.element,r),t}).catch(n)}});if(j.set(this,s),R.set(this.element,this),"IFRAME"===this.element.nodeName&&I(this,"ping"),A.isEnabled){var o=function(){return A.exit()};A.on("fullscreenchange",function(){A.isFullscreen?b(r,"event:exitFullscreen",o):w(r,"event:exitFullscreen",o),r.ready().then(function(){I(r,"fullscreenchange",A.isFullscreen)})})}return this}return e=[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new y(function(r,i){return t.ready().then(function(){b(t,e,{resolve:r,reject:i}),I(t,e,n)}).catch(i)})}},{key:"get",value:function(e){var t=this;return new y(function(n,r){return e=h(e,"get"),t.ready().then(function(){b(t,e,{resolve:n,reject:r}),I(t,e)}).catch(r)})}},{key:"set",value:function(e,t){var n=this;return new y(function(r,i){if(e=h(e,"set"),null==t)throw TypeError("There must be a value to set.");return n.ready().then(function(){b(n,e,{resolve:r,reject:i}),I(n,e,t)}).catch(i)})}},{key:"on",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(!t)throw TypeError("You must pass a callback function.");if("function"!=typeof t)throw TypeError("The callback must be a function.");0===x(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),b(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw TypeError("The callback must be a function.");w(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=j.get(this)||new y(function(e,t){t(Error("Unknown player. Probably unloaded."))});return y.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return A.isEnabled?A.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return A.isEnabled?A.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return A.isEnabled?y.resolve(A.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new y(function(t){if(j.delete(e),R.delete(e.element),e._originalElement&&(R.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}}],c(n.prototype,e),t&&c(n,t),n}();function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}d||(o={fullscreenchange:(s=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,i={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}()).fullscreenchange,fullscreenerror:s.fullscreenerror},Object.defineProperties(l={request:function(e){return new Promise(function(t,n){var r=function e(){l.off("fullscreenchange",e),t()};l.on("fullscreenchange",r);var i=(e=e||document.documentElement)[s.requestFullscreen]();i instanceof Promise&&i.then(r).catch(n)})},exit:function(){return new Promise(function(e,t){if(!l.isFullscreen){e();return}var n=function t(){l.off("fullscreenchange",t),e()};l.on("fullscreenchange",n);var r=document[s.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)})},on:function(e,t){var n=o[e];n&&document.addEventListener(n,t)},off:function(e,t){var n=o[e];n&&document.removeEventListener(n,t)}},{isFullscreen:{get:function(){return Boolean(document[s.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[s.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[s.fullscreenEnabled])}}}),A=l,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=E(e),r=p(t);C(r,t,e).then(function(t){return S(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(f(t.origin)&&t.data&&"spacechange"===t.data.event){for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}}))}());var N={play:"onPlay",pause:"onPause",ended:"onEnd",timeupdate:"onTimeUpdate",progress:"onProgress",seeked:"onSeeked",texttrackchange:"onTextTrackChange",cuechange:"onCueChange",cuepoint:"onCuePoint",volumechange:"onVolumeChange",playbackratechange:"onPlaybackRateChange",error:"onError",loaded:"onLoaded"},L=function(e){function t(t){var n;return(n=e.call(this,t)||this).refContainer=n.refContainer.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}(n=t).prototype=Object.create(e.prototype),n.prototype.constructor=n,P(n,e);var n,r=t.prototype;return r.componentDidMount=function(){this.createPlayer()},r.componentDidUpdate=function(e){var t=this,n=Object.keys(this.props).filter(function(n){return t.props[n]!==e[n]});this.updateProps(n)},r.componentWillUnmount=function(){this.player.destroy()},r.getInitialOptions=function(){return{id:this.props.video,width:this.props.width,height:this.props.height,autopause:this.props.autopause,autoplay:this.props.autoplay,byline:this.props.showByline,color:this.props.color,controls:this.props.controls,loop:this.props.loop,portrait:this.props.showPortrait,title:this.props.showTitle,muted:this.props.muted,background:this.props.background,responsive:this.props.responsive,dnt:this.props.dnt,speed:this.props.speed,keyboard:this.props.keyboard,pip:this.props.pip,playsinline:this.props.playsInline,quality:this.props.quality,texttrack:this.props.textTrack,transparent:this.props.transparent}},r.updateProps=function(e){var t=this,n=this.player;e.forEach(function(e){var r=t.props[e];switch(e){case"autopause":n.setAutopause(r);break;case"color":n.setColor(r);break;case"loop":n.setLoop(r);break;case"volume":n.setVolume(r);break;case"paused":n.getPaused().then(function(e){return r&&!e?n.pause():!r&&e?n.play():null});break;case"width":case"height":n.element[e]=r;break;case"video":if(r){var i=t.props.start,a=n.loadVideo(r);"number"==typeof i&&a.then(function(){n.setCurrentTime(i)})}else n.unload()}})},r.createPlayer=function(){var e=this,t=this.props,n=t.start,r=t.volume;this.player=new D(this.container,this.getInitialOptions()),Object.keys(N).forEach(function(t){var n=N[t];e.player.on(t,function(t){var r=e.props[n];r&&r(t)})});var i=this.props,a=i.onError,s=i.onReady;this.player.ready().then(function(){s&&s(e.player)},function(e){if(a)a(e);else throw e}),"number"==typeof n&&this.player.setCurrentTime(n),"number"==typeof r&&this.updateProps(["volume"])},r.refContainer=function(e){this.container=e},r.render=function(){var e=this.props,t=e.id,n=e.className,r=e.style;return u.createElement("div",{id:t,className:n,style:r,ref:this.refContainer})},t}(u.Component);L.defaultProps={autopause:!0,autoplay:!1,showByline:!0,controls:!0,loop:!1,showPortrait:!0,showTitle:!0,muted:!1,background:!1,responsive:!1,dnt:!1,speed:!1,keyboard:!0,pip:!1,playsInline:!0,transparent:!0}},80934:function(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){var n,i;n=t,i=r[e],e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=r(),o=i&&i.miss||function(){return Promise.resolve()};return s.then(function(e){return o(e)}).then(function(){return s})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function a(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(n[i++])})}var o={WithinQueryParameters:0,WithinHeaders:1};function l(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])}),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var u={Read:1,Write:2,Any:3};function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t(t({},e),{},{status:n,lastUpdate:Date.now()})}function d(e){return"string"==typeof e?{protocol:"https",url:e,accept:u.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||u.Any}}var h="POST";function f(e,n,i,a){var s,o,l,u=[],h=function(e,n){if("GET"!==e.method&&(void 0!==e.data||void 0!==n.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),n.data))}(i,a),f=(s=t(t({},e.headers),a.headers),o={},Object.keys(s).forEach(function(e){var t=s[e];o[e.toLowerCase()]=t}),o),v=i.method,y="GET"!==i.method?{}:t(t({},i.data),a.data),_=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),y),a.queryParameters),b=0,x=function t(n,r){var s,o,l,d=n.pop();if(void 0===d)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:m(u)};var y={data:h,headers:f,method:v,url:(s=i.path,o=p(_),l="".concat(d.protocol,"://").concat(d.url,"/").concat("/"===s.charAt(0)?s.substr(1):s),o.length&&(l+="?".concat(o)),l),connectTimeout:r(b,e.timeouts.connect),responseTimeout:r(b,a.timeout)},x=function(e){var t={request:y,response:e,host:d,triesLeft:n.length};return u.push(t),t},w={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}}(e)},onRetry:function(i){var a=x(i);return i.isTimedOut&&b++,Promise.all([e.logger.info("Retryable failure",g(a)),e.hostsCache.set(d,c(d,i.isTimedOut?3:2))]).then(function(){return t(n,r)})},onFail:function(e){throw x(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return{name:"ApiError",message:i,status:r,transporterStackTrace:t}}(e,m(u))}};return e.requester.send(y).then(function(e){var t,n,r;return(t=e.status,e.isTimedOut||(n=e.isTimedOut,r=e.status,!n&&0==~~r)||2!=~~(t/100)&&4!=~~(t/100))?w.onRetry(e):2==~~(e.status/100)?w.onSuccess(e):w.onFail(e)})};return(l=e.hostsCache,Promise.all(n.map(function(e){return l.get(e,function(){return Promise.resolve(c(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),i=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),a=[].concat(r(t),r(i));return{getTimeout:function(e,t){return(0===i.length&&0===e?1:i.length+3+e)*t},statelessHosts:a.length>0?a.map(function(e){return d(e)}):n}})).then(function(e){return x(r(e.statelessHosts).reverse(),e.getTimeout)})}function p(e){return Object.keys(e).map(function(t){var n;return s("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]))}).join("&")}function m(e){return e.map(function(e){return g(e)})}function g(e){var n=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),n)})})}var v=function(e){var r,i,s,c,h,p,m,g,v,y,_,b,x,w=e.appId,k=(r=void 0!==e.authMode?e.authMode:o.WithinHeaders,i={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":w},{headers:function(){return r===o.WithinHeaders?i:{}},queryParameters:function(){return r===o.WithinQueryParameters?i:{}}}),E=(c=(s=t(t({hosts:[{url:"".concat(w,"-dsn.algolia.net"),accept:u.Read},{url:"".concat(w,".algolia.net"),accept:u.Write}].concat(function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}([{url:"".concat(w,"-1.algolianet.com")},{url:"".concat(w,"-2.algolianet.com")},{url:"".concat(w,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},k.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},k.queryParameters()),e.queryParameters)})).hostsCache,h=s.logger,p=s.requester,m=s.requestsCache,g=s.responsesCache,v=s.timeouts,y=s.userAgent,_=s.hosts,b=s.queryParameters,x={hostsCache:c,logger:h,requester:p,requestsCache:m,responsesCache:g,timeouts:v,userAgent:y,headers:s.headers,queryParameters:b,hosts:_.map(function(e){return d(e)}),read:function(e,t){var r=l(t,x.timeouts.read),i=function(){return f(x,x.hosts.filter(function(e){return 0!=(e.accept&u.Read)}),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return i();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:x.queryParameters,headers:x.headers}};return x.responsesCache.get(a,function(){return x.requestsCache.get(a,function(){return x.requestsCache.set(a,i()).then(function(e){return Promise.all([x.requestsCache.delete(a),e])},function(e){return Promise.all([x.requestsCache.delete(a),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return x.responsesCache.set(a,e)}})},write:function(e,t){return f(x,x.hosts.filter(function(e){return 0!=(e.accept&u.Write)}),e,l(t,x.timeouts.write))}});return a({transporter:E,appId:w,addAlgoliaAgent:function(e,t){E.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([E.requestsCache.clear(),E.responsesCache.clear()]).then(function(){})}},e.methods)},y=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},_=function(e){return function(n,r){var i=n.map(function(e){return t(t({},e),{},{params:p(e.params||{})})});return e.transporter.read({method:h,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},b=function(e){return function(n,r){return Promise.all(n.map(function(n){var i=n.params,a=i.facetName,s=i.facetQuery,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,["facetName","facetQuery"]);return y(e)(n.indexName,{methods:{searchForFacetValues:k}}).searchForFacetValues(a,s,t(t({},r),o))}))}},x=function(e){return function(t,n,r){return e.transporter.read({method:h,path:s("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},w=function(e){return function(t,n){return e.transporter.read({method:h,path:s("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},k=function(e){return function(t,n,r){return e.transporter.read({method:h,path:s("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}};function E(e,a,s){var l,u,c,d,h,f;return v(t(t(t({},{appId:e,apiKey:a,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])});var r,i=function(e,r){return setTimeout(function(){n.abort(),t({status:0,content:r,isTimedOut:!0})},1e3*e)},a=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(a),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(a),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(a),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:i(),requestsCache:i({serializable:!1}),hostsCache:function e(t){var i=r(t.caches),a=i.shift();return void 0===a?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,r.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a.get(t,n,r).catch(function(){return e({caches:i}).get(t,n,r)})},set:function(t,n){return a.set(t,n).catch(function(){return e({caches:i}).set(t,n)})},delete:function(t){return a.delete(t).catch(function(){return e({caches:i}).delete(t)})},clear:function(){return a.clear().catch(function(){return e({caches:i}).clear()})}}}({caches:[(l={key:"".concat("4.10.3","-").concat(e)},c="algoliasearch-client-js-".concat(l.key),d=function(){return void 0===u&&(u=l.localStorage||window.localStorage),u},h=function(){return JSON.parse(d().getItem(c)||"{}")},{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var n=JSON.stringify(e),r=h()[n];return Promise.all([r||t(),void 0!==r])}).then(function(e){var t=n(e,2),i=t[0];return Promise.all([i,t[1]||r.miss(i)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var n=h();return n[JSON.stringify(e)]=t,d().setItem(c,JSON.stringify(n)),t})},delete:function(e){return Promise.resolve().then(function(){var t=h();delete t[JSON.stringify(e)],d().setItem(c,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){d().removeItem(c)})}}),i()]}),userAgent:(f={value:"Algolia for JavaScript (".concat("4.10.3",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===f.value.indexOf(t)&&(f.value="".concat(f.value).concat(t)),f}}).add({segment:"Browser",version:"lite"}),authMode:o.WithinQueryParameters}),s),{},{methods:{search:_,searchForFacetValues:b,multipleQueries:_,multipleSearchForFacetValues:b,initIndex:function(e){return function(t){return y(e)(t,{methods:{search:w,searchForFacetValues:k,findAnswers:x}})}}}}))}return E.version="4.10.3",E}()},80289:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},36722:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(80289),s=n(31875);i(n(31875),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},31875:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(80289),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=o;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=p;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(h);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function b(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function w(e,t){if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(_(e))n=new c(e.data);else if(g(e)){var n,r=t?k(e.children):[],i=new m(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(v(e)){var r=t?k(e.children):[],s=new f(r);r.forEach(function(e){return e.parent=s}),n=s}else if(x(e)){var r=t?k(e.children):[],o=new p(r);r.forEach(function(e){return e.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(b(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=_,t.isDirective=b,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},2971:function(e){"use strict";var t=[],n=[];e.exports=/**
 * Checks if two values are equal. Values may be primitives, arrays, or objects.
 * Returns true if both arguments have the same keys and values.
 *
 * @see http://underscorejs.org
 * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
 * @license MIT
 */function(e,r){var i=t.length?t.pop():[],a=n.length?n.pop():[],s=function e(t,n,r,i){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n||"object"!=typeof t||"object"!=typeof n)return!1;var a=Object.prototype.toString,s=a.call(t);if(s!=a.call(n))return!1;switch(s){case"[object String]":return t==String(n);case"[object Number]":return!(isNaN(t)||isNaN(n))&&t==Number(n);case"[object Date]":case"[object Boolean]":return+t==+n;case"[object RegExp]":return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var o=r.length;o--;)if(r[o]==t)return i[o]==n;r.push(t),i.push(n);var l=0;if("[object Array]"===s){if((l=t.length)!==n.length)return!1;for(;l--;)if(!e(t[l],n[l],r,i))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty("valueOf")&&n.hasOwnProperty("valueOf"))return t.valueOf()==n.valueOf();var u=Object.keys(t);if(u.length!=Object.keys(n).length)return!1;for(var c=0;c<u.length;c++)if(!e(t[u[c]],n[u[c]],r,i))return!1}return r.pop(),i.pop(),!0}(e,r,i,a);return i.length=0,a.length=0,t.push(i),n.push(a),s}},33743:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},87081:function(e){"use strict";var t=function(e){};e.exports=function(e,n){for(var r,i=arguments.length,a=Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];if(t(n),!e){if(void 0===n)r=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;(r=Error(n.replace(/%s/g,function(){return String(a[o++])}))).name="Invariant Violation"}throw r.framesToPop=1,r}}},82264:function(e,t,n){"use strict";var r=n(33743);e.exports=r},14141:function(e,t,n){"use strict";let r,i,a,s;n.d(t,{IH:function(){return ek},Kz:function(){return eS},Iv:function(){return eE}});var o=n(93859),l=n(84959),u=n(29901),c=n(57087),d=n(21069);let h="@firebase/installations",f="0.5.12",p=`w:${f}`,m="FIS_v2",g=new u.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function v(e){return e instanceof u.ZR&&e.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function y({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function _(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function b(e,t){let n=await t.json(),r=n.error;return g.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function x({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function w(e){let t=await e();return t.status>=500&&t.status<600?e():t}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function k({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=y(e),i=x(e),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={fid:n,authVersion:m,appId:e.appId,sdkVersion:p},o={method:"POST",headers:i,body:JSON.stringify(s)},l=await w(()=>fetch(r,o));if(l.ok){let e=await l.json(),t={fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:_(e.authToken)};return t}throw await b("Create Installation",l)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function E(e){return new Promise(t=>{setTimeout(t,e)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let S=/^[cdef][\w-]{21}$/;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function C(e){return`${e.appName}!${e.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let T=new Map;function I(e,t){let n=C(e);R(n,t),function(e,t){let n=(!j&&"BroadcastChannel"in self&&((j=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{R(e.data.key,e.data.fid)}),j);n&&n.postMessage({key:e,fid:t}),0===T.size&&j&&(j.close(),j=null)}(n,t)}function R(e,t){let n=T.get(e);if(n)for(let e of n)e(t)}let j=null,A="firebase-installations-store",D=null;function P(){return D||(D=(0,d.X3)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(A)}})),D}async function N(e,t){let n=C(e),r=await P(),i=r.transaction(A,"readwrite"),a=i.objectStore(A),s=await a.get(n);return await a.put(t,n),await i.done,s&&s.fid===t.fid||I(e,t.fid),t}async function L(e){let t=C(e),n=await P(),r=n.transaction(A,"readwrite");await r.objectStore(A).delete(t),await r.done}async function M(e,t){let n=C(e),r=await P(),i=r.transaction(A,"readwrite"),a=i.objectStore(A),s=await a.get(n),o=t(s);return void 0===o?await a.delete(n):await a.put(o,n),await i.done,o&&(!s||s.fid!==o.fid)&&I(e,o.fid),o}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function O(e){let t;let n=await M(e.appConfig,n=>{let r=function(e){let t=e||{fid:function(){try{let e=new Uint8Array(17),t=self.crypto||self.msCrypto;t.getRandomValues(e),e[0]=112+e[0]%16;let n=function(e){let t=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){let t=btoa(String.fromCharCode(...e));return t.replace(/\+/g,"-").replace(/\//g,"_")}(e);return t.substr(0,22)}(e);return S.test(n)?n:""}catch(e){return""}}(),registrationStatus:0};return B(t)}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){let e=Promise.reject(g.create("app-offline"));return{installationEntry:t,registrationPromise:e}}let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=F(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:U(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function F(e,t){try{let n=await k(e,t);return N(e.appConfig,n)}catch(n){throw v(n)&&409===n.customData.serverCode?await L(e.appConfig):await N(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function U(e){let t=await V(e.appConfig);for(;1===t.registrationStatus;)await E(100),t=await V(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await O(e);return n||t}return t}function V(e){return M(e,e=>{if(!e)throw g.create("installation-not-found");return B(e)})}function B(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function q({appConfig:e,heartbeatServiceProvider:t},n){let r=function(e,{fid:t}){return`${y(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){let n=x(e);return n.append("Authorization",`${m} ${t}`),n}(e,n),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={installation:{sdkVersion:p,appId:e.appId}},o={method:"POST",headers:i,body:JSON.stringify(s)},l=await w(()=>fetch(r,o));if(l.ok){let e=await l.json(),t=_(e);return t}throw await b("Generate Auth Token",l)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Z(e,t=!1){let n;let r=await M(e.appConfig,r=>{var i;if(!W(r))throw g.create("not-registered");let a=r.authToken;if(!t&&2===(i=a).requestStatus&&!function(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===a.requestStatus)return n=z(e,t),r;{if(!navigator.onLine)throw g.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=K(e,t),t}}),i=n?await n:r.authToken;return i}async function z(e,t){let n=await H(e.appConfig);for(;1===n.authToken.requestStatus;)await E(100),n=await H(e.appConfig);let r=n.authToken;return 0===r.requestStatus?Z(e,t):r}function H(e){return M(e,e=>{if(!W(e))throw g.create("not-registered");let t=e.authToken;return 1===t.requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function K(e,t){try{let n=await q(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await N(e.appConfig,r),n}catch(n){if(v(n)&&(401===n.customData.serverCode||404===n.customData.serverCode))await L(e.appConfig);else{let n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await N(e.appConfig,n)}throw n}}function W(e){return void 0!==e&&2===e.registrationStatus}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function $(e){let{installationEntry:t,registrationPromise:n}=await O(e);return n?n.catch(console.error):Z(e).catch(console.error),t.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function G(e,t=!1){await Y(e);let n=await Z(e,t);return n.token}async function Y(e){let{registrationPromise:t}=await O(e);t&&await t}function Q(e){return g.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let X="installations",J=e=>{let t=e.getProvider("app").getImmediate(),n=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){if(!e||!e.options)throw Q("App Configuration");if(!e.name)throw Q("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw Q(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,o.qX)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},ee=e=>{let t=e.getProvider("app").getImmediate(),n=(0,o.qX)(t,X).getImmediate();return{getId:()=>$(n),getToken:e=>G(n,e)}};(0,o.Xd)(new c.wA(X,J,"PUBLIC")),(0,o.Xd)(new c.wA("installations-internal",ee,"PRIVATE")),(0,o.KN)(h,f),(0,o.KN)(h,f,"esm2017");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let et="analytics",en="https://www.googletagmanager.com/gtag/js",er=new l.Yd("@firebase/analytics");/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ei(e){return Promise.all(e.map(e=>e.catch(e=>e)))}async function ea(e,t,n,r,i,a){let s=r[i];try{if(s)await t[s];else{let e=await ei(n),r=e.find(e=>e.measurementId===i);r&&await t[r.appId]}}catch(e){er.error(e)}e("config",i,a)}async function es(e,t,n,r,i){try{let a=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);let r=await ei(n);for(let n of e){let e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(i)a.push(i);else{a=[];break}}}0===a.length&&(a=Object.values(t)),await Promise.all(a),e("event",r,i||{})}catch(e){er.error(e)}}let eo=new u.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.'}),el=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};async function eu(e){var t;let{appId:n,apiKey:r}=e,i={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":r})},a="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),s=await fetch(a,i);if(200!==s.status&&304!==s.status){let e="";try{let n=await s.json();(null===(t=n.error)||void 0===t?void 0:t.message)&&(e=n.error.message)}catch(e){}throw eo.create("config-fetch-failed",{httpStatus:s.status,responseMessage:e})}return s.json()}async function ec(e,t=el,n){let{appId:r,apiKey:i,measurementId:a}=e.options;if(!r)throw eo.create("no-app-id");if(!i){if(a)return{measurementId:a,appId:r};throw eo.create("no-api-key")}let s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new eh;return setTimeout(async()=>{o.abort()},void 0!==n?n:6e4),ed({appId:r,apiKey:i,measurementId:a},s,o,t)}async function ed(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=el){var a;let{appId:s,measurementId:o}=e;try{await new Promise((e,n)=>{let i=Math.max(t-Date.now(),0),a=setTimeout(e,i);r.addEventListener(()=>{clearTimeout(a),n(eo.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}catch(e){if(o)return er.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==e?void 0:e.message}]`),{appId:s,measurementId:o};throw e}try{let t=await eu(e);return i.deleteThrottleMetadata(s),t}catch(c){if(!function(e){if(!(e instanceof u.ZR)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(c)){if(i.deleteThrottleMetadata(s),o)return er.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==c?void 0:c.message}]`),{appId:s,measurementId:o};throw c}let t=503===Number(null===(a=null==c?void 0:c.customData)||void 0===a?void 0:a.httpStatus)?(0,u.$s)(n,i.intervalMillis,30):(0,u.$s)(n,i.intervalMillis),l={throttleEndTimeMillis:Date.now()+t,backoffCount:n+1};return i.setThrottleMetadata(s,l),er.debug(`Calling attemptFetch again in ${t} millis`),ed(e,l,r,i)}}class eh{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}async function ef(e,t,n,r,i){if(i&&i.global){e("event",n,r);return}{let i=await t,a=Object.assign(Object.assign({},r),{send_to:i});e("event",n,a)}}async function ep(e,t,n,r){if(r&&r.global)return e("set",{user_id:n}),Promise.resolve();{let r=await t;e("config",r,{update:!0,user_id:n})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function em(){if(!(0,u.hl)())return er.warn(eo.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await (0,u.eu)()}catch(e){return er.warn(eo.create("indexeddb-unavailable",{errorInfo:null==e?void 0:e.toString()}).message),!1}return!0}async function eg(e,t,n,a,s,o,l){var u;let c=ec(e);c.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&er.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>er.error(e)),t.push(c);let d=em().then(e=>e?a.getId():void 0),[h,f]=await Promise.all([c,d]);!function(){let e=window.document.getElementsByTagName("script");for(let t of Object.values(e))if(t.src&&t.src.includes(en))return t;return null}()&&function(e,t){let n=document.createElement("script");n.src=`${en}?l=${e}&id=${t}`,n.async=!0,document.head.appendChild(n)}(o,h.measurementId),i&&(s("consent","default",i),i=void 0),s("js",new Date);let p=null!==(u=null==l?void 0:l.config)&&void 0!==u?u:{};return p.origin="firebase",p.update=!0,null!=f&&(p.firebase_id=f),s("config",h.measurementId,p),r&&(s("set",r),r=void 0),h.measurementId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ev{constructor(e){this.app=e}_delete(){return delete ey[this.app.options.appId],Promise.resolve()}}let ey={},e_=[],eb={},ex="dataLayer",ew=!1;function ek(e=(0,o.Mq)()){e=(0,u.m9)(e);let t=(0,o.qX)(e,et);return t.isInitialized()?t.getImmediate():function(e,t={}){let n=(0,o.qX)(e,et);if(n.isInitialized()){let e=n.getImmediate();if((0,u.vZ)(t,n.getOptions()))return e;throw eo.create("already-initialized")}let r=n.initialize({options:t});return r}(e)}function eE(e,t,n){ep(s,ey[(e=(0,u.m9)(e)).app.options.appId],t,n).catch(e=>er.error(e))}function eS(e,t,n,r){ef(s,ey[(e=(0,u.m9)(e)).app.options.appId],t,n,r).catch(e=>er.error(e))}let eC="@firebase/analytics",eT="0.8.0";(0,o.Xd)(new c.wA(et,(e,{options:t})=>{let n=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();return function(e,t,n){!function(){let e=[];if((0,u.ru)()&&e.push("This is a browser extension environment."),(0,u.zI)()||e.push("Cookies are not available."),e.length>0){let t=e.map((e,t)=>`(${t+1}) ${e}`).join(" "),n=eo.create("invalid-analytics-context",{errorInfo:t});er.warn(n.message)}}();let r=e.options.appId;if(!r)throw eo.create("no-app-id");if(!e.options.apiKey){if(e.options.measurementId)er.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw eo.create("no-api-key")}if(null!=ey[r])throw eo.create("already-exists",{id:r});if(!ew){var i,o;let e,t;e=[],Array.isArray(window[ex])?e=window[ex]:window[ex]=e;let{wrappedGtag:n,gtagCore:r}=(i="gtag",t=function(...e){window[ex].push(arguments)},window[i]&&"function"==typeof window[i]&&(t=window[i]),window[i]=(o=t,async function(e,t,n){try{"event"===e?await es(o,ey,e_,t,n):"config"===e?await ea(o,ey,e_,eb,t,n):"consent"===e?o("consent","update",n):o("set",t)}catch(e){er.error(e)}}),{gtagCore:t,wrappedGtag:window[i]});s=n,a=r,ew=!0}ey[r]=eg(e,e_,eb,t,a,ex,n);let l=new ev(e);return l}(n,r,t)},"PUBLIC")),(0,o.Xd)(new c.wA("analytics-internal",function(e){try{let t=e.getProvider(et).getImmediate();return{logEvent:(e,n,r)=>eS(t,e,n,r)}}catch(e){throw eo.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),(0,o.KN)(eC,eT),(0,o.KN)(eC,eT,"esm2017")},25777:function(e,t,n){"use strict";n.d(t,{hJ:function(){return eM},O4:function(){return eN},v0:function(){return tX},JB:function(){return e$},Aj:function(){return e0},oo:function(){return eW},P6:function(){return eG},rh:function(){return tx},s:function(){return eX},ck:function(){return eQ}});var r,i=n(29901),a=n(93859),s=n(85556),o=n(84959),l=n(57087);function u(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}let c=new i.LL("auth","Firebase",u()),d=new o.Yd("@firebase/auth");function h(e,...t){d.logLevel<=o.in.ERROR&&d.error(`Auth (${a.Jn}): ${e}`,...t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function f(e,...t){throw g(e,...t)}function p(e,...t){return g(e,...t)}function m(e,t,n){let r=Object.assign(Object.assign({},u()),{[t]:n}),a=new i.LL("auth","Firebase",r);return a.create(t,{appName:e.name})}function g(e,...t){if("string"!=typeof e){let n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return c.create(e,...t)}function v(e,t,...n){if(!e)throw g(t,...n)}function y(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let _=new Map;function b(e){e instanceof Function||y("Expected a class definition");let t=_.get(e);return t?(t instanceof e||y("Instance stored in cache mismatched with class"),t):(t=new e,_.set(e,t),t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function x(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function w(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class k{constructor(e,t){this.shortDelay=e,this.longDelay=t,t>e||y("Short delay should be less than long delay!"),this.isMobile=(0,i.uI)()||(0,i.b$)()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===w()||"https:"===w()||(0,i.ru)()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function E(e,t){e.emulator||y("Emulator should always be set here");let{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class S{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void y("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void y("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void y("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let C={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"},T=new k(3e4,6e4);function I(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function R(e,t,n,r,a={}){return j(e,a,async()=>{let a={},s={};r&&("GET"===t?s=r:a={body:JSON.stringify(r)});let o=(0,i.xO)(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),S.fetch()(D(e,e.config.apiHost,n,o),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},a))})}async function j(e,t,n){e._canInitEmulator=!1;let r=Object.assign(Object.assign({},C),t);try{let t=new P(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let a=await i.json();if("needConfirmation"in a)throw N(e,"account-exists-with-different-credential",a);if(i.ok&&!("errorMessage"in a))return a;{let t=i.ok?a.errorMessage:a.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw N(e,"credential-already-in-use",a);if("EMAIL_EXISTS"===n)throw N(e,"email-already-in-use",a);if("USER_DISABLED"===n)throw N(e,"user-disabled",a);let o=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw m(e,o,s);f(e,o)}}catch(t){if(t instanceof i.ZR)throw t;f(e,"network-request-failed")}}async function A(e,t,n,r,i={}){let a=await R(e,t,n,r,i);return"mfaPendingCredential"in a&&f(e,"multi-factor-auth-required",{_serverResponse:a}),a}function D(e,t,n,r){let i=`${t}${n}?${r}`;return e.config.emulator?E(e.config,i):`${e.config.apiScheme}://${i}`}class P{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(p(this.auth,"network-request-failed")),T.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function N(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=p(e,t,r);return i.customData._tokenResponse=n,i}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function L(e,t){return R(e,"POST","/v1/accounts:delete",t)}async function M(e,t){return R(e,"POST","/v1/accounts:lookup",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function O(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function F(e,t=!1){let n=(0,i.m9)(e),r=await n.getIdToken(t),a=V(r);v(a&&a.exp&&a.auth_time&&a.iat,n.auth,"internal-error");let s="object"==typeof a.firebase?a.firebase:void 0,o=null==s?void 0:s.sign_in_provider;return{claims:a,token:r,authTime:O(U(a.auth_time)),issuedAtTime:O(U(a.iat)),expirationTime:O(U(a.exp)),signInProvider:o||null,signInSecondFactor:(null==s?void 0:s.sign_in_second_factor)||null}}function U(e){return 1e3*Number(e)}function V(e){let[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=(0,i.tV)(n);if(!e)return h("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return h("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function B(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof i.ZR&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class q{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;let e=null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0,n=e-Date.now()-3e5;return Math.max(0,n)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Z{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=O(this.lastLoginAt),this.creationTime=O(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function z(e){var t;let n=e.auth,r=await e.getIdToken(),i=await B(e,M(n,{idToken:r}));v(null==i?void 0:i.users.length,n,"internal-error");let a=i.users[0];e._notifyReloadListener(a);let o=(null===(t=a.providerUserInfo)||void 0===t?void 0:t.length)?a.providerUserInfo.map(e=>{var{providerId:t}=e,n=(0,s._T)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}):[],l=function(e,t){let n=e.filter(e=>!t.some(t=>t.providerId===e.providerId));return[...n,...t]}(e.providerData,o),u=e.isAnonymous,c=!(e.email&&a.passwordHash)&&!(null==l?void 0:l.length),d={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:l,metadata:new Z(a.createdAt,a.lastLoginAt),isAnonymous:!!u&&c};Object.assign(e,d)}async function H(e){let t=(0,i.m9)(e);await z(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function K(e,t){let n=await j(e,{},async()=>{let n=(0,i.xO)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:a}=e.config,s=D(e,r,"/v1/token",`key=${a}`),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/x-www-form-urlencoded",S.fetch()(s,{method:"POST",headers:o,body:n})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class W{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){v(e.idToken,"internal-error"),v(void 0!==e.idToken,"internal-error"),v(void 0!==e.refreshToken,"internal-error");let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){let t=V(e);return v(t,"internal-error"),v(void 0!==t.exp,"internal-error"),v(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=!1){return(v(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired)?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await K(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){let{refreshToken:n,accessToken:r,expirationTime:i}=t,a=new W;return n&&(v("string"==typeof n,"internal-error",{appName:e}),a.refreshToken=n),r&&(v("string"==typeof r,"internal-error",{appName:e}),a.accessToken=r),i&&(v("number"==typeof i,"internal-error",{appName:e}),a.expirationTime=i),a}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new W,this.toJSON())}_performRefresh(){return y("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function $(e,t){v("string"==typeof e||void 0===e,"internal-error",{appName:t})}class G{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=(0,s._T)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new q(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Z(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await B(this,this.stsTokenManager.getToken(this.auth,e));return v(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return F(this,e)}reload(){return H(this)}_assign(e){this!==e&&(v(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){return new G(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){v(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await z(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){let e=await this.getIdToken();return await B(this,L(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,a,s,o,l,u;let c=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,f=null!==(a=t.photoURL)&&void 0!==a?a:void 0,p=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(o=t._redirectEventId)&&void 0!==o?o:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,y=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:_,emailVerified:b,isAnonymous:x,providerData:w,stsTokenManager:k}=t;v(_&&k,e,"internal-error");let E=W.fromJSON(this.name,k);v("string"==typeof _,e,"internal-error"),$(c,e.name),$(d,e.name),v("boolean"==typeof b,e,"internal-error"),v("boolean"==typeof x,e,"internal-error"),$(h,e.name),$(f,e.name),$(p,e.name),$(m,e.name),$(g,e.name),$(y,e.name);let S=new G({uid:_,auth:e,email:d,emailVerified:b,displayName:c,isAnonymous:x,photoURL:f,phoneNumber:h,tenantId:p,stsTokenManager:E,createdAt:g,lastLoginAt:y});return w&&Array.isArray(w)&&(S.providerData=w.map(e=>Object.assign({},e))),m&&(S._redirectEventId=m),S}static async _fromIdTokenResponse(e,t,n=!1){let r=new W;r.updateFromServerResponse(t);let i=new G({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await z(i),i}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Y{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Q(e,t,n){return`firebase:${e}:${t}:${n}`}Y.type="NONE";class X{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=Q(this.userKey,r.apiKey,i),this.fullPersistenceKey=Q("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?G._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new X(b(Y),e,n);let r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=r[0]||b(Y),a=Q(n,e.config.apiKey,e.name),s=null;for(let n of t)try{let t=await n._get(a);if(t){let r=G._fromJSON(e,t);n!==i&&(s=r),i=n;break}}catch(e){}let o=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length&&(i=o[0],s&&await i._set(a,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(a)}catch(e){}}))),new X(i,e,n)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function J(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(er(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";{if(t.includes("edge/"))return"Edge";if(ee(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(ea(t))return"Blackberry";if(es(t))return"Webos";if(et(t))return"Safari";if((t.includes("chrome/")||en(t))&&!t.includes("edge/"))return"Chrome";if(ei(t))return"Android";let n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==n?void 0:n.length)===2)return n[1]}return"Other"}function ee(e=(0,i.z$)()){return/firefox\//i.test(e)}function et(e=(0,i.z$)()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function en(e=(0,i.z$)()){return/crios\//i.test(e)}function er(e=(0,i.z$)()){return/iemobile/i.test(e)}function ei(e=(0,i.z$)()){return/android/i.test(e)}function ea(e=(0,i.z$)()){return/blackberry/i.test(e)}function es(e=(0,i.z$)()){return/webos/i.test(e)}function eo(e=(0,i.z$)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function el(e=(0,i.z$)()){return eo(e)||ei(e)||es(e)||ea(e)||/windows phone/i.test(e)||er(e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function eu(e,t=[]){let n;switch(e){case"Browser":n=J((0,i.z$)());break;case"Worker":n=`${J((0,i.z$)())}-${e}`;break;default:n=e}let r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${a.Jn}/${r}`}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ec{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=t=>new Promise((n,r)=>{try{let r=e(t);n(r)}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ed{constructor(e,t,n){this.app=e,this.heartbeatServiceProvider=t,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ef(this),this.idTokenSubscription=new ef(this),this.beforeStateQueue=new ec(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=c,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=b(t)),this._initializationPromise=this.queue(async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await X.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var t;let n=await this.assertedPersistence.getCurrentUser(),r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,a=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);(!n||n===a)&&(null==s?void 0:s.user)&&(r=s.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return(v(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId)?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await z(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){let t=e?(0,i.m9)(e):null;return t&&v(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&v(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(b(e))})}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new i.LL("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){let n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&b(e)||this._popupRedirectResolver;v(t,this,"argument-error"),this.redirectPersistenceManager=await X.create(this,[b(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return(this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e)?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),a=this._isInitialized?Promise.resolve():this._initializationPromise;return(v(a,this,"internal-error"),a.then(()=>i(this.currentUser)),"function"==typeof t)?e.addObserver(t,n,r):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&(this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh()),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return v(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=eu(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let n=await (null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());return n&&(t["X-Firebase-Client"]=n),t}}function eh(e){return(0,i.m9)(e)}class ef{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,i.ne)(e=>this.observer=e)}get next(){return v(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ep{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return y("not implemented")}_getIdTokenResponse(e){return y("not implemented")}_linkToIdToken(e,t){return y("not implemented")}_getReauthenticationResolver(e){return y("not implemented")}}async function em(e,t){return R(e,"POST","/v1/accounts:update",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eg(e,t){return A(e,"POST","/v1/accounts:signInWithPassword",I(e,t))}async function ev(e,t){return R(e,"POST","/v1/accounts:sendOobCode",I(e,t))}async function ey(e,t){return ev(e,t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function e_(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",I(e,t))}async function eb(e,t){return A(e,"POST","/v1/accounts:signInWithEmailLink",I(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ex extends ep{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new ex(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new ex(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return eg(e,{returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return e_(e,{email:this._email,oobCode:this._password});default:f(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return em(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return eb(e,{idToken:t,email:this._email,oobCode:this._password});default:f(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function ew(e,t){return A(e,"POST","/v1/accounts:signInWithIdp",I(e,t))}class ek extends ep{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new ek(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):f("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,s._T)(t,["providerId","signInMethod"]);if(!n||!r)return null;let a=new ek(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){let t=this.buildRequest();return ew(e,t)}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,ew(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,ew(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,i.xO)(t)}return e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eE(e,t){return R(e,"POST","/v1/accounts:sendVerificationCode",I(e,t))}async function eS(e,t){return A(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,t))}async function eC(e,t){let n=await A(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,t));if(n.temporaryProof)throw N(e,"account-exists-with-different-credential",n);return n}let eT={USER_NOT_FOUND:"user-not-found"};async function eI(e,t){let n=Object.assign(Object.assign({},t),{operation:"REAUTH"});return A(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,n),eT)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eR extends ep{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eR({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eR({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return eS(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return eC(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eI(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new eR({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class ej{constructor(e){var t,n,r,a,s,o;let l=(0,i.zd)((0,i.pd)(e)),u=null!==(t=l.apiKey)&&void 0!==t?t:null,c=null!==(n=l.oobCode)&&void 0!==n?n:null,d=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=l.mode)&&void 0!==r?r:null);v(u&&c&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=c,this.continueUrl=null!==(a=l.continueUrl)&&void 0!==a?a:null,this.languageCode=null!==(s=l.languageCode)&&void 0!==s?s:null,this.tenantId=null!==(o=l.tenantId)&&void 0!==o?o:null}static parseLink(e){let t=function(e){let t=(0,i.zd)((0,i.pd)(e)).link,n=t?(0,i.zd)((0,i.pd)(t)).deep_link_id:null,r=(0,i.zd)((0,i.pd)(e)).deep_link_id,a=r?(0,i.zd)((0,i.pd)(r)).link:null;return a||r||n||t||e}(e);try{return new ej(t)}catch(e){return null}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eA{constructor(){this.providerId=eA.PROVIDER_ID}static credential(e,t){return ex._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let n=ej.parseLink(t);return v(n,"argument-error"),ex._fromEmailAndCode(e,n.code,n.tenantId)}}eA.PROVIDER_ID="password",eA.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eA.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eD{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eP extends eD{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class eN extends eP{static credentialFromJSON(e){let t="string"==typeof e?JSON.parse(e):e;return v("providerId"in t&&"signInMethod"in t,"argument-error"),ek._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return v(e.idToken||e.accessToken,"argument-error"),ek._fromParams(Object.assign(Object.assign({},e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return eN.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return eN.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:a,providerId:s}=e;if(!n&&!r&&!t&&!i||!s)return null;try{return new eN(s)._credential({idToken:t,accessToken:n,nonce:a,pendingToken:i})}catch(e){return null}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eL extends eP{constructor(){super("facebook.com")}static credential(e){return ek._fromParams({providerId:eL.PROVIDER_ID,signInMethod:eL.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eL.credentialFromTaggedObject(e)}static credentialFromError(e){return eL.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eL.credential(e.oauthAccessToken)}catch(e){return null}}}eL.FACEBOOK_SIGN_IN_METHOD="facebook.com",eL.PROVIDER_ID="facebook.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eM extends eP{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return ek._fromParams({providerId:eM.PROVIDER_ID,signInMethod:eM.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return eM.credentialFromTaggedObject(e)}static credentialFromError(e){return eM.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return eM.credential(t,n)}catch(e){return null}}}eM.GOOGLE_SIGN_IN_METHOD="google.com",eM.PROVIDER_ID="google.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eO extends eP{constructor(){super("github.com")}static credential(e){return ek._fromParams({providerId:eO.PROVIDER_ID,signInMethod:eO.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eO.credentialFromTaggedObject(e)}static credentialFromError(e){return eO.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eO.credential(e.oauthAccessToken)}catch(e){return null}}}eO.GITHUB_SIGN_IN_METHOD="github.com",eO.PROVIDER_ID="github.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eF extends eP{constructor(){super("twitter.com")}static credential(e,t){return ek._fromParams({providerId:eF.PROVIDER_ID,signInMethod:eF.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return eF.credentialFromTaggedObject(e)}static credentialFromError(e){return eF.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return eF.credential(t,n)}catch(e){return null}}}eF.TWITTER_SIGN_IN_METHOD="twitter.com",eF.PROVIDER_ID="twitter.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eU{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){let i=await G._fromIdTokenResponse(e,n,r),a=eV(n),s=new eU({user:i,providerId:a,_tokenResponse:n,operationType:t});return s}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);let r=eV(n);return new eU({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function eV(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eB extends i.ZR{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,eB.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new eB(e,t,n,r)}}function eq(e,t,n,r){let i="reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e);return i.catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw eB._fromErrorAndOperation(e,n,t,r);throw n})}async function eZ(e,t,n=!1){let r=await B(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return eU._forOperation(e,"link",r)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function ez(e,t,n=!1){let{auth:r}=e,i="reauthenticate";try{let a=await B(e,eq(r,i,t,e),n);v(a.idToken,r,"internal-error");let s=V(a.idToken);v(s,r,"internal-error");let{sub:o}=s;return v(e.uid===o,r,"user-mismatch"),eU._forOperation(e,i,a)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&f(r,"user-mismatch"),e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eH(e,t,n=!1){let r="signIn",i=await eq(e,r,t),a=await eU._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}async function eK(e,t){return eH(eh(e),t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eW(e,t,n){let r=(0,i.m9)(e),a={requestType:"EMAIL_SIGNIN",email:t};if(v(n.handleCodeInApp,r,"argument-error"),n){var s,o;s=a,v((null===(o=n.url)||void 0===o?void 0:o.length)>0,r,"invalid-continue-uri"),v(void 0===n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,r,"invalid-dynamic-link-domain"),s.continueUrl=n.url,s.dynamicLinkDomain=n.dynamicLinkDomain,s.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(v(n.iOS.bundleId.length>0,r,"missing-ios-bundle-id"),s.iOSBundleId=n.iOS.bundleId),n.android&&(v(n.android.packageName.length>0,r,"missing-android-pkg-name"),s.androidInstallApp=n.android.installApp,s.androidMinimumVersionCode=n.android.minimumVersion,s.androidPackageName=n.android.packageName)}await ey(r,a)}function e$(e,t){let n=ej.parseLink(t);return(null==n?void 0:n.operation)==="EMAIL_SIGNIN"}async function eG(e,t,n){let r=(0,i.m9)(e),a=eA.credentialWithLink(t,n||x());return v(a._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),eK(r,a)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eY(e,t){return R(e,"POST","/v1/accounts:update",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eQ(e,{displayName:t,photoURL:n}){if(void 0===t&&void 0===n)return;let r=(0,i.m9)(e),a=await r.getIdToken(),s=await B(r,eY(r.auth,{idToken:a,displayName:t,photoUrl:n,returnSecureToken:!0}));r.displayName=s.displayName||null,r.photoURL=s.photoUrl||null;let o=r.providerData.find(({providerId:e})=>"password"===e);o&&(o.displayName=r.displayName,o.photoURL=r.photoURL),await r._updateTokensIfNecessary(s)}function eX(e,t){return eJ((0,i.m9)(e),t,null)}async function eJ(e,t,n){let{auth:r}=e,i=await e.getIdToken(),a={idToken:i,returnSecureToken:!0};t&&(a.email=t),n&&(a.password=n);let s=await B(e,em(r,a));await e._updateTokensIfNecessary(s,!0)}function e0(e,t,n,r){return(0,i.m9)(e).onAuthStateChanged(t,n,r)}new WeakMap;let e1="__sak";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class e2{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(e1,"1"),this.storage.removeItem(e1),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class e3 extends e2{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(){let e=(0,i.z$)();return et(e)||eo(e)}()&&function(){try{return!!(window&&window!==window.top)}catch(e){return!1}}(),this.fallbackToPolling=el(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});return}let n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){let r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}let r=()=>{let e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},a=this.storage.getItem(n);(0,i.w1)()&&10===document.documentMode&&a!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}e3.type="LOCAL";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class e5 extends e2{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}e5.type="SESSION";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class e4{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let n=new e4(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:n,data:r}=e.data,i=this.handlersMap[n];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:n});let a=Array.from(i).map(async t=>t(e.origin,r)),s=await Promise.all(a.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:n,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function e6(e="",t=10){let n="";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}e4.receivers=[];/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class e7{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){let r,i;let a="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!a)throw Error("connection_unavailable");return new Promise((s,o)=>{let l=e6("",20);a.port1.start();let u=setTimeout(()=>{o(Error("unsupported_event"))},n);i={messageChannel:a,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(u),r=setTimeout(()=>{o(Error("timeout"))},3e3);break;case"done":clearTimeout(r),s(e.data.response);break;default:clearTimeout(u),clearTimeout(r),o(Error("invalid_response"))}}},this.handlers.add(i),a.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[a.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function e8(){return window}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function e9(){return void 0!==e8().WorkerGlobalScope&&"function"==typeof e8().importScripts}async function te(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{let e=await navigator.serviceWorker.ready;return e.active}catch(e){return null}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tt="firebaseLocalStorageDb",tn="firebaseLocalStorage",tr="fbase_key";class ti{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function ta(e,t){return e.transaction([tn],t?"readwrite":"readonly").objectStore(tn)}function ts(){let e=indexedDB.open(tt,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(tn,{keyPath:tr})}catch(e){n(e)}}),e.addEventListener("success",async()=>{let n=e.result;n.objectStoreNames.contains(tn)?t(n):(n.close(),await function(){let e=indexedDB.deleteDatabase(tt);return new ti(e).toPromise()}(),t(await ts()))})})}async function to(e,t,n){let r=ta(e,!0).put({[tr]:t,value:n});return new ti(r).toPromise()}async function tl(e,t){let n=ta(e,!1).get(t),r=await new ti(n).toPromise();return void 0===r?null:r.value}function tu(e,t){let n=ta(e,!0).delete(t);return new ti(n).toPromise()}class tc{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await ts()),this.db}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return e9()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=e4._getInstance(e9()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>{let n=await this._poll();return{keyProcessed:n.includes(t.key)}}),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await te(),!this.activeServiceWorker)return;this.sender=new e7(this.activeServiceWorker);let n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null==navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await ts();return await to(e,e1,"1"),await tu(e,e1),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>to(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>tl(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>tu(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>{let t=ta(e,!1).getAll();return new ti(t).toPromise()});if(!e||0!==this.pendingWrites)return[];let t=[],n=new Set;for(let{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(let e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}function td(e){return`__${e}${Math.floor(1e6*Math.random())}`}async function th(e,t,n){var r,i,a;let s=await n.verify();try{let o;if(v("string"==typeof s,e,"argument-error"),v("recaptcha"===n.type,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}:t,"session"in o){let t=o.session;if("phoneNumber"in o){v("enroll"===t.type,e,"internal-error");let n=await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:s}},R(e,"POST","/v2/accounts/mfaEnrollment:start",I(e,i)));return n.phoneSessionInfo.sessionInfo}{v("signin"===t.type,e,"internal-error");let n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;v(n,e,"missing-multi-factor-info");let i=await (a={mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:s}},R(e,"POST","/v2/accounts/mfaSignIn:start",I(e,a)));return i.phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await eE(e,{phoneNumber:o.phoneNumber,recaptchaToken:s});return t}}finally{n._reset()}}tc.type="LOCAL",td("rcb"),new k(3e4,6e4);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tf{constructor(e){this.providerId=tf.PROVIDER_ID,this.auth=eh(e)}verifyPhoneNumber(e,t){return th(this.auth,e,(0,i.m9)(t))}static credential(e,t){return eR._fromVerification(e,t)}static credentialFromResult(e){return tf.credentialFromTaggedObject(e)}static credentialFromError(e){return tf.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:n}=e;return t&&n?eR._fromTokenResponse(t,n):null}}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tp(e,t){return t?b(t):(v(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}tf.PROVIDER_ID="phone",tf.PHONE_SIGN_IN_METHOD="phone";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tm extends ep{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ew(e,this._buildIdpRequest())}_linkToIdToken(e,t){return ew(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return ew(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function tg(e){return eH(e.auth,new tm(e),e.bypassAuthState)}function tv(e){let{auth:t,user:n}=e;return v(n,t,"internal-error"),ez(n,new tm(e),e.bypassAuthState)}async function ty(e){let{auth:t,user:n}=e;return v(n,t,"internal-error"),eZ(n,new tm(e),e.bypassAuthState)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class t_{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:a,type:s}=e;if(a){this.reject(a);return}let o={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tg;case"linkViaPopup":case"linkViaRedirect":return ty;case"reauthViaPopup":case"reauthViaRedirect":return tv;default:f(this.auth,"internal-error")}}resolve(e){this.pendingPromise||y("Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){this.pendingPromise||y("Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tb=new k(2e3,1e4);async function tx(e,t,n){let r=eh(e);!function(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&f(e,"argument-error"),m(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}(e,t,eD);let i=tp(r,n),a=new tw(r,"signInViaPopup",t,i);return a.executeNotNull()}class tw extends t_{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,tw.currentPopupAction&&tw.currentPopupAction.cancel(),tw.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return v(e,this.auth,"internal-error"),e}async onExecution(){1===this.filter.length||y("Popup operations only handle one event");let e=e6();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(p(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(p(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,tw.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,n;if(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))},2e3);return}this.pollId=window.setTimeout(e,tb.get())};e()}}tw.currentPopupAction=null;let tk=new Map;class tE extends t_{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=tk.get(this.auth._key());if(!e){try{let t=await tS(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}tk.set(this.auth._key(),e)}return this.bypassAuthState||tk.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"===e.type){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function tS(e,t){let n=Q("pendingRedirect",t.config.apiKey,t.name),r=b(e._redirectPersistence);if(!await r._isAvailable())return!1;let i=await r._get(n)==="true";return await r._remove(n),i}function tC(e,t){tk.set(e._key(),t)}async function tT(e,t,n=!1){let r=eh(e),i=tp(r,t),a=new tE(r,i,n),s=await a.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}class tI{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return tj(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!tj(e)){let r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(p(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(tR(e))}saveEventToCache(e){this.cachedEventUids.add(tR(e)),this.lastProcessedEventTime=Date.now()}}function tR(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function tj({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tA(e,t={}){return R(e,"GET","/v1/projects",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tD=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,tP=/^https?/;async function tN(e){if(e.config.emulator)return;let{authorizedDomains:t}=await tA(e);for(let e of t)try{if(function(e){let t=x(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!tP.test(n))return!1;if(tD.test(e))return r===e;let i=e.replace(/\./g,"\\."),a=RegExp("^(.+\\."+i+"|"+i+")$","i");return a.test(r)}(e))return}catch(e){}f(e,"unauthorized-domain")}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tL=new k(3e4,6e4);function tM(){let e=e8().___jsl;if(null==e?void 0:e.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let tO=null,tF=new k(5e3,15e3),tU={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},tV=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function tB(e){let t=await (tO=tO||new Promise((t,n)=>{var r,i,a,s;function o(){tM(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{tM(),n(p(e,"network-request-failed"))},timeout:tL.get()})}if(null===(i=null===(r=e8().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null===(a=e8().gapi)||void 0===a?void 0:a.load)o();else{let t=td("iframefcb");return e8()[t]=()=>{gapi.load?o():n(p(e,"network-request-failed"))},(s=`https://apis.google.com/js/api.js?onload=${t}`,new Promise((e,t)=>{var n,r;let i=document.createElement("script");i.setAttribute("src",s),i.onload=e,i.onerror=e=>{let n=p("internal-error");n.customData=e,t(n)},i.type="text/javascript",i.charset="UTF-8",(null!==(r=null===(n=document.getElementsByTagName("head"))||void 0===n?void 0:n[0])&&void 0!==r?r:document).appendChild(i)})).catch(e=>n(e))}}).catch(e=>{throw tO=null,e})),n=e8().gapi;return v(n,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;v(t.authDomain,e,"auth-domain-config-required");let n=t.emulator?E(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:a.Jn},s=tV.get(e.config.apiHost);s&&(r.eid=s);let o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${(0,i.xO)(r).slice(1)}`}(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:tU,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});let i=p(e,"network-request-failed"),a=e8().setTimeout(()=>{r(i)},tF.get());function s(){e8().clearTimeout(a),n(t)}t.ping(s).then(s,()=>{r(i)})}))}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tq={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class tZ{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function tz(e,t,n,r,s,o){v(e.config.authDomain,e,"auth-domain-config-required"),v(e.config.apiKey,e,"invalid-api-key");let l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:a.Jn,eventId:s};if(t instanceof eD)for(let[n,r]of(t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,i.xb)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(o||{})))l[n]=r;if(t instanceof eP){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}e.tenantId&&(l.tid=e.tenantId);let u=l;for(let e of Object.keys(u))void 0===u[e]&&delete u[e];return`${function({config:e}){return e.emulator?E(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,i.xO)(u).slice(1)}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tH="webStorageSupport",tK=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=e5,this._completeRedirectFn=tT,this._overrideRedirectResult=tC}async _openPopup(e,t,n,r){var a;(null===(a=this.eventManagers[e._key()])||void 0===a?void 0:a.manager)||y("_initialize() not called before _openPopup()");let s=tz(e,t,n,x(),r);return function(e,t,n,r=500,a=600){let s=Math.max((window.screen.availHeight-a)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),l="",u=Object.assign(Object.assign({},tq),{width:r.toString(),height:a.toString(),top:s,left:o}),c=(0,i.z$)().toLowerCase();n&&(l=en(c)?"_blank":n),ee(c)&&(t=t||"http://localhost",u.scrollbars="yes");let d=Object.entries(u).reduce((e,[t,n])=>`${e}${t}=${n},`,"");if(function(e=(0,i.z$)()){var t;return eo(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(c)&&"_self"!==l)return function(e,t){let n=document.createElement("a");n.href=e,n.target=t;let r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",l),new tZ(null);let h=window.open(t||"",l,d);v(h,e,"popup-blocked");try{h.focus()}catch(e){}return new tZ(h)}(e,s,e6())}async _openRedirect(e,t,n,r){var i;return await this._originValidation(e),i=tz(e,t,n,x(),r),e8().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(n||y("If manager is not set, promise should be"),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await tB(e),n=new tI(e);return t.register("authEvent",t=>{v(null==t?void 0:t.authEvent,e,"invalid-auth-event");let r=n.onEvent(t.authEvent);return{status:r?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){let n=this.iframes[e._key()];n.send(tH,{type:tH},n=>{var r;let i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r[tH];void 0!==i&&t(!!i),f(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=tN(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return el()||et()||eo()}};class tW{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return y("unexpected MultiFactorSessionType")}}}class t$ extends tW{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new t$(e)}_finalizeEnroll(e,t,n){return R(e,"POST","/v2/accounts/mfaEnrollment:finalize",I(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return R(e,"POST","/v2/accounts/mfaSignIn:finalize",I(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}var tG="@firebase/auth",tY="0.20.5";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tQ{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;let t=await this.auth.currentUser.getIdToken(e);return{accessToken:t}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){v(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tX(e=(0,a.Mq)()){let t=(0,a.qX)(e,"auth");return t.isInitialized()?t.getImmediate():/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e,t){let n=(0,a.qX)(e,"auth");if(n.isInitialized()){let e=n.getImmediate(),r=n.getOptions();if((0,i.vZ)(r,null!=t?t:{}))return e;f(e,"already-initialized")}let r=n.initialize({options:t});return r}(e,{popupRedirectResolver:tK,persistence:[tc,e3,e5]})}r="Browser",(0,a.Xd)(new l.wA("auth",(e,{options:t})=>{let n=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),{apiKey:a,authDomain:s}=n.options;return((e,n)=>{v(a&&!a.includes(":"),"invalid-api-key",{appName:e.name}),v(!(null==s?void 0:s.includes(":")),"argument-error",{appName:e.name});let i={apiKey:a,authDomain:s,clientPlatform:r,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:eu(r)},o=new ed(e,n,i);return function(e,t){let n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(b);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(o,t),o})(n,i)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{let r=e.getProvider("auth-internal");r.initialize()})),(0,a.Xd)(new l.wA("auth-internal",e=>{let t=eh(e.getProvider("auth").getImmediate());return new tQ(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,a.KN)(tG,tY,/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(r)),(0,a.KN)(tG,tY,"esm2017")},97018:function(e,t,n){"use strict";n.d(t,{AK:function(){return r.AK},Bt:function(){return r.Bt},EK:function(){return r.EK},IO:function(){return r.IO},JU:function(){return r.JU},Jm:function(){return r.Jm},PL:function(){return r.PL},QT:function(){return r.QT},TQ:function(){return r.TQ},Xo:function(){return r.Xo},ad:function(){return r.ad},ar:function(){return r.ar},b9:function(){return r.b9},cf:function(){return r.cf},hJ:function(){return r.hJ},i3:function(){return r.i3},oe:function(){return r.oe},pl:function(){return r.pl},qs:function(){return r.qs},r7:function(){return r.r7}});var r=n(53303)},66346:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=function(e){return Array.isArray(e)}},81481:function(e,t,n){"use strict";n.d(t,{ev:function(){return j},b8:function(){return A}});var r=n(85556),i=n(9867),a=n(75202),s=n(76614),o=n(62504),l=n(76065),u=n(27165),c=function(e,t){return 1-3*t+3*e},d=function(e,t){return 3*t-6*e},h=function(e){return 3*e},f=function(e,t,n){return((c(t,n)*e+d(t,n))*e+h(t))*e},p=function(e,t,n){return 3*c(t,n)*e*e+2*d(t,n)*e+h(t)},m={linear:u.GE,easeIn:u.YQ,easeInOut:u.mZ,easeOut:u.Vv,circIn:u.Z7,circInOut:u.X7,circOut:u.Bn,backIn:u.G2,backInOut:u.XL,backOut:u.CG,anticipate:u.LU,bounceIn:u.h9,bounceInOut:u.yD,bounceOut:u.gJ},g=function(e){if(Array.isArray(e)){(0,l.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,r.CR)(e,4);return function(e,t,n,r){if(e===t&&n===r)return u.GE;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=f(.1*a,e,n);return function(a){return 0===a||1===a?a:f(function(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=.1;var s=r+(t-i[--a])/(i[a+1]-i[a])*.1,o=p(s,e,n);return o>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=p(t,n,r);if(0===a)break;var s=f(t,n,r)-e;t-=s/a}return t}(t,s,e,n):0===o?s:function(e,t,n,r,i){var a,s,o=0;do(a=f(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<10);return s}(t,r,r+.1,e,n)}(a),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?((0,l.k)(void 0!==m[e],"Invalid easing type '"+e+"'"),m[e]):e},v=n(17497),y=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&v.P.test(t)&&!t.startsWith("url("))},_=n(66346),b=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},x=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},w=function(){return{type:"keyframes",ease:"linear",duration:.3}},k=function(e){return{type:"keyframes",duration:.8,values:e}},E={x:b,y:b,z:b,rotate:b,rotateX:b,rotateY:b,rotateZ:b,scaleX:x,scaleY:x,scale:x,opacity:w,backgroundColor:w,color:w,default:x},S=function(e,t){var n;return n=(0,_.C)(t)?k:E[e]||E.default,(0,r.pi)({to:t},n(t))},C=n(42795),T=!1;function I(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function R(e){return"number"==typeof e?0:(0,C.T)("",e)}function j(e,t){return e[t]||e.default||e}function A(e,t,n,u){return void 0===u&&(u={}),t.start(function(c){var d,h,f,p,m,v,_,b,x,w=(h=n,m=null!==(f=(p=j(u,e)).from)&&void 0!==f?f:t.get(),v=y(e,h),"none"===m&&v&&"string"==typeof h?m=(0,C.T)(e,h):I(m)&&"string"==typeof h?m=R(h):!Array.isArray(h)&&I(h)&&"string"==typeof m&&(h=R(m)),_=y(e,m),(0,l.K)(_===v,"You are trying to animate "+e+' from "'+m+'" to "'+h+'". '+m+" is not an animatable value - to enable this animation set "+m+" to a value animatable to "+h+" via the `style` property."),_&&v&&!1!==p.type?function(){var n,u,d,f,v,y,_,b,x,w,k,E,C={from:m,to:h,velocity:t.getVelocity(),onComplete:c,onUpdate:function(e){return t.set(e)}};return"inertia"===p.type||"decay"===p.type?function(e){var t=e.from,n=void 0===t?0:t,o=e.velocity,l=void 0===o?0:o,u=e.min,c=e.max,d=e.power,h=void 0===d?.8:d,f=e.timeConstant,p=e.bounceStiffness,m=void 0===p?500:p,g=e.bounceDamping,v=void 0===g?10:g,y=e.restDelta,_=void 0===y?1:y,b=e.modifyTarget,x=e.driver,w=e.onUpdate,k=e.onComplete;function E(e){return void 0!==u&&e<u||void 0!==c&&e>c}function S(e){return void 0===u?c:void 0===c?u:Math.abs(u-e)<Math.abs(c-e)?u:c}function C(e){null==I||I.stop(),I=(0,i.j)((0,r.pi)((0,r.pi)({},e),{driver:x,onUpdate:function(t){var n;null==w||w(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:k}))}function T(e){C((0,r.pi)({type:"spring",stiffness:m,damping:v,restDelta:_},e))}if(E(n))T({from:n,velocity:l,to:S(n)});else{var I,R,j,A=h*l+n;void 0!==b&&(A=b(A));var D=S(A),P=D===u?-1:1;C({type:"decay",from:n,velocity:l,timeConstant:void 0===f?750:f,power:h,restDelta:_,modifyTarget:b,onUpdate:E(A)?function(e){R=j,j=e,l=(0,a.R)(e-R,(0,s.$B)().delta),(1===P&&e>D||-1===P&&e<D)&&T({from:e,to:D,velocity:l})}:void 0})}return{stop:function(){return null==I?void 0:I.stop()}}}((0,r.pi)((0,r.pi)({},C),p)):(0,i.j)((0,r.pi)((0,r.pi)({},(x=p,Array.isArray(C.to)&&(null!==(w=x.duration)&&void 0!==w||(x.duration=.8)),Array.isArray((k=C).to)&&null===k.to[0]&&(k.to=(0,r.ev)([],(0,r.CR)(k.to)),k.to[0]=k.from),(E=x).when,E.delay,E.delayChildren,E.staggerChildren,E.staggerDirection,E.repeat,E.repeatType,E.repeatDelay,E.from,Object.keys((0,r._T)(E,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(x=(0,r.pi)((0,r.pi)({},x),S(e,C.to))),(0,r.pi)((0,r.pi)({},C),(u=(n=x).ease,d=n.times,f=n.yoyo,v=n.flip,y=n.loop,_=(0,r._T)(n,["ease","times","yoyo","flip","loop"]),b=(0,r.pi)({},_),d&&(b.offset=d),_.duration&&(b.duration=(0,o.w)(_.duration)),_.repeatDelay&&(b.repeatDelay=(0,o.w)(_.repeatDelay)),u&&(b.ease=Array.isArray(u)&&"number"!=typeof u[0]?u.map(g):g(u)),"tween"===_.type&&(b.type="keyframes"),(f||y||v)&&((0,l.K)(!T,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),T=!0,f?b.repeatType="reverse":y?b.repeatType="loop":v&&(b.repeatType="mirror"),b.repeat=y||f||v||_.repeat),"spring"!==_.type&&(b.type="keyframes"),b)))),{onUpdate:function(e){var t;C.onUpdate(e),null===(t=p.onUpdate)||void 0===t||t.call(p,e)},onComplete:function(){var e;C.onComplete(),null===(e=p.onComplete)||void 0===e||e.call(p)}}))}:function(){var e;return t.set(h),c(),null===(e=null==p?void 0:p.onComplete)||void 0===e||e.call(p),{stop:function(){}}}),k=null!==(d=(j(u,e)||{}).delay)&&void 0!==d?d:0,E=function(){return x=w()};return k?b=setTimeout(E,(0,o.w)(k)):E(),function(){clearTimeout(b),null==x||x.stop()}})}},22119:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(85556),i=n(27378),a=n(43463),s=n(34912),o=n(65113),l=0;function u(){var e=l;return l++,e}var c=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,l=e.custom,c=e.presenceAffectsLayout,h=(0,o.h)(d),f=(0,o.h)(u),p=(0,i.useMemo)(function(){return{id:f,initial:n,isPresent:r,custom:l,onExitComplete:function(e){h.set(e,!0);var t=!0;h.forEach(function(e){e||(t=!1)}),t&&(null==a||a())},register:function(e){return h.set(e,!1),function(){return h.delete(e)}}}},c?void 0:[r]);return(0,i.useMemo)(function(){h.forEach(function(e,t){return h.set(t,!1)})},[r]),i.useEffect(function(){r||h.size||null==a||a()},[r]),i.createElement(s.O.Provider,{value:p},t)};function d(){return new Map}var h=n(60096);function f(e){return e.key||""}var p=function(e){var t,n,s,o,l,u=e.children,d=e.custom,p=e.initial,m=void 0===p||p,g=e.onExitComplete,v=e.exitBeforeEnter,y=e.presenceAffectsLayout,_=void 0===y||y,b=(t=(0,i.useRef)(!1),s=(n=(0,r.CR)((0,i.useState)(0),2))[0],o=n[1],(0,a.z)(function(){return t.current=!0}),(0,i.useCallback)(function(){t.current||o(s+1)},[s])),x=(0,i.useContext)(h.WH);(0,h.Md)(x)&&(b=x.forceUpdate);var w=(0,i.useRef)(!0),k=(l=[],i.Children.forEach(u,function(e){(0,i.isValidElement)(e)&&l.push(e)}),l),E=(0,i.useRef)(k),S=(0,i.useRef)(new Map).current,C=(0,i.useRef)(new Set).current;if(!function(e,t){e.forEach(function(e){var n=f(e);t.set(n,e)})}(k,S),w.current)return w.current=!1,i.createElement(i.Fragment,null,k.map(function(e){return i.createElement(c,{key:f(e),isPresent:!0,initial:!!m&&void 0,presenceAffectsLayout:_},e)}));for(var T=(0,r.ev)([],(0,r.CR)(k)),I=E.current.map(f),R=k.map(f),j=I.length,A=0;A<j;A++){var D=I[A];-1===R.indexOf(D)?C.add(D):C.delete(D)}return v&&C.size&&(T=[]),C.forEach(function(e){if(-1===R.indexOf(e)){var t=S.get(e);if(t){var n=I.indexOf(e);T.splice(n,0,i.createElement(c,{key:f(t),isPresent:!1,onExitComplete:function(){S.delete(e),C.delete(e);var t=E.current.findIndex(function(t){return t.key===e});E.current.splice(t,1),!C.size&&(E.current=k,b(),g&&g())},custom:d,presenceAffectsLayout:_},t))}}}),T=T.map(function(e){var t=e.key;return C.has(t)?e:i.createElement(c,{key:f(e),isPresent:!0,presenceAffectsLayout:_},e)}),E.current=T,i.createElement(i.Fragment,null,C.size?T:T.map(function(e){return(0,i.cloneElement)(e)}))}},68689:function(e,t,n){"use strict";var r,i,a,s;n.d(t,{c:function(){return i},z:function(){return r}}),(a=r||(r={}))[a.Entering=0]="Entering",a[a.Present=1]="Present",a[a.Exiting=2]="Exiting",(s=i||(i={}))[s.Hide=0]="Hide",s[s.Show=1]="Show"},51473:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(85556),i=n(76614),a=n(82971),s=n(21148),o=n(33813),l=n(68689),u={layoutReady:function(e){return e.notifyLayoutReady()}};function c(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?u:t,c=n.layoutReady,h=n.parent;(0,s.U)(function(t,n){var s=Array.from(e).sort(o._),u=h?(0,a.kv)(h):[];n(function(){(0,r.ev)((0,r.ev)([],(0,r.CR)(u)),(0,r.CR)(s)).forEach(function(e){return e.resetTransform()})}),t(function(){s.forEach(a.de)}),n(function(){u.forEach(function(e){return e.restoreTransform()}),s.forEach(c)}),t(function(){s.forEach(function(e){e.isPresent&&(e.presence=l.z.Present)})}),n(function(){i.iW.preRender(),i.iW.render()}),t(function(){i.ZP.postRender(function(){return s.forEach(d)}),e.clear()})}),(0,s.R)()}}}function d(e){e.prevViewportBox=e.projection.target}},63297:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=(0,n(27378).createContext)({transformPagePoint:function(e){return e},isStatic:!1})},32968:function(e,t,n){"use strict";n.d(t,{B:function(){return a},v:function(){return i}});var r=n(27378),i=(0,r.createContext)({});function a(){return(0,r.useContext)(i).visualElement}},34912:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(27378).createContext)(null)},60096:function(e,t,n){"use strict";n.d(t,{Md:function(){return o},WH:function(){return a},bg:function(){return s}});var r=n(27378),i=n(51473),a=(0,r.createContext)((0,i.V)()),s=(0,r.createContext)((0,i.V)());function o(e){return!!e.forceUpdate}},92833:function(e,t,n){"use strict";n.d(t,{Qk:function(){return a},d0:function(){return s},qT:function(){return o}});var r=n(8344),i={pageX:0,pageY:0};function a(e,t){var n,a,s;return void 0===t&&(t="page"),{point:(0,r.z)(e)?(void 0===(n=t)&&(n="page"),{x:(a=e.touches[0]||e.changedTouches[0]||i)[n+"X"],y:a[n+"Y"]}):(void 0===(s=t)&&(s="page"),{x:e[s+"X"],y:e[s+"Y"]})}}function s(e){return a(e,"client")}var o=function(e,t){void 0===t&&(t=!1);var n=function(t){return e(t,a(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n}},16843:function(e,t,n){"use strict";n.d(t,{E:function(){return i},p:function(){return a}});var r=n(27378);function i(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function a(e,t,n,a){(0,r.useEffect)(function(){var r=e.current;if(n&&r)return i(r,t,n,a)},[e,t,n,a])}},86545:function(e,t,n){"use strict";n.d(t,{a:function(){return u},m:function(){return c}});var r=n(16843),i=n(92833),a=n(27968),s={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},o={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function l(e){if(a.j&&null===window.onpointerdown);else if(a.j&&null===window.ontouchstart)return o[e];else if(a.j&&null===window.onmousedown)return s[e];return e}function u(e,t,n,a){return(0,r.E)(e,l(t),(0,i.qT)(n,"pointerdown"===t),a)}function c(e,t,n,a){return(0,r.p)(e,l(t),n&&(0,i.qT)(n,"pointerdown"===t),a)}},89933:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=n(85556),i=n(8344),a=n(92833),s=n(76614),o=n(62504),l=n(86545),u=n(39798),c=n(97781),d=function(){function e(e,t,n){var o=this,d=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=p(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=(0,u.T)(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=(0,s.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var l=o.handlers,c=l.onStart,d=l.onMove;t||(c&&c(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),d&&d(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(o.lastMoveEvent=e,o.lastMoveEventInfo=h(t,o.transformPagePoint),(0,i.N)(e)&&0===e.buttons){o.handlePointerUp(e,t);return}s.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=p(h(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(0,i.z)(e)||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=d;var f=h((0,a.Qk)(e),this.transformPagePoint),m=f.point,g=(0,s.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},m),{timestamp:g})];var v=t.onSessionStart;v&&v(e,p(f,this.history)),this.removeListeners=(0,c.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),s.qY.update(this.updatePoint)},e}();function h(e,t){return t?{point:t(e.point)}:e}function f(e,t){return{x:e.x-t.x,y:e.y-t.y}}function p(e,t){var n=e.point;return{point:n,delta:f(n,m(t)),offset:f(n,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=m(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,o.w)(.1)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function m(e){return e[e.length-1]}},1977:function(e,t,n){"use strict";n.d(t,{C:function(){return A},o:function(){return j}});var r,i=n(85556),a=n(76065),s=n(89933),o=n(99095),l=n(66402),u=n(86545),c=n(16843),d=n(92833),h=n(81215),f=n(11156),p=n(78590);function m(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?(0,p.C)(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?(0,p.C)(i,e,n.max):Math.min(e,i)),e}function g(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function v(e,t){var n,r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=(0,i.CR)([a,r],2))[0],a=n[1]),{min:e.min+r,max:e.min+a}}function y(e,t,n){return{min:_(e,t),max:_(e,n)}}function _(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var b=n(99366),x=n(87636),w=n(81481),k=n(37549),E=n(82971),S=n(35058),C=n(81287),T=n(71146),I=n(21148),R=n(76614),j=new WeakMap,A=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,h.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),j.set(t,this)}return e.prototype.start=function(e,t){var n=this,a=void 0===t?{}:t,l=a.snapToCursor,u=void 0!==l&&l,c=a.cursorProgress,h=this.props.transformPagePoint;this.panSession=new s.H(e,{onSessionStart:function(e){n.stopMotion();var t,r=(0,d.d0)(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,I.U)(function(e,t){var a=(0,E.kv)(n.visualElement),s=(0,E.e3)(n.visualElement),o=(0,i.ev)((0,i.ev)([],(0,i.CR)(a)),(0,i.CR)(s)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t(function(){o.forEach(function(e){return e.resetTransform()})}),e(function(){(0,E.de)(n.visualElement),s.forEach(E.de)}),t(function(){o.forEach(function(e){return e.restoreTransform()}),u&&(l=n.snapToCursor(r))}),e(function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;(0,f.U)(function(t){if(!l){var i=e.target[t],a=i.min,s=i.max;n.cursorProgress[t]=c?c[t]:(0,S.Y)(a,s,r[t])}var o=n.getAxisMotionValue(t);o&&(n.originPoint[t]=o.get())})}),t(function(){R.iW.update(),R.iW.preRender(),R.iW.render(),R.iW.postRender()}),e(function(){return n.resolveDragConstraints()})})},onStart:function(e,t){var r,i,a,s=n.props,l=s.drag,u=s.dragPropagation;(!l||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=(0,o.fJ)(l),n.openGlobalLock))&&((0,I.R)(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(k.r.Drag,!0))},onMove:function(e,t){var i,a,s,o,l=n.props,u=l.dragPropagation,c=l.dragDirectionLock;if(u||n.openGlobalLock){var d,h,f=t.offset;if(c&&null===n.currentDirection){n.currentDirection=(void 0===d&&(d=10),h=null,Math.abs(f.y)>d?h="y":Math.abs(f.x)>d&&(h="x"),h),null!==n.currentDirection&&(null===(a=(i=n.props).onDirectionLock)||void 0===a||a.call(i,n.currentDirection));return}n.updateAxis("x",t.point,f),n.updateAxis("y",t.point,f),null===(o=(s=n.props).onDrag)||void 0===o||o.call(s,e,t),r=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:h})},e.prototype.resolveDragConstraints=function(){var e,t,n,r,i,a=this,s=this.props,o=s.dragConstraints,u=s.dragElastic,c=this.visualElement.getLayoutState().layoutCorrected;o?this.constraints=(0,l.I)(o)?this.resolveRefConstraints(c,o):(e=o.top,t=o.left,n=o.bottom,r=o.right,{x:g(c.x,t,r),y:g(c.y,e,n)}):this.constraints=!1,this.elastic=(!1===(i=u)?i=0:!0===i&&(i=.35),{x:y(i,"left","right"),y:y(i,"top","bottom")}),this.constraints&&!this.hasMutatedConstraints&&(0,f.U)(function(e){if(a.getAxisMotionValue(e)){var t,n,r;a.constraints[e]=(t=c[e],n=a.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r)}})},e.prototype.resolveRefConstraints=function(e,t){var n,r=this.props,i=r.onMeasureDragConstraints,s=r.transformPagePoint,o=t.current;(0,a.k)(null!==o,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=(0,b.A)(o,s);var l=(n=this.constraintsBox,{x:v(e.x,n.x),y:v(e.y,n.y)});if(i){var u=i((0,h._6)(l));this.hasMutatedConstraints=!!u,u&&(l=(0,h.RX)(u))}return l},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(k.r.Drag,!1)},e.prototype.stop=function(e,t){null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var n,r,i,a=this.isDragging;if(this.cancelDrag(),a){var s=t.velocity;this.animateDragEnd(s),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return(0,f.U)(function(n){if(D(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var i=t.visualElement.getLayoutState().layout,a=i[n].max-i[n].min,s=i[n].min+a/2,o=e[n]-s;t.originPoint[n]=e[n],r.set(o)}}).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(D(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],i=this.constraints?m(r,this.constraints[e],this.elastic[e]):r;n.set(i)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r,i,a,s,o=this.visualElement.getLayoutState().layout[e],l=o.max-o.min,u=this.cursorProgress[e],c=(n=t[e],r=null===(s=this.constraints)||void 0===s?void 0:s[e],i=this.elastic[e],a=n-l*u,r?m(a,r,i):a);this.visualElement.setProjectionTargetAxis(e,c,c+l)},e.prototype.setProps=function(e){var t=e.drag,n=e.dragDirectionLock,r=e.dragPropagation,a=e.dragConstraints,s=e.dragElastic,o=e.dragMomentum,l=(0,i._T)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,i.pi)({drag:void 0!==t&&t,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==r&&r,dragConstraints:void 0!==a&&a,dragElastic:void 0===s?.35:s,dragMomentum:void 0===o||o},l)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,i="_drag"+e.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t,n,r,a,s=this,o=this.props,l=o.drag,u=o.dragMomentum,c=o.dragElastic,d=o.dragTransition,h=(t=this.visualElement,void 0===(n=this.isLayoutDrag()&&!this.isExternalDrag())&&(n=!0),!!(a=t.getProjectionParent())&&(n?(r=(0,C.Rg)(a.projection.target,t.projection.target),(0,T.mg)(r,a.getLatestValues())):r=(0,C.Rg)(a.getLayoutState().layout,t.getLayoutState().layout),(0,f.U)(function(e){return t.setProjectionTargetAxis(e,r[e].min,r[e].max,!0)}),!0)),p=this.constraints||{};if(h&&Object.keys(p).length&&this.isLayoutDrag()){var m=this.visualElement.getProjectionParent();if(m){var g=(0,C.Rg)(m.projection.targetFinal,p);(0,f.U)(function(e){var t=g[e],n=t.min,r=t.max;p[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}})}}return Promise.all((0,f.U)(function(t){if(D(t,l,s.currentDirection)){var n,r=null!==(n=null==p?void 0:p[t])&&void 0!==n?n:{},a=(0,i.pi)((0,i.pi)({type:"inertia",velocity:u?e[t]:0,bounceStiffness:c?200:1e6,bounceDamping:c?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},d),r);return s.getAxisMotionValue(t)?s.startAxisValueAnimation(t,a):s.visualElement.startLayoutAnimation(t,a,h)}})).then(function(){var e,t;null===(t=(e=s.props).onDragTransitionEnd)||void 0===t||t.call(e)})},e.prototype.stopMotion=function(){var e=this;(0,f.U)(function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),(0,w.b8)(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag,r=t.dragConstraints;if((0,l.I)(r)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};(0,f.U)(function(t){i[t]=(0,x.BD)(e.visualElement.projection.target[t],e.constraintsBox[t])}),this.updateConstraints(function(){(0,f.U)(function(t){if(D(t,n,null)){var r,a,s,o,l,u=(r=e.visualElement.projection.target[t],a=e.constraintsBox[t],s=i[t],o=r.max-r.min,{min:l=(0,p.C)(a.min,a.max-o,s),max:l+o}),c=u.min,d=u.max;e.visualElement.setProjectionTargetAxis(t,c,d)}})}),setTimeout(I.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,I.U)(function(n,r){var i=(0,E.kv)(t.visualElement);r(function(){return i.forEach(function(e){return e.resetTransform()})}),n(function(){return(0,E.de)(t.visualElement)}),r(function(){return i.forEach(function(e){return e.restoreTransform()})}),n(function(){t.resolveDragConstraints()}),e&&r(e)})},e.prototype.mount=function(e){var t=this,n=e.getInstance(),i=(0,u.a)(n,"pointerdown",function(e){var n=t.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),a=(0,c.E)(window,"resize",function(){t.scalePoint()}),s=e.onLayoutUpdate(function(){t.isDragging&&t.resolveDragConstraints()}),o=e.prevDragCursor;return o&&this.start(r,{cursorProgress:o}),function(){null==i||i(),null==a||a(),null==s||s(),t.cancelDrag()}},e}();function D(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}},99095:function(e,t,n){"use strict";function r(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}n.d(t,{fJ:function(){return s},gD:function(){return o}});var i=r("dragHorizontal"),a=r("dragVertical");function s(e){var t=!1;if("y"===e)t=a();else if("x"===e)t=i();else{var n=i(),r=a();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function o(){var e=s(!0);return!e||(e(),!1)}},8344:function(e,t,n){"use strict";function r(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function i(e){return!!e.touches}n.d(t,{N:function(){return r},z:function(){return i}})},81287:function(e,t,n){"use strict";n.d(t,{BJ:function(){return i},Rg:function(){return s},nf:function(){return o}});var r=n(78590);function i(e,t,n,i){e.min=(0,r.C)(t.min,n.min,i),e.max=(0,r.C)(t.max,n.max,i)}function a(e,t){return{min:t.min-e.min,max:t.max-e.min}}function s(e,t){return{x:a(e.x,t.x),y:a(e.y,t.y)}}function o(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}},20233:function(e,t,n){"use strict";n.d(t,{E:function(){return tZ}});var r,i,a=n(85556),s=n(27378),o=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},l={measureLayout:o(["layout","layoutId","drag","_layoutResetTransform"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:o(["layout","layoutId"])},u=(0,s.createContext)({strict:!1}),c=Object.keys(l),d=c.length,h=n(63297),f=n(32968),p=n(34912),m=n(65113);function g(){var e=(0,s.useContext)(p.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=_();return(0,s.useEffect)(function(){return r(i)},[]),!t&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}var v=0,y=function(){return v++},_=function(){return(0,m.h)(y)},b=(0,s.createContext)(null),x=n(27968),w=x.j?s.useLayoutEffect:s.useEffect,k=n(66402);function E(e){return Array.isArray(e)}function S(e){return"string"==typeof e||E(e)}function C(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,i):t}function T(e,t,n){var r,i,a=e.getProps();return C(a,t,null!=n?n:a.custom,(r={},e.forEachValue(function(e,t){return r[t]=e.get()}),r),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function I(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||S(e.initial)||S(e.animate)||S(e.whileHover)||S(e.whileDrag)||S(e.whileTap)||S(e.whileFocus)||S(e.exit)}function R(e){return Boolean(I(e)||e.variants)}function j(e){return Array.isArray(e)?e.join(" "):e}var A=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function D(e){if("string"!=typeof e||e.includes("-"));else if(A.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var P={},N=n(45723);function L(e,t){var n=t.layout,r=t.layoutId;return(0,N._c)(e)||(0,N.Ee)(e)||(n||void 0!==r)&&(!!P[e]||"opacity"===e)}var M=n(18096),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function F(e){return e.startsWith("--")}var U=n(20246);function V(e,t,n,r,i,a,s,o){var l,u,c,d,h=e.style,f=e.vars,p=e.transform,m=e.transformKeys,g=e.transformOrigin;m.length=0;var v=!1,y=!1,_=!0;for(var b in t){var x=t[b];if(F(b)){f[b]=x;continue}var w=U.j[b],k=w&&"number"==typeof x?w.transform(x):x;if((0,N._c)(b)){if(v=!0,p[b]=k,m.push(b),!_)continue;x!==(null!==(d=w.default)&&void 0!==d?d:0)&&(_=!1)}else if((0,N.Ee)(b))g[b]=k,y=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&P[b]){var E=P[b].process(x,r,n),S=P[b].applyTo;if(S)for(var C=S.length,T=0;T<C;T++)h[S[T]]=E;else h[b]=E}else h[b]=k}r&&n&&s&&o?(h.transform=s(r.deltaFinal,r.treeScale,v?p:void 0),a&&(h.transform=a(p,h.transform)),h.transformOrigin=o(r)):(v&&(h.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,s=t.enableHardwareAcceleration,o=t.allowTransformNone,l="";a.sort(N.s3);for(var u=!1,c=a.length,d=0;d<c;d++){var h=a[d];l+=(O[h]||h)+"("+i[h]+") ","z"===h&&(u=!0)}return!u&&(void 0===s||s)?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):(void 0===o||o)&&n&&(l="none"),l}(e,i,_,a)),y&&(h.transformOrigin=(void 0===(l=g.originX)?"50%":l)+" "+(void 0===(u=g.originY)?"50%":u)+" "+(void 0===(c=g.originZ)?0:c)))}var B=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function q(e,t,n){for(var r in t)(0,M.i)(t[r])||L(r,n)||(e[r]=t[r])}function Z(e,t,n){var r,i,o={},l=(q(r={},e.style||{},e),Object.assign(r,(i=e.transformTemplate,(0,s.useMemo)(function(){var e=B();V(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var r=e.vars,s=e.style;return(0,a.pi)((0,a.pi)({},r),s)},[t]))),e.transformValues&&(r=e.transformValues(r)),r);return Boolean(e.drag)&&(o.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),o.style=l,o}var z=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function H(e){return z.has(e)}var K=function(e){return!H(e)};try{var W=n(65858).Z;K=function(e){return e.startsWith("on")?!H(e):W(e)}}catch(e){}var $=n(26115);function G(e,t,n){return"string"==typeof e?e:$.px.transform(t+n*e)}var Y=function(e,t){return $.px.transform(e*t)},Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},X={offset:"strokeDashoffset",array:"strokeDasharray"};function J(e,t,n,r,i,s,o,l){var u,c,d,h,f,p,m,g=t.attrX,v=t.attrY,y=t.originX,_=t.originY,b=t.pathLength,x=t.pathSpacing,w=t.pathOffset;V(e,(0,a._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,i,s,o,l),e.attrs=e.style,e.style={};var k=e.attrs,E=e.style,S=e.dimensions,C=e.totalPathLength;k.transform&&(S&&(E.transform=k.transform),delete k.transform),S&&(void 0!==y||void 0!==_||E.transform)&&(E.transformOrigin=G(void 0!==y?y:.5,S.x,S.width)+" "+G(void 0!==_?_:.5,S.y,S.height)),void 0!==g&&(k.x=g),void 0!==v&&(k.y=v),void 0!==C&&void 0!==b&&(u=k,h=!1,void 0===(c=void 0===x?1:x)&&(c=1),void 0===(d=void 0===w?0:w)&&(d=0),void 0===h&&(h=!0),u[(f=h?Q:X).offset]=Y(-d,C),p=Y(b,C),m=Y(c,C),u[f.array]=p+" "+m)}var ee=function(){return(0,a.pi)((0,a.pi)({},B()),{attrs:{}})};function et(e,t){var n=(0,s.useMemo)(function(){var n=ee();return J(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,a.pi)((0,a.pi)({},n.attrs),{style:(0,a.pi)({},n.style)})},[t]);if(e.style){var r={};q(r,e.style,e),n.style=(0,a.pi)((0,a.pi)({},r),n.style)}return n}var en=/([a-z])([A-Z])/g,er=function(e){return e.replace(en,"$1-$2").toLowerCase()};function ei(e,t){var n=t.style,r=t.vars;for(var i in Object.assign(e.style,n),r)e.style.setProperty(i,r[i])}var ea=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function es(e,t){for(var n in ei(e,t),t.attrs)e.setAttribute(ea.has(n)?n:er(n),t.attrs[n])}function eo(e){var t=e.style,n={};for(var r in t)((0,M.i)(t[r])||L(r,e))&&(n[r]=t[r]);return n}function el(e){var t=eo(e);for(var n in e)(0,M.i)(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function eu(e){return"object"==typeof e&&"function"==typeof e.start}var ec=n(66346);function ed(e,t,n,r){var i=e.scrapeMotionValuesFromProps,s=e.createRenderState,o=e.onMount,l={latestValues:function(e,t,n,r){var i={},s=(null==n?void 0:n.initial)===!1,o=r(e);for(var l in o)i[l]=function(e){var t=(0,M.i)(e)?e.get():e;return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?t.toValue():t}(o[l]);var u=e.initial,c=e.animate,d=I(e),h=R(e);t&&h&&!d&&!1!==e.inherit&&(null!=u||(u=t.initial),null!=c||(c=t.animate));var f=s||!1===u?c:u;return f&&"boolean"!=typeof f&&!eu(f)&&(Array.isArray(f)?f:[f]).forEach(function(t){var n=C(e,t);if(n){var r=n.transitionEnd;n.transition;var s=(0,a._T)(n,["transitionEnd","transition"]);for(var o in s)i[o]=s[o];for(var o in r)i[o]=r[o]}}),i}(t,n,r,i),renderState:s()};return o&&(l.mount=function(e){return o(t,e,l)}),l}var eh=function(e){return function(t,n){var r=(0,s.useContext)(f.v),i=(0,s.useContext)(p.O);return n?ed(e,t,r,i):(0,m.h)(function(){return ed(e,t,r,i)})}},ef={useVisualState:eh({scrapeMotionValuesFromProps:el,createRenderState:ee,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),J(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),es(t,r)}})},ep={useVisualState:eh({scrapeMotionValuesFromProps:eo,createRenderState:B})},em=n(37549),eg=n(16843),ev=n(8344),ey=n(86545),e_=n(99095);function eb(e,t,n){return function(r,i){var a;!(0,ev.N)(r)||(0,e_.gD)()||(null==n||n(r,i),null===(a=e.animationState)||void 0===a||a.setActive(em.r.Hover,t))}}var ex=function(e,t){return!!t&&(e===t||ex(e,t.parentElement))},ew=n(43463),ek=n(97781),eE=function(e){return function(t){return e(t),null}},eS={tap:eE(function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,o=(0,s.useRef)(!1),l=(0,s.useRef)(null);function u(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function c(){var e;return u(),o.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(em.r.Tap,!1),!(0,e_.gD)()}function d(e,n){c()&&(ex(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function h(e,t){c()&&(null==r||r(e,t))}(0,ey.m)(a,"pointerdown",t||n||r||i?function(e,t){var r;u(),o.current||(o.current=!0,l.current=(0,ek.z)((0,ey.a)(window,"pointerup",d),(0,ey.a)(window,"pointercancel",h)),null==n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(em.r.Tap,!0))}:void 0),(0,ew.z)(u)}),focus:eE(function(e){var t=e.whileFocus,n=e.visualElement;(0,eg.p)(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(em.r.Focus,!0)}:void 0),(0,eg.p)(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(em.r.Focus,!1)}:void 0)}),hover:eE(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;(0,ey.m)(i,"pointerenter",t||r?eb(i,!0,t):void 0),(0,ey.m)(i,"pointerleave",n||r?eb(i,!1,n):void 0)})};function eC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var eT=n(81481),eI=n(17497),eR=n(14607),ej=n(42795),eA=n(56962),eD=n(25525),eP=function(e){return function(t){return t.test(e)}},eN=[eD.Rx,$.px,$.aQ,$.RW,$.vw,$.vh,{test:function(e){return"auto"===e},parse:function(e){return e}}],eL=function(e){return eN.find(eP(e))},eM=(0,a.ev)((0,a.ev)([],(0,a.CR)(eN)),[eA.$,eI.P]);function eO(e,t,n){void 0===n&&(n={});var r,i=T(e,t,n.custom),s=(i||{}).transition,o=void 0===s?e.getDefaultTransition()||{}:s;n.transitionOverride&&(o=n.transitionOverride);var l=i?function(){return eF(e,i,n)}:function(){return Promise.resolve()},u=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i,s,l,u,c,d,h,f=o.delayChildren,p=o.staggerChildren,m=o.staggerDirection;return i=(void 0===f?0:f)+r,s=p,l=m,u=n,void 0===i&&(i=0),void 0===s&&(s=0),void 0===l&&(l=1),c=[],d=(e.variantChildren.size-1)*s,h=1===l?function(e){return void 0===e&&(e=0),e*s}:function(e){return void 0===e&&(e=0),d-e*s},Array.from(e.variantChildren).sort(eU).forEach(function(e,n){c.push(eO(e,t,(0,a.pi)((0,a.pi)({},u),{delay:i+h(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(c)}:function(){return Promise.resolve()},c=o.when;if(!c)return Promise.all([l(),u(n.delay)]);var d=(0,a.CR)("beforeChildren"===c?[l,u]:[u,l],2),h=d[0],f=d[1];return h().then(f)}function eF(e,t,n){var r,i=void 0===n?{}:n,s=i.delay,o=void 0===s?0:s,l=i.transitionOverride,u=i.type,c=e.makeTargetAnimatable(t),d=c.transition,h=void 0===d?e.getDefaultTransition():d,f=c.transitionEnd,p=(0,a._T)(c,["transition","transitionEnd"]);l&&(h=l);var m=[],g=u&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[u]);for(var v in p){var y=e.getValue(v),_=p[v];if(!(!y||void 0===_||g&&function(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(g,v))){var b=(0,eT.b8)(v,y,_,(0,a.pi)({delay:o},h));m.push(b)}}return Promise.all(m).then(function(){f&&function(e,t){var n=T(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd;r.transition;var s=(0,a._T)(r,["transitionEnd","transition"]);for(var o in s=(0,a.pi)((0,a.pi)({},s),void 0===i?{}:i)){var l,u,c=(l=s[o],(0,ec.C)(l)?l[l.length-1]||0:l);u=o,e.hasValue(u)?e.getValue(u).set(c):e.addValue(u,(0,eR.B)(c))}}(e,f)})}function eU(e,t){return e.sortNodePosition(t)}var eV=[em.r.Animate,em.r.Hover,em.r.Tap,em.r.Drag,em.r.Focus,em.r.Exit],eB=(0,a.ev)([],(0,a.CR)(eV)).reverse(),eq=eV.length;function eZ(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var ez={animation:eE(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(t){return Promise.all(t.map(function(t){return function(e,t,n){if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var r;r=Promise.all(t.map(function(t){return eO(e,t,n)}))}else if("string"==typeof t)r=eO(e,t,n);else{var i="function"==typeof t?T(e,t,n.custom):t;r=eF(e,i,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))},r=((t={})[em.r.Animate]=eZ(!0),t[em.r.Hover]=eZ(),t[em.r.Tap]=eZ(),t[em.r.Drag]=eZ(),t[em.r.Focus]=eZ(),t[em.r.Exit]=eZ(),t),i={},s=!0,o=function(t,n){var r=T(e,n);if(r){r.transition;var i=r.transitionEnd,s=(0,a._T)(r,["transition","transitionEnd"]);t=(0,a.pi)((0,a.pi)((0,a.pi)({},t),s),i)}return t};function l(t,l){for(var u,c=e.getProps(),d=e.getVariantContext(!0)||{},h=[],f=new Set,p={},m=1/0,g=0;g<eq;g++)!function(n){var i,g=eB[n],v=r[g],y=null!==(u=c[g])&&void 0!==u?u:d[g],_=S(y),b=g===l?v.isActive:null;!1===b&&(m=n);var x=y===d[g]&&y!==c[g]&&_;if(x&&s&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys=(0,a.pi)({},p),!(!v.isActive&&null===b||!y&&!v.prevProp||eu(y))&&"boolean"!=typeof y){var w=(i=v.prevProp,("string"==typeof y?y!==i:!!E(y)&&!eC(y,i))||g===l&&v.isActive&&!x&&_||n>m&&_),k=Array.isArray(y)?y:[y],C=k.reduce(o,{});!1===b&&(C={});var T=v.prevResolvedValues,I=void 0===T?{}:T,R=(0,a.pi)((0,a.pi)({},I),C),j=function(e){w=!0,f.delete(e),v.needsAnimating[e]=!0};for(var A in R){var D=C[A],P=I[A];p.hasOwnProperty(A)||(D!==P?(0,ec.C)(D)&&(0,ec.C)(P)?eC(D,P)?v.protectedKeys[A]=!0:j(A):void 0!==D?j(A):f.add(A):void 0!==D&&f.has(A)?j(A):v.protectedKeys[A]=!0)}v.prevProp=y,v.prevResolvedValues=C,v.isActive&&(p=(0,a.pi)((0,a.pi)({},p),C)),s&&e.blockInitialAnimation&&(w=!1),w&&!x&&h.push.apply(h,(0,a.ev)([],(0,a.CR)(k.map(function(e){return{animation:e,options:(0,a.pi)({type:g},t)}}))))}}(g);if(i=(0,a.pi)({},p),f.size){var v={};f.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)}),h.push({animation:v})}var y=Boolean(h.length);return s&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),s=!1,y?n(h):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:l,setActive:function(t,n,i){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n,l(i,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),eu(n)&&(0,s.useEffect)(function(){return n.subscribe(t)},[n])}),exit:eE(function(e){var t=e.custom,n=e.visualElement,r=(0,a.CR)(g(),2),i=r[0],o=r[1],l=(0,s.useContext)(p.O);(0,s.useEffect)(function(){var e,r,a=null===(e=n.animationState)||void 0===e?void 0:e.setActive(em.r.Exit,!i,{custom:null!==(r=null==l?void 0:l.custom)&&void 0!==r?r:t});i||null==a||a.then(o)},[i])})},eH=n(1977),eK=n(89933),eW={pan:eE(function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,o=(0,s.useRef)(null),l=(0,s.useContext)(h._).transformPagePoint,u={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){o.current=null,r&&r(e,t)}};(0,s.useEffect)(function(){null!==o.current&&o.current.updateHandlers(u)}),(0,ey.m)(a,"pointerdown",(t||n||r||i)&&function(e){o.current=new eK.H(e,u,{transformPagePoint:l})}),(0,ew.z)(function(){return o.current&&o.current.end()})}),drag:eE(function(e){var t=e.dragControls,n=e.visualElement,r=(0,s.useContext)(h._).transformPagePoint,i=(0,m.h)(function(){return new eH.C({visualElement:n})});i.setProps((0,a.pi)((0,a.pi)({},e),{transformPagePoint:r})),(0,s.useEffect)(function(){return t&&t.subscribe(i)},[i]),(0,s.useEffect)(function(){return i.mount(n)},[])})},e$=n(11156),eG=n(81287),eY=n(68689),eQ=n(81215),eX=n(78590),eJ=n(76065);function e0(e){return"string"==typeof e&&e.startsWith("var(--")}var e1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function e2(e,t,n){void 0===n&&(n=1),(0,eJ.k)(n<=4,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var r=(0,a.CR)(function(e){var t=e1.exec(e);if(!t)return[,];var n=(0,a.CR)(t,3);return[n[1],n[2]]}(e),2),i=r[0],s=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():e0(s)?e2(s,t,n+1):s}}function e3(e,t){return e/(t.max-t.min)*100}var e5="_$css",e4={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!$.px.test(e))return e;e=parseFloat(e)}return e3(e,r.x)+"% "+e3(e,r.y)+"%"}},e6={borderRadius:(0,a.pi)((0,a.pi)({},e4),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:e4,borderTopRightRadius:e4,borderBottomLeftRadius:e4,borderBottomRightRadius:e4,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,i=e,a=e.includes("var("),s=[];a&&(e=e.replace(e1,function(e){return s.push(e),e5}));var o=eI.P.parse(e);if(o.length>5)return i;var l=eI.P.createTransformer(e),u="number"!=typeof o[0]?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;o[0+u]/=c,o[1+u]/=d;var h=(0,eX.C)(c,d,.5);"number"==typeof o[2+u]&&(o[2+u]/=h),"number"==typeof o[3+u]&&(o[3+u]/=h);var f=l(o);if(a){var p=0;f=f.replace(e5,function(){var e=s[p];return p++,e})}return f}}},e7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,eQ.VZ)(),t.currentAnimationTarget=(0,eQ.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var i=r.originBox,s=r.targetBox,o=r.visibilityAction,l=r.shouldStackAnimate,u=r.onComplete,c=r.prevParent,d=(0,a._T)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),h=t.props,f=h.visualElement,p=h.layout;if(!1===l)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===l){l&&(t.isAnimatingTree=!0),n=i||n,e=s||e;var m,g,v=!1,y=f.getProjectionParent();if(y){var _=y.prevViewportBox,b=y.getLayoutState().layout;c&&(s&&(b=c.getLayoutState().layout),i&&!(0,eG.nf)(c,y)&&c.prevViewportBox&&(_=c.prevViewportBox)),_&&(c||!c&&!(i||s))&&(v=!0,n=(0,eG.Rg)(_,n),e=(0,eG.Rg)(b,e))}var x=(m=n,g=e,!e9(m)&&!e9(g)&&(!te(m.x,g.x)||!te(m.y,g.y))),w=(0,e$.U)(function(r){var i,s;if("position"===p){var l=e[r].max-e[r].min;n[r].max=n[r].min+l}if(!f.projection.isTargetLocked){if(void 0!==o)f.setVisibility(o===eY.c.Show);else if(x)return t.animateAxis(r,e[r],n[r],(0,a.pi)((0,a.pi)({},d),{isRelative:v}));else return null===(s=(i=t.stopAxisAnimation)[r])||void 0===s||s.call(i),f.setProjectionTargetAxis(r,e[r].min,e[r].max,v)}});return f.syncRender(),Promise.all(w).then(function(){t.isAnimatingTree=!1,u&&u(),f.notifyLayoutAnimationComplete()})}},t}return(0,a.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=eT.b8,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)P[t]=e[t]}(e6)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),(0,e$.U)(function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)})},t.prototype.animateAxis=function(e,t,n,r){var i,a,s=this,o=void 0===r?{}:r,l=o.transition,u=o.isRelative;if(!(this.isAnimating[e]&&te(t,this.currentAnimationTarget[e]))){null===(a=(i=this.stopAxisAnimation)[e])||void 0===a||a.call(i),this.isAnimating[e]=!0;var c=this.props.visualElement,d=this.frameTarget[e],h=c.getProjectionAnimationProgress()[e];h.clearListeners(),h.set(0),h.set(0);var f=function(){var r=h.get()/1e3;(0,eG.BJ)(d,n,t,r),c.setProjectionTargetAxis(e,d.min,d.max,u)};f();var p=h.onChange(f);this.stopAxisAnimation[e]=function(){s.isAnimating[e]=!1,h.stop(),p()},this.currentAnimationTarget[e]=t;var m=l||c.getDefaultTransition()||tt;return(0,eT.b8)("x"===e?"layoutX":"layoutY",h,1e3,m&&(0,eT.ev)(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(s.Component),e8={min:0,max:0};function e9(e){return te(e.x,e8)&&te(e.y,e8)}function te(e,t){return e.min===t.min&&e.max===t.max}var tt={duration:.45,ease:[.4,0,.1,1]},tn=n(60096),tr=n(82971),ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,tn.Md)(t)&&t.register(r),(0,tn.Md)(n)&&n.register(r),r.onUnmount(function(){(0,tn.Md)(t)&&t.remove(r),(0,tn.Md)(n)&&n.remove(r)})},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,tn.Md)(t)?t.syncUpdate():((0,tr.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,tn.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(s.Component),ta=n(76614),ts=n(71146),to=n(87636);function tl(){return{isHydrated:!1,layout:(0,eQ.VZ)(),layoutCorrected:(0,eQ.VZ)(),treeScale:{x:1,y:1},delta:(0,eQ.pY)(),deltaFinal:(0,eQ.pY)(),deltaTransform:""}}var tu=tl();function tc(e,t,n){var r=e.x,i=e.y,a="translate3d("+r.translate/t.x+"px, "+i.translate/t.y+"px, 0) ";if(n){var s=n.rotate,o=n.rotateX,l=n.rotateY;s&&(a+="rotate("+s+") "),o&&(a+="rotateX("+o+") "),l&&(a+="rotateY("+l+") ")}return a+="scale("+r.scale+", "+i.scale+")",n||a!==th?a:""}function td(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var th=tc(tu.delta,tu.treeScale,{x:1,y:1}),tf=n(75022),tp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],tm=n(829),tg=n(33813),tv=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){(0,tm.y)(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){(0,tm.c)(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(tg._),this.isDirty=!1,this.children.forEach(e)},e}(),ty=n(49053),t_=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,s=e.makeTargetAnimatable,o=e.measureViewportBox,l=e.render,u=e.readValueFromInstance,c=e.resetTransform,d=e.restoreTransform,h=e.removeValueFromRenderState,f=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(e,t){var m,g,v,y,_,b,x,w,k,E=e.parent,C=e.props,T=e.presenceId,j=e.blockInitialAnimation,A=e.visualState;void 0===t&&(t={});var D=A.latestValues,P=A.renderState,N=(m=tp.map(function(){return new tf.L}),g={},v={clearAllListeners:function(){return m.forEach(function(e){return e.clear()})},updatePropListeners:function(e){return tp.forEach(function(t){null===(n=g[t])||void 0===n||n.call(g);var n,r="on"+t,i=e[r];i&&(g[t]=v[r](i))})}},m.forEach(function(e,t){v["on"+tp[t]]=function(t){return e.add(t)},v["notify"+tp[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,a.ev)([],(0,a.CR)(t)))}}),v),L={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:(0,eQ.VZ)(),targetFinal:(0,eQ.VZ)()},O=L,F=D,U=tl(),V=!1,B=new Map,q=new Map,Z={},z=(0,a.pi)({},D);function H(){y&&(ee.isProjectionReady()&&((0,ts.PU)(O.targetFinal,O.target,F),(0,to.Ji)(U.deltaFinal,U.layoutCorrected,O.targetFinal,D)),K(),l(y,P))}function K(){var e=D;if(x&&x.isActive()){var n=x.getCrossfadeState(ee);n&&(e=n)}r(ee,P,e,O,U,t,C)}function W(){N.notifyUpdate(D)}function $(){ee.layoutTree.forEach(tx)}var G=p(C);for(var Y in G){var Q=G[Y];void 0!==D[Y]&&(0,M.i)(Q)&&Q.set(D[Y],!1)}var X=I(C),J=R(C),ee=(0,a.pi)((0,a.pi)({treeType:n,current:null,depth:E?E.depth+1:0,parent:E,children:new Set,path:E?(0,a.ev)((0,a.ev)([],(0,a.CR)(E.path)),[E]):[],layoutTree:E?E.layoutTree:new tv,presenceId:T,projection:L,variantChildren:J?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==E?void 0:E.isMounted()),blockInitialAnimation:j,isMounted:function(){return Boolean(y)},mount:function(e){y=ee.current=e,ee.pointTo(ee),J&&E&&!X&&(k=null==E?void 0:E.addVariantChild(ee)),null==E||E.children.add(ee)},unmount:function(){ta.qY.update(W),ta.qY.render(H),ta.qY.preRender(ee.updateLayoutProjection),q.forEach(function(e){return e()}),ee.stopLayoutAnimation(),ee.layoutTree.remove(ee),null==k||k(),null==E||E.children.delete(ee),null==b||b(),N.clearAllListeners()},addVariantChild:function(e){var t,n=ee.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&n===e.treeType?f(ee.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return J?ee:null==E?void 0:E.getClosestVariantNode()},scheduleUpdateLayoutProjection:E?E.scheduleUpdateLayoutProjection:function(){return ta.ZP.preRender(ee.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return C.layoutId},getInstance:function(){return y},getStaticValue:function(e){return D[e]},setStaticValue:function(e,t){return D[e]=t},getLatestValues:function(){return D},setVisibility:function(e){ee.isVisible!==e&&(ee.isVisible=e,ee.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),s(ee,e,C,t)},addValue:function(e,t){var n,r;ee.hasValue(e)&&ee.removeValue(e),B.set(e,t),D[e]=t.get(),n=t.onChange(function(t){D[e]=t,C.onUpdate&&ta.ZP.update(W,!1,!0)}),r=t.onRenderRequest(ee.scheduleRender),q.set(e,function(){n(),r()})},removeValue:function(e){var t;B.delete(e),null===(t=q.get(e))||void 0===t||t(),q.delete(e),delete D[e],h(e,P)},hasValue:function(e){return B.has(e)},getValue:function(e,t){var n=B.get(e);return void 0===n&&void 0!==t&&(n=(0,eR.B)(t),ee.addValue(e,n)),n},forEachValue:function(e){return B.forEach(e)},readValue:function(e){var n;return null!==(n=D[e])&&void 0!==n?n:u(y,e,t)},setBaseTarget:function(e,t){z[e]=t},getBaseTarget:function(e){if(i){var t=i(C,e);if(void 0!==t&&!(0,M.i)(t))return t}return z[e]}},N),{build:function(){return K(),P},scheduleRender:function(){ta.ZP.render(H,!1,!0)},syncRender:H,setProps:function(e){C=e,N.updatePropListeners(e),Z=function(e,t,n){var r;for(var i in t){var a=t[i],s=n[i];if((0,M.i)(a))e.addValue(i,a);else if((0,M.i)(s))e.addValue(i,(0,eR.B)(a));else if(s!==a){if(e.hasValue(i)){var o=e.getValue(i);o.hasAnimated||o.set(a)}else e.addValue(i,(0,eR.B)(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(ee,p(C),Z)},getProps:function(){return C},getVariant:function(e){var t;return null===(t=C.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return C.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==E?void 0:E.getVariantContext();if(!X){var t=(null==E?void 0:E.getVariantContext())||{};return void 0!==C.initial&&(t.initial=C.initial),t}for(var n={},r=0;r<tk;r++){var i=tw[r],a=C[i];(S(a)||!1===a)&&(n[i]=a)}return n},enableLayoutProjection:function(){L.isEnabled=!0,ee.layoutTree.add(ee)},lockProjectionTarget:function(){L.isTargetLocked=!0},unlockProjectionTarget:function(){ee.stopLayoutAnimation(),L.isTargetLocked=!1},getLayoutState:function(){return U},setCrossfader:function(e){x=e},isProjectionReady:function(){return L.isEnabled&&L.isHydrated&&U.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=ee.getProjectionAnimationProgress()[e],i=n?L.relativeTarget[e]:L.target[e],a=i.min,s=i.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange(function(t){ee.setProjectionTargetAxis(e,t,t+s,n)}),ee.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){(0,e$.U)(function(e){return ee.getProjectionAnimationProgress()[e].stop()})},measureViewportBox:function(e){void 0===e&&(e=!0);var n=o(y,t);return e||(0,ts.mg)(n,D),n},getProjectionAnimationProgress:function(){return w||(w={x:(0,eR.B)(0),y:(0,eR.B)(0)}),w},setProjectionTargetAxis:function(e,t,n,r){var i;void 0===r&&(r=!1),r?(L.relativeTarget||(L.relativeTarget=(0,eQ.VZ)()),i=L.relativeTarget[e]):(L.relativeTarget=void 0,i=L.target[e]),L.isHydrated=!0,i.min=t,i.max=n,V=!0,N.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=U.layout);var n=ee.getProjectionAnimationProgress(),r=n.x,i=n.y,a=!L.relativeTarget&&!L.isTargetLocked&&!r.isAnimating()&&!i.isAnimating();(e||a)&&(0,e$.U)(function(e){var n=t[e],r=n.min,i=n.max;ee.setProjectionTargetAxis(e,r,i)})},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(!t){e.rebaseProjectionTarget();return}var n=(0,eG.Rg)(t.getLayoutState().layout,e.getLayoutState().layout);(0,e$.U)(function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})}(ee),ee.notifyLayoutUpdate(U.layout,ee.prevViewportBox||U.layout,e)},resetTransform:function(){return c(ee,y,C)},restoreTransform:function(){return d(y,P)},updateLayoutProjection:function(){if(ee.isProjectionReady()){var e,t,n,r,i,a,s,o=U.delta,l=U.treeScale,u=l.x,c=l.y,d=U.deltaTransform;e=O,t=ee.path,n=U.delta,r=U.layout,i=U.layoutCorrected,a=U.treeScale,s=e.target,(0,ts.c6)(i,r),(0,ts.YY)(i,a,t),(0,to.Ji)(n,i,s,D),V&&ee.notifyViewportBoxUpdate(O.target,o),V=!1;var h=tc(o,l);(h!==d||u!==l.x||c!==l.y)&&ee.scheduleRender(),U.deltaTransform=h}},updateTreeLayoutProjection:function(){ee.layoutTree.forEach(tb),ta.ZP.preRender($,!1,!0)},getProjectionParent:function(){if(void 0===_){for(var e=!1,t=ee.path.length-1;t>=0;t--){var n=ee.path[t];if(n.projection.isEnabled){e=n;break}}_=e}return _},resolveRelativeTargetBox:function(){var e=ee.getProjectionParent();if(L.relativeTarget&&e&&((0,to.tf)(L,e.projection),(0,ty.V)(e))){var t=L.target;(0,ts.PU)(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(C._layoutResetTransform)},pointTo:function(e){O=e.projection,F=e.getLatestValues(),null==b||b(),b=(0,ek.z)(e.onSetAxisTarget(ee.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete(function(){var e;ee.isPresent?ee.presence=eY.z.Present:null===(e=ee.layoutSafeToRemove)||void 0===e||e.call(ee)}))},isPresent:!0,presence:eY.z.Entering});return ee}};function tb(e){e.resolveRelativeTargetBox()}function tx(e){e.updateLayoutProjection()}var tw=(0,a.ev)(["initial"],(0,a.CR)(eV)),tk=tw.length,tE=n(99366),tS=new Set(["width","height","top","left","right","bottom","x","y"]),tC=function(e){return tS.has(e)},tT=function(e,t){e.set(t,!1),e.set(t)},tI=function(e){return e===eD.Rx||e===$.px};(r=i||(i={})).width="width",r.height="height",r.left="left",r.right="right",r.top="top",r.bottom="bottom";var tR=function(e,t){return parseFloat(e.split(", ")[t])},tj=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return tR(a[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?tR(s[1],e):0}},tA=new Set(["x","y","z"]),tD=N.Gl.filter(function(e){return!tA.has(e)}),tP={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:tj(4,13),y:tj(5,14)},tN=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),a=getComputedStyle(i),s=a.display,o={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===s&&t.setStaticValue("display",e.display||"block"),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(n){tT(t.getValue(n),tP[n](r,o)),e[n]=tP[n](l,a)}),e},tL=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=(0,a.pi)({},t),r=(0,a.pi)({},r);var i=Object.keys(t).filter(tC),s=[],o=!1,l=[];if(i.forEach(function(i){var a,u=e.getValue(i);if(e.hasValue(i)){var c=n[i],d=t[i],h=eL(c);if((0,ec.C)(d))for(var f=d.length,p=null===d[0]?1:0;p<f;p++)a?(0,eJ.k)(eL(d[p])===a,"All keyframes must be of the same type"):(a=eL(d[p]),(0,eJ.k)(a===h||tI(h)&&tI(a),"Keyframes must be of the same dimension as the current value"));else a=eL(d);if(h!==a){if(tI(h)&&tI(a)){var m,g=u.get();"string"==typeof g&&u.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&a===$.px&&(t[i]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==a?void 0:a.transform)&&(0===c||0===d)?0===c?u.set(a.transform(c)):t[i]=h.transform(d):(o||(m=[],tD.forEach(function(t){var n=e.getValue(t);void 0!==n&&(m.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),m.length&&e.syncRender(),s=m,o=!0),l.push(i),r[i]=void 0!==r[i]?r[i]:t[i],tT(u,d))}}}),!l.length)return{target:t,transitionEnd:r};var u=tN(t,e,l);return s.length&&s.forEach(function(t){var n=(0,a.CR)(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),{target:u,transitionEnd:r}},tM=function(e,t,n,r){var i,s,o=function(e,t,n){var r,i=(0,a._T)(t,[]),s=e.getInstance();if(!(s instanceof HTMLElement))return{target:i,transitionEnd:n};for(var o in n&&(n=(0,a.pi)({},n)),e.forEachValue(function(e){var t=e.get();if(e0(t)){var n=e2(t,s);n&&e.set(n)}}),i){var l=i[o];if(e0(l)){var u=e2(l,s);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=l)))}}return{target:i,transitionEnd:n}}(e,t,r);return t=o.target,r=o.transitionEnd,i=t,s=r,Object.keys(i).some(tC)?tL(e,i,n,s):{target:i,transitionEnd:s}},tO=n(43552),tF={treeType:"dom",readValueFromInstance:function(e,t){if((0,N._c)(t)){var n=(0,tO.A)(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(F(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return(0,tE.A)(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var s=t.transition,o=t.transitionEnd,l=(0,a._T)(t,["transition","transitionEnd"]),u=function(e,t,n){var r,i,a={};for(var s in e)a[s]=null!==(r=function(e,t){if(t)return(t[e]||t.default||t).from}(s,t))&&void 0!==r?r:null===(i=n.getValue(s))||void 0===i?void 0:i.get();return a}(l,s||{},e);if(i&&(o&&(o=i(o)),l&&(l=i(l)),u&&(u=i(u))),r){!function(e,t,n){var r,i,a,s,o=Object.keys(t).filter(function(t){return!e.hasValue(t)}),l=o.length;if(l)for(var u=0;u<l;u++){var c,d,h=o[u],f=t[h],p=null;Array.isArray(f)&&(p=f[0]),null===p&&(p=null!==(i=null!==(r=n[h])&&void 0!==r?r:e.readValue(h))&&void 0!==i?i:t[h]),null!=p&&("string"==typeof p&&(c=p,/^\-?\d*\.?\d+$/.test(c))?p=parseFloat(p):(d=p,!eM.find(eP(d))&&eI.P.test(f)&&(p=(0,ej.T)(h,f))),e.addValue(h,(0,eR.B)(p)),null!==(a=(s=n)[h])&&void 0!==a||(s[h]=p),e.setBaseTarget(h,p))}}(e,l,u);var c=tM(e,l,u,o);o=c.transitionEnd,l=c.target}return(0,a.pi)({transition:s,transitionEnd:o},l)},scrapeMotionValuesFromProps:eo,build:function(e,t,n,r,i,a,s){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var o=r.isEnabled&&i.isHydrated;V(t,n,r,i,a,s.transformTemplate,o?tc:void 0,o?td:void 0)},render:ei},tU=t_(tF),tV=t_((0,a.pi)((0,a.pi)({},tF),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return(0,N._c)(t)?(null===(n=(0,tO.A)(t))||void 0===n?void 0:n.default)||0:(t=ea.has(t)?t:er(t),e.getAttribute(t))},scrapeMotionValuesFromProps:el,build:function(e,t,n,r,i,a,s){var o=r.isEnabled&&i.isHydrated;J(t,n,r,i,a,s.transformTemplate,o?tc:void 0,o?td:void 0)},render:es})),tB=function(e,t){return D(e)?tV(t,{enableHardwareAcceleration:!1}):tU(t,{enableHardwareAcceleration:!0})},tq=(0,a.pi)((0,a.pi)((0,a.pi)((0,a.pi)({},ez),eS),eW),{measureLayout:function(e){var t=(0,s.useContext)(tn.WH),n=(0,s.useContext)(tn.bg);return s.createElement(ti,(0,a.pi)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,a.CR)(g(),2)[1];return s.createElement(e7,(0,a.pi)({},e,{safeToRemove:t}))}}),tZ=function(e){function t(t,n){var r,i,o,m,g,v;return void 0===n&&(n={}),i=(r=e(t,n)).preloadedFeatures,o=r.createVisualElement,m=r.useRender,g=r.useVisualState,v=r.Component,i&&function(e){for(var t in e){var n=e[t];null!==n&&(l[t].Component=n)}}(i),(0,s.forwardRef)(function(e,t){var n,r,i,y,_,E,C,T,R,A,D,P,N,L,M,O=(0,s.useContext)(h._).isStatic,F=null,U=(P=(D=function(e,t){if(I(e)){var n=e.initial,r=e.animate;return{initial:!1===n||S(n)?n:void 0,animate:S(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(f.v))).initial,N=D.animate,(0,s.useMemo)(function(){return{initial:P,animate:N}},O?[j(P),j(N)]:[])),V=g(e,O);return!O&&x.j&&(U.visualElement=(n=o,y=(0,s.useContext)(h._),_=(0,s.useContext)(u),E=(0,f.B)(),C=(0,s.useContext)(p.O),r=e.layoutId,T=(i=(0,s.useContext)(b))&&void 0!==r?i+"-"+r:r,R=(0,s.useRef)(void 0),n||(n=_.renderer),!R.current&&n&&(R.current=n(v,{visualState:V,parent:E,props:(0,a.pi)((0,a.pi)({},e),{layoutId:T}),presenceId:null==C?void 0:C.id,blockInitialAnimation:(null==C?void 0:C.initial)===!1})),A=R.current,w(function(){A&&(A.setProps((0,a.pi)((0,a.pi)((0,a.pi)({},y),e),{layoutId:T})),A.isPresent=null===C||C.isPresent,A.isPresenceRoot=!E||E.presenceId!==(null==C?void 0:C.id),A.syncRender())}),(0,s.useEffect)(function(){var e;A&&(null===(e=A.animationState)||void 0===e||e.animateChanges())}),w(function(){return function(){return null==A?void 0:A.notifyUnmount()}},[]),A),F=function(e,t,n){var r=[];if((0,s.useContext)(u),!t)return null;for(var i=0;i<d;i++){var o=c[i],h=l[o],f=h.isEnabled,p=h.Component;f(e)&&p&&r.push(s.createElement(p,(0,a.pi)({key:o},e,{visualElement:t})))}return r}(e,U.visualElement,0)),s.createElement(s.Fragment,null,s.createElement(f.v.Provider,{value:U},m(v,e,(L=U.visualElement,M=t,(0,s.useCallback)(function(e){var t;e&&(null===(t=V.mount)||void 0===t||t.call(V,e)),L&&(e?L.mount(e):L.unmount()),M&&("function"==typeof M?M(e):(0,k.I)(M)&&(M.current=e))},[L])),V,O)),F)})}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}(function(e,t){var n,r,i;return n=t.forwardMotionProps,r=D(e)?ef:ep,(0,a.pi)((0,a.pi)({},r),{preloadedFeatures:tq,useRender:(void 0===(i=void 0!==n&&n)&&(i=!1),function(e,t,n,r,o){var l=r.latestValues,u=(D(e)?et:Z)(t,l,o),c=function(e,t,n){var r={};for(var i in e)(K(i)||!0===n&&H(i)||!t&&!H(i))&&(r[i]=e[i]);return r}(t,"string"==typeof e,i),d=(0,a.pi)((0,a.pi)((0,a.pi)({},c),u),{ref:n});return(0,s.createElement)(e,d)}),createVisualElement:tB,Component:e})})},99366:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(81215);function i(e,t){var n=e.getBoundingClientRect();return(0,r.RX)((0,r.dV)(n,t))}},82971:function(e,t,n){"use strict";n.d(t,{de:function(){return l},e3:function(){return o},kv:function(){return function e(t,n){void 0===n&&(n=[]);var r=t.parent;return r&&e(r,n),s(t)&&n.push(t),n}},x7:function(){return u}});var r=n(76614),i=n(81215),a=n(33813);function s(e){return e.projection.isEnabled||e.shouldResetTransform()}function o(e){var t=[],n=function(e){s(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(a._)}function l(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,i.nP)(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),r.ZP.update(function(){return e.rebaseProjectionTarget()})}}function u(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}},21148:function(e,t,n){"use strict";n.d(t,{R:function(){return s},U:function(){return a}});var r=new Set;function i(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function a(e){return r.add(e),function(){return r.delete(e)}}function s(){if(r.size){var e=0,t=[[]],n=[],a=function(n){return i(t,n,e)},s=function(t){i(n,t,e),e++};r.forEach(function(t){t(a,s),e=0}),r.clear();for(var l=n.length,u=0;u<=l;u++)t[u]&&t[u].forEach(o),n[u]&&n[u].forEach(o)}}var o=function(e){return e()}},42795:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(13802),i=n(17497),a=n(43552);function s(e,t){var n,s=(0,a.A)(e);return s!==r.h&&(s=i.P),null===(n=s.getAnimatableNone)||void 0===n?void 0:n.call(s,t)}},43552:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(85556),i=n(56962),a=n(13802),s=n(20246),o=(0,r.pi)((0,r.pi)({},s.j),{color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:a.h,WebkitFilter:a.h}),l=function(e){return o[e]}},20246:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(26115),i=n(25525),a=n(85556),s=(0,a.pi)((0,a.pi)({},i.Rx),{transform:Math.round}),o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:i.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:s,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:s}},45723:function(e,t,n){"use strict";n.d(t,{Ee:function(){return u},Gl:function(){return i},_c:function(){return o},r$:function(){return r},s3:function(){return a}});var r=["","X","Y","Z"],i=["transformPerspective","x","y","z"];function a(e,t){return i.indexOf(e)-i.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return r.forEach(function(t){return i.push(e+t)})});var s=new Set(i);function o(e){return s.has(e)}var l=new Set(["originX","originY","originZ"]);function u(e){return l.has(e)}},33813:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=function(e,t){return e.depth-t.depth}},49053:function(e,t,n){"use strict";function r(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}n.d(t,{V:function(){return r}})},37549:function(e,t,n){"use strict";var r,i;n.d(t,{r:function(){return r}}),(i=r||(r={})).Animate="animate",i.Hover="whileHover",i.Tap="whileTap",i.Drag="whileDrag",i.Focus="whileFocus",i.Exit="exit"},829:function(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{c:function(){return i},y:function(){return r}})},11156:function(e,t,n){"use strict";function r(e){return[e("x"),e("y")]}n.d(t,{U:function(){return r}})},71146:function(e,t,n){"use strict";n.d(t,{PU:function(){return f},YY:function(){return v},c6:function(){return o},mg:function(){return g}});var r=n(85556),i=n(78590),a=n(49053);function s(e,t){e.min=t.min,e.max=t.max}function o(e,t){s(e.x,t.x),s(e.y,t.y)}function l(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function u(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=l(e.min,t,n,r,i),e.max=l(e.max,t,n,r,i)}function c(e,t,n,a){var s=(0,r.CR)(a,3),o=s[0],l=s[1],c=s[2];e.min=t.min,e.max=t.max;var d=void 0!==n[c]?n[c]:.5,h=(0,i.C)(t.min,t.max,d);u(e,n[o],n[l],h,n.scale)}var d=["x","scaleX","originX"],h=["y","scaleY","originY"];function f(e,t,n){c(e.x,t.x,n,d),c(e.y,t.y,n,h)}function p(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function m(e,t,n){var a,s,o,l,u,c,d=(0,r.CR)(n,3),h=d[0],f=d[1],m=d[2];a=e,s=t[h],o=t[f],l=t[m],u=t.scale,void 0===s&&(s=0),void 0===o&&(o=1),void 0===l&&(l=.5),c=(0,i.C)(a.min,a.max,l)-s,a.min=p(a.min,s,o,c,u),a.max=p(a.max,s,o,c,u)}function g(e,t){m(e.x,t,d),m(e.y,t,h)}function v(e,t,n){var r,i,s=n.length;if(s){t.x=t.y=1;for(var o=0;o<s;o++)i=(r=n[o]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,function(e,t){var n=t.x,r=t.y;u(e.x,n.translate,n.scale,n.originPoint),u(e.y,r.translate,r.scale,r.originPoint)}(e,i),(0,a.V)(r)&&f(e,e,r.getLatestValues())}}},87636:function(e,t,n){"use strict";n.d(t,{BD:function(){return u},Ji:function(){return d},tf:function(){return p}});var r=n(29551),i=n(39798),a=n(35058),s=n(78590);function o(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),(0,i.T)(e,t)<n}function l(e){return e.max-e.min}function u(e,t){var n,i=.5,s=l(e),o=l(t);return o>s?i=(0,a.Y)(t.min,t.max-s,e.min):s>o&&(i=(0,a.Y)(e.min,e.max-o,t.min)),n=i,(0,r.u)(0,1,n)}function c(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=(0,s.C)(t.min,t.max,e.origin),e.scale=l(n)/l(t),o(e.scale,1,1e-4)&&(e.scale=1),e.translate=(0,s.C)(n.min,n.max,e.origin)-e.originPoint,o(e.translate)&&(e.translate=0)}function d(e,t,n,r){c(e.x,t.x,n.x,h(r.originX)),c(e.y,t.y,n.y,h(r.originY))}function h(e){return"number"==typeof e?e:.5}function f(e,t,n){e.min=n.min+t.min,e.max=e.min+l(t)}function p(e,t){f(e.target.x,e.relativeTarget.x,t.target.x),f(e.target.y,e.relativeTarget.y,t.target.y)}},81215:function(e,t,n){"use strict";n.d(t,{VZ:function(){return l},_6:function(){return s},RX:function(){return a},nP:function(){return u},pY:function(){return d},dV:function(){return o}});var r=n(85556);function i(e){return e}function a(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function s(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}function o(e,t){var n=e.top,r=e.left,a=e.bottom,s=e.right;void 0===t&&(t=i);var o=t({x:r,y:n}),l=t({x:s,y:a});return{top:o.y,left:o.x,bottom:l.y,right:l.x}}function l(){return{x:{min:0,max:1},y:{min:0,max:1}}}function u(e){return{x:(0,r.pi)({},e.x),y:(0,r.pi)({},e.y)}}var c={translate:0,scale:1,origin:0,originPoint:0};function d(){return{x:(0,r.pi)({},c),y:(0,r.pi)({},c)}}},27968:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r="undefined"!=typeof window},66402:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{I:function(){return r}})},75022:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(829),i=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return(0,r.y)(this.subscriptions,e),function(){return(0,r.c)(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}()},62504:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=function(e){return 1e3*e}},65113:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(27378);function i(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},43463:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(27378);function i(e){return(0,r.useEffect)(function(){return function(){return e()}},[])}},14607:function(e,t,n){"use strict";n.d(t,{B:function(){return o}});var r=n(76614),i=n(75202),a=n(75022),s=function(){function e(e){var t=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new a.L,this.velocityUpdateSubscribers=new a.L,this.renderSubscribers=new a.L,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var i=(0,r.$B)(),a=i.delta,s=i.timestamp;t.lastUpdated!==s&&(t.timeDelta=a,t.lastUpdated=s,r.ZP.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function o(e){return new s(e)}},34463:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(85556),i=n(27378),a=n(14607),s=n(63297),o=n(65113);function l(e){var t=(0,o.h)(function(){return(0,a.B)(e)});if((0,i.useContext)(s._).isStatic){var n=(0,r.CR)((0,i.useState)(e),2)[1];(0,i.useEffect)(function(){return t.onChange(n)},[])}return t}},26337:function(e,t,n){"use strict";n.d(t,{f:function(){return s},p:function(){return a}});var r=n(27378),i=n(18096);function a(e,t){(0,r.useEffect)(function(){if((0,i.i)(e))return e.onChange(t)},[t])}function s(e,t){(0,r.useEffect)(function(){var n=e.map(function(e){return e.onChange(t)});return function(){return n.forEach(function(e){return e()})}})}},18096:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r=function(e){return null!==e&&"object"==typeof e&&e.getVelocity}},76614:function(e,t,n){"use strict";n.d(t,{qY:function(){return f},ZP:function(){return _},iW:function(){return p},$B:function(){return y}});var r=1/60*1e3,i="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},a="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(i())},r)},s=!0,o=!1,l=!1,u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(function(e,t){var n,r,i,a,s,l;return e[t]=(n=[],r=[],i=0,a=!1,s=new WeakSet,l={schedule:function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var l=o&&a,u=l?n:r;return t&&s.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(i=n.length)),e},cancel:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),s.delete(e)},process:function(e){var t;if(a=!0,n=(t=[r,n])[0],(r=t[1]).length=0,i=n.length)for(var u=0;u<i;u++){var c=n[u];c(e),s.has(c)&&(l.schedule(c),o=!0)}a=!1}}),e},{}),h=c.reduce(function(e,t){var n=d[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),o||v(),n.schedule(e,t,r)},e},{}),f=c.reduce(function(e,t){return e[t]=d[t].cancel,e},{}),p=c.reduce(function(e,t){return e[t]=function(){return d[t].process(u)},e},{}),m=function(e){return d[e].process(u)},g=function(e){o=!1,u.delta=s?r:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,l=!0,c.forEach(m),l=!1,o&&(s=!1,a(g))},v=function(){o=!0,s=!0,l||a(g)},y=function(){return u},_=h},76065:function(e,t,n){"use strict";n.d(t,{K:function(){return r},k:function(){return i}});var r=function(){},i=function(){}},87673:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},5460:function(e){var t,n="html",r="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,o=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var c=new window.DOMParser;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if(document.implementation){var d=document.implementation.createHTMLDocument();l=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var h=document.createElement("template");h.content&&(t=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,d,h,f,p=e.match(a);switch(p&&p[1]&&(c=p[1].toLowerCase()),c){case n:return d=u(e),!s.test(e)&&(h=d.querySelector(r))&&h.parentNode.removeChild(h),!o.test(e)&&(h=d.querySelector(i))&&h.parentNode.removeChild(h),d.querySelectorAll(n);case r:case i:if(f=(d=l(e)).querySelectorAll(c),o.test(e)&&s.test(e))return f[0].parentNode.childNodes;return f;default:if(t)return t(e);return(h=l(e,i).querySelector(i)).childNodes}}},41028:function(e,t,n){var r=n(5460),i=n(14772).e,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},14772:function(e,t,n){for(var r,i=n(36722),a=n(87673).CASE_SENSITIVE_TAG_NAMES,s=i.Comment,o=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},d=0,h=a.length;d<h;d++)c[(r=a[d]).toLowerCase()]=r;t.e=function e(t,n,r){n=n||null;for(var i=[],a=0,d=t.length;a<d;a++){var h,f,p=t[a];switch(p.nodeType){case 1:(f=new o(c[h=(h=p.nodeName).toLowerCase()]||h,function(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}(p.attributes))).children=e(p.childNodes,f);break;case 3:f=new u(p.nodeValue);break;case 8:f=new s(p.nodeValue);break;default:continue}var m=i[a-1]||null;m&&(m.next=f),f.parent=n,f.prev=m,f.next=null,i.push(f)}return r&&((f=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,f.parent=n,i.unshift(f),i[1]&&(i[1].prev=i[0])),i}},35906:function(e,t,n){var r=n(65581),i=n(48895),a=n(41028);a="function"==typeof a.default?a.default:a;var s={lowerCaseAttributeNames:!1};function o(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:r(a(e,(t=t||{}).htmlparser2||s),t)}o.domToReact=r,o.htmlToDOM=a,o.attributesToProps=i,o.Element=n(36722).Element,e.exports=o,e.exports.default=o},48895:function(e,t,n){var r=n(19564),i=n(49713);function a(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,s,o,l,u={},c=(e=e||{}).type&&({reset:!0,submit:!0})[e.type];for(t in e){if(s=e[t],r.isCustomAttribute(t)){u[t]=s;continue}if(o=a(n=t.toLowerCase())){switch(l=r.getPropertyInfo(o),"checked"!==o&&"value"!==o||c||(o=a("default"+n)),u[o]=s,l&&l.type){case r.BOOLEAN:u[o]=!0;break;case r.OVERLOADED_BOOLEAN:""===s&&(u[o]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(u[t]=s)}return i.setStyleProp(e.style,u),u}},65581:function(e,t,n){var r=n(27378),i=n(48895),a=n(49713),s=a.setStyleProp,o=a.canTextBeChildOfNode;e.exports=function e(t,n){for(var l,u,c,d,h,f=(n=n||{}).library||r,p=f.cloneElement,m=f.createElement,g=f.isValidElement,v=[],y="function"==typeof n.replace,_=n.trim,b=0,x=t.length;b<x;b++){if(l=t[b],y&&g(c=n.replace(l))){x>1&&(c=p(c,{key:c.key||b})),v.push(c);continue}if("text"===l.type){if((u=!l.data.trim().length)&&l.parent&&!o(l.parent)||_&&u)continue;v.push(l.data);continue}switch(d=l.attribs,a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===l.type&&a.isCustomComponent(l.name,l.attribs)?s(d.style,d):d&&(d=i(d)),h=null,l.type){case"script":case"style":l.children[0]&&(d.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":"textarea"===l.name&&l.children[0]?d.defaultValue=l.children[0].data:l.children&&l.children.length&&(h=e(l.children,n));break;default:continue}x>1&&(d.key=b),v.push(m(l.name,d,h))}return 1===v.length?v[0]:v}},49713:function(e,t,n){var r=n(27378),i=n(35623).default,a={reactCompat:!0},s=r.version.split(".")[0]>=16,o=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var n,r,i="function"==typeof t,a={},s={};for(n in e){if(r=e[n],i&&(a=t(n,r))&&2===a.length){s[a[0]]=a[1];continue}"string"==typeof r&&(s[r]=n)}return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!o.has(e.name)},elementsWithNoTextChildren:o}},3812:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function h(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:c,column:d};return function(t){return t.position=new p(e),v(r),t}}function p(e){this.start=e,this.end={line:c,column:d},this.source=l.source}p.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return v(r),function(){var e,n=[];for(y(n);e=function(){var e=f(),n=v(i);if(n){if(_(),!v(a))return g("property missing ':'");var r=v(s),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(o),l}}();)!1!==e&&(n.push(e),y(n));return n}()}},3996:function(e){"use strict";e.exports=function(e,t,n,r,i,a,s,o){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,s,o],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},93708:function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.http||(n.re.http=RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r))?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return(n.re.no_http||(n.re.no_http=RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return(n.re.mailto||(n.re.mailto=RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r))?r.match(n.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(){return function(e,t){t.normalize(e)}}function d(e){var t,r=e.re=n(2596)(e.__opts__),o=e.__tlds__.slice();function l(e){return e.replace("%TLDS%",r.src_tlds)}e.onCompile(),e.__tlds_replaced__||o.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),o.push(r.src_xn),r.src_tlds=o.join("|"),r.email_fuzzy=RegExp(l(r.tpl_email_fuzzy),"i"),r.link_fuzzy=RegExp(l(r.tpl_link_fuzzy),"i"),r.link_no_ip_fuzzy=RegExp(l(r.tpl_link_no_ip_fuzzy),"i"),r.host_fuzzy_test=RegExp(l(r.tpl_host_fuzzy_test),"i");var u=[];function d(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n,r=e.__schemas__[t];if(null!==r){var s={validate:null,link:null};if(e.__compiled__[t]=s,"[object Object]"===i(r)){"[object RegExp]"===i(r.validate)?s.validate=(n=r.validate,function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}):a(r.validate)?s.validate=r.validate:d(t,r),a(r.normalize)?s.normalize=r.normalize:r.normalize?d(t,r):s.normalize=c();return}if("[object String]"===i(r)){u.push(t);return}d(t,r)}}),u.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:c()};var h=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+r.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+r.src_ZPCc+"))("+h+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(t=e).__index__=-1,t.__text_cache__=""}function h(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||o.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=r({},o,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){var t,n,r,i,a,s,o,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((o=this.re.schema_search).lastIndex=0;null!==(t=o.exec(e));)if(i=this.testSchemaAt(e,t[2],o.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s)),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},2596:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(98287).source,t.src_Cc=n(50699).source,t.src_Z=n(19338).source,t.src_P=n(16924).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><｜]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},33198:function(e,t,n){var r=0/0,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),h=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=s.test(e);return u||o.test(e)?l(e.slice(2),u?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,i,a,s,o,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,a=i;return r=i=void 0,u=t,s=e.apply(a,n)}function _(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=a}function b(){var e,n,r,i=m();if(_(i))return x(i);o=setTimeout(b,(e=i-l,n=i-u,r=t-e,d?p(r,a-n):r))}function x(e){return(o=void 0,h&&r)?y(e):(r=i=void 0,s)}function w(){var e,n=m(),a=_(n);if(r=arguments,i=this,l=n,a){if(void 0===o)return u=e=l,o=setTimeout(b,t),c?y(e):s;if(d)return o=setTimeout(b,t),y(l)}return void 0===o&&(o=setTimeout(b,t)),s}return t=v(t)||0,g(n)&&(c=!!n.leading,a=(d="maxWait"in n)?f(v(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),w.cancel=function(){void 0!==o&&clearTimeout(o),u=0,r=l=i=o=void 0},w.flush=function(){return void 0===o?s:x(m())},w}},83778:function(e,t,n){"use strict";e.exports=n(37346)},9953:function(e,t,n){"use strict";e.exports=n(52834)},42803:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},13609:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=RegExp("^(?:"+t+"|"+n+"|<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},2257:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function a(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)}function s(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(9953),d=/[&<>"]/,h=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function p(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g,g=n(16924);t.lib={},t.lib.mdurl=n(19762),t.lib.ucmicro=n(26499),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.has=i,t.unescapeMd=function(e){return 0>e.indexOf("\\")?e:e.replace(o,"$1")},t.unescapeAll=function(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(l,function(e,t,n){var r;return t||(r=0,i(c,n)?c[n]:35===n.charCodeAt(0)&&u.test(n)&&a(r="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10))?s(r):e)})},t.isValidEntityCode=a,t.fromCodePoint=s,t.escapeHtml=function(e){return d.test(e)?e.replace(h,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}},83489:function(e,t,n){"use strict";t.parseLinkLabel=n(74969),t.parseLinkDestination=n(91900),t.parseLinkTitle=n(43533)},91900:function(e,t,n){"use strict";var r=n(2257).unescapeAll;e.exports=function(e,t,n){var i,a,s=t,o={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n&&10!==(i=e.charCodeAt(t))&&60!==i;){if(62===i){o.pos=t+1,o.str=r(e.slice(s+1,t)),o.ok=!0;break}if(92===i&&t+1<n){t+=2;continue}t++}return o}for(a=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32)&&127!==i;){if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2;continue}if(40===i&&++a>32)return o;if(41===i){if(0===a)break;a--}t++}return s===t||0!==a||(o.str=r(e.slice(s,t)),o.lines=0,o.pos=t,o.ok=!0),o}},74969:function(e){"use strict";e.exports=function(e,t,n){var r,i,a,s,o=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(a=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===a){if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}}return i&&(o=e.pos),e.pos=u,o}},43533:function(e,t,n){"use strict";var r=n(2257).unescapeAll;e.exports=function(e,t,n){var i,a,s=0,o=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n||34!==(a=e.charCodeAt(t))&&39!==a&&40!==a)return l;for(t++,40===a&&(a=41);t<n;){if((i=e.charCodeAt(t))===a){l.pos=t+1,l.lines=s,l.str=r(e.slice(o+1,t)),l.ok=!0;break}if(40===i&&41===a)break;10===i?s++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&s++),t++}return l}},37346:function(e,t,n){"use strict";var r=n(2257),i=n(83489),a=n(94116),s=n(95611),o=n(56028),l=n(92469),u=n(93708),c=n(19762),d=n(28770),h={default:n(19817),zero:n(63005),commonmark:n(10835)},f=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!p.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=d.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t),c.decode.defaultChars+"%")}function _(e,t){if(!(this instanceof _))return new _(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new o,this.core=new s,this.renderer=new a,this.linkify=new u,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}_.prototype.set=function(e){return r.assign(this.options,e),this},_.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},_.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},_.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return 0>n.indexOf(e)});if(r.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},_.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},_.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},_.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},_.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},_.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=_},56028:function(e,t,n){"use strict";var r=n(48725),i=[["table",n(97636),["paragraph","reference"]],["code",n(12675)],["fence",n(96865),["paragraph","reference","blockquote","list"]],["blockquote",n(35531),["paragraph","reference","blockquote","list"]],["hr",n(45526),["paragraph","reference","blockquote","list"]],["list",n(21991),["paragraph","reference","blockquote"]],["reference",n(68045)],["html_block",n(7734),["paragraph","reference","blockquote"]],["heading",n(1836),["paragraph","reference","blockquote"]],["lheading",n(52111)],["paragraph",n(72235)]];function a(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}a.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),a=i.length,s=t,o=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n)&&!(e.sCount[s]<e.blkIndent));){if(e.level>=l){e.line=n;break}for(r=0;r<a&&!i[r](e,s,n,!1);r++);e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),(s=e.line)<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}},a.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},a.prototype.State=n(7349),e.exports=a},95611:function(e,t,n){"use strict";var r=n(48725),i=[["normalize",n(98138)],["block",n(74006)],["inline",n(84681)],["linkify",n(38323)],["replacements",n(3252)],["smartquotes",n(39369)]];function a(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}a.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},a.prototype.State=n(83035),e.exports=a},92469:function(e,t,n){"use strict";var r=n(48725),i=[["text",n(3363)],["newline",n(6132)],["escape",n(74130)],["backticks",n(3915)],["strikethrough",n(55034).w],["emphasis",n(6989).w],["link",n(67497)],["image",n(40960)],["autolink",n(79208)],["html_inline",n(65342)],["entity",n(34645)]],a=[["balance_pairs",n(89133)],["strikethrough",n(55034).g],["emphasis",n(6989).g],["text_collapse",n(81787)]];function s(){var e;for(e=0,this.ruler=new r;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(e=0,this.ruler2=new r;e<a.length;e++)this.ruler2.push(a[e][0],a[e][1])}s.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),a=i.length,s=e.md.options.maxNesting,o=e.cache;if(void 0!==o[r]){e.pos=o[r];return}if(e.level<s)for(n=0;n<a&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;!t&&e.pos++,o[r]=e.pos},s.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,a=e.posMax,s=e.md.options.maxNesting;e.pos<a;){if(e.level<s)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=a)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,n,r){var i,a,s,o=new this.State(e,t,n,r);for(this.tokenize(o),s=(a=this.ruler2.getRules("")).length,i=0;i<s;i++)a[i](o)},s.prototype.State=n(61496),e.exports=s},10835:function(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},19817:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},63005:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},94116:function(e,t,n){"use strict";var r=n(2257).assign,i=n(2257).unescapeAll,a=n(2257).escapeHtml,s={};function o(){this.rules=r({},s)}s.code_inline=function(e,t,n,r,i){var s=e[t];return"<code"+i.renderAttrs(s)+">"+a(e[t].content)+"</code>"},s.code_block=function(e,t,n,r,i){var s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+a(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,n,r,s){var o,l,u,c,d=e[t],h=d.info?i(d.info).trim():"",f="",p="";return(h&&(f=(u=h.split(/(\s+)/g))[0],p=u.slice(2).join("")),0===(o=n.highlight&&n.highlight(d.content,f,p)||a(d.content)).indexOf("<pre"))?o+"\n":h?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+f]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+f),"<pre><code"+s.renderAttrs({attrs:c})+">"+o+"</code></pre>\n"):"<pre><code"+s.renderAttrs(d)+">"+o+"</code></pre>\n"},s.image=function(e,t,n,r,i){var a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},s.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return a(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},o.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(t=0,r="",n=e.attrs.length;t<n;t++)r+=" "+a(e.attrs[t][0])+'="'+a(e.attrs[t][1])+'"';return r},o.prototype.renderToken=function(e,t,n){var r,i="",a=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===s.nesting?"</":"<")+s.tag+this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(i+=" /"),s.block&&(a=!0,1===s.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?a=!1:-1===r.nesting&&r.tag===s.tag&&(a=!1))),i+=a?">\n":">")},o.prototype.renderInline=function(e,t,n){for(var r,i="",a=this.rules,s=0,o=e.length;s<o;s++)void 0!==a[r=e[s].type]?i+=a[r](e,s,t,n,this):i+=this.renderToken(e,s,t);return i},o.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,a=e.length;i<a;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},o.prototype.render=function(e,t,n){var r,i,a,s="",o=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(a=e[r].type)?s+=this.renderInline(e[r].children,t,n):void 0!==o[a]?s+=o[e[r].type](e,r,t,n,this):s+=this.renderToken(e,r,t,n);return s},e.exports=o},48725:function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){!n.enabled||t&&0>n.alt.indexOf(t)||e.__cache__[t].push(n.fn)})})},t.prototype.at=function(e,t,n){var r=this.__find__(e);if(-1===r)throw Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=(n||{}).alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:(r||{}).alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(n||{}).alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},35531:function(e,t,n){"use strict";var r=n(2257).isSpace;e.exports=function(e,t,n,i){var a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S=e.lineMax,C=e.bMarks[t]+e.tShift[t],T=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(C++))return!1;if(i)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,l++,f++,a=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[t]+f)%4==3?(C++,l++,f++,a=!1):a=!0):b=!1,p=[e.bMarks[t]],e.bMarks[t]=C;C<T&&r(s=e.src.charCodeAt(C));)9===s?f+=4-(f+e.bsCount[t]+(a?1:0))%4:f++,C++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),c=C>=T,y=[e.sCount[t]],e.sCount[t]=f-l,_=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",h=t+1;h<n&&(E=e.sCount[h]<e.blkIndent,C=e.bMarks[h]+e.tShift[h],T=e.eMarks[h],!(C>=T));h++){if(62===e.src.charCodeAt(C++)&&!E){for(l=f=e.sCount[h]+1,32===e.src.charCodeAt(C)?(C++,l++,f++,a=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[h]+f)%4==3?(C++,l++,f++,a=!1):a=!0):b=!1,p.push(e.bMarks[h]),e.bMarks[h]=C;C<T&&r(s=e.src.charCodeAt(C));)9===s?f+=4-(f+e.bsCount[h]+(a?1:0))%4:f++,C++;c=C>=T,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(b?1:0),y.push(e.sCount[h]),e.sCount[h]=f-l,_.push(e.tShift[h]),e.tShift[h]=C-e.bMarks[h];continue}if(c)break;for(o=0,x=!1,u=w.length;o<u;o++)if(w[o](e,h,n,!0)){x=!0;break}if(x){e.lineMax=h,0!==e.blkIndent&&(p.push(e.bMarks[h]),m.push(e.bsCount[h]),_.push(e.tShift[h]),y.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}p.push(e.bMarks[h]),m.push(e.bsCount[h]),_.push(e.tShift[h]),y.push(e.sCount[h]),e.sCount[h]=-1}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=d=[t,0],e.md.block.tokenize(e,t,h),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,d[1]=e.line,o=0;o<_.length;o++)e.bMarks[o+t]=p[o],e.tShift[o+t]=_[o],e.sCount[o+t]=y[o],e.bsCount[o+t]=m[o];return e.blkIndent=g,!0}},12675:function(e){"use strict";e.exports=function(e,t,n){var r,i,a;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){i=++r;continue}break}return e.line=i,(a=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}},96865:function(e){"use strict";e.exports=function(e,t,n,r){var i,a,s,o,l,u,c,d=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||126!==(i=e.src.charCodeAt(h))&&96!==i||(l=h,(a=(h=e.skipChars(h,i))-l)<3)||(c=e.src.slice(l,h),s=e.src.slice(h,f),96===i&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(o=t;!(++o>=n)&&(!((h=l=e.bMarks[o]+e.tShift[o])<(f=e.eMarks[o]))||!(e.sCount[o]<e.blkIndent));)if(!(e.src.charCodeAt(h)!==i||e.sCount[o]-e.blkIndent>=4||(h=e.skipChars(h,i))-l<a||(h=e.skipSpaces(h))<f)){d=!0;break}return a=e.sCount[t],e.line=o+(d?1:0),(u=e.push("fence","code",0)).info=s,u.content=e.getLines(t+1,o,a,!0),u.markup=c,u.map=[t,e.line],!0}},1836:function(e,t,n){"use strict";var r=n(2257).isSpace;e.exports=function(e,t,n,i){var a,s,o,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||35!==(a=e.src.charCodeAt(u))||u>=c)return!1;for(s=1,a=e.src.charCodeAt(++u);35===a&&u<c&&s<=6;)s++,a=e.src.charCodeAt(++u);return!(s>6)&&(!(u<c)||!!r(a))&&(!!i||(c=e.skipSpacesBack(c,u),(o=e.skipCharsBack(c,35,u))>u&&r(e.src.charCodeAt(o-1))&&(c=o),e.line=t+1,(l=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s),!0))}},45526:function(e,t,n){"use strict";var r=n(2257).isSpace;e.exports=function(e,t,n,i){var a,s,o,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||42!==(a=e.src.charCodeAt(u++))&&45!==a&&95!==a)return!1;for(s=1;u<c;){if((o=e.src.charCodeAt(u++))!==a&&!r(o))return!1;o===a&&s++}return!(s<3)&&(!!i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0))}},7734:function(e,t,n){"use strict";var r=n(42803),i=n(13609).q,a=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,s,o,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(u))return!1;for(i=0,l=e.src.slice(u,c);i<a.length&&!a[i][0].test(l);i++);if(i===a.length)return!1;if(r)return a[i][2];if(s=t+1,!a[i][1].test(l)){for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],l=e.src.slice(u,c),a[i][1].test(l)){0!==l.length&&s++;break}}return e.line=s,(o=e.push("html_block","",0)).map=[t,s],o.content=e.getLines(t,s,e.blkIndent,!0),!0}},52111:function(e){"use strict";e.exports=function(e,t,n){var r,i,a,s,o,l,u,c,d,h,f=t+1,p=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(u=e.eMarks[f])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=u)){c=61===d?1:2;break}if(!(e.sCount[f]<0)){for(a=0,i=!1,s=p.length;a<s;a++)if(p[a](e,f,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(o=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(d),o.map=[t,e.line],(o=e.push("inline","",0)).content=r,o.map=[t,e.line-1],o.children=[],(o=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(d),e.parentType=h,!0)}},21991:function(e,t,n){"use strict";var r=n(2257).isSpace;function i(e,t){var n,i,a;return(i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<a&&!r(e.src.charCodeAt(i)))?-1:i}function a(e,t){var n,i=e.bMarks[t]+e.tShift[t],a=i,s=e.eMarks[t];if(a+1>=s||(n=e.src.charCodeAt(a++))<48||n>57)return -1;for(;;){if(a>=s)return -1;if((n=e.src.charCodeAt(a++))>=48&&n<=57){if(a-i>=10)return -1;continue}if(41===n||46===n)break;return -1}return a<s&&!r(n=e.src.charCodeAt(a))?-1:a}e.exports=function(e,t,n,r){var s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D,P,N=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(N=!0),(I=a(e,t))>=0){if(h=!0,j=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(j,I-1)),N&&1!==y)return!1}else{if(!((I=i(e,t))>=0))return!1;h=!1}if(N&&e.skipSpaces(I)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(I-1),r)return!0;for(g=e.tokens.length,h?(P=e.push("ordered_list_open","ol",1),1!==y&&(P.attrs=[["start",y]])):P=e.push("bullet_list_open","ul",1),P.map=m=[t,0],P.markup=String.fromCharCode(v),b=t,R=!1,D=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";b<n;){for(T=I,_=e.eMarks[b],d=x=e.sCount[b]+I-(e.bMarks[t]+e.tShift[t]);T<_;){if(9===(s=e.src.charCodeAt(T)))x+=4-(x+e.bsCount[b])%4;else if(32===s)x++;else break;T++}if((c=(o=T)>=_?1:x-d)>4&&(c=1),u=d+c,(P=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),P.map=f=[t,0],h&&(P.info=e.src.slice(j,I-1)),C=e.tight,S=e.tShift[t],E=e.sCount[t],w=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=x,o>=_&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),(!e.tight||R)&&(L=!1),R=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[t]=S,e.sCount[t]=E,e.tight=C,(P=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),b=t=e.line,f[1]=b,o=e.bMarks[t],b>=n||e.sCount[b]<e.blkIndent||e.sCount[t]-e.blkIndent>=4)break;for(l=0,A=!1,p=D.length;l<p;l++)if(D[l](e,b,n,!0)){A=!0;break}if(A)break;if(h){if((I=a(e,b))<0)break;j=e.bMarks[b]+e.tShift[b]}else if((I=i(e,b))<0)break;if(v!==e.src.charCodeAt(I-1))break}return(P=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=b,e.line=b,e.parentType=k,L&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},72235:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,s,o,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(o=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(i=0,r=!1,a=u.length;i<a;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=o,!0}},68045:function(e,t,n){"use strict";var r=n(2257).normalizeReference,i=n(2257).isSpace;e.exports=function(e,t,n,a){var s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w=0,k=e.bMarks[t]+e.tShift[t],E=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(k))return!1;for(;++k<E;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===E||58!==e.src.charCodeAt(k+1))return!1;break}for(u=e.lineMax,b=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";S<u&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(d=0,_=!1,h=b.length;d<h;d++)if(b[d](e,S,u,!0)){_=!0;break}if(_)break}for(k=1,E=(y=e.getLines(t,S,e.blkIndent,!1).trim()).length;k<E;k++){if(91===(s=y.charCodeAt(k)))return!1;if(93===s){p=k;break}10===s?w++:92===s&&++k<E&&10===y.charCodeAt(k)&&w++}if(p<0||58!==y.charCodeAt(p+1))return!1;for(k=p+2;k<E;k++)if(10===(s=y.charCodeAt(k)))w++;else if(i(s));else break;if(!(g=e.md.helpers.parseLinkDestination(y,k,E)).ok||(c=e.md.normalizeLink(g.str),!e.md.validateLink(c)))return!1;for(k=g.pos,w+=g.lines,o=k,l=w,v=k;k<E;k++)if(10===(s=y.charCodeAt(k)))w++;else if(i(s));else break;for(g=e.md.helpers.parseLinkTitle(y,k,E),k<E&&v!==k&&g.ok?(x=g.str,k=g.pos,w+=g.lines):(x="",k=o,w=l);k<E&&i(s=y.charCodeAt(k));)k++;if(k<E&&10!==y.charCodeAt(k)&&x)for(x="",k=o,w=l;k<E&&i(s=y.charCodeAt(k));)k++;return!!((!(k<E)||10===y.charCodeAt(k))&&(f=r(y.slice(1,p))))&&(!!a||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:x,href:c}),e.parentType=m,e.line=t+w+1,!0))}},7349:function(e,t,n){"use strict";var r=n(19159),i=n(2257).isSpace;function a(e,t,n,r){var a,s,o,l,u,c,d,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,h=!1,o=l=c=d=0,u=s.length;l<u;l++){if(a=s.charCodeAt(l),!h){if(i(a)){c++,9===a?d+=4-d%4:d++;continue}h=!0}(10===a||l===u-1)&&(10!==a&&l++,this.bMarks.push(o),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),h=!1,c=0,d=0,o=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}a.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},a.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},a.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},a.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&i(this.src.charCodeAt(e));e++);return e},a.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},a.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},a.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},a.prototype.getLines=function(e,t,n,r){var a,s,o,l,u,c,d,h=e;if(e>=t)return"";for(a=0,c=Array(t-e);h<t;h++,a++){for(s=0,d=l=this.bMarks[h],u=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];l<u&&s<n;){if(i(o=this.src.charCodeAt(l)))9===o?s+=4-(s+this.bsCount[h])%4:s++;else if(l-d<this.tShift[h])s++;else break;l++}s>n?c[a]=Array(s-n+1).join(" ")+this.src.slice(l,u):c[a]=this.src.slice(l,u)}return c.join("")},a.prototype.Token=r,e.exports=a},97636:function(e,t,n){"use strict";var r=n(2257).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function a(e){var t,n=[],r=0,i=e.length,a=!1,s=0,o="";for(t=e.charCodeAt(r);r<i;)124===t&&(a?(o+=e.substring(s,r-1),s=r):(n.push(o+e.substring(s,r)),o="",s=r+1)),a=92===t,r++,t=e.charCodeAt(r);return n.push(o+e.substring(s)),n}e.exports=function(e,t,n,s){var o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E;if(t+2>n||(h=t+1,e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4||(u=e.bMarks[h]+e.tShift[h])>=e.eMarks[h]||124!==(k=e.src.charCodeAt(u++))&&45!==k&&58!==k||u>=e.eMarks[h]||124!==(E=e.src.charCodeAt(u++))&&45!==E&&58!==E&&!r(E)||45===k&&r(E)))return!1;for(;u<e.eMarks[h];){if(124!==(o=e.src.charCodeAt(u))&&45!==o&&58!==o&&!r(o))return!1;u++}for(c=0,f=(l=i(e,t+1)).split("|"),g=[];c<f.length;c++){if(!(v=f[c].trim())){if(0===c||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=i(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4||((f=a(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(p=f.length)||p!==g.length))return!1;if(s)return!0;for(c=0,b=e.parentType,e.parentType="table",w=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1];c<f.length;c++)m=e.push("th_open","th",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),h=t+2;h<n&&!(e.sCount[h]<e.blkIndent);h++){for(c=0,x=!1,d=w.length;c<d;c++)if(w[c](e,h,n,!0)){x=!0;break}if(x||!(l=i(e,h).trim())||e.sCount[h]-e.blkIndent>=4)break;for((f=a(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),h===t+2&&((m=e.push("tbody_open","tbody",1)).map=_=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[h,h+1],c=0;c<p;c++)m=e.push("td_open","td",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return _&&(m=e.push("tbody_close","tbody",-1),_[1]=h),m=e.push("table_close","table",-1),y[1]=h,e.parentType=b,e.line=h,!0}},74006:function(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},84681:function(e){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},38323:function(e,t,n){"use strict";var r=n(2257).arrayReplaceAt;e.exports=function(e){var t,n,i,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x=e.tokens;if(e.md.options.linkify){for(a=0,s=x.length;a<s;a++)if("inline"===x[a].type&&e.md.linkify.pretest(x[a].content))for(o=x[a].children,g=0,i=o.length-1;i>=0;i--){if("link_close"===(u=o[i]).type){for(i--;o[i].level!==u.level&&"link_open"!==o[i].type;)i--;continue}if("html_inline"===u.type&&(t=u.content,/^<a[>\s]/i.test(t)&&g>0&&g--,n=u.content,/^<\/a\s*>/i.test(n)&&g++),!(g>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(d=0,h=u.content,b=e.md.linkify.match(h),c=[],m=u.level,p=0;d<b.length;d++)v=b[d].url,y=e.md.normalizeLink(v),e.md.validateLink(y)&&(_=b[d].text,_=b[d].schema?"mailto:"!==b[d].schema||/^mailto:/i.test(_)?e.md.normalizeLinkText(_):e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),(f=b[d].index)>p&&((l=new e.Token("text","",0)).content=h.slice(p,f),l.level=m,c.push(l)),(l=new e.Token("link_open","a",1)).attrs=[["href",y]],l.level=m++,l.markup="linkify",l.info="auto",c.push(l),(l=new e.Token("text","",0)).content=_,l.level=m,c.push(l),(l=new e.Token("link_close","a",-1)).level=--m,l.markup="linkify",l.info="auto",c.push(l),p=b[d].lastIndex);p<h.length&&((l=new e.Token("text","",0)).content=h.slice(p),l.level=m,c.push(l)),x[a].children=o=r(o,i,c)}}}}},98138:function(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}},3252:function(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/ig,i={c:"\xa9",r:"\xae",p:"\xa7",tm:"™"};function a(e,t){return i[t.toLowerCase()]}e.exports=function(e){var i;if(e.md.options.typographer)for(i=e.tokens.length-1;i>=0;i--)"inline"===e.tokens[i].type&&(n.test(e.tokens[i].content)&&function(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,a)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}(e.tokens[i].children),t.test(e.tokens[i].content)&&function(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"===(r=e[n]).type&&!i&&t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}(e.tokens[i].children))}},39369:function(e,t,n){"use strict";var r=n(2257).isWhiteSpace,i=n(2257).isPunctChar,a=n(2257).isMdAsciiPunct,s=/['"]/,o=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&function(e,t){var n,s,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S,C,T;for(n=0,S=[];n<e.length;n++){for(s=e[n],f=e[n].level,k=S.length-1;k>=0&&!(S[k].level<=f);k--);if(S.length=k+1,"text"===s.type){u=s.content,d=0,h=u.length;n:for(;d<h&&(o.lastIndex=d,c=o.exec(u));){if(x=w=!0,d=c.index+1,E="'"===c[0],m=32,c.index-1>=0)m=u.charCodeAt(c.index-1);else for(k=n-1;k>=0&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k--)if(e[k].content){m=e[k].content.charCodeAt(e[k].content.length-1);break}if(g=32,d<h)g=u.charCodeAt(d);else for(k=n+1;k<e.length&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k++)if(e[k].content){g=e[k].content.charCodeAt(0);break}if(v=a(m)||i(String.fromCharCode(m)),y=a(g)||i(String.fromCharCode(g)),_=r(m),(b=r(g))?x=!1:y&&!(_||v)&&(x=!1),_?w=!1:v&&!(b||y)&&(w=!1),34===g&&'"'===c[0]&&m>=48&&m<=57&&(w=x=!1),x&&w&&(x=v,w=y),!x&&!w){E&&(s.content=l(s.content,c.index,"’"));continue}if(w){for(k=S.length-1;k>=0&&(p=S[k],!(S[k].level<f));k--)if(p.single===E&&S[k].level===f){p=S[k],E?(C=t.md.options.quotes[2],T=t.md.options.quotes[3]):(C=t.md.options.quotes[0],T=t.md.options.quotes[1]),s.content=l(s.content,c.index,T),e[p.token].content=l(e[p.token].content,p.pos,C),d+=T.length-1,p.token===n&&(d+=C.length-1),h=(u=s.content).length,S.length=k;continue n}}x?S.push({token:n,pos:c.index,single:E,level:f}):w&&E&&(s.content=l(s.content,c.index,"’"))}}}}(e.tokens[t].children,e)}},83035:function(e,t,n){"use strict";var r=n(19159);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},79208:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,a,s,o,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u||60===(o=e.src.charCodeAt(c)))return!1;if(62===o)break}return(i=e.src.slice(l+1,c),n.test(i))?(a=e.md.normalizeLink(i),!!e.md.validateLink(a)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(a=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(a)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",a]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0))}},3915:function(e){"use strict";e.exports=function(e,t){var n,r,i,a,s,o,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(s=o=c;-1!==(s=e.src.indexOf("`",o));){for(o=s+1;o<r&&96===e.src.charCodeAt(o);)o++;if((u=o-s)===l)return t||((a=e.push("code_inline","code",0)).markup=i,a.content=e.src.slice(c,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=o,!0;e.backticks[u]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},89133:function(e){"use strict";function t(e,t){var n,r,i,a,s,o,l,u,c={},d=t.length;if(d){var h=0,f=-2,p=[];for(n=0;n<d;n++)if(i=t[n],p.push(0),(t[h].marker!==i.marker||f!==i.token-1)&&(h=n),f=i.token,i.length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),s=c[i.marker][(i.open?3:0)+i.length%3],o=r=h-p[h]-1;r>s;r-=p[r]+1)if((a=t[r]).marker===i.marker&&a.open&&a.end<0&&(l=!1,(a.close||i.open)&&(a.length+i.length)%3==0&&(a.length%3!=0||i.length%3!=0)&&(l=!0),!l)){u=r>0&&!t[r-1].open?p[r-1]+1:0,p[n]=n-r+u,p[r]=u,i.open=!1,a.end=n,a.close=!1,o=-1,f=-2;break}-1!==o&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},6989:function(e){"use strict";function t(e,t){var n,r,i,a,s,o;for(n=t.length-1;n>=0;n--)(95===(r=t[n]).marker||42===r.marker)&&-1!==r.end&&(i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),(a=e.tokens[r.token]).type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="",(a=e.tokens[i.token]).type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?s+s:s,a.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,i=e.pos,a=e.src.charCodeAt(i);if(t||95!==a&&42!==a)return!1;for(n=0,r=e.scanDelims(e.pos,42===a);n<r.length;n++)e.push("text","",0).content=String.fromCharCode(a),e.delimiters.push({marker:a,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},34645:function(e,t,n){"use strict";var r=n(9953),i=n(2257).has,a=n(2257).isValidEntityCode,s=n(2257).fromCodePoint,o=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c=e.pos,d=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<d){if(35===e.src.charCodeAt(c+1)){if(u=e.src.slice(c).match(o))return t||(n="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),e.pending+=a(n)?s(n):s(65533)),e.pos+=u[0].length,!0}else if((u=e.src.slice(c).match(l))&&i(r,u[1]))return t||(e.pending+=r[u[1]]),e.pos+=u[0].length,!0}return t||(e.pending+="&"),e.pos++,!0}},74130:function(e,t,n){"use strict";for(var r=n(2257).isSpace,i=[],a=0;a<256;a++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,a=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(a))return!1;if(++a<s){if((n=e.src.charCodeAt(a))<256&&0!==i[n])return t||(e.pending+=e.src[a]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),a++;a<s&&r(n=e.src.charCodeAt(a));)a++;return e.pos=a,!0}}return t||(e.pending+="\\"),e.pos++,!0}},65342:function(e,t,n){"use strict";var r=n(13609).n;e.exports=function(e,t){var n,i,a,s,o=e.pos;return!!e.md.options.html&&(s=e.posMax,60===e.src.charCodeAt(o)&&!(o+2>=s))&&!!((33===(i=e.src.charCodeAt(o+1))||63===i||47===i||(n=32|i)>=97&&n<=122)&&(a=e.src.slice(o).match(r)))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+a[0].length)),e.pos+=a[0].length,!0)}},40960:function(e,t,n){"use strict";var r=n(2257).normalizeReference,i=n(2257).isSpace;e.exports=function(e,t){var n,a,s,o,l,u,c,d,h,f,p,m,g,v="",y=e.pos,_=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1)||(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0))return!1;if((c=l+1)<_&&40===e.src.charCodeAt(c)){for(c++;c<_&&(i(a=e.src.charCodeAt(c))||10===a);c++);if(c>=_)return!1;for(g=c,(h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(h.str),e.md.validateLink(v)?c=h.pos:v=""),g=c;c<_&&(i(a=e.src.charCodeAt(c))||10===a);c++);if(h=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<_&&g!==c&&h.ok)for(f=h.str,c=h.pos;c<_&&(i(a=e.src.charCodeAt(c))||10===a);c++);else f="";if(c>=_||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c<_&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?o=e.src.slice(g,c++):c=l+1):c=l+1,o||(o=e.src.slice(u,l)),!(d=e.env.references[r(o)]))return e.pos=y,!1;v=d.href,f=d.title}return!t&&(s=e.src.slice(u,l),e.md.inline.parse(s,e.md,e.env,m=[]),(p=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],p.children=m,p.content=s,f&&n.push(["title",f])),e.pos=c,e.posMax=_,!0}},67497:function(e,t,n){"use strict";var r=n(2257).normalizeReference,i=n(2257).isSpace;e.exports=function(e,t){var n,a,s,o,l,u,c,d,h="",f="",p=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos)||(l=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0))return!1;if((u=o+1)<m&&40===e.src.charCodeAt(u)){for(v=!1,u++;u<m&&(i(a=e.src.charCodeAt(u))||10===a);u++);if(u>=m)return!1;if(g=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(h=e.md.normalizeLink(c.str),e.md.validateLink(h)?u=c.pos:h="",g=u;u<m&&(i(a=e.src.charCodeAt(u))||10===a);u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&g!==u&&c.ok)for(f=c.str,u=c.pos;u<m&&(i(a=e.src.charCodeAt(u))||10===a);u++);}(u>=m||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u<m&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=o+1):u=o+1,s||(s=e.src.slice(l,o)),!(d=e.env.references[r(s)]))return e.pos=p,!1;h=d.href,f=d.title}return t||(e.pos=l,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",h]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0}},6132:function(e,t,n){"use strict";var r=n(2257).isSpace;e.exports=function(e,t){var n,i,a,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(n=e.pending.length-1,i=e.posMax,!t){if(n>=0&&32===e.pending.charCodeAt(n)){if(n>=1&&32===e.pending.charCodeAt(n-1)){for(a=n-1;a>=1&&32===e.pending.charCodeAt(a-1);)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)}else e.push("softbreak","br",0)}for(s++;s<i&&r(e.src.charCodeAt(s));)s++;return e.pos=s,!0}},61496:function(e,t,n){"use strict";var r=n(19159),i=n(2257).isWhiteSpace,a=n(2257).isPunctChar,s=n(2257).isMdAsciiPunct;function o(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}o.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},o.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),a=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(a),i},o.prototype.scanDelims=function(e,t){var n,r,o,l,u,c,d,h,f,p=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p<v&&this.src.charCodeAt(p)===y;)p++;return o=p-e,r=p<v?this.src.charCodeAt(p):32,d=s(n)||a(String.fromCharCode(n)),f=s(r)||a(String.fromCharCode(r)),c=i(n),(h=i(r))?m=!1:f&&!(c||d)&&(m=!1),c?g=!1:d&&!(h||f)&&(g=!1),t?(l=m,u=g):(l=m&&(!g||d),u=g&&(!m||f)),{can_open:l,can_close:u,length:o}},o.prototype.Token=r,e.exports=o},55034:function(e){"use strict";function t(e,t){var n,r,i,a,s,o=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(a=t[i.end],(s=e.tokens[i.token]).type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",(s=e.tokens[a.token]).type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&o.push(a.token-1));for(;o.length;){for(r=(n=o.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(s=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=s)}}e.exports.w=function(e,t){var n,r,i,a,s=e.pos,o=e.src.charCodeAt(s);if(t||126!==o||(i=(r=e.scanDelims(e.pos,!0)).length,a=String.fromCharCode(o),i<2))return!1;for(i%2&&(e.push("text","",0).content=a,i--),n=0;n<i;n+=2)e.push("text","",0).content=a+a,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},3363:function(e){"use strict";e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},81787:function(e){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},19159:function(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return -1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return -1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},90819:function(e){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(n=0,i=t[e]=[];n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,n,r,a,s,o,l,u="";for(t=0,n=e.length;t<n;t+=3){if((r=parseInt(e.slice(t+1,t+3),16))<128){u+=i[r];continue}if((224&r)==192&&t+3<n&&(192&(a=parseInt(e.slice(t+4,t+6),16)))==128){(l=r<<6&1984|63&a)<128?u+="��":u+=String.fromCharCode(l),t+=3;continue}if((240&r)==224&&t+6<n&&(a=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),(192&a)==128&&(192&s)==128)){(l=r<<12&61440|a<<6&4032|63&s)<2048||l>=55296&&l<=57343?u+="���":u+=String.fromCharCode(l),t+=6;continue}if((248&r)==240&&t+9<n&&(a=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),o=parseInt(e.slice(t+10,t+12),16),(192&a)==128&&(192&s)==128&&(192&o)==128)){(l=r<<18&1835008|a<<12&258048|s<<6&4032|63&o)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9;continue}u+="�"}return u})}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},44651:function(e){"use strict";var t={};function n(e,r,i){var a,s,o,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(n=0,i=t[e]=[];n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),a=0,s=e.length;a<s;a++){if(o=e.charCodeAt(a),i&&37===o&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){c+=e.slice(a,a+3),a+=2;continue}if(o<128){c+=u[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<s&&(l=e.charCodeAt(a+1))>=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(e[a])}return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},60814:function(e){"use strict";e.exports=function(e){var t="";return t+=(e.protocol||"")+(e.slashes?"//":"")+(e.auth?e.auth+"@":""),e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=(e.port?":"+e.port:"")+(e.pathname||"")+(e.search||"")+(e.hash||"")}},19762:function(e,t,n){"use strict";e.exports.encode=n(44651),e.exports.decode=n(90819),e.exports.format=n(60814),e.exports.parse=n(57670)},57670:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),s=["/","?","#"],o=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,u={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,d,h,f,p,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(h=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(p="//"===m.substr(0,2))&&!(v&&u[v])&&(m=m.substr(2),this.slashes=!0),!u[v]&&(p||v&&!c[v])){var y,_,b=-1;for(r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===b||f<b)&&(b=f);for(-1!==(_=-1===b?m.lastIndexOf("@"):m.lastIndexOf("@",b))&&(y=m.slice(0,_),m=m.slice(_+1),this.auth=y),b=-1,r=0;r<a.length;r++)-1!==(f=m.indexOf(a[r]))&&(-1===b||f<b)&&(b=f);-1===b&&(b=m.length),":"===m[b-1]&&b--;var x=m.slice(0,b);m=m.slice(b),this.parseHost(x),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w){var k=this.hostname.split(/\./);for(r=0,d=k.length;r<d;r++){var E=k[r];if(E&&!E.match(o)){for(var S="",C=0,T=E.length;C<T;C++)E.charCodeAt(C)>127?S+="x":S+=E[C];if(!S.match(o)){var I=k.slice(0,r),R=k.slice(r+1),j=E.match(l);j&&(I.push(j[1]),R.unshift(j[2])),R.length&&(m=R.join(".")+m),this.hostname=I.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=m.indexOf("#");-1!==A&&(this.hash=m.substr(A),m=m.slice(0,A));var D=m.indexOf("?");return -1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),c[h]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},14284:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(66118)},36321:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(33280)}])},95081:function(e,t,n){"use strict";let r,i,a,s,o,l,u,c,d,h,f;var p,m,g={};n.r(g),n.d(g,{FunctionToString:function(){return _.c},InboundFilters:function(){return b.Q},LinkedErrors:function(){return T}});var v={};n.r(v),n.d(v,{Breadcrumbs:function(){return A.O},Dedupe:function(){return N.I},GlobalHandlers:function(){return R.d},HttpContext:function(){return P.q},LinkedErrors:function(){return D.i},TryCatch:function(){return j.p}});var y=n(50432),_=n(14979),b=n(37107),x=n(18401);function w(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=e(t.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}var k=n(99354);let E="LinkedErrors",S=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:E,setupOnce(){},preprocessEvent(e,r,i){let a=i.getOptions();(0,x.Z)(w,a.stackParser,a.maxValueLength,n,t,e,r)}}},C=(0,k._I)(S),T=(0,k.RN)(E,C);var I=n(51197),R=n(35519),j=n(34183),A=n(40613),D=n(97373),P=n(21680),N=n(12836);let L={};I.m9.Sentry&&I.m9.Sentry.Integrations&&(L=I.m9.Sentry.Integrations);let M={...L,...g,...v};var O=n(33190),F=n(60074),U=n(14284),V=n(86922),B=n(94180),q=n(52017),Z=n(63449),z=n(67451),H=n(39109);function K(e){let t=r?r.get(e):void 0;if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push((0,H.Jr)(r));return n}let W="sentry.source",$="sentry.sample_rate",G="sentry.op",Y="sentry.origin";var Q=n(20094);(p=m||(m={})).Ok="ok",p.DeadlineExceeded="deadline_exceeded",p.Unauthenticated="unauthenticated",p.PermissionDenied="permission_denied",p.NotFound="not_found",p.ResourceExhausted="resource_exhausted",p.InvalidArgument="invalid_argument",p.Unimplemented="unimplemented",p.Unavailable="unavailable",p.InternalError="internal_error",p.UnknownError="unknown_error",p.Cancelled="cancelled",p.AlreadyExists="already_exists",p.FailedPrecondition="failed_precondition",p.Aborted="aborted",p.OutOfRange="out_of_range",p.DataLoss="data_loss";class X{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class J{constructor(e={}){this._traceId=e.traceId||(0,z.DM)(),this._spanId=e.spanId||(0,z.DM)().substring(16),this._startTime=e.startTimestamp||(0,B.ph)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Y]:e.origin||"manual",[G]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[G]}set op(e){this.setAttribute(G,e)}get origin(){return this._attributes[Y]}set origin(e){this.setAttribute(Y,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Z.i0:Z.ve}}startChild(e){let t=new J({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);let n=(0,Q.G)(this);if(t.transaction=n,q.X&&n){let r=e&&e.op||"< unknown op >",i=(0,Z.XU)(t).description||"< unknown name >",a=n.spanContext().spanId,s=`[Tracing] Starting '${r}' span on transaction '${i}' (${a}).`;V.kg.log(s),this._logMessage=s}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return function(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;let t=(0,Q.G)(this);if(q.X&&t&&t.spanContext().spanId!==this._spanId){let e=this._logMessage;e&&V.kg.log(e.replace("Starting","Finishing"))}this._endTime=(0,Z.$k)(e)}toTraceparent(){return(0,Z.Hb)(this)}toContext(){return(0,H.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,Z.wy)(this)}getSpanJSON(){return(0,H.Jr)({data:this._getData(),description:this._name,op:this._attributes[G],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Y],_metrics_summary:K(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;return n||r?n&&r?{...e,...t}:n?e:t:void 0}}var ee=n(6878),et=n(99349);function en(){return(0,F.nZ)().getSpan()}class er extends J{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,ee.Gd)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[W]&&{source:this._attributes[W]},...this._attributes[$]&&{sampleRate:this._attributes[$]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(W,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new X(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let t=(0,Z.$k)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){let e=super.toContext();return(0,H.Jr)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,et.j)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(q.X&&V.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled){q.X&&V.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&(0,Z.XU)(e).timestamp):[];if(this._trimEnd&&n.length>0){let e=n.map(e=>(0,Z.XU)(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}let{scope:r,isolationScope:i}={scope:this._sentryScope,isolationScope:this._sentryIsolationScope},{metadata:a}=this,{source:s}=a,o={contexts:{...this._contexts,trace:(0,Z.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,H.Jr)({dynamicSamplingContext:(0,et.j)(this)})},_metrics_summary:K(this),...s&&{transaction_info:{source:s}}},l=Object.keys(this._measurements).length>0;return l&&(q.X&&V.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),q.X&&V.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),o}}let ei={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class ea extends X{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===(0,Z.XU)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class es extends er{constructor(e,t,n=ei.idleTimeout,r=ei.finalTimeout,i=ei.heartbeatInterval,a=!1,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!s,a&&(q.X&&V.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(e){let t=(0,Z.$k)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let e of(q.X&&V.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;!(0,Z.XU)(e).timestamp&&(e.setStatus("cancelled"),e.end(t),q.X&&V.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,Z.XU)(e),i=n&&n<t,a=(this._finalTimeout+this._idleTimeout)/1e3,s=r&&n&&r-n<a;if(q.X){let t=JSON.stringify(e,void 0,2);i?s||V.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):V.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return i&&s}),q.X&&V.kg.log("[Tracing] flushing IdleTransaction")}else q.X&&V.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new ea(t,n,this.spanContext().spanId,e),q.X&&V.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(q.X&&V.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),q.X&&V.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,q.X&&V.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(q.X&&V.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],q.X&&V.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=(0,B.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(q.X&&V.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){q.X&&V.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}var eo=n(79353),el=n(17400);function eu(e){let t=e||(0,ee.Gd)(),n=t.getScope();return n.getTransaction()}let ec=!1;function ed(){let e=eu();if(e){let t="internal_error";q.X&&V.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function eh(e,t,n){return e.sampled=!1,e}function ef(){let e=this.getScope(),t=e.getSpan();return t?{"sentry-trace":(0,Z.Hb)(t)}:{}}function ep(e,t){var n,r,i;let a=this.getClient(),s=a&&a.getOptions()||{},o=s.instrumenter||"sentry",l=e.instrumenter||"sentry";o!==l&&(q.X&&V.kg.error(`A transaction was started with instrumenter=\`${l}\`, but the SDK is configured with the \`${o}\` instrumenter.
The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let u=new er(e,this);return(n=u,r=0,i=(e.name,e.parentSampled,e.data,e.attributes),n.sampled=!1,u=n).isRecording()&&u.initSpanRecorder(s._experiments&&s._experiments.maxSpans),a&&a.emit&&a.emit("startTransaction",u),u}function em(e,t,n,r,i,a,s,o=!1){var l,u,c;let d=e.getClient(),h=d&&d.getOptions()||{},f=new es(t,e,n,r,s,i,o);return(l=f,u=0,c=(t.name,t.parentSampled,t.data,t.attributes),l.sampled=!1,f=l).isRecording()&&f.initSpanRecorder(h._experiments&&h._experiments.maxSpans),d&&d.emit&&d.emit("startTransaction",f),f}function eg(){let e=(0,ee.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=ep),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=ef),ec||(ec=!0,(0,eo.V)(ed),(0,el.h)(ed)))}ed.tag="sentry_tracingErrorCallback",n(66885);var ev=n(17502),ey=n(61495),e_=n(74211);let eb=e_.n2;function ex(){eb.document&&eb.document.addEventListener("visibilitychange",()=>{let e=eu();if(eb.document.hidden&&e){let{op:t,status:n}=(0,Z.XU)(e);n||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.end()}})}n(55514);let ew=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},ek=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,eE=()=>{let e=eb.performance.timing,t=eb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},eS=()=>eb.__WEB_VITALS_POLYFILL__?eb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||eE()):eb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],eC=()=>{let e=eS();return e&&e.activationStart||0},eT=(e,t)=>{let n=eS(),r="navigate";return n&&(r=eb.document&&eb.document.prerendering||eC()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:ek(),navigationType:r}},eI=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},eR=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===eb.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};eb.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},ej=(e,t={})=>{let n;let r=eT("CLS",0),i=0,a=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=a[0],s=a[a.length-1];i&&0!==a.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>r.value&&(r.value=i,r.entries=a,n&&n())}})},o=eI("layout-shift",s);if(o){n=ew(e,r,t.reportAllChanges);let i=()=>{s(o.takeRecords()),n(!0)};return eR(i),i}},eA=-1,eD=()=>{eb.document&&eb.document.visibilityState&&(eA="hidden"!==eb.document.visibilityState||eb.document.prerendering?1/0:0)},eP=()=>{eR(({timeStamp:e})=>{eA=e},!0)},eN=()=>(eA<0&&(eD(),eP()),{get firstHiddenTime(){return eA}}),eL=e=>{let t;let n=eN(),r=eT("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},a=e=>{e.forEach(i)},s=eI("first-input",a);t=ew(e,r),s&&eR(()=>{a(s.takeRecords()),s.disconnect()},!0)},eM=0,eO=1/0,eF=0,eU=e=>{e.forEach(e=>{e.interactionId&&(eO=Math.min(eO,e.interactionId),eM=(eF=Math.max(eF,e.interactionId))?(eF-eO)/7+1:0)})},eV=()=>i?eM:performance.interactionCount||0,eB=()=>{"interactionCount"in performance||i||(i=eI("event",eU,{type:"event",buffered:!0,durationThreshold:0}))},eq=()=>eV(),eZ=[],ez={},eH=e=>{let t=eZ[eZ.length-1],n=ez[e.interactionId];if(n||eZ.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};ez[t.id]=t,eZ.push(t)}eZ.sort((e,t)=>t.latency-e.latency),eZ.splice(10).forEach(e=>{delete ez[e.id]})}},eK=()=>{let e=Math.min(eZ.length-1,Math.floor(eq()/50));return eZ[e]},eW=(e,t)=>{let n;t=t||{},eB();let r=eT("INP"),i=e=>{e.forEach(e=>{if(e.interactionId&&eH(e),"first-input"===e.entryType){let t=!eZ.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime));t&&eH(e)}});let t=eK();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},a=eI("event",i,{durationThreshold:t.durationThreshold||40});n=ew(e,r,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),eR(()=>{i(a.takeRecords()),r.value<0&&eq()>0&&(r.value=0,r.entries=[]),n(!0)}))},e$={},eG=e=>{let t;let n=eN(),r=eT("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-eC(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},a=eI("largest-contentful-paint",i);if(a){t=ew(e,r);let n=()=>{e$[r.id]||(i(a.takeRecords()),a.disconnect(),e$[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{eb.document&&addEventListener(e,n,{once:!0,capture:!0})}),eR(n,!0),n}},eY=e=>{eb.document&&(eb.document.prerendering?addEventListener("prerenderingchange",()=>eY(e),!0):"complete"!==eb.document.readyState?addEventListener("load",()=>eY(e),!0):setTimeout(e,0))},eQ=(e,t)=>{t=t||{};let n=eT("TTFB"),r=ew(e,n,t.reportAllChanges);eY(()=>{let e=eS();if(e){if(n.value=Math.max(e.responseStart-eC(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}})},eX={},eJ={};function e0(e,t){return e8(e,t),eJ[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),eI(e,t=>{e1(e,{entries:t})},t)}(e),eJ[e]=!0),e9(e,t)}function e1(e,t){let n=eX[e];if(n&&n.length)for(let e of n)try{e(t)}catch(e){}}function e2(){return ej(e=>{e1("cls",{metric:e}),a=e},{reportAllChanges:!0})}function e3(){return eL(e=>{e1("fid",{metric:e}),s=e})}function e5(){return eG(e=>{e1("lcp",{metric:e}),o=e})}function e4(){return eQ(e=>{e1("ttfb",{metric:e}),l=e})}function e6(){return eW(e=>{e1("inp",{metric:e}),u=e})}function e7(e,t,n,r,i=!1){let a;return e8(e,t),eJ[e]||(a=n(),eJ[e]=!0),r&&t({metric:r}),e9(e,t,i?a:void 0)}function e8(e,t){eX[e]=eX[e]||[],eX[e].push(t)}function e9(e,t,n){return()=>{n&&n();let r=eX[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}var te=n(73166),tt=n(73285);function tn(e){return[{type:"span"},e]}var tr=n(94678);function ti(e){return"number"==typeof e&&isFinite(e)}function ta(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function ts(e){return e/1e3}function to(){return eb&&eb.addEventListener&&eb.performance}let tl=0,tu={};function tc(){let e=to();if(e&&B.Z1){e.mark&&eb.performance.mark("sentry-tracing-init");let t=e7("fid",({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=ts(B.Z1),r=ts(t.startTime);tu.fid={value:e.value,unit:"millisecond"},tu["mark.fid"]={value:n+r,unit:"second"}},e3,s),n=function(e,t=!1){return e7("cls",e,e2,a,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(tu.cls={value:e.value,unit:""},d=t)},!0),r=function(e,t=!1){return e7("lcp",e,e5,o,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(tu.lcp={value:e.value,unit:"millisecond"},c=t)},!0),i=e7("ttfb",({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(tu.ttfb={value:e.value,unit:"millisecond"})},e4,l);return()=>{t(),n(),r(),i()}}return()=>void 0}function td(){e0("longtask",({entries:e})=>{for(let t of e){let e=eu();if(!e)return;let n=ts(B.Z1+t.startTime),r=ts(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}function th(){e0("event",({entries:e})=>{for(let t of e){let e=eu();if(!e)return;if("click"===t.name){let n=ts(B.Z1+t.startTime),r=ts(t.duration),i={description:(0,ey.Rt)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},a=(0,ey.iY)(t.target);a&&(i.attributes={"ui.component_name":a}),e.startChild(i)}}})}function tf(e,t){let n=to();if(n&&B.Z1){let t=e7("inp",({metric:t})=>{var n,r,i;if(void 0===t.value)return;let a=t.entries.find(e=>e.duration===t.value&&void 0!==tp[e.name]),s=(0,F.s3)();if(!a||!s)return;let o=tp[a.name],l=s.getOptions(),u=ts(B.Z1+a.startTime),c=ts(t.value),d=void 0!==a.interactionId?e[a.interactionId]:void 0;if(void 0===d)return;let{routeName:h,parentContext:f,activeTransaction:p,user:m,replayId:g}=d,v=void 0!==m?m.email||m.id||m.ip_address:void 0,y=void 0!==p?p.getProfileId():void 0,_=new J({startTimestamp:u,endTimestamp:u+c,op:`ui.interaction.${o}`,name:(0,ey.Rt)(a.target),attributes:{release:l.release,environment:l.environment,transaction:h,...void 0!==v&&""!==v?{user:v}:{},...void 0!==y?{profile_id:y}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:t.value,measurements:{inp:{value:t.value,unit:"millisecond"}}}),b=(n=0,r=0,i=0,!1);if(b&&Math.random()<b){let e=_?function(e,t){let n={sent_at:new Date().toISOString()};t&&(n.dsn=(0,te.RA)(t));let r=e.map(tn);return(0,tt.Jd)(n,r)}([_],s.getDsn()):void 0,t=s&&s.getTransport();t&&e&&t.send(e).then(null,e=>{});return}},e6,u);return()=>{t()}}return()=>void 0}let tp={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function tm(e){let t=to();if(!t||!eb.performance.getEntries||!B.Z1)return;let n=ts(B.Z1),r=t.getEntries(),{op:i,start_timestamp:a}=(0,Z.XU)(e);if(r.slice(tl).forEach(t=>{let r=ts(t.startTime),i=ts(t.duration);if("navigation"!==e.op||!a||!(n+r<a))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{tg(e,t,r,n)}),tg(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),tg(e,t,"fetch",n,"cache","domainLookupStart"),tg(e,t,"domainLookup",n,"DNS"),t.responseEnd&&(ta(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ts(t.requestStart),endTimestamp:n+ts(t.responseEnd)}),ta(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ts(t.responseStart),endTimestamp:n+ts(t.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let a=i+n;ta(e,{description:t.name,endTimestamp:a+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})})(e,t,r,i,n);let a=eN(),s=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&s&&(tu.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(tu.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=(0,tr.en)(n),o={};tv(o,t,"transferSize","http.response_transfer_size"),tv(o,t,"encodedBodySize","http.response_content_length"),tv(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(eb.location.origin);let l=a+r;ta(e,{description:n.replace(eb.location.origin,""),endTimestamp:l+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})})(e,t,t.name,r,i,n)}}),tl=Math.max(r.length-1,0),function(e){let t=eb.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),ti(n.rtt)&&(tu["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ti(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),ti(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){(function(e){let t=eS();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(tu),["fcp","fp","lcp"].forEach(e=>{if(!tu[e]||!a||n>=a)return;let t=tu[e].value,r=n+ts(t);tu[e].value=Math.abs((r-a)*1e3)});let t=tu["mark.fid"];t&&tu.fid&&(ta(e,{description:"first input delay",endTimestamp:t.value+ts(tu.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete tu["mark.fid"]),"fcp"in tu||delete tu.cls,Object.keys(tu).forEach(e=>{!function(e,t,n){let r=eu();r&&r.setMeasurement(e,t,n)}(e,tu[e].value,tu[e].unit)}),c&&(c.element&&e.setTag("lcp.element",(0,ey.Rt)(c.element)),c.id&&e.setTag("lcp.id",c.id),c.url&&e.setTag("lcp.url",c.url.trim().slice(0,200)),e.setTag("lcp.size",c.size)),d&&d.sources&&d.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,(0,ey.Rt)(t.node)))}c=void 0,d=void 0,tu={}}function tg(e,t,n,r,i,a){let s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&s&&ta(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ts(o),endTimestamp:r+ts(s)})}function tv(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}var ty=n(24410),t_=n(26405),tb=n(65268);n(82456);let tx=["localhost",/^\/(?!\/)/],tw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:tx,tracePropagationTargets:tx};function tk(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:tw.traceFetch,traceXHR:tw.traceXHR,...e};t&&(0,ty.U)(e=>{let t=function(e,t,n,r,i="auto.http.browser"){}(0,0,0,0);if(t){let n=function(e){try{let t=new URL(e,eb.location.origin);return t.href}catch(e){return}}(e.fetchData.url),r=n?(0,tr.en)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&tE(t)}),n&&(0,t_.UK)(e=>{let t=function(e,t,n,r){let i=e.xhr;i&&i[t_.xU]}(e,0,0,0);s&&t&&tE(t)})}function tE(e){let{url:t}=(0,Z.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=e0("resource",({entries:r})=>{r.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){let t=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),B.Z1)?[...r,["http.request.redirect_start",tS(e.redirectStart)],["http.request.fetch_start",tS(e.fetchStart)],["http.request.domain_lookup_start",tS(e.domainLookupStart)],["http.request.domain_lookup_end",tS(e.domainLookupEnd)],["http.request.connect_start",tS(e.connectStart)],["http.request.secure_connection_start",tS(e.secureConnectionStart)],["http.request.connection_end",tS(e.connectEnd)],["http.request.request_start",tS(e.requestStart)],["http.request.response_start",tS(e.responseStart)],["http.request.response_end",tS(e.responseEnd)]]:r}(r);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function tS(e=0){return((B.Z1||performance.timeOrigin)+e)/1e3}var tC=n(63950);let tT={...ei,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!eb||!eb.location)return;let i=eb.location.href;t&&(r=e({name:eb.location.pathname,startTimestamp:B.Z1?B.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&(0,tC.a)(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&r.end(),r=e({name:eb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...tw};class tI{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,eg(),this.options={...tT,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=tc(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&tf(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&td(),this.options._experiments.enableInteractions&&th(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;let n=t(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:l,traceFetch:u,traceXHR:c,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:f}=this.options,p=i&&i.tracePropagationTargets,m=p||this.options.tracePropagationTargets;a(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},o,s),l&&ex(),f.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),tk({traceFetch:u,traceXHR:c,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){let t;if(!this._getCurrentHub)return;let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o="pageload"===e.op;if(o){let n=o?tR("sentry-trace"):"",r=o?tR("baggage"):void 0,{traceId:i,dsc:a,parentSpanId:s,sampled:l}=(0,ev.pT)(n,r);t={traceId:i,parentSpanId:s,parentSampled:l,...e,metadata:{...e.metadata,dynamicSamplingContext:a},trimEnd:!0}}else t={trimEnd:!0,...e};let l="function"==typeof r?r(t):t,u=void 0===l?{...t,sampled:!1}:l;u.metadata=u.name!==t.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,u.sampled;let{location:c}=eb,d=em(n,u,i,a,!0,{location:c},s,o);return o&&eb.document&&(eb.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(eb.document.readyState)&&d.sendAutoFinishSignal()}),["interactive","complete"].includes(eb.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback(e=>{this._collectWebVitals(),tm(e)}),d}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i=eu();if(i&&i.op&&["navigation","pageload"].includes(i.op)||(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)||!this._latestRoute.name)return;let a=this._getCurrentHub(),{location:s}=eb,o={name:this._latestRoute.name,op:"ui.action.click",trimEnd:!0,data:{[W]:this._latestRoute.context?function(e){let t=e.attributes&&e.attributes[W],n=e.data&&e.data[W],r=e.metadata&&e.metadata.source;return t||n||r}(this._latestRoute.context):"url"}};e=em(a,o,t,n,!0,{location:s},r)};["click"].forEach(e=>{eb.document&&addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:e})=>{let t=(0,F.s3)(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=eu(),a=(0,F.nZ)(),s=void 0!==a?a.getUser():void 0;e.forEach(e=>{if("duration"in e){let t=e.interactionId;if(void 0===t)return;let n=this._interactionIdToRouteNameMapping[t],a=e.duration,o=e.startTime,l=Object.keys(this._interactionIdToRouteNameMapping),u=l.length>0?l.reduce((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t):void 0;if("first-input"===e.entryType){let e=l.map(e=>this._interactionIdToRouteNameMapping[e]).some(e=>e.duration===a&&e.startTime===o);if(e)return}if(t){if(n)n.duration=Math.max(n.duration,a);else if(l.length<10||void 0===u||a>this._interactionIdToRouteNameMapping[u].duration){let e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:a,parentContext:n,user:s,activeTransaction:i,replayId:r,startTime:o})}}}})};e0("event",e),e0("first-input",e)}}function tR(e){let t=(0,ey.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let tj={...ei,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...tw},tA=(e={})=>{eg(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let t={...tj,...e},n=tc(),r={};t.enableInp&&tf(r,t.interactionsSampleRate),t.enableLongTask&&td(),t._experiments.enableInteractions&&th();let i={name:void 0,context:void 0};function a(e){let r;let a=(0,ee.Gd)(),{beforeStartSpan:s,idleTimeout:o,finalTimeout:l,heartbeatInterval:u}=t,c="pageload"===e.op;if(c){let t=c?tN("sentry-trace"):"",n=c?tN("baggage"):void 0,{traceId:i,dsc:a,parentSpanId:s,sampled:o}=(0,ev.pT)(t,n);r={traceId:i,parentSpanId:s,parentSampled:o,...e,metadata:{...e.metadata,dynamicSamplingContext:a},trimEnd:!0}}else r={trimEnd:!0,...e};let d=s?s(r):r;d.metadata=d.name!==r.name?{...d.metadata,source:"custom"}:d.metadata,i.name=d.name,i.context=d,d.sampled;let{location:h}=eb,f=em(a,d,o,l,!0,{location:h},u,c);return c&&eb.document&&(eb.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(eb.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(eb.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(e=>{n(),tm(e)}),f}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){let n;let s=e.getOptions(),{markBackgroundSpan:o,traceFetch:l,traceXHR:u,shouldCreateSpanForRequest:c,enableHTTPTimings:d,_experiments:h}=t,f=s&&s.tracePropagationTargets,p=f||t.tracePropagationTargets,m=eb.location&&eb.location.href;if(e.on&&(e.on("startNavigationSpan",e=>{n&&n.end(),n=a({op:"navigation",...e})}),e.on("startPageLoadSpan",e=>{n&&n.end(),n=a({op:"pageload",...e})})),t.instrumentPageLoad&&e.emit&&eb.location){let t={name:eb.location.pathname,startTimestamp:B.Z1?B.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[W]:"url"}};tD(e,t)}t.instrumentNavigation&&e.emit&&eb.location&&(0,tC.a)(({to:t,from:n})=>{if(void 0===n&&m&&-1!==m.indexOf(t)){m=void 0;return}if(n!==t){m=void 0;let t={name:eb.location.pathname,origin:"auto.navigation.browser",attributes:{[W]:"url"}};tP(e,t)}}),o&&ex(),h.enableInteractions&&function(e,t){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=e,s=eu();if(s&&s.op&&["navigation","pageload"].includes(s.op)||(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name))return;let{location:o}=eb,l={name:t.name,op:"ui.action.click",trimEnd:!0,data:{[W]:t.context?function(e){let t=e.attributes&&e.attributes[W],n=e.data&&e.data[W],r=e.metadata&&e.metadata.source;return t||n||r}(t.context):"url"}};n=em((0,ee.Gd)(),l,r,i,!0,{location:o},a)};["click"].forEach(e=>{eb.document&&addEventListener(e,r,{once:!1,capture:!0})})}(t,i),t.enableInp&&function(e,t){let n=({entries:n})=>{let r=(0,F.s3)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,a=void 0!==i?i.getReplayId():void 0,s=eu(),o=(0,F.nZ)(),l=void 0!==o?o.getUser():void 0;n.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=e[r],o=n.duration,u=n.startTime,c=Object.keys(e),d=c.length>0?c.reduce((t,n)=>e[t].duration<e[n].duration?t:n):void 0;if("first-input"===n.entryType){let t=c.map(t=>e[t]).some(e=>e.duration===o&&e.startTime===u);if(t)return}if(r){if(i)i.duration=Math.max(i.duration,o);else if(c.length<10||void 0===d||o>e[d].duration){let n=t.name,i=t.context;n&&i&&(d&&Object.keys(e).length>=10&&delete e[d],e[r]={routeName:n,duration:o,parentContext:i,user:l,activeTransaction:s,replayId:a,startTime:u})}}}})};e0("event",n),e0("first-input",n)}(r,i),tk({traceFetch:l,traceXHR:u,tracePropagationTargets:p,shouldCreateSpanForRequest:c,enableHTTPTimings:d})},options:t}};function tD(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let n=en(),r=n&&(0,Z.XU)(n).op;return"pageload"===r?n:void 0}function tP(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=en(),r=n&&(0,Z.XU)(n).op;return"navigation"===r?n:void 0}function tN(e){let t=(0,ey.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let tL={"routing.instrumentation":"next-app-router"};var tM=n(86677),tO=n.n(tM);let tF=I.m9,tU={"routing.instrumentation":"next-pages-router"},tV=(0,F.s3)();function tB(e,t=!0,n=!0,r,i){let a=!I.m9.document.getElementById("__NEXT_DATA__");a?function(e,t=!0,n=!0,r,i){let a;let s=I.m9.location.pathname;if(t){let t={name:s,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:tL,startTimestamp:B.Z1?B.Z1/1e3:void 0,metadata:{source:"url"}};a=e(t),r(t)}n&&(0,ty.U)(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1]))return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let r=n.targetPathname,o={...tL,from:s};s=r,a&&a.end();let l={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:o,metadata:{source:"url"}};e(l),i(l)})}(e,t,n,r||(()=>void 0),i||(()=>void 0)):function(e,t=!0,n=!0,r,i){let{route:a,params:s,sentryTrace:o,baggage:l}=function(){let e;let t=tF.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a&&a.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),{traceparentData:u,dynamicSamplingContext:c,propagationContext:d}=(0,ev.KA)(o,l);if((0,F.nZ)().setPropagationContext(d),f=a||tF.location.pathname,t){let t={name:f,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:tU,startTimestamp:B.Z1?B.Z1/1e3:void 0,...s&&tV&&tV.getOptions().sendDefaultPii&&{data:s},...u,metadata:{source:a?"route":"url",dynamicSamplingContext:u&&!c?{}:c}};h=e(t),r(t)}n&&tO().events.on("routeChangeStart",t=>{let n,r;let a=(0,tr.rt)(t),s=function(e){let t=(tF.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(a);s?(n=s,r="route"):(n=a,r="url");let o={...tU,from:f};f=n,h&&h.end();let l={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:o,metadata:{source:r}},u=e(l);if(i(l),u){let e=u.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.end(),tO().events.off("routeChangeComplete",t)};tO().events.on("routeChangeComplete",t)}})}(e,t,n,r||(()=>void 0),i||(()=>void 0))}class tq extends tI{constructor(e){super({tracingOrigins:[...tw.tracingOrigins,/^(api\/)/],routingInstrumentation:tB,...e})}}let tZ=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function tz(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function tH(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let tK="RewriteFrames",tW=(e={})=>{let t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;let r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(r||i){var a;let i;let s=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,o=t?function(e,t){e=tz(e).slice(1),t=tz(t).slice(1);let n=tH(e.split("/")),r=tH(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let s=[];for(let e=a;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(a))).join("/")}(t,s):(i=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=tZ.exec(t);return n?n.slice(1):[]}(s)[2],a&&i.slice(-1*a.length)===a&&(i=i.slice(0,i.length-a.length)),i);e.filename=`${n}${o}`}return e});return{name:tK,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>r(e))}}}})}}}catch(t){return e}}(t)),t}}},t$=(0,k._I)(tW);(0,k.RN)(tK,t$);let tG=e_.n2,tY=e=>{let t=tG.__rewriteFramesAssetPrefixPath__||"";return t$({iteratee:e=>{try{let{origin:n}=new URL(e.filename);e.filename=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=a(n)):("call"===i||"optionalCall"===i)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})},tQ=(0,k._I)(tY),tX=e_.n2;function tJ(e){let t=e.find(e=>"BrowserTracing"===e.name);if(!t)return e;if(t.afterAllSetup&&t.options){let{options:n}=t;e[e.indexOf(t)]=function(e){let t=tA({tracingOrigins:[...tw.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...t.options,instrumentPageLoad:!0,instrumentNavigation:!0,...e};return{...t,options:n,afterAllSetup(e){let r=t=>{tD(e,t)},i=t=>{tP(e,t)};tB(()=>void 0,!1,n.instrumentNavigation,r,i),t.afterAllSetup(e),tB(()=>void 0,n.instrumentPageLoad,!1,r,i)}}}(n)}if(!(t instanceof tq)){let n=t.options;delete n.routingInstrumentation,delete n.tracingOrigins,e[e.indexOf(t)]=new tq(n)}return e}({...M});var t0=n(14284),t1=window;t1.__sentryRewritesTunnelPath__=void 0,t1.SENTRY_RELEASE={id:"23e1ce44fdd323999da67780149e8a96f40df072"},t1.__sentryBasePath=void 0,t1.__rewriteFramesAssetPrefixPath__="";let t2=t0.env.SENTRY_DSN||t0.env.NEXT_PUBLIC_SENTRY_DSN;!function(e){let t={environment:function(e){let t=e?"preview":U.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=[...(0,O.nV)(e),tQ()];return t}(e),...e};(function(e){let{integrations:t}=e;t&&(Array.isArray(t)?e.integrations=tJ(t):e.integrations=e=>{let n=t(e);return tJ(n)})})(t),function(e){let t=tX.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=(0,te.U4)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],s=`${t}?o=${i}&p=${n.projectId}`;a&&(s+=`&r=${a}`),e.tunnel=s}}}(t),(0,y.V)(t,"nextjs",["nextjs","react"]),function(e){let t={...e};(0,y.V)(t,"react"),(0,O.S1)(t)}(t);let n=(0,F.nZ)();n.setTag("runtime","browser");let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",n.addEventProcessor(r)}({dsn:t2||"https://c7b2234d1dcc4faf9ec6ca0f4f0c084e@o993560.ingest.sentry.io/5951624",tracesSampleRate:1})},86331:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78385:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(42619).Z,i=n(90518).Z,a=r(n(27378)),s=n(21981),o=n(37493),l=n(72432),u=n(57320),c=n(22985),d=n(61936),h=n(11296),f=n(48545),p=n(86331),m=n(12995);let g=new Set;function v(e,t,n,r,i){if(i||o.isLocalURL(t)){if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,a=t+"%"+n+"%"+i;if(g.has(a))return;g.add(a)}Promise.resolve(e.prefetch(t,n,r)).catch(e=>{})}}function y(e){return"string"==typeof e?e:l.formatUrl(e)}let _=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:_,prefetch:b,passHref:x,replace:w,shallow:k,scroll:E,locale:S,onClick:C,onMouseEnter:T,onTouchStart:I,legacyBehavior:R=!1}=e,j=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=_,R&&("string"==typeof n||"number"==typeof n)&&(n=a.default.createElement("a",null,n));let A=!1!==b,D=a.default.useContext(d.RouterContext),P=a.default.useContext(h.AppRouterContext),N=null!=D?D:P,L=!D,{href:M,as:O}=a.default.useMemo(()=>{if(!D){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=s.resolveHref(D,l,!0);return{href:e,as:g?s.resolveHref(D,g):t||e}},[D,l,g]),F=a.default.useRef(M),U=a.default.useRef(O);R&&(r=a.default.Children.only(n));let V=R?r&&"object"==typeof r&&r.ref:t,[B,q,Z]=f.useIntersection({rootMargin:"200px"}),z=a.default.useCallback(e=>{(U.current!==O||F.current!==M)&&(Z(),U.current=O,F.current=M),B(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[O,V,M,Z,B]);a.default.useEffect(()=>{N&&q&&A&&v(N,M,O,{locale:S},L)},[O,M,q,S,A,null==D?void 0:D.locale,N,L]);let H={ref:z,onClick(e){R||"function"!=typeof C||C(e),R&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,i,s,l,u,c,d){let{nodeName:h}=e.currentTarget,f="A"===h.toUpperCase();if(f&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!o.isLocalURL(n)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:u,scroll:l}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!d})};c?a.default.startTransition(p):p()}(e,N,M,O,w,k,E,S,L,A)},onMouseEnter(e){R||"function"!=typeof T||T(e),R&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(A||!L)&&v(N,M,O,{locale:S,priority:!0,bypassPrefetchedCheck:!0},L)},onTouchStart(e){R||"function"!=typeof I||I(e),R&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(A||!L)&&v(N,M,O,{locale:S,priority:!0,bypassPrefetchedCheck:!0},L)}};if(u.isAbsoluteUrl(O))H.href=O;else if(!R||x||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==D?void 0:D.locale,t=(null==D?void 0:D.isLocaleDomain)&&p.getDomainLocale(O,e,null==D?void 0:D.locales,null==D?void 0:D.domainLocales);H.href=t||m.addBasePath(c.addLocale(O,e,null==D?void 0:D.defaultLocale))}return R?a.default.cloneElement(r,H):a.default.createElement("a",Object.assign({},j,H),n)});t.default=_,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=r.useState(!1),h=r.useRef(null),f=r.useCallback(e=>{h.current=e},[]);r.useEffect(()=>{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=o.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let i=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:a,elements:i},o.push(n),s.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(r);let e=o.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=i.requestIdleCallback(()=>d(!0));return()=>i.cancelIdleCallback(e)}},[u,n,t,c,h.current]);let p=r.useCallback(()=>{d(!1)},[]);return[f,c,p]};var r=n(27378),i=n(62555);let a="function"==typeof IntersectionObserver,s=new Map,o=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46605:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(21460),a=n(57414),s=n(78159),o=n.n(s),l=n(90005),u=n.n(l);let c=e=>{let t,n,s;if(!0===e.loading){let n="var(--grey1)";switch(e.visualStyle){case"warning":n="rgb(240 0 0 / 1)";break;case"dark":n="var(--backgroundColor)"}t=(0,r.jsx)("div",{className:o().spinnerWrapper,children:(0,r.jsx)(i.Z,{fill:n})})}e.icon&&(n=(0,r.jsx)("div",{className:o().icon,style:{margin:e.label?e.iconMargin?"0 "+e.iconMargin+"px 0 0":"0 8px 0 0":"0px auto"},children:e.icon})),!0===e.dropdown&&(s=(0,r.jsx)("div",{className:o().chevron,children:(0,r.jsx)(a.Z,{})}));let l=!0===e.dropdown?{paddingRight:"6px"}:{};return(0,r.jsxs)("button",{className:u()(o().button,e.className),style:l,"data-style":e.visualStyle?e.visualStyle:"normal",type:e.type,disabled:!!e.disabled&&e.disabled,onClick:e.onClick,onMouseDown:e.onMouseDown,onMouseLeave:e.onMouseLeave,onSubmit:"submit"===e.type&&e.onSubmit?e.onSubmit:void 0,"data-loading":e.loading?e.loading:"false",children:[n,e.label?e.label:null,t,s]})};t.Z=c},51056:function(e,t,n){"use strict";var r=n(24246),i=n(90005),a=n.n(i);n(27378);var s=n(37355),o=n(29843),l=n.n(o);let u=e=>{var t;let n;let i=(0,s.d)();return"snippetbtn"===e.visualStyle?n=l().snippetbtn:"typeahead"===e.visualStyle?n=l().typeahead:"customize"===e.visualStyle&&(n=l().customize),(0,r.jsxs)("button",{disabled:e.disabled,type:"button",className:a()(l().buttonLink,e.className,n),"data-mobile":i,style:{color:e.color,fontWeight:e.emphasize?500:"normal"},onClick:e.onClick,onMouseDown:e.onMouseDown,onMouseLeave:e.onMouseLeave,children:[null!==(t=e.label)&&void 0!==t?t:e.label,e.children]})};t.Z=u},92401:function(e,t,n){"use strict";n.d(t,{yX:function(){return C},UX:function(){return T},NR:function(){return em},WQ:function(){return ev},Zw:function(){return ep},LP:function(){return eg}});class r{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(e=>this.hasValue(e)),this}setDelimiter(e){return this.delimiter=e,this}}class i extends Error{constructor(e="Unsupported"){super(e)}}function a(){var e;return this._qualifierModel||{error:(e=`unsupported qualifier ${this.constructor.name}`,new i(e))}}class s{constructor(){this._qualifierModel={}}toJson(){return a.apply(this)}}class o extends s{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof r?this.qualifierValue=t:(this.qualifierValue=new r,this.qualifierValue.addValue(t))}toString(){let{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class l extends o{constructor(e,t){super("fl",t?new r([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function u(){var e,t,n,r;let a=this._actionModel&&Object.keys(this._actionModel).length,s=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return s&&s instanceof Error?{error:s}:a?this._actionModel:{error:(r=`unsupported action ${this.constructor.name}`,new i(r))}}class c{constructor(){this._actionModel={}}toJson(){return u.apply(this)}}class d extends c{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),(function(e,t){let n=Array.from(e.entries());return t.forEach(e=>{n.push(["fl",e])}),n.sort().map(e=>e[1])})(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new l(n)):this.qualifiers.set(t,new o(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new l(e)):e instanceof l&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class h extends d{constructor(e){super(),this._actionModel={},this.addQualifier(new o("b",new r(e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){let{color:t}=e,n=new this(t);return n}}class f{constructor(e){this.raw=e}toString(){return this.raw}toJson(){var e;return{error:(e=`unsupported action ${this.constructor.name}`,new i(e))}}}class p extends r{constructor(e){super(e),this.val=e}getValue(){return this.val}}function m(e){let t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}let g={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"};m({444:"CHROMA_444",420:"CHROMA_420"}),m({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});let v=m(g),y=m({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});m({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),m({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),m({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class _ extends d{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof p?t.getValue():t,this._actionModel.actionType=y[e],this._actionModel[n]=r,this.addQualifier(new o(e,t))}}class b extends l{constructor(e){super("progressive",e)}}class x extends _{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new l("lossy")),this}progressive(e){return e instanceof b?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new l("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new l("preserve_transparency")),this}static fromJson(e){let t;let{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=e;return t=n?new this("f",n):new this("f"),i&&(i.mode?t.progressive(i.mode):t.progressive()),r&&t.lossy(),a&&t.preserveTransparency(),t}}class w{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new f(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof w?this.actions=this.actions.concat(e.actions):this.actions.push(new f(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new x("q",e)),this}format(e){return this.addAction(new x("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new h(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new d,n=e;return"string"==typeof e&&(n=new l(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){let e=[];for(let t of this.actions){let n=t.toJson();if("error"in n&&n.error)return n;e.push(n)}return{actions:e}}}class k extends w{}var E,S,C,T,I=class{filterOutNonSupportedKeys(e,t){let n=Object.create({});return"object"!=typeof e||e instanceof Array?Object.create({}):(Object.keys(e).forEach(r=>{t.indexOf(r)>=0?n[r]=e[r]:console.warn("Warning - unsupported key provided to configuration: ",r)}),n)}};let R=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class j extends I{extend(e){let t=this.filterOutNonSupportedKeys(e,R);return new j(Object.assign({},this,t))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}constructor(e){super();let t=this.filterOutNonSupportedKeys(e,R);Object.assign(this,{secure:!0},t)}}function A(e,t,n){let r=t>>0,i=String(void 0!==n?n:" ");return e.length>r?String(e):((r-=e.length)>i.length&&(i+=function(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}(i,r/i.length)),i.slice(0,r)+String(e))}let D={},P=0;function N(e){let t="",n=e.split(".").length,r=function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e),i=function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return A(e,2,"0")}).join(".")}(r),a=parseInt(i.split(".").join("")),s=a.toString(2);if((s=A(s,6*n,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach(e=>{t+=D[e]}),t}function L(e){let t=function(e){let t={techVersion:"0.0.0",sdkCode:"T",sdkSemver:"1.19.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e),n=function(e){let t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(t);try{let e=function(e){let t=e.split(".");return"".concat(t[0],".").concat(t[1])}(n.techVersion),t=N(n.sdkSemver),r=N(e),i=function(e){let[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return D[a]+D[s]}(n.osVersion),a=n.feature,s=n.sdkCode,{product:o,osType:l}=n;return"".concat("D").concat(o).concat(s).concat(t).concat(r).concat(l).concat(i).concat(a)}catch(e){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=P.toString(2);D[t=A(t,6,"0")]=e,P++});let M={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class O{setURLConfig(e){return this.urlConfig=new j(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){var e,t;let n=(e=this.assetType)?e:"image",r=(t=this.deliveryType)?t:"upload",i=!!this.suffix,a="".concat(n,"/").concat(r),s=M["".concat(n,"/").concat(r)],o=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(o){if("image/upload"===a)return"";throw Error("useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ".concat(a," instead"))}if(l&&"image/upload"===a)return"iu";if(i){if(s)return s;throw Error("URL Suffix only supported for ".concat(Object.keys(M).join(", "),", Provided: ").concat(a," instead"))}return a}getSignature(){return this.signature?"s--".concat(this.signature,"--"):""}createCloudinaryURL(e,t){var n,r,i;if(!this.publicID)return"";this.validateAssetForURLCreation();let a=function(e,t){let n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return n||i?n&&!a&&r?"https://".concat(e,"-res.cloudinary.com"):n&&!a?"https://res.cloudinary.com/".concat(e):n&&a&&r?"https://".concat(a):n&&a?"https://".concat(a,"/").concat(e):!n&&i?"http://".concat(i,"/").concat(e):"ERROR":"http://res.cloudinary.com/".concat(e)}(this.cloudName,this.urlConfig),s=e?e.toString():"",o=(n=this.publicID,r=this.version,i=this.urlConfig.forceVersion,r?"v".concat(r):n.match(/^v[0-9]+/)||n.match(/^https?:\//)||0>n.indexOf("/")?"":!1!==i?"v1":""),l=this.publicID;if("string"==typeof e){let e=[a,this.getResourceType(),this.getSignature(),s,o,l.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");return e}{let e=[encodeURI(a),this.getResourceType(),this.getSignature(),encodeURI(s),o,encodeURI(l).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),n=!1!==this.urlConfig.analytics&&!l.includes("?"),r="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);n&&e.set("_a",L(t)),r=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else r=this.urlConfig.queryParams||"",n&&(r+="".concat(r.length>0?"&":"","_a=").concat(L(t)));return r?"".concat(e,"?").concat(r):e}}constructor(e,t={},n){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(n)}}class F extends O{animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new x("q",e)),this}format(e){return this.addAction(new x("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}constructor(e,t,n,r){super(e,t,n),this.transformation=r}}class U extends F{constructor(e,t,n){super(e,t,n,new k)}}class V extends w{}class B extends F{transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}constructor(e,t,n){super(e,t,n,new V),this.assetType="video"}}function q(e){let t=e.toString();if(t.match(/[A-Z]/gi)||t.length>1&&"0"===t[0])return t;let n=!isNaN(parseFloat(t))&&-1===t.indexOf(":");return n&&-1===t.indexOf(".")?`${t}.0`:t}class Z extends d{constructor(e){super(),this._actionModel={actionType:"dpr"};let t=q(e);this._actionModel.dpr=t,this.addQualifier(new o("dpr",t))}static fromJson(e){let{dpr:t}=e;return new this(t)}}class z extends d{constructor(e){super(),this.addQualifier(new o("t",e))}}class H extends r{}class K extends d{constructor(e,t,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=v[e]||e,this.addQualifier(new o("c",e)),t&&this.width(t),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new o("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new o("w",e))}aspectRatio(e){return e instanceof H?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new o("ar",e))):"number"==typeof e||"string"==typeof e?(this._actionModel.dimensions.aspectRatio=q(e),this.addQualifier(new o("ar",q(e)))):e instanceof l?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new l("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new l("region_relative"))}static fromJson(e){let{actionType:t,dimensions:n,relative:r,regionRelative:i}=e,{aspectRatio:a,width:s,height:o}=n,u=g[t]||t,c=new this(u,s,o);return a&&c.aspectRatio("ignore_aspect_ratio"===a?new l("ignore_aspect_ratio"):a),r&&c.relative(),i&&c.regionRelative(),c}}class W extends o{constructor(e){super("g",new r(e))}}class $ extends W{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class G extends W{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class Y extends W{constructor(e){super(e)}}function Q(...e){let t=[...e];return new G(t)}class X extends r{constructor(e){super(),this.name=e}toString(){return this.name}}function J(e){return`${e}`.replace("g_","")}function ee(e){let t=e.toString(),n=t.split("_"),r={object:n[0]};return n.length>1&&("avoid"===n[1]?r.avoid=!0:r.weight=+n[1]),r}function et(e){let t;let n="auto"===e?new $:e;t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter(e=>"auto"!==e):n.qualifierValue.values.filter(e=>"auto"!==e);let r=t.map(ee);return{gravityType:"auto",autoFocus:r}}class en extends r{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){return new en(e,t)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}en.focusOn;class er extends r{constructor(e){super(),this.val=e}toString(){return this.val}}function ei(e){let{object:t,weight:n,avoid:r}=e,i=new en(new X(t));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function ea(e){let t=e.autoFocus||[],n=t.map(ei);return new $().autoFocus(...n)}class es extends K{gravity(e){var t;this._actionModel.gravity=!function(e){let t=J(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(t=e)?"ocr_text"===J(t)?{gravityType:"ocr"}:t&&"auto"===`${t}`.split(":")[0]||"auto"===`${t.qualifierValue}`.split(":")[0]?et(t):function(e){let t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,r=t?n.slice(0,n.length-1):n,i={gravityType:"object",focusOnObjects:r.map(e=>`${e}`)};if(t){let e=n[n.length-1].values.slice(1),t=new $().autoFocus(...e);i.fallbackGravity=et(t)}return i}("string"==typeof t?function(e){let t=e.split(":"),n=t.map(e=>new X(e));return new G(n)}(t):t):{compass:J(t),gravityType:"direction"};let n="string"==typeof e?new o("g",e):e;return this.addQualifier(n)}static fromJson(e){var t;let n=super.fromJson.apply(this,[e]);return e.gravity&&n.gravity("direction"===(t=e.gravity).gravityType?new Y(new er(t.compass)):"ocr"===t.gravityType?Q(new X("ocr_text")):"auto"===t.gravityType?ea(t):function(e){let t=(e.focusOnObjects||[]).map(e=>new X(e)),n=Q(...t);if(e.fallbackGravity){let t=ea(e.fallbackGravity);n.fallbackGravity(t)}return n}(t)),n}}class eo extends es{x(e){return this._actionModel.x=e,this.addQualifier(new o("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new o("y",e))}static fromJson(e){let t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class el extends K{}function eu(e,t){return new eo("fill",e,t)}function ec(e,t){return new el("limit",e,t)}let ed={"https://firebasestorage.googleapis.com/v0/b/maitake-project.appspot.com/o/":"1","https://firebasestorage.googleapis.com/v0/b/cv-development.appspot.com/o/":"2"},eh=new class{image(e){return new U(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new B(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}constructor(e){e&&(this.cloudinaryConfig=e)}}({cloud:{cloudName:"read-cv"}});function ef(e){for(let[t,n]of Object.entries(ed))if(e.startsWith(t)){let r=decodeURIComponent(e.substring(t.length)),i=r.indexOf("?");-1!==i&&(r=r.substring(0,i));let a="".concat(n,"/").concat(r);return a}return null}function ep(e,t){let n=ef(e);if(null===n)return e;let r=eh.image(n);if(t){let{width:e,height:n}=t;if(e=Math.floor(e),n=Math.floor(n),t.mode===C.Fill){r.resize(eu(e,n));let t=window.devicePixelRatio;r.addAction(new Z(t))}else t.mode===C.Fit&&r.resize(ec(e,n))}return r.toURL()}function em(e,t){let n=ef(e);if(null===n)return[{url:e,description:"1x"}];let r=[],i=["1x","2x","3x"];for(let e=0;e<i.length;e++){var a;let s=eh.image(n),{width:o,height:l}=t;o=Math.floor(o),l=Math.floor(l),t.mode===C.Fill?s.resize(eu(o,l)):t.mode===C.Fit&&s.resize(ec(o,l)),s.addAction((a=e+1,new Z(a))),r.push({description:i[e],url:s.toURL()})}return r}function eg(e,t){let n=ef(e);if(null===n)return e;let r=eh.video(n).namedTransformation(new z(t));return r.toURL()}function ev(e){let t=ef(e);if(null===t)return e;let n=new O(t,eh.getConfig().cloud,eh.getConfig().url);return n.setAssetType("raw"),n.toURL()}(E=C||(C={}))[E.Fill=0]="Fill",E[E.Fit=1]="Fit",(S=T||(T={})).Thumbnail="v_t",S.ThumbnailLarge="v_a",S.Best="v_b",S.Highlight="v_h",S.Posts="v_p"},31153:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(57414),a=n(61393),s=n.n(a);let o=e=>{var t;let n;return e.label&&(n=(0,r.jsx)("div",{className:s().label,children:(0,r.jsx)("label",{htmlFor:e.id,children:e.label})})),(0,r.jsxs)("div",{style:{width:null!==(t=e.width)&&void 0!==t?t:void 0},className:s().select,"data-style":e.visualStyle?e.visualStyle:null,children:[n,(0,r.jsx)(i.Z,{fill:"var(--grey1)"}),(0,r.jsx)("select",{id:e.id,disabled:e.disabled,value:e.value,onChange:e.onChange,children:e.options.map((t,n)=>"HORIZONTALRULE"===t?(0,r.jsx)("option",{disabled:!0,value:t,children:"---"},n):(0,r.jsx)("option",{value:t,children:e.capitalize&&"string"==typeof t?t[0].toUpperCase()+t.slice(1):t},n))})]})};t.Z=o},21460:function(e,t,n){"use strict";var r=n(24246),i=n(46035),a=n.n(i);let s=e=>(0,r.jsx)("div",{className:a().spinner,children:(0,r.jsx)("div",{className:a().img,children:(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"7.25",width:"1.5",height:"4.5",rx:"0.75",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.52",x:"7.25",y:"11.5",width:"1.5",height:"4.5",rx:"0.75",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.12",x:"11.3506",y:"0.696793",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(30 11.3506 0.696793)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.6",x:"5.60059",y:"10.6561",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(30 5.60059 10.6561)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.2",x:"14.5532",y:"3.35048",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(60 14.5532 3.35048)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.68",x:"4.59399",y:"9.10048",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(60 4.59399 9.10048)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.28",x:"16",y:"7.25003",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(90 16 7.25003)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.76",x:"4.5",y:"7.25006",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(90 4.5 7.25006)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.36",x:"15.3032",y:"11.3505",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(120 15.3032 11.3505)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.84",x:"5.34399",y:"5.60054",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(120 5.34399 5.60054)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.44",x:"12.6497",y:"14.5533",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(150 12.6497 14.5533)",fill:e.fill?e.fill:"var(--grey1)"}),(0,r.jsx)("rect",{opacity:"0.92",x:"6.89966",y:"4.59404",width:"1.5",height:"4.5",rx:"0.75",transform:"rotate(150 6.89966 4.59404)",fill:e.fill?e.fill:"var(--grey1)"})]})})});t.Z=s},5152:function(e,t,n){"use strict";var r=n(24246),i=n(90005),a=n.n(i),s=n(27378),o=n(85322),l=n.n(o);let u=e=>{let t,{emoji:n,description:i,context:o,size:u}=e,[c,d]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{d(function(){let e=navigator.userAgent.includes("Chrome")&&navigator.vendor.includes("Google Inc");return e&&1==window.devicePixelRatio}())},[]),"banner"===o?t=l().bannerContext:"profile"===o&&(t=l().profileContext),(0,r.jsx)("div",{className:a()(l().emojiWrap,t),"data-size":u,children:(0,r.jsx)("span",{role:"img","aria-label":null!=i?i:void 0,style:c?{left:"43%"}:{},children:n})})};t.Z=u},99800:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(20233);let s=e=>{let t,n;let[s,o]=(0,i.useState)(!1),l=()=>{o(!0)};if((0,i.useEffect)(()=>{l()},[e.id]),"sources"in e){let r=e.sources.findIndex(e=>"1x"===e.description);t=e.sources[-1===r?0:r].url,n=e.sources.map(e=>"".concat(e.url," ").concat(e.description)).join(", ")}else t=e.src;return(0,r.jsx)(a.E.img,{initial:{opacity:0},animate:{opacity:s?1:0},transition:{duration:.2},draggable:"false",alt:e.alt,src:t,srcSet:n,onLoad:l},e.id)};t.Z=s},9742:function(e,t,n){"use strict";n.d(t,{c:function(){return _}});var r=n(24246),i=n(27378),a=n(20233),s=n(9186),o=n(46605),l=n(71517),u=n(51056),c=n(34707),d=n(7898),h=n(21584),f=n(71779),p=n.n(f),m=n(25777),g=n(3321),v=n(31507);let y=e=>{var t;let n=(0,i.useContext)(g.St);return(0,i.useEffect)(()=>{n&&e.cancel&&e.cancel()},[n]),(0,r.jsx)(s.Z,{cancel:e.cancel,clickToClose:!0,children:(0,r.jsxs)(_,{cancel:e.cancel,newProfile:null===(t=e.newProfile)||void 0===t||t,redirectURL:e.redirectURL,children:[(0,r.jsxs)(v.r,{children:[e.newProfile?"Create a new profile":"Login to your account",(0,r.jsxs)("span",{role:"img","aria-label":e.newProfile?"sparkle":"wave",style:{whiteSpace:"nowrap"},children:["\uFEFF\xa0",e.newProfile?"✨":"\uD83D\uDC4B"]})]}),(0,r.jsxs)("p",{children:["By continuing you agree to our ",(0,r.jsx)("a",{href:"https://read.cv/terms",target:"_blank",children:"terms of service"})," and ",(0,r.jsx)("a",{href:"https://read.cv/privacy",target:"_blank",children:"privacy policy"}),"."]})]})})},_=e=>{let[t,n]=(0,i.useState)(""),[s,f]=(0,i.useState)("slide-1"),[g,y]=(0,i.useState)(!1),_=n=>{n.preventDefault(),y(!0);let r=new URL("/verify-login",window.location.origin);void 0!==e.redirectURL&&r.searchParams.append("redirect",e.redirectURL);let i={url:r.toString(),handleCodeInApp:!0};(0,m.oo)((0,m.v0)(),t,i).then(()=>{f("slide-3"),y(!1),window.localStorage.setItem("emailForSignIn",t)}).catch(e=>{y(!1),console.log(e)})},b=()=>{let e=new m.hJ;(0,m.rh)((0,m.v0)(),e)},x=()=>{let e=new m.O4("apple.com");e.providerId,(0,m.rh)((0,m.v0)(),e)};return(0,r.jsxs)(a.E.div,{animate:{x:(()=>{switch(s){case"slide-1":default:return"0%";case"slide-2":return"-33.33%";case"slide-3":return"-66.66%"}})()},transition:{type:"spring",stiffness:700,damping:50},className:p().loginModal,children:[(0,r.jsxs)("div",{className:p().column,children:[e.children,(0,r.jsxs)("ul",{className:p().authButtons,children:[(0,r.jsx)("li",{children:(0,r.jsx)(o.Z,{onClick:b,className:p().google,icon:(0,r.jsx)(d.Z,{}),label:"Continue with Google"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o.Z,{onClick:x,className:p().google,icon:(0,r.jsx)(h.Z,{fill:"var(--grey1)"}),label:"Continue with Apple"})}),(0,r.jsx)("li",{children:(0,r.jsx)("div",{children:(0,r.jsx)(u.Z,{onClick:()=>f("slide-2"),label:"Continue with email"})})})]})]}),(0,r.jsxs)("div",{className:p().column,children:[(0,r.jsxs)(v.r,{children:["Continue with an email link",(0,r.jsx)("span",{role:"img","aria-label":"heart envelope",style:{whiteSpace:"nowrap"},children:"\uFEFF\xa0\uD83D\uDC8C"})]}),(0,r.jsxs)("p",{children:["Enter your email and we'll send you a link to ",e.newProfile?"create a new profile":"login to your account","."]}),(0,r.jsx)("form",{onSubmit:(0,c.Z)(t)?_:e=>e.preventDefault(),children:(0,r.jsx)("div",{className:p().inputWrapper,children:(0,r.jsx)(l.Z,{onChange:e=>n(e.target.value.trim()),value:t,type:"email",valid:(0,c.Z)(t),placeholder:"Email address"})})}),(0,r.jsxs)(v.m,{marginTop:"auto",children:[(0,r.jsx)("div",{className:p().cancelWrap,children:(0,r.jsx)(u.Z,{onClick:()=>f("slide-1"),label:"Back"})}),(0,r.jsx)(o.Z,{loading:g,disabled:!(0,c.Z)(t),onClick:_,label:"Submit"})]})]}),(0,r.jsxs)("div",{className:p().column,children:[(0,r.jsxs)(v.r,{children:["Check your inbox!",(0,r.jsx)("span",{role:"img","aria-label":"mushroom",style:{whiteSpace:"nowrap"},children:"\uFEFF\xa0\uD83C\uDF44"})]}),(0,r.jsxs)("p",{children:["Open the link sent to ",(0,r.jsx)("span",{className:p().special,children:t})," in this browser."]}),(0,r.jsxs)("div",{className:p().confirmationFooter,children:[(0,r.jsx)(u.Z,{onClick:()=>f("slide-2"),label:"Back"}),(0,r.jsx)("div",{className:p().modalSpacer}),(0,r.jsx)(o.Z,{onClick:e.cancel,label:"Done"})]})]})]})};y.defaultProps={newProfile:!0},t.Z=y},96976:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(52066),a=n.n(i);let s=e=>{let t,{items:n,title:i,close:s}=e;return i&&(t=(0,r.jsx)("div",{className:a().heading,children:i})),(0,r.jsxs)("div",{className:a().menu,children:[t,(0,r.jsx)("ul",{children:n.map((e,t)=>(0,r.jsx)(o,{close:s,label:e.label,sublabel:e.sublabel,action:e.action,style:e.style,indented:!!i,disabled:e.disabled,plusBadge:e.plusBadge},e.label))})]})},o=e=>{let t,{label:n,sublabel:i,action:s,style:o,indented:l,close:u,disabled:c,plusBadge:d}=e;return"divider"===o?(0,r.jsx)("hr",{}):(!0===d&&(t=(0,r.jsx)("div",{className:a().plusBadge,children:"Plus"})),(0,r.jsxs)("li",{"data-disabled":c,"data-style":o,style:{paddingLeft:l?28:void 0},className:a().menuItem,onClick:e=>{u&&u(),s&&(s(),e.stopPropagation())},children:[(0,r.jsx)("label",{children:n}),i?(0,r.jsx)("span",{className:a().sublabel,children:i}):null,t]}))};t.Z=s},9186:function(e,t,n){"use strict";var r=n(24246),i=n(31542),a=n(27378),s=n(71946),o=n(86992),l=n(20233),u=n(60934),c=n.n(u),d=n(74756);let h=e=>{let{cancel:t,clickToClose:n=!1,maxWidth:u=375,maxHeight:h="auto",height:f="auto",children:p,commandBar:m}=e,g=(0,d.Z)(),v=(0,a.useRef)(null);(0,a.useEffect)(()=>(document.body.style.transform="none",function(){0===g.querySelectorAll(":scope > div[data-name='backdrop']").length&&document.body.style.removeProperty("transform")}),[g]);let y=e=>{"Escape"===e.code&&t&&n&&t()},_=e=>{e.target===v.current&&n&&t&&t()};return(0,s.Z)("keydown",y),(0,s.Z)("click",_),i.createPortal((0,r.jsx)(l.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.O$,ref:v,"data-name":"backdrop","data-no-backdrop":m,className:c().backdrop,children:(0,r.jsx)("div",{className:c().padding,children:(0,r.jsx)(l.E.div,{initial:{x:"-50%",y:m?"6px":"calc(-50% + 20px)"},animate:{x:"-50%",y:m?"0":"-50%"},exit:{x:"-50%",y:m?"6px":"calc(-50% + 20px)"},transition:o.O$,style:{maxWidth:u,maxHeight:h,height:f},className:c().card,children:p})})}),g)};t.Z=h},31507:function(e,t,n){"use strict";n.d(t,{m:function(){return o},r:function(){return s}});var r=n(24246),i=n(34649),a=n.n(i);let s=e=>(0,r.jsx)("h3",{className:a().modalTitle,children:e.children}),o=e=>(0,r.jsx)("div",{style:{marginTop:e.marginTop?e.marginTop:void 0},"data-context":e.context,className:a().modalFooter,children:e.children})},87295:function(e,t,n){"use strict";var r=n(24246),i=n(31542),a=n(27378),s=n(71946),o=n(20233),l=n(22119),u=n(13596),c=n(56745),d=n.n(c),h=n(74756),f=n(45515),p=n(32667);let m=e=>{let t,n;let[c,m]=(0,a.useState)(e.open),[g,v]=(0,a.useState)(null),[y,_]=(0,a.useState)((0,u.Z)()),[b,x]=(0,a.useState)(null),w=(0,h.Z)(),k=(0,a.useRef)(null),E=(0,a.useRef)(null),[S,C]=(0,a.useState)(0),T=(0,f.Z)(),I=e=>{let t=e instanceof HTMLElement,n=t&&window.getComputedStyle(e).overflowY;if(!e)return null;if("visible"!==n&&"hidden"!==n&&t&&e.scrollHeight>=e.clientHeight)return e;let r="undefined"!=typeof document?document.body:null;return I(e.parentNode)||r};(0,a.useEffect)(()=>{if(m(e.open),g&&(k.current&&x(k.current.getBoundingClientRect()),e.open))return document.body.style.transform="none",D},[e.open]),(0,a.useEffect)(()=>{if(!g||!e.open)return;let t=g.scrollTop,n=e=>{g.scrollTop=t};return g.addEventListener("scroll",n),()=>g.removeEventListener("scroll",n)},[g,e.open]);let R=t=>{if(!e.open)return;let n=document.querySelectorAll("div[data-name='popover-backdrop']");0===n.length||n[n.length-1].getAttribute("data-id")!==y||E.current&&(E.current.contains(t.target)||!document.body.contains(t.target))||(x(null),e.close())},j=t=>{27===t.keyCode&&e.close&&e.close()},A=()=>{k.current&&x(k.current.getBoundingClientRect())};(0,s.Z)("keydown",j),(0,s.Z)("click",R),(0,s.Z)("touchstart",R),(0,s.Z)("resize",A),(0,a.useEffect)(()=>(v(I(k.current)),function(){D()}),[]),(0,p.Z)(()=>{let e=E.current;c&&e&&C(e.getBoundingClientRect().height)},[c,e.verticalAlignment]);let D=()=>{let e=w.querySelectorAll(":scope > div[data-name='popover-backdrop']"),t=w.querySelectorAll(":scope > div[data-name='backdrop']");0===e.length&&0===t.length&&document.body.style.removeProperty("transform")};if(c&&null!==b){var P,N,L;let n,i;let a=null!==(P=e.width)&&void 0!==P?P:240;n=b.left+b.width/2-8<a/2&&"left"!==e.alignment?b.left+b.width/2-8:window.innerWidth-(b.left+b.width/2+8)<a/2&&"right"!==e.alignment?a-(window.innerWidth-(b.left+b.width/2+8)):"right"===e.alignment?a-b.width/2:"left"===e.alignment?b.width/2:a/2,i="top"===e.verticalAlignment?b.top-S+(null!==(N=e.yOffset)&&void 0!==N?N:0):"auto"===e.verticalAlignment&&b.top+S>window.innerHeight?window.innerHeight-(S+24):b.top+b.height+(null!==(L=e.yOffset)&&void 0!==L?L:0),t=(0,r.jsx)("div",{className:d().popoverBackdrop,"data-id":y,"data-context":e.context,"data-name":"popover-backdrop",children:(0,r.jsx)(o.E.div,{initial:{x:e.fullWidth?b.left:b.left+b.width/2-n,y:i},animate:{x:e.fullWidth?b.left:b.left+b.width/2-n,y:i,width:e.animateWidth?e.width:void 0},transition:e.animateWidth?{type:"spring",stiffness:700,damping:50}:{duration:0},style:{width:e.fullWidth?b.width:e.width,height:e.height},"data-full-width":e.fullWidth,ref:E,className:d().popover,children:(0,r.jsx)(o.E.div,{initial:{opacity:0,y:"top"===e.verticalAlignment?4:-4},animate:{opacity:1,y:0,width:e.animateWidth?e.width:void 0},exit:e.exit?e.exit:{opacity:0,y:"top"===e.verticalAlignment?4:-4},transition:{width:{type:"spring",stiffness:700,damping:50},default:{duration:.15}},style:{width:e.fullWidth?b.width:e.width,height:e.height,borderRadius:e.radius?e.radius:"",overflow:e.overflowHidden?"hidden":void 0},className:d().popoverCard,children:e.component})})})}return!T&&w&&(n=i.createPortal((0,r.jsx)(l.M,{onExitComplete:D,children:t}),w)),(0,r.jsxs)("div",{ref:k,className:d().popoverWrap,"data-context":e.context,children:[n,e.children]})};m.defaultProps={width:240,height:"auto",fullWidth:!1,alignment:"center",yOffset:0},t.Z=m},63018:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(24246),i=n(27378),a=n(99800);let s=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 16H0V0H16V16ZM11.8437 10.8927C12.383 11.3431 12.383 12.1569 11.8437 12.6073C10.8027 13.4768 9.46243 14 8 14C6.53757 14 5.19734 13.4768 4.15629 12.6073C3.61696 12.1569 3.61696 11.3431 4.15629 10.8927C5.19734 10.0232 6.53757 9.5 8 9.5C9.46243 9.5 10.8027 10.0232 11.8437 10.8927ZM10 6C10 7.10457 9.10457 8 8 8C6.89543 8 6 7.10457 6 6C6 4.89543 6.89543 4 8 4C9.10457 4 10 4.89543 10 6Z",fill:e.fill?e.fill:"#111"})});var o=n(55826),l=n.n(o),u=n(5152),c=n(92401);let d=e=>{var t,n;let o,d;let[h,f]=(0,i.useState)(),p=e.size>60?"large":e.size>48?"small":"x-small";if((0,i.useEffect)(()=>{if(!e.file){f(void 0);return}let t=URL.createObjectURL(e.file);return f(t),()=>URL.revokeObjectURL(t)},[e.file]),e.showStatus&&e.status&&(o=(0,r.jsx)("div",{className:l().status,children:(0,r.jsx)(u.Z,{description:e.statusLabel,emoji:e.status,context:"profile",size:p})})),e.path){let n=(0,c.NR)(e.path,{mode:c.yX.Fill,width:e.size,height:e.size});d=(0,r.jsx)(a.Z,{id:e.id,alt:null!==(t=e.name)&&void 0!==t?t:"",sources:n})}else h?d=(0,r.jsx)(a.Z,{id:e.id,alt:null!==(n=e.name)&&void 0!==n?n:"",src:h}):!e.path&&e.showPlaceholder&&(d=(0,r.jsx)("div",{className:l().default,children:(0,r.jsx)(s,{fill:"var(--primaryBorderColor)"})}));return(0,r.jsxs)("div",{className:l().profilePhoto,"data-size":p,style:{width:e.size+"px",height:e.size+"px",margin:e.margin?e.margin:"0",backgroundColor:e.transparent?"transparent":void 0},children:[d,o]})};d.defaultProps={showPlaceholder:!0};var h=d},31340:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(20956),a=n.n(i);let s=e=>(0,r.jsx)("div",{className:a().switch,children:(0,r.jsx)("input",{disabled:e.disabled,checked:e.checked,onChange:e.onChange,id:e.id,type:"checkbox"})});t.Z=s},71517:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(20233),s=n(22119),o=n(86992),l=n(21460),u=n(36495),c=n(11901),d=n.n(c);let h=i.forwardRef((e,t)=>{let n,i,c,h,f,p,m;return e.errorMessage&&e.error&&(c=(0,r.jsx)("span",{className:d().error,children:e.errorMessage})),e.characterLimit&&!(e.error&&e.errorMessage)&&(h=(0,r.jsxs)("span",{className:d().characterLimit,children:[e.value.length," of ",e.characterLimit]})),e.labelAction&&(i=(0,r.jsx)("div",{className:d().labelAction,children:e.labelAction})),e.label&&(n=(0,r.jsxs)("div",{className:d().label,children:[(0,r.jsx)("label",{htmlFor:e.id,children:e.label}),i,c,h]})),!0===e.loading&&(f=(0,r.jsx)("div",{className:d().spinnerWrapper,children:(0,r.jsx)(l.Z,{fill:"var(--grey1)"})})),e.valid&&(p=(0,r.jsx)(a.E.div,{initial:{opacity:0,scale:.5,y:"-50%"},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:o.O9,className:d().checkmark,children:(0,r.jsx)(u.Z,{})})),e.icon&&(m=(0,r.jsx)("div",{className:d().icon,children:e.icon})),(0,r.jsxs)("div",{className:d().input,"data-style":e.visualStyle,"data-context":e.context,children:[n,(0,r.jsxs)("div",{className:d().inputWrap,"data-style":e.visualStyle,"data-error":!!e.error&&e.error,children:[m,f,(0,r.jsx)(s.M,{children:p}),e.children,(0,r.jsx)("input",{ref:t,value:e.value,autoComplete:e.autoComplete,id:e.id,type:e.type,spellCheck:"false",placeholder:e.placeholder,"data-lowercase":!!e.lowercase&&e.lowercase,onChange:e.onChange,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onBlur:e.onBlur,readOnly:e.readOnly,disabled:e.disabled,"data-1p-ignore":e.ignore1p})]})]})});h.displayName="TextInput",h.defaultProps={autoComplete:"chrome-off",type:"text"},t.Z=h},9575:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(20233),s=n(22119),o=n(37355),l=n(96127),u=n.n(l);let c=e=>{let t;let[n,l]=(0,i.useState)(!1),c=()=>{switch(e.orientation){case"bottom":return{xInitial:"-50%",x:"-50%",yInitial:"0",y:"4px",top:"100%",left:"50%"};case"right":return{xInitial:"0",x:"4px",yInitial:"-50%",y:"-50%",top:"50%",left:"100%"};case"left":return{xInitial:"-100%",x:"calc(-100% - 4px)",yInitial:"-50%",y:"-50%",top:"50%",left:"0"};default:return{xInitial:"-50%",x:"-50%",yInitial:"-100%",y:"calc(-100% - 4px)",top:"0",left:"50%"}}};return n&&!(0,o.Z)()&&e.string&&(t=(0,r.jsx)(a.E.div,{initial:{opacity:0,x:c().xInitial,y:c().yInitial},animate:{opacity:1,x:c().x,y:c().y},exit:{opacity:0,x:c().xInitial,y:c().yInitial},transition:{duration:.15},style:{left:c().left,top:c().top,width:e.width,whiteSpace:e.width?"pre-wrap":"nowrap"},className:u().tooltip,children:e.string})),(0,r.jsxs)("div",{className:u().tooltipWrap,onMouseOver:()=>l(!0),onMouseLeave:()=>l(!1),children:[(0,r.jsx)(s.M,{children:t}),e.children]})};c.defaultProps={orientation:"top"},t.Z=c},86992:function(e,t,n){"use strict";n.d(t,{D_:function(){return r},O$:function(){return i},O9:function(){return a}});let r={duration:.3},i={type:"spring",stiffness:700,damping:50},a={type:"spring",stiffness:700,damping:25}},74756:function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;let e=document.getElementById("root")||document.getElementById("__next");if(!e)throw Error("Unable to find root element.");return e}n.d(t,{Z:function(){return r}})},37355:function(e,t,n){"use strict";n.d(t,{d:function(){return s}});var r=n(27378);let i=null;function a(){if(null===i){if("ontouchstart"in window)i=!0;else{let e=["("," -webkit- -moz- -o- -ms- ".split(" ").join("touch-enabled),("),"heartz",")"].join("");i=window.matchMedia(e).matches}}return i}function s(){let[e,t]=(0,r.useState)(null!=i&&i);return(0,r.useEffect)(()=>{t(a())},[]),e}t.Z=a},71946:function(e,t,n){"use strict";var r=n(27378);t.Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.useEffect)(()=>(window.addEventListener(e,t,n),function(){window.removeEventListener(e,t)}))}},21584:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.919 3.872c.114 0 .29.011.53.034.245.023.518.083.82.18.308.096.621.253.94.47.32.216.613.518.88.906l-.298.222a3.89 3.89 0 00-.599.555 3.428 3.428 0 00-.58.932c-.166.37-.249.812-.249 1.325 0 .592.106 1.097.317 1.512.21.41.453.741.726.992.28.25.527.436.744.556l.35.179c0 .017-.04.137-.12.359a8.013 8.013 0 01-.974 1.915c-.228.324-.464.638-.71.94-.244.302-.512.55-.803.743-.285.194-.61.29-.974.29-.365 0-.664-.053-.898-.162a30.718 30.718 0 00-.726-.324c-.245-.103-.576-.154-.992-.154-.41 0-.749.054-1.017.162a25.95 25.95 0 00-.769.325 2.03 2.03 0 01-.863.171c-.502 0-.943-.2-1.325-.598a13.738 13.738 0 01-1.162-1.436 9.081 9.081 0 01-.846-1.522c-.251-.58-.45-1.193-.599-1.837A8.738 8.738 0 011.5 8.658c0-1.031.194-1.897.581-2.598.393-.707.898-1.24 1.513-1.598.615-.365 1.254-.547 1.915-.547.353 0 .683.057.991.17.313.114.604.231.872.35.268.115.513.172.735.172.21 0 .456-.06.735-.18.285-.125.601-.248.949-.367.353-.126.729-.188 1.128-.188zm-.564-1.308a3.285 3.285 0 01-1.017.812c-.405.21-.787.316-1.146.316-.08 0-.154-.005-.222-.017a.585.585 0 00-.017-.11 1.805 1.805 0 01-.009-.18c0-.41.089-.81.265-1.197.177-.387.38-.71.607-.966.29-.342.656-.627 1.094-.854.439-.228.858-.35 1.257-.368.023.097.034.205.034.325 0 .41-.08.812-.24 1.205-.159.387-.361.732-.606 1.034z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},36495:function(e,t,n){"use strict";var r=n(24246);let i=e=>{var t;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"7",fill:null!==(t=e.checkColor)&&void 0!==t?t:"#fff"}),(0,r.jsx)("path",{d:"M8 16C12.3765 16 16 12.3686 16 8C16 3.62353 12.3686 0 7.99216 0C3.62353 0 0 3.62353 0 8C0 12.3686 3.63137 16 8 16ZM7.11373 11.8353C6.84706 11.8353 6.62745 11.7255 6.42353 11.451L4.4549 9.03529C4.33726 8.87843 4.26667 8.70588 4.26667 8.52549C4.26667 8.17255 4.54118 7.88235 4.89412 7.88235C5.12157 7.88235 5.29412 7.95294 5.4902 8.21177L7.08235 10.2667L10.4314 4.88627C10.5804 4.65098 10.7843 4.52549 10.9882 4.52549C11.3333 4.52549 11.6549 4.76078 11.6549 5.12941C11.6549 5.30196 11.5529 5.48235 11.4588 5.64706L7.77255 11.451C7.60784 11.7098 7.38039 11.8353 7.11373 11.8353Z",fill:e.fill?e.fill:"#32BD64"})]})};t.Z=i},57414:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.3536 6.35355C12.5488 6.15829 12.5488 5.84171 12.3536 5.64645C12.1583 5.45118 11.8417 5.45118 11.6464 5.64645L12.3536 6.35355ZM8 10L7.64645 10.3536C7.84171 10.5488 8.15829 10.5488 8.35355 10.3536L8 10ZM4.35355 5.64645C4.15829 5.45118 3.84171 5.45118 3.64645 5.64645C3.45118 5.84171 3.45118 6.15829 3.64645 6.35355L4.35355 5.64645ZM11.6464 5.64645L7.64645 9.64645L8.35355 10.3536L12.3536 6.35355L11.6464 5.64645ZM8.35355 9.64645L4.35355 5.64645L3.64645 6.35355L7.64645 10.3536L8.35355 9.64645Z",fill:e.fill?e.fill:"#111"})});t.Z=i},72225:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M2.64645 3.35355C2.45118 3.15829 2.45118 2.84171 2.64645 2.64645C2.84171 2.45118 3.15829 2.45118 3.35355 2.64645L6 5.29289L8.64645 2.64645C8.84171 2.45118 9.15829 2.45118 9.35355 2.64645C9.54882 2.84171 9.54882 3.15829 9.35355 3.35355L6.70711 6L9.35355 8.64645C9.54882 8.84171 9.54882 9.15829 9.35355 9.35355C9.15829 9.54882 8.84171 9.54882 8.64645 9.35355L6 6.70711L3.35355 9.35355C3.15829 9.54882 2.84171 9.54882 2.64645 9.35355C2.45118 9.15829 2.45118 8.84171 2.64645 8.64645L5.29289 6L2.64645 3.35355Z",fill:e.fill?e.fill:"#111"})});t.Z=i},37888:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.62633 14.1206L2.35054 11.9479C2.44872 11.6534 2.61414 11.3857 2.83369 11.1662L9.99993 3.99993L11.9999 5.99994L4.83369 13.1662C4.61414 13.3857 4.34649 13.5511 4.05193 13.6493L1.87931 14.3735C1.72296 14.4257 1.57421 14.2769 1.62633 14.1206ZM12.9999 4.99993L13.9998 4.00003C14.5521 3.44774 14.5521 2.55231 13.9998 2.00003C13.4476 1.44774 12.5521 1.44774 11.9998 2.00003L10.9999 2.99993L12.9999 4.99993Z",fill:e.fill?e.fill:"#111"})});t.Z=i},7898:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.68 8.18183C15.68 7.61456 15.6291 7.06911 15.5345 6.54547H8V9.64002H12.3055C12.12 10.64 11.5564 11.4873 10.7091 12.0546V14.0618H13.2945C14.8073 12.6691 15.68 10.6182 15.68 8.18183Z",fill:"#4285F4"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C10.16 16 11.9709 15.2837 13.2945 14.0618L10.7091 12.0546C9.99273 12.5346 9.07636 12.8182 8 12.8182C5.91636 12.8182 4.15272 11.4109 3.52363 9.52002H0.850906V11.5927C2.16727 14.2073 4.87272 16 8 16Z",fill:"#34A853"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.52364 9.52001C3.36364 9.04001 3.27273 8.52729 3.27273 8.00001C3.27273 7.47274 3.36364 6.96001 3.52364 6.48001V4.40729H0.850909C0.309091 5.48729 0 6.70911 0 8.00001C0 9.29092 0.309091 10.5127 0.850909 11.5927L3.52364 9.52001Z",fill:"#FBBC05"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.18182C9.17454 3.18182 10.2291 3.58545 11.0582 4.37818L13.3527 2.08364C11.9673 0.792727 10.1564 0 8 0C4.87272 0 2.16727 1.79273 0.850906 4.40727L3.52363 6.48C4.15272 4.58909 5.91636 3.18182 8 3.18182Z",fill:"#EA4335"})]});t.Z=i},39886:function(e,t,n){"use strict";let r;n.d(t,{$9:function(){return u},oG:function(){return l},w5:function(){return o}});var i=n(80934),a=n.n(i);function s(){return r||(r=a()("JKILZFCQG9","e11e74a9c0c403ccec62aee779fc091d"))}function o(e){return s().initIndex(e)}function l(){return s().initIndex("users")}function u(e){r=a()("JKILZFCQG9","e11e74a9c0c403ccec62aee779fc091d",{headers:{"X-Algolia-UserToken":e}})}},63073:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(27378),i=n(3321);let a=["cEJlDjWOriZIK9w90N3y9Pa35Bm1","DxlZwGtHZsQ72Hf089rHJYaVKd12","PdsJY0a9phRln9d4H0psfUpO9nG3","0lQot0dhYXXJewb8jVL714uB34v1","ulo7NmZhVAWiXNukvkJZlBt7yZh2"],s=[...a,"ulo7NmZhVAWiXNukvkJZlBt7yZh2"],o={admin:a,highlight:s,navigation:["cEJlDjWOriZIK9w90N3y9Pa35Bm1","DxlZwGtHZsQ72Hf089rHJYaVKd12","PdsJY0a9phRln9d4H0psfUpO9nG3","0lQot0dhYXXJewb8jVL714uB34v1","ulo7NmZhVAWiXNukvkJZlBt7yZh2"],sites:["hI5b1SNHHaSgCp898HWvOtmwDWT2","cEJlDjWOriZIK9w90N3y9Pa35Bm1","DxlZwGtHZsQ72Hf089rHJYaVKd12","PdsJY0a9phRln9d4H0psfUpO9nG3","0lQot0dhYXXJewb8jVL714uB34v1","ulo7NmZhVAWiXNukvkJZlBt7yZh2","fBIJpRYQ5TXatIhqCstqSv0duZB2"]};function l(e){let t=(0,r.useContext)(i.St);return!!t&&-1!=o[e].indexOf(t.uid)}},3321:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},IC:function(){return i},J6:function(){return u},St:function(){return s},vy:function(){return l}});var r,i,a=n(27378);let s=a.createContext(null);(r=i||(i={}))[r.Loading=0]="Loading",r[r.LoggedOut=1]="LoggedOut",r[r.LoggedIn=2]="LoggedIn";let o=a.createContext(i.Loading),l=a.createContext(null),u=a.createContext(void 0)},45515:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(27378);function i(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!1)},[]),e}},32667:function(e,t,n){"use strict";var r=n(27378);let i=r.useLayoutEffect;t.Z=i},67447:function(e,t,n){"use strict";n.d(t,{$:function(){return i},Y:function(){return r}});let r=e=>{switch(e){case"image/jpeg":default:return".jpg";case"image/png":return".png";case"image/gif":return".gif";case"video/mp4":return".mp4";case"video/quicktime":return".mov"}},i=e=>{switch(e){case"image/jpeg":case"image/png":case"image/gif":default:return"image";case"video/mp4":case"video/quicktime":return"video"}}},48508:function(e,t,n){"use strict";var r,i,a,s,o,l;n.d(t,{B0:function(){return r},a0:function(){return a},nK:function(){return i}}),(s=r||(r={})).Anyone="anyone",s.Following="following",s.Mention="mention",(o=i||(i={})).Highlights="highlights",o.Following="following",o.All="all",(l=a||(a={})).All="all",l.TopLevel="topLevel",l.Media="media",l.Bookmarks="bookmarks"},21990:function(e,t,n){"use strict";n.d(t,{W:function(){return a},f:function(){return r}});let r="Does not expire",i={articles:"piece",awards:"award",certifications:"certification",education:"education experience",exhibitions:"exhibition",features:"feature",projects:"project","side-projects":"side project",talks:"talk",volunteering:"volunteer experience","work-experience":"work experience"};function a(e){e.startsWith("/")&&(e=e.slice(1));let t=e.split("/");if(t.length<4)throw Error("Not given a proper doc path");return i[t[2]]}},39275:function(e,t){"use strict";t.Z=["Projects","Side Projects","Exhibitions","Speaking","Writing","Awards","Features","Work Experience","Volunteering","Education","Certifications","Contact","Teams"]},70502:function(e,t,n){"use strict";function r(e,t){return function(e,t,n){let r=Math.floor((t.getTime()-e.getTime())/1e3);if(r<0&&(r=0),r<45)return n?"just now":"a few seconds ago";if(r<90)return n?"1m":"a minute ago";let i=Math.round(r/60);if(i<45)return n?"".concat(i,"m"):"".concat(i," minutes ago");let a=Math.round(r/3600);if(a<2)return n?"1h":"an hour ago";if(a<22)return n?"".concat(a,"h"):"".concat(a," hours ago");let s=Math.round(r/86400);if(s<2)return n?"1d":"a day ago";if(s<26)return n?"".concat(s,"d"):"".concat(s," days ago");let o=Math.round(r/86400/146097*4800);if(o<2)return n?"1mo":"a month ago";if(s<320)return n?"".concat(o,"mo"):"".concat(o," months ago");let l=Math.round(r/86400*4800/146097/12);return l<2?n?"1y":"a year ago":n?"".concat(l,"y"):"".concat(l," years ago")}(e,new Date,null!=t&&t)}n.d(t,{w:function(){return r}})},34707:function(e,t){"use strict";t.Z=function(e){return null!=e&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}},12532:function(e,t,n){"use strict";function r(e){return/^https?:\/\//i.test(e)?e:"http://".concat(e)}n.d(t,{Pw:function(){return s},jv:function(){return a},lm:function(){return o}});let i=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;function a(e){return!!i.test(e)||!!i.test(r(e))}function s(e){let t=e;for(let n of["http://","https://"])t.toLowerCase().startsWith(n)&&(t=e.substring(n.length));return t.startsWith("www.")&&(t=t.substring(4)),t}function o(e){let t=s(e);if(t.length<=23)return t;let n=t.indexOf("/"),r=Math.max(23,n+16);return t.length>r?t.substring(0,r-1)+"…":t}t.ZP=r},1855:function(e,t,n){"use strict";function r(e){return null!=e}n.d(t,{U:function(){return r}})},26464:function(e,t,n){"use strict";let r=["community","about","maitake","explore","profile","terms","privacy","settings","messages","faq","help","analytics","status","careers","help","report","new","news","press","team","teams","feedback","dashboard","posts","post","auth","icons","join","following","_app","_error","_middleware","_openGraph","_playground","_sites","_graphQL","_dashboard","_posts","feed","index","admin-redirect","admin","api","open-roles","sitemaps","gift-shop","sites","archive","newsletter","newsletters","twitter","discord","www","mail","blog","server","webmail","ns","ns1","ns2","ns3","smtp","secure","admin","internal","help","wiki","shop","url68","em3322","19634716","testing","not-a-page","loops"].map(e=>e.toLowerCase());t.ZP=function(e){return!(e=String(e).toLowerCase()).includes("_domainkey")&&/^(?=[a-zA-Z0-9._]{1,20}$)(?!.*[_.]{2})[^.].*[^.]$/.test(e)&&!r.includes(e)}},39115:function(e,t,n){"use strict";var r,i,a,s,o,l,u;n.r(t);let c={fragment:{argumentDefinitions:r=[{defaultValue:null,kind:"LocalArgument",name:"input"}],kind:"Fragment",metadata:null,name:"CreateTeamModalMutation",selections:[{alias:null,args:i=[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"CreateTeamPayload",kind:"LinkedField",name:"createTeam",plural:!1,selections:[u={alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"team",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"teamName",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"profilePhotoURL",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{kind:"InlineDataFragmentSpread",name:"SidebarTeamsFragment",selections:[{alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"adminableTeams",plural:!0,selections:[o,l,s],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"CreateTeamModalMutation",selections:[{alias:null,args:i,concreteType:"CreateTeamPayload",kind:"LinkedField",name:"createTeam",plural:!1,selections:[u,{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"adminableTeams",plural:!0,selections:[o,l,s,a],storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"ac1554e6c73a2065a27c57af0489a7e4",id:null,metadata:{},name:"CreateTeamModalMutation",operationKind:"mutation",text:"mutation CreateTeamModalMutation(\n  $input: TeamInput!\n) {\n  createTeam(input: $input) {\n    team {\n      id\n      username\n      teamName\n      profilePhotoURL\n    }\n    query {\n      ...SidebarTeamsFragment\n    }\n  }\n}\n\nfragment SidebarTeamsFragment on Query {\n  adminableTeams {\n    teamName\n    profilePhotoURL\n    username\n    id\n  }\n}\n"}};c.hash="823b35bf49e0811a52cbfaf7ef4168b5",t.default=c},48365:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PostAttachment_post",selections:[{alias:null,args:null,concreteType:"PostEmbedContent",kind:"LinkedField",name:"embeds",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payload",storageKey:null}],storageKey:null}],type:"Post",abstractKey:null};r.hash="3cbe718a2726a1b4ea9e93589b752de3",t.default=r},44626:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PostContent_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,concreteType:"PostLinkContent",kind:"LinkedField",name:"links",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payload",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"attachment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],type:"PostLinkUserAttachment",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Post",abstractKey:null};r.hash="e2d2d3c99e6eeb0d7255833d7d92fcb3",t.default=r},15220:function(e,t,n){"use strict";var r,i;n.r(t);let a={fragment:{argumentDefinitions:r=[{defaultValue:null,kind:"LocalArgument",name:"postID"}],kind:"Fragment",metadata:null,name:"PostDeletePostMutation",selections:i=[{alias:null,args:[{kind:"Variable",name:"postID",variableName:"postID"}],concreteType:"Post",kind:"LinkedField",name:"deletePost",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"PostDeletePostMutation",selections:i},params:{cacheID:"a579bc5d37c80f21bd69a1cf1f891824",id:null,metadata:{},name:"PostDeletePostMutation",operationKind:"mutation",text:"mutation PostDeletePostMutation(\n  $postID: String!\n) {\n  deletePost(postID: $postID) {\n    id\n    content\n    deleted\n  }\n}\n"}};a.hash="580a6de563560d909858da94e898a481",t.default=a},5443:function(e,t,n){"use strict";var r,i,a,s,o,l,u,c;n.r(t);let d={fragment:{argumentDefinitions:r=[{defaultValue:null,kind:"LocalArgument",name:"action"},{defaultValue:null,kind:"LocalArgument",name:"postID"}],kind:"Fragment",metadata:null,name:"PostInteractionsInteractMutation",selections:c=[{alias:null,args:[{kind:"Variable",name:"action",variableName:"action"},{kind:"Variable",name:"postID",variableName:"postID"}],concreteType:"Post",kind:"LinkedField",name:"interactPost",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"likeCount",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"repostCount",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"isLiked",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"isReposted",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"isBookmarked",storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[i,a,s,o,l,u],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"PostInteractionsInteractMutation",selections:c},params:{cacheID:"1d12a99f65292550836fe8919c68aca6",id:null,metadata:{},name:"PostInteractionsInteractMutation",operationKind:"mutation",text:"mutation PostInteractionsInteractMutation(\n  $action: String!\n  $postID: String!\n) {\n  interactPost(action: $action, postID: $postID) {\n    id\n    likeCount\n    repostCount\n    isLiked\n    isReposted\n    isBookmarked\n    repostedPost {\n      id\n      likeCount\n      repostCount\n      isLiked\n      isReposted\n      isBookmarked\n    }\n  }\n}\n"}};d.hash="efd9acd6b5a6e24e74ac5d1f6ac2cd02",t.default=d},53686:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PostLikeButton_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"likeCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isLiked",storageKey:null}],type:"Post",abstractKey:null};r.hash="9a50d1db3e93c01193310ec47977753f",t.default=r},17375:function(e,t,n){"use strict";var r,i;n.r(t);let a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PostReplyingTo_post",selections:[{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"inReplyTo",plural:!1,selections:[i={alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:r=[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"mentions",plural:!0,selections:r,storageKey:null}],storageKey:null},i],type:"Post",abstractKey:null};a.hash="900562de63c6e83df442f15f6caebbff",t.default=a},29579:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PostRepostButton_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"repostCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isReposted",storageKey:null}],type:"Post",abstractKey:null};r.hash="3fc08493466bbfc6d2768d81d7d515c2",t.default=r},94799:function(e,t,n){"use strict";var r;n.r(t);let i={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"Post_post",selections:[r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},{alias:null,args:null,concreteType:"SupporterInfo",kind:"LinkedField",name:"supporterInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"replyCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"repostCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isMuted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"highlighted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canReply",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isBookmarked",storageKey:null},{args:null,kind:"FragmentSpread",name:"PostReplyingTo_post"},{args:null,kind:"FragmentSpread",name:"PostContent_post"},{args:null,kind:"FragmentSpread",name:"PostAttachment_post"},{args:null,kind:"FragmentSpread",name:"PostLikeButton_post"},{args:null,kind:"FragmentSpread",name:"PostRepostButton_post"}],type:"Post",abstractKey:null};i.hash="c09a1eecd916c191ecedbeb20966a021",t.default=i},50593:function(e,t,n){"use strict";var r,i,a,s,o,l,u,c;n.r(t);let d={fragment:{argumentDefinitions:r=[{defaultValue:null,kind:"LocalArgument",name:"username"}],kind:"Fragment",metadata:null,name:"ProfileCanReplyQuery",selections:c=[{alias:null,args:[{kind:"Variable",name:"username",variableName:"username"}],concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"posts",plural:!0,selections:[i,a={alias:null,args:null,kind:"ScalarField",name:"canReply",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"isLiked",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"isReposted",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"isBookmarked",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"isMuted",storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[i,a,s,o,l,u],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"ProfileCanReplyQuery",selections:c},params:{cacheID:"a89b43153b8a615b641e9830b7ad39ae",id:null,metadata:{},name:"ProfileCanReplyQuery",operationKind:"query",text:"query ProfileCanReplyQuery(\n  $username: String!\n) {\n  userByUsername(username: $username) {\n    id\n    canSee\n    posts {\n      id\n      canReply\n      isLiked\n      isReposted\n      isBookmarked\n      isMuted\n      repostedPost {\n        id\n        canReply\n        isLiked\n        isReposted\n        isBookmarked\n        isMuted\n      }\n    }\n  }\n}\n"}};d.hash="696ab773594c719a5ac3fff3ede6738b",t.default=d},97171:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileContent_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pronouns",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"replyPrivacy",storageKey:null},{alias:null,args:null,concreteType:"SupporterInfo",kind:"LinkedField",name:"supporterInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null}],type:"User",abstractKey:null};r.hash="7886a31880c33f41f95522bfb6f16cc7",t.default=r},64729:function(e,t,n){"use strict";var r,i,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D,P,N,L,M,O,F,U,V,B,q,Z,z,H,K,W,$;n.r(t);let G=(r=[{defaultValue:null,kind:"LocalArgument",name:"username"}],i=[{kind:"Variable",name:"username",variableName:"username"}],s={alias:null,args:null,kind:"ScalarField",name:"uid",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"collection",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null}],type:"ProfileItemMediaAttachment",abstractKey:null},h={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"caseStudy",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pageStatus",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null}],storageKey:null}],type:"ProfileItemCaseStudyAttachment",abstractKey:null},f={alias:null,args:null,concreteType:"ContactItem",kind:"LinkedField",name:"allContactItems",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"contactType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"contactValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channelName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channelURL",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order",storageKey:null}],storageKey:null},g={alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"currentTeams",plural:!0,selections:m=[a,p={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profilePhotoURL",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"teamName",storageKey:null}],storageKey:null},v={alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"pastTeams",plural:!0,selections:m,storageKey:null},y={alias:null,args:null,concreteType:"StatusEmoji",kind:"LinkedField",name:"statusEmoji",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"emoji",storageKey:null}],storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"statusBody",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"statusTimestamp",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"about",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"replyPrivacy",storageKey:null},S={alias:null,args:null,concreteType:"Status",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[a],storageKey:null},{fragment:{argumentDefinitions:r,kind:"Fragment",metadata:null,name:"ProfileGraphQLQuery",selections:[{alias:null,args:i,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[a,s,{alias:null,args:null,concreteType:"ProfileItem",kind:"LinkedField",name:"allProfileItems",plural:!0,selections:[a,o,l,{kind:"InlineDataFragmentSpread",name:"ProfileItem_profileItem",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"attachments",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"ScrollableProfileItemGallery_profileItemAttachment",selections:[u,c,h],args:null,argumentDefinitions:[]}],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null},f,g,v,y,_,b,x,w,k,p,E,S,C={alias:null,args:null,concreteType:"SupporterInfo",kind:"LinkedField",name:"supporterInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null}],storageKey:null},T={alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"website",storageKey:null},R={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},A={alias:null,args:null,kind:"ScalarField",name:"pronouns",storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"openGraphImageURL",storageKey:null},P={alias:null,args:null,kind:"ScalarField",name:"sectionOrder",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"printAbout",storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"printAwards",storageKey:null},M={alias:null,args:null,kind:"ScalarField",name:"printContact",storageKey:null},O={alias:null,args:null,kind:"ScalarField",name:"printEducation",storageKey:null},F={alias:null,args:null,kind:"ScalarField",name:"printExhibitions",storageKey:null},U={alias:null,args:null,kind:"ScalarField",name:"printFeatures",storageKey:null},V={alias:null,args:null,kind:"ScalarField",name:"printProjects",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"printSideProjects",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"printSpeaking",storageKey:null},Z={alias:null,args:null,kind:"ScalarField",name:"printWorkExperience",storageKey:null},z={alias:null,args:null,kind:"ScalarField",name:"printVolunteering",storageKey:null},H={alias:null,args:null,kind:"ScalarField",name:"printCertifications",storageKey:null},K={alias:null,args:null,kind:"ScalarField",name:"printWriting",storageKey:null},W={alias:null,args:null,kind:"ScalarField",name:"printTeams",storageKey:null},{alias:null,args:null,concreteType:"WritingTabConnection",kind:"LinkedField",name:"writingTab",plural:!1,selections:[$={alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"ProfileWritingTabContent_user"},{args:null,kind:"FragmentSpread",name:"ProfileMessageButtonFragment_user"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"ProfileGraphQLQuery",selections:[{alias:null,args:i,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[a,s,{alias:null,args:null,concreteType:"ProfileItem",kind:"LinkedField",name:"allProfileItems",plural:!0,selections:[a,o,l,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"attachments",plural:!0,selections:[u,{kind:"TypeDiscriminator",abstractKey:"__isProfileItemAttachment"},c,h],storageKey:null}],storageKey:null},f,g,v,y,_,b,x,w,k,p,E,S,C,T,I,R,j,A,D,P,N,L,M,O,F,U,V,B,q,Z,z,H,K,W,{alias:null,args:null,concreteType:"WritingTabConnection",kind:"LinkedField",name:"writingTab",plural:!1,selections:[$,{alias:null,args:null,concreteType:"WritingTabEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"WritingTabNode",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null},{alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"page",plural:!1,selections:[a,d,{alias:null,args:null,concreteType:"CaseStudyPageContent",kind:"LinkedField",name:"publishedContent",plural:!1,selections:[R,l,{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPrivate",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null}],storageKey:null}]},params:{cacheID:"43f446398eedcd90560b3447c19ef16f",id:null,metadata:{},name:"ProfileGraphQLQuery",operationKind:"query",text:"query ProfileGraphQLQuery(\n  $username: String!\n) {\n  userByUsername(username: $username) {\n    id\n    uid\n    allProfileItems {\n      id\n      collection\n      content\n      ...ProfileItem_profileItem\n    }\n    allContactItems {\n      id\n      contactType\n      contactValue\n      channelName\n      channelURL\n      order\n    }\n    currentTeams {\n      id\n      username\n      profilePhotoURL\n      teamName\n    }\n    pastTeams {\n      id\n      username\n      profilePhotoURL\n      teamName\n    }\n    statusEmoji {\n      description\n      emoji\n    }\n    statusBody\n    statusTimestamp\n    about\n    photoURL\n    displayName\n    username\n    replyPrivacy\n    latestStatus {\n      id\n    }\n    supporterInfo {\n      tier\n    }\n    verified\n    website\n    title\n    location\n    pronouns\n    openGraphImageURL\n    sectionOrder\n    printAbout\n    printAwards\n    printContact\n    printEducation\n    printExhibitions\n    printFeatures\n    printProjects\n    printSideProjects\n    printSpeaking\n    printWorkExperience\n    printVolunteering\n    printCertifications\n    printWriting\n    printTeams\n    writingTab {\n      totalCount\n    }\n    ...ProfileWritingTabContent_user\n    ...ProfileMessageButtonFragment_user\n  }\n}\n\nfragment ProfileItem_profileItem on ProfileItem {\n  attachments {\n    __typename\n    ...ScrollableProfileItemGallery_profileItemAttachment\n  }\n}\n\nfragment ProfileMessageButtonFragment_user on User {\n  canSee\n  replyPrivacy\n  uid\n  username\n}\n\nfragment ProfileWritingTabContentPageRow_writingTabNode on WritingTabNode {\n  page {\n    id\n    slug\n    publishedContent {\n      title\n      content\n      thumbnail\n    }\n    isPrivate\n  }\n  publishedAt\n}\n\nfragment ProfileWritingTabContent_user on User {\n  id\n  username\n  writingTab {\n    edges {\n      node {\n        publishedAt\n        ...ProfileWritingTabContentPageRow_writingTabNode\n      }\n    }\n  }\n}\n\nfragment ScrollableProfileItemGallery_profileItemAttachment on ProfileItemAttachment {\n  __isProfileItemAttachment: __typename\n  __typename\n  ... on ProfileItemMediaAttachment {\n    data\n  }\n  ... on ProfileItemCaseStudyAttachment {\n    caseStudy {\n      id\n      pageStatus\n      slug\n    }\n  }\n}\n"}});G.hash="b4c5e510c66db3aa0f1a93c722521cec",t.default=G},71016:function(e,t,n){"use strict";n.r(t);let r={kind:"InlineDataFragment",name:"ProfileItem_profileItem"};r.hash="fb60850a732d5dee9d9d0224085e256e",t.default=r},80754:function(e,t,n){"use strict";var r,i,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D,P,N;n.r(t);let L=(r={defaultValue:null,kind:"LocalArgument",name:"cursor"},i={defaultValue:null,kind:"LocalArgument",name:"feedType"},a={defaultValue:null,kind:"LocalArgument",name:"username"},s=[{kind:"Variable",name:"username",variableName:"username"}],l=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"feedType",variableName:"feedType"},{kind:"Literal",name:"first",value:50}],u={alias:null,args:null,kind:"ScalarField",name:"embedType",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"embedPayload",storageKey:null},d={args:null,kind:"FragmentSpread",name:"Post_post"},p={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null},m={alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},{alias:null,args:null,concreteType:"SupporterInfo",kind:"LinkedField",name:"supporterInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null}],storageKey:null}],storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"replyCount",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"repostCount",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"isMuted",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"highlighted",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"canReply",storageKey:null},S={alias:null,args:null,kind:"ScalarField",name:"isBookmarked",storageKey:null},T={alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"inReplyTo",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:C=[f,o],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"mentions",plural:!0,selections:C,storageKey:null},o],storageKey:null},j={alias:null,args:null,concreteType:"PostLinkContent",kind:"LinkedField",name:"links",plural:!0,selections:[I={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},R={alias:null,args:null,kind:"ScalarField",name:"payload",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"attachment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[o,f],storageKey:null}],type:"PostLinkUserAttachment",abstractKey:null}],storageKey:null}],storageKey:null},D={alias:null,args:null,kind:"ScalarField",name:"likeCount",storageKey:null},P={alias:null,args:null,kind:"ScalarField",name:"isLiked",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"isReposted",storageKey:null},{fragment:{argumentDefinitions:[r,i,a],kind:"Fragment",metadata:null,name:"ProfileLoadMoreQuery",selections:[{alias:null,args:s,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[o,{alias:null,args:l,concreteType:"PostConnection",kind:"LinkedField",name:"postsFeed",plural:!1,selections:[{alias:null,args:null,concreteType:"PostEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"node",plural:!1,selections:[o,{kind:"InlineDataFragmentSpread",name:"ProfileTabsContent_post",selections:[o,u,c,d,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:[h,f,o],storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[o,d],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},p],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,r,i],kind:"Operation",name:"ProfileLoadMoreQuery",selections:[{alias:null,args:s,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[o,{alias:null,args:l,concreteType:"PostConnection",kind:"LinkedField",name:"postsFeed",plural:!1,selections:[{alias:null,args:null,concreteType:"PostEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"node",plural:!1,selections:[o,u,c,m,g,v,y,_,b,x,w,k,E,S,T,j,A={alias:null,args:null,concreteType:"PostEmbedContent",kind:"LinkedField",name:"embeds",plural:!0,selections:[I,R],storageKey:null},D,P,N,{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[o,m,g,v,y,_,b,x,w,k,E,S,T,j,A,D,P,N],storageKey:null}],storageKey:null}],storageKey:null},p],storageKey:null}],storageKey:null}]},params:{cacheID:"4544d6465f37dc298d6f0d8047b67069",id:null,metadata:{},name:"ProfileLoadMoreQuery",operationKind:"query",text:"query ProfileLoadMoreQuery(\n  $username: String!\n  $cursor: String!\n  $feedType: String!\n) {\n  userByUsername(username: $username) {\n    id\n    postsFeed(feedType: $feedType, first: 50, after: $cursor) {\n      edges {\n        node {\n          id\n          ...ProfileTabsContent_post\n        }\n      }\n      pageInfo {\n        hasNextPage\n        endCursor\n      }\n    }\n  }\n}\n\nfragment PostAttachment_post on Post {\n  embeds {\n    type\n    payload\n  }\n}\n\nfragment PostContent_post on Post {\n  content\n  links {\n    type\n    payload\n    start\n    length\n    attachment {\n      __typename\n      ... on PostLinkUserAttachment {\n        user {\n          id\n          username\n        }\n      }\n    }\n  }\n}\n\nfragment PostLikeButton_post on Post {\n  id\n  likeCount\n  isLiked\n}\n\nfragment PostReplyingTo_post on Post {\n  inReplyTo {\n    poster {\n      username\n      id\n    }\n    mentions {\n      username\n      id\n    }\n    id\n  }\n  poster {\n    username\n    id\n  }\n}\n\nfragment PostRepostButton_post on Post {\n  id\n  repostCount\n  isReposted\n}\n\nfragment Post_post on Post {\n  id\n  poster {\n    id\n    displayName\n    username\n    photoURL\n    supporterInfo {\n      tier\n    }\n  }\n  replyCount\n  repostCount\n  content\n  timestamp\n  canSee\n  isMuted\n  deleted\n  highlighted\n  canReply\n  isBookmarked\n  ...PostReplyingTo_post\n  ...PostContent_post\n  ...PostAttachment_post\n  ...PostLikeButton_post\n  ...PostRepostButton_post\n}\n\nfragment ProfileTabsContent_post on Post {\n  id\n  embedType\n  embedPayload\n  ...Post_post\n  poster {\n    displayName\n    username\n    id\n  }\n  repostedPost {\n    id\n    ...Post_post\n  }\n}\n"}});L.hash="2099145e44f7322f28e999007bf505a8",t.default=L},89194:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileMessageButtonFragment_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"replyPrivacy",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"uid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],type:"User",abstractKey:null};r.hash="4ec20adb53b9fc444711e18806ddd70d",t.default=r},30075:function(e,t,n){"use strict";var r,i,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D,P,N,L;n.r(t);let M=(r={defaultValue:null,kind:"LocalArgument",name:"feedType"},i={defaultValue:null,kind:"LocalArgument",name:"username"},a=[{kind:"Variable",name:"username",variableName:"username"}],o=[{kind:"Variable",name:"feedType",variableName:"feedType"},{kind:"Literal",name:"first",value:50}],l={alias:null,args:null,kind:"ScalarField",name:"embedType",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"embedPayload",storageKey:null},c={args:null,kind:"FragmentSpread",name:"Post_post"},f={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null}],storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"canSee",storageKey:null},v={alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:[s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"photoURL",storageKey:null},g={alias:null,args:null,concreteType:"SupporterInfo",kind:"LinkedField",name:"supporterInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tier",storageKey:null}],storageKey:null}],storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"replyCount",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"repostCount",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"isMuted",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null},E={alias:null,args:null,kind:"ScalarField",name:"highlighted",storageKey:null},S={alias:null,args:null,kind:"ScalarField",name:"canReply",storageKey:null},C={alias:null,args:null,kind:"ScalarField",name:"isBookmarked",storageKey:null},I={alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"inReplyTo",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:T=[h,s],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"mentions",plural:!0,selections:T,storageKey:null},s],storageKey:null},A={alias:null,args:null,concreteType:"PostLinkContent",kind:"LinkedField",name:"links",plural:!0,selections:[R={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"payload",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"attachment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[s,h],storageKey:null}],type:"PostLinkUserAttachment",abstractKey:null}],storageKey:null}],storageKey:null},P={alias:null,args:null,kind:"ScalarField",name:"likeCount",storageKey:null},N={alias:null,args:null,kind:"ScalarField",name:"isLiked",storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"isReposted",storageKey:null},{fragment:{argumentDefinitions:[r,i],kind:"Fragment",metadata:null,name:"ProfileQuery",selections:[{alias:null,args:a,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[s,{args:null,kind:"FragmentSpread",name:"ProfileContent_user"},{alias:null,args:o,concreteType:"PostConnection",kind:"LinkedField",name:"postsFeed",plural:!1,selections:[{alias:null,args:null,concreteType:"PostEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"node",plural:!1,selections:[s,{kind:"InlineDataFragmentSpread",name:"ProfileTabsContent_post",selections:[s,l,u,c,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"poster",plural:!1,selections:[d,h,s],storageKey:null},{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[s,c],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null},f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,r],kind:"Operation",name:"ProfileQuery",selections:[{alias:null,args:a,concreteType:"User",kind:"LinkedField",name:"userByUsername",plural:!1,selections:[s,d,p,{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pronouns",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"website",storageKey:null},m,h,{alias:null,args:null,kind:"ScalarField",name:"replyPrivacy",storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"verified",storageKey:null},{alias:null,args:o,concreteType:"PostConnection",kind:"LinkedField",name:"postsFeed",plural:!1,selections:[{alias:null,args:null,concreteType:"PostEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"node",plural:!1,selections:[s,l,u,v,y,_,b,x,p,w,k,E,S,C,I,A,D={alias:null,args:null,concreteType:"PostEmbedContent",kind:"LinkedField",name:"embeds",plural:!0,selections:[R,j],storageKey:null},P,N,L,{alias:null,args:null,concreteType:"Post",kind:"LinkedField",name:"repostedPost",plural:!1,selections:[s,v,y,_,b,x,p,w,k,E,S,C,I,A,D,P,N,L],storageKey:null}],storageKey:null}],storageKey:null},f],storageKey:null}],storageKey:null}]},params:{cacheID:"2fa90f93a4670324e04e518e8cd53526",id:null,metadata:{},name:"ProfileQuery",operationKind:"query",text:"query ProfileQuery(\n  $username: String!\n  $feedType: String!\n) {\n  userByUsername(username: $username) {\n    id\n    ...ProfileContent_user\n    postsFeed(feedType: $feedType, first: 50) {\n      edges {\n        node {\n          id\n          ...ProfileTabsContent_post\n        }\n      }\n      pageInfo {\n        hasNextPage\n        endCursor\n      }\n    }\n  }\n}\n\nfragment PostAttachment_post on Post {\n  embeds {\n    type\n    payload\n  }\n}\n\nfragment PostContent_post on Post {\n  content\n  links {\n    type\n    payload\n    start\n    length\n    attachment {\n      __typename\n      ... on PostLinkUserAttachment {\n        user {\n          id\n          username\n        }\n      }\n    }\n  }\n}\n\nfragment PostLikeButton_post on Post {\n  id\n  likeCount\n  isLiked\n}\n\nfragment PostReplyingTo_post on Post {\n  inReplyTo {\n    poster {\n      username\n      id\n    }\n    mentions {\n      username\n      id\n    }\n    id\n  }\n  poster {\n    username\n    id\n  }\n}\n\nfragment PostRepostButton_post on Post {\n  id\n  repostCount\n  isReposted\n}\n\nfragment Post_post on Post {\n  id\n  poster {\n    id\n    displayName\n    username\n    photoURL\n    supporterInfo {\n      tier\n    }\n  }\n  replyCount\n  repostCount\n  content\n  timestamp\n  canSee\n  isMuted\n  deleted\n  highlighted\n  canReply\n  isBookmarked\n  ...PostReplyingTo_post\n  ...PostContent_post\n  ...PostAttachment_post\n  ...PostLikeButton_post\n  ...PostRepostButton_post\n}\n\nfragment ProfileContent_user on User {\n  id\n  displayName\n  canSee\n  title\n  location\n  pronouns\n  website\n  photoURL\n  username\n  replyPrivacy\n  supporterInfo {\n    tier\n  }\n  verified\n}\n\nfragment ProfileTabsContent_post on Post {\n  id\n  embedType\n  embedPayload\n  ...Post_post\n  poster {\n    displayName\n    username\n    id\n  }\n  repostedPost {\n    id\n    ...Post_post\n  }\n}\n"}});M.hash="770b18525967b07c5f1c04c1f6599b49",t.default=M},87096:function(e,t,n){"use strict";n.r(t);let r={kind:"InlineDataFragment",name:"ProfileTabsContent_post"};r.hash="e3f8899eb608d32aa813e09566d4be2a",t.default=r},80680:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileWritingTabContentPageRow_writingTabNode",selections:[{alias:null,args:null,concreteType:"CaseStudyPage",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},{alias:null,args:null,concreteType:"CaseStudyPageContent",kind:"LinkedField",name:"publishedContent",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumbnail",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPrivate",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null}],type:"WritingTabNode",abstractKey:null};r.hash="aa3edbedda0c7716451b819be1ad80ef",t.default=r},95093:function(e,t,n){"use strict";n.r(t);let r={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileWritingTabContent_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,concreteType:"WritingTabConnection",kind:"LinkedField",name:"writingTab",plural:!1,selections:[{alias:null,args:null,concreteType:"WritingTabEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"WritingTabNode",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null},{args:null,kind:"FragmentSpread",name:"ProfileWritingTabContentPageRow_writingTabNode"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"User",abstractKey:null};r.hash="bfce7c2db1439f6b411615e70a9a1b7e",t.default=r},41229:function(e,t,n){"use strict";n.r(t);let r={kind:"InlineDataFragment",name:"ScrollableProfileItemGallery_profileItemAttachment"};r.hash="ab4f1f3ddf8cd642ab755d6899f4eae8",t.default=r},99653:function(e,t,n){"use strict";var r,i,a,s,o,l;n.r(t);let u={fragment:{argumentDefinitions:r=[{defaultValue:null,kind:"LocalArgument",name:"uid"}],kind:"Fragment",metadata:null,name:"SidebarAdminableTeamsQuery",selections:[{kind:"InlineDataFragmentSpread",name:"SidebarTeamsFragment",selections:[{alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"adminableTeams",plural:!0,selections:[i={alias:null,args:null,kind:"ScalarField",name:"teamName",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"profilePhotoURL",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],args:null,argumentDefinitions:[]},l={alias:null,args:[{kind:"Variable",name:"uid",variableName:"uid"}],concreteType:"User",kind:"LinkedField",name:"userByUID",plural:!1,selections:[o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"algoliaUserToken",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:r,kind:"Operation",name:"SidebarAdminableTeamsQuery",selections:[{alias:null,args:null,concreteType:"Team",kind:"LinkedField",name:"adminableTeams",plural:!0,selections:[i,a,s,o],storageKey:null},l]},params:{cacheID:"a3280d48429df178084eb0f251c52a55",id:null,metadata:{},name:"SidebarAdminableTeamsQuery",operationKind:"query",text:"query SidebarAdminableTeamsQuery(\n  $uid: String!\n) {\n  ...SidebarTeamsFragment\n  userByUID(uid: $uid) {\n    id\n    algoliaUserToken\n  }\n}\n\nfragment SidebarTeamsFragment on Query {\n  adminableTeams {\n    teamName\n    profilePhotoURL\n    username\n    id\n  }\n}\n"}};u.hash="3df34a4376fe62944ce747421fd85a0d",t.default=u},798:function(e,t,n){"use strict";n.r(t);let r={kind:"InlineDataFragment",name:"SidebarTeamsFragment"};r.hash="c6b59dbe0ba8e201c7b3fd66b3b0d25f",t.default=r},61556:function(e,t,n){"use strict";var r,i,a;n.r(t);let s={fragment:{argumentDefinitions:[r={defaultValue:null,kind:"LocalArgument",name:"action"},i={defaultValue:null,kind:"LocalArgument",name:"uid"}],kind:"Fragment",metadata:null,name:"UserActionsMuteMutation",selections:a=[{alias:null,args:[{kind:"Variable",name:"action",variableName:"action"},{kind:"Variable",name:"uid",variableName:"uid"}],concreteType:"MuteResult",kind:"LinkedField",name:"muteUser",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"mutedUser",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isMuted",storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,r],kind:"Operation",name:"UserActionsMuteMutation",selections:a},params:{cacheID:"476b08de478b5e7c89b328b0ff999bf2",id:null,metadata:{},name:"UserActionsMuteMutation",operationKind:"mutation",text:"mutation UserActionsMuteMutation(\n  $uid: String!\n  $action: String!\n) {\n  muteUser(uid: $uid, action: $action) {\n    mutedUser {\n      id\n      isMuted\n    }\n  }\n}\n"}};s.hash="8e7cb5df15dcabf2ee1bf06421c196bb",t.default=s},38336:function(e,t,n){"use strict";n.d(t,{Z:function(){return F},D:function(){return M}});var r,i,a=n(24246),s=n(83778),o=n.n(s),l=n(27378),u=n(39885),c=n.n(u);function d(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style}function h(e){return e.type===i.Text}(r=i||(i={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",i.Root,i.Text,i.Directive,i.Comment,i.Script,i.Style,i.Tag,i.CDATA,i.Doctype;var f=n(35906),p=f.domToReact;f.htmlToDOM,f.attributesToProps,f.Element;var m=n(76416),g=n(20233),v=n(30449),y=n.n(v),_=n(23641),b=n.n(_),x=n(12532),w=JSON.parse('["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","adac","ads","adult","ae","aeg","aero","aetna","af","afamilycompany","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","budapest","bugatti","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glade","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","lk","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","qvc","racing","radio","raid","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rmit","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scot","sd","se","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiftcover","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","verm\xf6gensberater","verm\xf6gensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大众汽车","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","诺基亚","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]'),k=n(33619),E=n.n(k),S=n(90005),C=n.n(S);let T=e=>{switch(e.type){case"caseStudy":return(0,a.jsx)(j,{content:e.content,context:e.context});case"profileItem":return(0,a.jsx)(D,{content:e.content});case"message":return(0,a.jsx)(N,{content:e.content});case"teamsBlock":return(0,a.jsx)(O,{content:e.content})}},I=o()("zero").enable(["heading","list","link","hr","emphasis","strikethrough","newline","escape","code","blockquote","paragraph","fence","backticks"]).set({langPrefix:"language-"}),R=I.renderer.rules.link_open||function(e,t,n,r,i){return i.renderToken(e,t,n)};I.renderer.rules.link_open=(e,t,n,r,i)=>{let a=e[t].attrIndex("target");if(a<0)e[t].attrPush(["target","_blank"]);else{let n=e[t].attrs;n&&(n[a][1]="_blank")}return R(e,t,n,r,i)};let j=e=>{let{content:t,context:r}=e,i=I.render(t),s=!1,o={replace:e=>{var t,n,i;if(!e||!d(e))return;let l=null===(t=e.children)||void 0===t?void 0:t[0];if("tag"===e.type&&"pre"===e.name&&l&&"tag"===l.type&&"code"===l.name&&(null===(n=l.attribs)||void 0===n?void 0:n.class)==="language-cv"&&l.firstChild&&h(l.firstChild))return(0,a.jsx)(m.E,{type:"thumbnail"===r?"thumbnail":"renderer",textContent:l.firstChild.data});if("code"===e.name&&(null===(i=e.attribs)||void 0===i?void 0:i.class)!=="language-cv")s=!0;else if("p"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.p,{layout:"position",children:p(e.children,o)});else if("h2"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.h2,{layout:"position",children:p(e.children,o)});else if("h3"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.h3,{layout:"position",children:p(e.children,o)});else if("h4"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.h4,{layout:"position",children:p(e.children,o)});else if("h5"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.h5,{layout:"position",children:p(e.children,o)});else if("h6"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.h6,{layout:"position",children:p(e.children,o)});else if("blockquote"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.blockquote,{layout:"position",children:p(e.children,o)});else if("pre"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.pre,{layout:"position",children:p(e.children,o)});else if("ol"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.ol,{layout:"position",children:p(e.children,o)});else if("ul"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.ul,{layout:"position",children:p(e.children,o)});else if("hr"===e.name&&"permalink"===r)return(0,a.jsx)(g.E.hr,{layout:"position"});else if("a"===e.name&&"thumbnail"===r)return(0,a.jsx)("span",{})}},u=f(i,o);return(0,l.useEffect)(()=>{s&&n.e(6111).then(n.t.bind(n,96111,23)).then(e=>{e.highlightAll()})},[t,s]),(0,a.jsx)(g.E.div,{layout:"position",className:C()(c().markdownContent,y().code,b().code),children:u})},A=o()("zero").enable(["list","paragraph","linkify","link","newline","escape"]).set({linkify:!0,breaks:!0});A.linkify.tlds(w);let D=e=>{let{content:t}=e,n=f(A.render(t),{replace:e=>{if(d(e)&&"tag"===e.type&&"a"===e.name){let t=e.children.filter(e=>h(e)).map(e=>h(e)?e.data:"").join("\n"),n=t.startsWith("http")?(0,x.lm)(t):t,r=e.attribs.href;return(0,a.jsx)("a",{className:E().megalink,href:r,target:"_blank",rel:"noreferrer",children:n})}}});return(0,a.jsx)(a.Fragment,{children:n})},P=o()("zero").enable(["list","paragraph","linkify","newline"]).set({linkify:!0,breaks:!0});P.linkify.tlds(w);let N=e=>{let{content:t}=e,n=f(P.render(t),{replace:e=>{if(d(e)&&"tag"===e.type&&"a"===e.name&&1===e.children.length&&h(e.children[0])){let t=e.children[0];if(!h(t))return;let n=(0,x.lm)(t.data),r=e.attribs.href;return(0,a.jsx)("a",{className:E().megalink,href:r,target:"_blank",rel:"noreferrer",children:n})}}});return(0,a.jsx)(a.Fragment,{children:n})},L=o()("zero").enable(["heading","list","link","emphasis","strikethrough","newline","escape","blockquote","paragraph","linkify"]).set({linkify:!0,breaks:!0});function M(e){return L.render(e)}L.linkify.tlds(w);let O=e=>{let{content:t}=e,n=f(M(t),{replace:e=>{if(d(e)&&"tag"===e.type&&"a"===e.name&&1===e.children.length&&h(e.children[0])){let t=e.children[0];if(!h(t))return;let n=t.data,r=e.attribs.href;return(0,a.jsx)("a",{className:E().megalink,href:r,target:"_blank",rel:"noreferrer",children:n})}}});return(0,a.jsx)(a.Fragment,{children:n})};var F=T},5678:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(33619),s=n.n(a),o=n(90005),l=n.n(o),u=n(79894),c=n.n(u),d=n(86677),h=n(7952);let f=e=>{let t;let n=l()(s().megalink,e.className),a=(0,d.useRouter)(),o=(0,i.useContext)(h.Z),u=e.to;if(!o.onMainDomain&&u.startsWith("/")&&(u=o.canonicalPathToMainDomain+u.substring(1),t="_blank"),"navlink"===e.type){let i=a.asPath.split("?")[0],s=i===e.to,o=l()(n,{active:s});return e.avoidNext?(0,r.jsx)("a",{className:o,"data-hover":e.hover,target:t,href:u,onMouseDown:e.stopPropagation?e=>e.stopPropagation():void 0,onClick:t=>{e.to===u&&(t.preventDefault(),a.push({pathname:e.to},void 0,{shallow:!0})),e.stopPropagation&&t.stopPropagation()},children:e.children}):(0,r.jsx)(c(),{href:u,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)("a",{onMouseDown:e.stopPropagation?e=>e.stopPropagation():void 0,onClick:e.stopPropagation?e=>e.stopPropagation():void 0,className:o,"data-hover":e.hover,target:t,children:e.children})})}if("external"===e.type){let t=["noopener","noreferrer"];return e.rel&&t.push(e.rel),(0,r.jsx)("a",{onMouseDown:e.stopPropagation?e=>e.stopPropagation():void 0,onClick:e.stopPropagation?e=>e.stopPropagation():void 0,className:n,href:u,target:"_blank",rel:t.join(" "),"data-hover":e.hover,children:e.children})}return(0,r.jsx)(c(),{href:u,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)("a",{onMouseDown:e.stopPropagation?e=>e.stopPropagation():void 0,onClick:e.stopPropagation?e=>e.stopPropagation():void 0,className:n,"data-hover":e.hover,rel:e.rel,target:t,children:e.children})})};f.defaultProps={hover:!0},t.Z=f},38562:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(20233),s=n(86992),o=n(83370),l=n.n(o),u=n(27097),c=n.n(u),d=n(3420),h=n(9575),f=n(71946);let p=e=>{let{label:t,icon:n,onClick:o,responsive:u,collapsed:p}=e;(0,i.useContext)(d.Z);let[m,g]=(0,i.useState)(0);(0,i.useEffect)(()=>{v()},[]);let v=()=>{g(window.innerWidth)};return(0,f.Z)("resize",v),(0,r.jsx)(h.Z,{string:m<540&&u||p?t:"",children:(0,r.jsxs)(a.E.button,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:s.O9,whileTap:{scale:.9},className:"".concat(c().sidebarButton," ").concat(l().profileButton),"data-responsive":u,onClick:o,"data-collapsed":p,children:[n?(0,r.jsx)("div",{className:l().icon,children:n}):null,(0,r.jsx)("span",{children:t})]})})};t.Z=p},53444:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(3420),s=n(6344),o=n.n(s),l=n(13596),u=n(23728),c=n(99800),d=n(21460),h=n(9360),f=n(53559),p=n.n(f),m=n(87048),g=n(92401),v=n(25777),y=n(97018),_=n(3321);let b=e=>{let t,s,f;let b=(0,i.useContext)(a.Z),x=(0,i.useContext)(_.vy),[w,k]=(0,i.useState)(!1),[E,S]=(0,i.useState)((0,l.Z)()),C=e=>new Promise(t=>{o().imageFileResizer(e,400,400,"JPEG",80,0,e=>{t(e)},"blob")}),T=async e=>{if(!x||!e.target.files)return;let t=e.target.files[0];if(!t)return;let r=await C(t),i=(0,l.Z)(),{getDownloadURL:a,getStorage:s,ref:o,uploadBytesResumable:c}=await n.e(1217).then(n.bind(n,81217)),d=s(u.H),h="profilePhotos/"+x.uid+"/"+i+".jpg",f=o(d,h),p=c(f,r);p.on("state_changed",e=>{k(!0)},e=>{k(!1)},function(){a(p.snapshot.ref).then(t=>{k(!1),I(t),e.target.value=""})})},I=t=>{if(!x)return;let n=(0,y.JU)(u.db,"users",x.uid);(0,y.pl)(n,{photoURL:t},{merge:!0}),(0,v.ck)(e.currentUser,{photoURL:t})};if(!0===w&&(t=(0,r.jsx)("div",{className:p().spinner,children:(0,r.jsx)(d.Z,{fill:b.grey1})})),(null==x?void 0:x.photoURL)&&!w){let e=(0,g.NR)(x.photoURL,{mode:g.yX.Fill,width:m.xY,height:m.xY});s=(0,r.jsx)(c.Z,{alt:"profile photo",sources:e})}return(null==x?void 0:x.photoURL)||w||(f=(0,r.jsx)("div",{className:p().cameraIcon,children:(0,r.jsx)(h.Z,{fill:b.grey3})})),(0,r.jsxs)("label",{id:p().profilePhotoPicker,"data-outline":!s,htmlFor:E,children:[f,t,s,(0,r.jsx)("input",{onChange:T,id:E,type:"file",accept:"image/jpeg,image/png,image/gif"})]})};t.Z=b},687:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(24246),i=n(27378),a=n(51056),s=n(71946),o=n(6681),l=n.n(o),u=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(/^((?!chrome|android).)*safari/i.test(navigator.userAgent))},[]),e};let c=e=>{let t;let[n,o]=(0,i.useState)(e.clamp),[c,d]=(0,i.useState)(!1),h=(0,i.useRef)(null),f=u(),p=()=>{h.current&&d(h.current.scrollHeight>h.current.clientHeight)};return(0,s.Z)("resize",p),(0,i.useEffect)(()=>{p()},[]),(0,i.useEffect)(()=>{p()},[e.children]),c&&n&&(t=(0,r.jsx)("div",{className:l().masher,"data-safari":f,children:(0,r.jsx)(a.Z,{onClick:()=>o(!1),label:e.label,visualStyle:"snippetbtn"})})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:h,className:l().snippet,"data-clamped":n,"data-overflow":c,"data-safari":f,style:{WebkitLineClamp:n?e.lines:"inherit"},children:e.children}),t]})};c.defaultProps={lines:8,clamp:!0,label:"See more"};var d=c},36300:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(22119),s=n(5678),o=n(687),l=n(62722),u=n(2301),c=n(88231),d=n(38336),h=n(95352),f=n.n(h),p=n(90005),m=n.n(p),g=n(3420),v=n(70502);let y=e=>{let t,n,h,p,y;let[_,b]=(0,i.useState)(!1),[x,w]=(0,i.useState)(),k=(0,i.useContext)(g.Z),E=(0,i.useCallback)(e=>{b(!0),w(e)},[]);if((0,i.useEffect)(()=>{_&&setTimeout(()=>{b(!1)},1e3)},[_]),e.hasNub&&(t=(0,r.jsx)(l.Z,{})),e.displayName&&e.username&&(n=(0,r.jsx)("div",{children:(0,r.jsx)(s.Z,{className:f().displayName,to:"/"+e.username,children:e.displayName})})),e.showReply&&e.uid&&e.latestStatusPath){var S;let t={type:"profile-status",data:{docPath:null!==(S=e.latestStatusPath)&&void 0!==S?S:""}};h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:f().spacer}),(0,r.jsx)(u.Z,{numberOfReactions:"all",user:e.user,replyContent:t,onSend:E,clearOnEnter:!0,context:"Status",visualStyle:"noPadding"})]})}_&&e.currentUser&&(p=(0,r.jsx)(c.Z,{emoji:x}));let C=(0,v.w)(e.timestamp.toDate()),T=C[0].toUpperCase()+C.substring(1),I=(0,r.jsx)("div",{className:f().statusFooter,children:(0,r.jsx)("div",{className:f().time,children:T})});return"feed"===e.context?y=f().inFeed:"inbox"===e.context&&(y=f().inInbox),(0,r.jsxs)("div",{onClick:e.onClick,"data-clickable":void 0!==e.onClick,"data-shadow":k.nubShadow,style:{backgroundColor:e.context?void 0:k.nubColor},className:m()(f().statusBubble,{[f().hideWhenPrinting]:e.hideWhenPrinting},y),children:[t,n,(0,r.jsx)(o.Z,{clamp:e.clamp,lines:e.clampLines?e.clampLines:8,children:(0,r.jsx)("div",{className:f().statusBody,children:(0,r.jsx)(d.Z,{type:"profileItem",content:e.message})})}),e.hideFooter?null:I,h,(0,r.jsx)(a.M,{children:p})]})};y.defaultProps={clamp:!0,hasNub:!0},t.Z=y},30155:function(e,t,n){"use strict";n.d(t,{z:function(){return p},Z:function(){return m}});var r=n(24246),i=n(27378),a=n(86374),s=n(71946),o=n(32667),l=n(93285),u=n.n(l),c=n(3420),d=n(9575);let h=e=>{var t,n;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M7.351 1.553a1 1 0 011.297 0l1.248 1.063a1 1 0 00.57.236l1.634.13a1 1 0 01.917.918l.13 1.634a1 1 0 00.236.57l1.064 1.247a1 1 0 010 1.298l-1.064 1.248a1 1 0 00-.235.569l-.13 1.634a1 1 0 01-.918.918l-1.635.13a1 1 0 00-.569.236l-1.248 1.063a1 1 0 01-1.297 0l-1.248-1.063a1 1 0 00-.57-.236l-1.634-.13a1 1 0 01-.917-.918l-.13-1.634a1 1 0 00-.236-.57L1.552 8.65a1 1 0 010-1.298l1.064-1.248a1 1 0 00.236-.569l.13-1.634a1 1 0 01.917-.917l1.635-.13a1 1 0 00.569-.237l1.248-1.063z",fill:null!==(t=e.fill)&&void 0!==t?t:"#0788F5"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.65 6.238a.643.643 0 10-1.086-.69L7.047 9.503l-1.152-1.44a.643.643 0 00-1.004.803l1.714 2.143a.643.643 0 001.045-.057l3-4.714z",fill:null!==(n=e.checkFill)&&void 0!==n?n:"#fff"})]})},f=e=>{let t,{compress:n,label:l,type:f}=e,[p,m]=(0,i.useState)(!1),[g,v]=(0,i.useState)(0),y=(0,i.useContext)(c.Z);return((0,o.Z)(()=>{window.matchMedia("(color-gamut: p3)").matches?m(!0):m(!1),v(window.innerWidth)},[]),(0,s.Z)("resize",()=>{v(window.innerWidth)}),t="verified"===f?(0,r.jsxs)("div",{className:u().verifiedBadge,"data-compress":n,children:[(0,r.jsx)("div",{className:u().supporterIcon,children:p?(0,r.jsx)(h,{fill:"dark"===y.name?"color(display-p3 0.21 0.54 1)":"#fff",checkFill:"dark"===y.name?"#1A4161":"color(display-p3 0.21 0.54 1)"}):(0,r.jsx)(h,{fill:"dark"===y.name?y.blue:"#fff",checkFill:"dark"===y.name?"#1A4161":y.blue})}),(0,r.jsx)("div",{className:u().supporterLabel,children:null!=l?l:"verified"})]}):(0,r.jsxs)("a",{className:u().supporterBadge,href:"https://read.cv/about/supporters",target:"_blank","data-compress":n,children:[(0,r.jsx)("div",{className:u().supporterIcon,children:p?(0,r.jsx)(a.Z,{fill:"dark"===y.name?"color(display-p3 1 0.72 0.12 / 1)":"#fff"}):(0,r.jsx)(a.Z,{fill:"dark"===y.name?"rgba(245, 178, 7, 1)":"#fff"})}),(0,r.jsx)("div",{className:u().supporterLabel,children:null!=l?l:"supporter"})]}),g>480||!n)?t:(0,r.jsx)(d.Z,{string:"verified"===f?"Verified team":"Supporter",children:t})},p=e=>{let{}=e;return(0,r.jsx)("div",{className:u().freeBadge,children:"Free"})};var m=f},24550:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(6344),s=n.n(a),o=n(13596),l=n(99800),u=n(9360),c=n(53559),d=n.n(c),h=n(87048),f=n(92401),p=n(3420);let m=e=>{let t,n,{photoURL:a,onSelectFile:c,size:m="normal"}=e,g=(0,i.useContext)(p.Z),[v]=(0,i.useState)((0,o.Z)()),[y,_]=(0,i.useState)(),[b,x]=(0,i.useState)();(0,i.useEffect)(()=>{y&&c(y)},[y]);let w=(0,i.useCallback)(e=>{var t;if(e.target.files&&(null===(t=e.target.files)||void 0===t?void 0:t.length)>0){let t=e.target.files[0];s().imageFileResizer(t,400,400,"png",100,0,e=>{_(e),b&&URL.revokeObjectURL(b),x(URL.createObjectURL(e))},"file")}else _(void 0)},[_]);if(b)t=(0,r.jsx)(l.Z,{alt:"profile photo",src:b});else if(a){let e=(0,f.NR)(a,{mode:f.yX.Fill,width:h.xY,height:h.xY});t=(0,r.jsx)(l.Z,{alt:"profile photo",sources:e})}return a||(n=(0,r.jsx)("div",{className:d().cameraIcon,style:"small"===m?{width:16,height:16}:void 0,children:(0,r.jsx)(u.Z,{fill:g.grey3,size:"normal"===m?24:16})})),(0,r.jsxs)("label",{id:d().profilePhotoPicker,"data-outline":!t,htmlFor:v,style:"small"===m?{width:40,height:40}:void 0,children:[n,t,(0,r.jsx)("input",{onChange:w,id:v,type:"file",accept:"image/jpeg,image/png,image/gif"})]})};t.Z=m},15703:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(18345),s=n.n(a);let o=i.forwardRef((e,t)=>{var n,a,o,l,u,c,d,h;let f;let[p,m]=(0,i.useState)(36),g=(0,i.useRef)(null),[v,y]=(0,i.useState)(!1);(0,i.useEffect)(()=>{g.current&&m(g.current.clientHeight)},[e.value]);let _=(0,i.useCallback)(t=>{e.onBlur&&e.onBlur(t),y(!1);let n=t.target.value;t.target.spellcheck=!1,t.target.value=n+" ",t.target.value=n},[]),b=(0,i.useCallback)(t=>{e.onFocus&&e.onFocus(t),y(!0)},[]);return e.label&&(f=(0,r.jsx)("div",{className:s().label,children:(0,r.jsx)("label",{htmlFor:e.id,children:e.label})})),(0,r.jsxs)("div",{className:s().textarea,"data-context":e.context,children:[f,(0,r.jsxs)("div",{"data-style":!!e.visualStyle&&e.visualStyle,className:s().textareaWrap,children:[(0,r.jsx)("textarea",{ref:t,style:{height:p+"px",minHeight:e.lines?e.lines*((null!==(n=e.fontSize)&&void 0!==n?n:14)*(null!==(a=e.lineHeight)&&void 0!==a?a:1.6))+"px":(null!==(o=e.fontSize)&&void 0!==o?o:14)*(null!==(l=e.lineHeight)&&void 0!==l?l:1.6)+"px",fontWeight:e.fontWeight,fontSize:e.fontSize+"px",lineHeight:e.lineHeight,color:e.color},value:e.value,autoComplete:"off",id:e.id,spellCheck:v,placeholder:e.placeholder,"data-style":!!e.visualStyle&&e.visualStyle,onChange:e.onChange,onKeyDown:e.onKeyDown,onFocus:b,onBlur:_}),(0,r.jsx)("div",{ref:g,style:{minHeight:e.lines?e.lines*((null!==(u=e.fontSize)&&void 0!==u?u:14)*(null!==(c=e.lineHeight)&&void 0!==c?c:1.6))+"px":(null!==(d=e.fontSize)&&void 0!==d?d:14)*(null!==(h=e.lineHeight)&&void 0!==h?h:1.6)+"px",fontWeight:e.fontWeight,fontSize:e.fontSize+"px",lineHeight:e.lineHeight},"data-style":!!e.visualStyle&&e.visualStyle,className:s().hidden,children:e.value})]})]})});o.displayName="TextArea",o.defaultProps={fontSize:14,lineHeight:1.6,fontWeight:"normal"},t.Z=o},67137:function(e,t){"use strict";t.Z=["\uD83D\uDD25","\uD83E\uDD19","\uD83D\uDE2F","\uD83D\uDCC8"]},33714:function(e,t){"use strict";t.Z={light:{name:"light",backgroundColor:"#fff",marketingBackground:"#fafafa",modalBackgroundColor:"#fff",inputBackgroundColor:"#f2f2f2",primaryBorderColor:"#e5e5e5",secondaryBorderColor:"#f2f2f2",backdrop:"rgb(0 0 0 / 0.3)",grey1:"#111",grey2:"#555",grey3:"#999",green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",nubColor:"#fff",nubShadow:!0},dark:{name:"dark",backgroundColor:"#222",marketingBackground:"#1a1a1a",modalBackgroundColor:"#222",inputBackgroundColor:"#333",primaryBorderColor:"#333",secondaryBorderColor:"#333",backdrop:"rgb(0 0 0 / 0.7)",grey1:"#eee",grey2:"#bbb",grey3:"#888",green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",nubColor:"#333",nubShadow:!1},klein:{name:"klein",backgroundColor:"#002fa7",modalBackgroundColor:"#fff",inputBackgroundColor:"#1944B0",primaryBorderColor:"#3359B9",secondaryBorderColor:"#1944B0",backdrop:"rgb(0 0 0 / 0.3)",grey1:"#fff",grey2:"#BFCBE9",grey3:"#8097D3",green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",nubColor:"#1944B0",nubShadow:!1,marketingBackground:"#fafafa"},brutalist:{name:"brutalist",backgroundColor:"#bbb",grey1:"#000",grey2:"#555",grey3:"#777",inputBackgroundColor:"#ccc",primaryBorderColor:"#e5e5e5",secondaryBorderColor:"#f2f2f2",nubColor:"#ccc",nubShadow:!1,green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",backdrop:"rgb(0 0 0 / 0.3)",modalBackgroundColor:"#fff",marketingBackground:"#fafafa"},swiss:{name:"swiss",backgroundColor:"#E25336",grey1:"#FFF",grey2:"#F6CBC3",grey3:"#EE9886",inputBackgroundColor:"hsla(10, 75%, 60%, 1)",primaryBorderColor:"#E66D54",secondaryBorderColor:"#E35E43",nubColor:"hsla(10, 75%, 60%, 1)",nubShadow:!1,green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",backdrop:"rgb(0 0 0 / 0.3)",modalBackgroundColor:"#fff",marketingBackground:"#fafafa"},red:{name:"red",backgroundColor:"#FDF2F1",grey1:"#E50800",grey2:"#EC4E48",grey3:"#F39491",inputBackgroundColor:"#FBE0DF",primaryBorderColor:"#F9CFCD",secondaryBorderColor:"#FBE0DF",nubColor:"#FEF8F8",nubShadow:!0,green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",backdrop:"rgb(0 0 0 / 0.3)",modalBackgroundColor:"#fff",marketingBackground:"#fafafa"},green:{name:"green",backgroundColor:"#EDFCED",grey1:"#008000",grey2:"#47A547",grey3:"#8ECA8E",inputBackgroundColor:"#D5F0D5",primaryBorderColor:"#BEE3BE",secondaryBorderColor:"#D5F0D5",nubColor:"#F6FEF6",nubShadow:!0,green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",backdrop:"rgb(0 0 0 / 0.3)",modalBackgroundColor:"#fff",marketingBackground:"#fafafa"},blue:{name:"blue",backgroundColor:"#EDF5FD",grey1:"#0066CC",grey2:"#4791DB",grey3:"#8EBCE9",inputBackgroundColor:"#D5E7F8",primaryBorderColor:"#BED8F3",secondaryBorderColor:"#D5E7F8",nubColor:"#F6FAFE",nubShadow:!0,green:"#32bd64",blue:"#0788f5",orange:"orange",red:"#f04b4b",backdrop:"rgb(0 0 0 / 0.3)",modalBackgroundColor:"#fff",marketingBackground:"#fafafa"}}},23728:function(e,t,n){"use strict";n.d(t,{db:function(){return o},H:function(){return s}});var r=n(93859);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(0,r.KN)("firebase","9.9.3","app");var i=n(14141),a=n(97018);let s=null;s=(0,r.ZF)({apiKey:"AIzaSyCUp9rwqM_Sj7hudg9hqd2_XbSrZvEntCE",authDomain:"auth.read.cv",databaseURL:"https://maitake-project.firebaseio.com",projectId:"maitake-project",storageBucket:"maitake-project.appspot.com",messagingSenderId:"996738579714",appId:"1:996738579714:web:4521da585c6a600860961b",measurementId:"G-HS23B4V0L5"}),(0,i.IH)(s),window.dataLayer=window.dataLayer||[],window.dataLayer.push(["js",new Date]),window.dataLayer.push(["config","AW-11192926167"]);let o=(0,a.ad)(s)},61615:function(e,t,n){"use strict";var r=n(97018),i=n(23728);async function a(e,t){let n=(0,r.IO)((0,r.hJ)(i.db,"usernames"),(0,r.ar)("username","==",e)),a=await (0,r.PL)(n);return a.docs.length<2&&a.docs.every(e=>e.id===t&&"team"===e.data().type)}t.Z=a},92886:function(e,t,n){"use strict";var r=n(24246);let i=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.243 3.757a.75.75 0 00-1.061 0L8 6.94 4.818 3.757a.75.75 0 10-1.06 1.061L6.938 8l-3.182 3.182a.75.75 0 101.061 1.06L8 9.062l3.182 3.182a.75.75 0 101.06-1.061L9.062 8l3.182-3.182a.75.75 0 000-1.06z",fill:e.fill?e.fill:"#111"})});t.Z=i},6015:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M3.5 3C3.22386 3 3 3.22386 3 3.5C3 3.77614 3.22386 4 3.5 4V3ZM8.5 3.5H9C9 3.22386 8.77614 3 8.5 3V3.5ZM8 8.5C8 8.77614 8.22386 9 8.5 9C8.77614 9 9 8.77614 9 8.5H8ZM2.64645 8.64645C2.45118 8.84171 2.45118 9.15829 2.64645 9.35355C2.84171 9.54882 3.15829 9.54882 3.35355 9.35355L2.64645 8.64645ZM3.5 4H8.5V3H3.5V4ZM8 3.5V8.5H9V3.5H8ZM8.14645 3.14645L2.64645 8.64645L3.35355 9.35355L8.85355 3.85355L8.14645 3.14645Z",fill:e.fill?e.fill:"#111"})});t.Z=i},77210:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.3258 6.05806C12.5699 6.30214 12.5699 6.69786 12.3258 6.94194L7.26777 12L12.3258 17.0581C12.5699 17.3021 12.5699 17.6979 12.3258 17.9419C12.0817 18.186 11.686 18.186 11.4419 17.9419L5.5 12L11.4419 6.05806C11.686 5.81398 12.0817 5.81398 12.3258 6.05806Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75888 12C6.75888 11.6548 7.0387 11.375 7.38388 11.375H17.8839C18.2291 11.375 18.5 11.6548 18.5 12C18.5 12.3452 18.2291 12.625 17.8839 12.625H7.38388C7.0387 12.625 6.75888 12.3452 6.75888 12Z",fill:e.fill?e.fill:"#111"})]});t.Z=i},9360:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:24;return(0,r.jsxs)("svg",{id:"camera24",width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M12 9C9.79086 9 8 10.7909 8 13C8 15.2091 9.79086 17 12 17C14.2091 17 16 15.2091 16 13C16 10.7909 14.2091 9 12 9Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8906 3.3359C16.3342 2.5013 15.3975 2 14.3944 2H9.60555C8.60249 2 7.6658 2.5013 7.1094 3.3359L6.8906 3.6641C6.3342 4.4987 5.39751 5 4.39445 5H4C1.79086 5 0 6.79086 0 9V18C0 20.2091 1.79086 22 4 22H20C22.2091 22 24 20.2091 24 18V9C24 6.79086 22.2091 5 20 5H19.6056C18.6025 5 17.6658 4.4987 17.1094 3.6641L16.8906 3.3359ZM6 13C6 9.68629 8.68629 7 12 7C15.3137 7 18 9.68629 18 13C18 16.3137 15.3137 19 12 19C8.68629 19 6 16.3137 6 13ZM19 7C19.5523 7 20 7.44772 20 8C20 8.55229 19.5523 9 19 9C18.4477 9 18 8.55229 18 8C18 7.44772 18.4477 7 19 7Z",fill:e.fill?e.fill:"#111"})]})};t.Z=i},7067:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M21.4919842,16.2878746 L21.6599241,15.9775273 L22.0425134,15.31036 L22.4359327,14.6045928 L22.6176775,14.267422 L22.7648708,13.9816205 C22.8061288,13.8983227 22.8385563,13.8286983 22.8590816,13.7778589 C23.4432604,12.3308961 22.7251938,10.9395166 20.9913941,10.9395166 L20.7840187,10.9456636 C20.0259077,10.9906847 19.2922351,11.2823881 18.567014,11.8002286 L18.377,11.941 L18.894769,6.64107619 C19.0187917,5.3710178 18.1858172,4.20450323 16.9442708,3.90955856 C16.8627513,3.8901926 16.7802442,3.87524917 16.6971108,3.86479371 L16.5385619,3.85025748 C16.2754944,3.83508879 16.0188682,3.86479488 15.7767379,3.93312066 L15.661,3.969 L15.6158938,3.89688467 C15.1851985,3.25513317 14.4557839,2.83596253 13.6284668,2.83596253 L13.4634018,2.84149252 C12.5906006,2.90016477 11.8436059,3.4206702 11.4659836,4.1615745 L11.433,4.23 L11.3234538,4.21032479 C11.1170555,4.17888721 10.9030635,4.17431976 10.685672,4.19993233 L10.5241922,4.22429286 C9.30083357,4.44982073 8.42332322,5.55635195 8.50074652,6.81491527 L8.509,6.965 L8.42876551,6.96947274 L8.27185313,6.98738638 C7.01088037,7.1745529 6.13341146,8.33894273 6.30101371,9.60266465 L7.48811163,18.5533896 C7.88903666,21.5763666 10.6366932,23.7216864 13.6666525,23.3774809 L14.9420132,23.2325991 C17.2316739,22.9709622 19.2112418,21.5178459 20.1469588,19.412736 C20.44072,18.7501812 20.7259767,18.0631931 21.0033585,17.3504665 C21.13597,17.0097241 21.2964478,16.6629658 21.4919842,16.2878746 Z M13.6284668,4.33596253 C14.0856486,4.33596253 14.4629263,4.67807242 14.5182638,5.12025605 L14.5250148,5.25332901 L14.33347,13.5968839 C14.3320134,13.6603295 14.3719237,13.7151094 14.4285512,13.7354157 L14.4770678,13.7438162 C14.5610466,13.7438162 14.6318992,13.6813164 14.6423785,13.597994 L15.5894167,6.06791232 C15.6462123,5.61632 16.0583421,5.29627399 16.5099344,5.35306955 C16.539413,5.356777 16.5686696,5.36207587 16.597576,5.36894294 C17.1095316,5.49056429 17.4530112,5.97158021 17.40187,6.49529276 L16.6415955,14.2809032 C16.6146577,14.5567606 16.7810265,14.8149078 17.0433755,14.9043278 C17.3076581,14.9944069 17.6000306,14.9084386 17.7734892,14.6896427 C18.9627867,13.1895586 20.0354217,12.4395166 20.9913941,12.4395166 C21.6486876,12.4395166 21.6760081,12.7682132 21.4140106,13.3417477 L21.3100824,13.5542014 L21.1854559,13.7861683 L20.4577338,15.0495288 L20.2787587,15.3741738 L20.1007186,15.7130065 L19.9269419,16.0652078 L19.7607565,16.4299583 C19.7338765,16.4917503 19.7074515,16.5540311 19.6815507,16.6167835 L19.6054909,16.8064388 C19.3363658,17.4979499 19.0599584,18.163626 18.7762687,18.8034671 C18.0564122,20.4229492 16.5335055,21.5409799 14.7727012,21.7421852 L13.4973405,21.8870671 C11.2796272,22.1390008 9.26853934,20.5687804 8.97509093,18.3561777 L7.78799301,9.40545269 C7.72811623,8.95398142 8.04159659,8.53799706 8.49208571,8.47113084 C8.89823147,8.41084652 9.27850387,8.66501796 9.3859706,9.050543 L9.4091221,9.16477667 L10.1097939,14.59711 C10.120742,14.6819906 10.1984264,14.7419248 10.2833071,14.7309767 L10.3101256,14.725064 C10.4139207,14.692304 10.4820726,14.5930736 10.4753896,14.4844366 L9.99791627,6.72281358 C9.96599617,6.20393272 10.3448938,5.75045691 10.8611846,5.68962872 C11.3057502,5.63725102 11.711811,5.92669683 11.8162808,6.35033831 L11.8384064,6.48236726 L12.2905915,13.5788102 C12.2959698,13.6632753 12.3688023,13.7273877 12.4532673,13.7220094 L12.464833,13.720831 C12.5589304,13.7076216 12.6291858,13.6275285 12.630021,13.5325121 L12.7027932,5.25353527 C12.707259,4.74547443 13.1203863,4.33596253 13.6284668,4.33596253 Z",transform:"rotate(-45 14.67 13.125)",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},1967:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M20.5,6.5 C22.1568542,6.5 23.5,7.84314575 23.5,9.5 L23.5,18 C23.5,19.6568542 22.1568542,21 20.5,21 L7.5,21 C5.84314575,21 4.5,19.6568542 4.5,18 L4.5,9.5 C4.5,7.84314575 5.84314575,6.5 7.5,6.5 L20.5,6.5 Z M22,11.5 L6,11.5 L6,18 C6,18.7796961 6.59488808,19.4204487 7.35553999,19.4931334 L7.5,19.5 L20.5,19.5 C21.2796961,19.5 21.9204487,18.9051119 21.9931334,18.14446 L22,18 L22,11.5 Z M15.75,15.5 C16.1642136,15.5 16.5,15.8357864 16.5,16.25 C16.5,16.6642136 16.1642136,17 15.75,17 L9.25,17 C8.83578644,17 8.5,16.6642136 8.5,16.25 C8.5,15.8357864 8.83578644,15.5 9.25,15.5 L15.75,15.5 Z M20.5,8 L7.5,8 C6.72030388,8 6.07955132,8.59488808 6.00686658,9.35553999 L6,9.5 L6,10 L22,10 L22,9.5 C22,8.72030388 21.4051119,8.07955132 20.64446,8.00686658 L20.5,8 Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},34370:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M16.5,5 C17.8807119,5 19,6.11928813 19,7.5 L19,9 L20,9 C21.6568542,9 23,10.3431458 23,12 L23,19 C23,20.6568542 21.6568542,22 20,22 L8,22 C6.34314575,22 5,20.6568542 5,19 L5,12 C5,10.3431458 6.34314575,9 8,9 L9,9 L9,7.5 C9,6.11928813 10.1192881,5 11.5,5 L16.5,5 Z M20,10.5 L8,10.5 C7.22030388,10.5 6.57955132,11.0948881 6.50686658,11.85554 L6.5,12 L6.5,19 C6.5,19.7796961 7.09488808,20.4204487 7.85553999,20.4931334 L8,20.5 L20,20.5 C20.7796961,20.5 21.4204487,19.9051119 21.4931334,19.14446 L21.5,19 L21.5,12 C21.5,11.2203039 20.9051119,10.5795513 20.14446,10.5068666 L20,10.5 Z M16.5,6.5 L11.5,6.5 C10.9871642,6.5 10.5644928,6.88604019 10.5067277,7.38337887 L10.5,7.5 L10.5,9 L17.5,9 L17.5,7.5 C17.5,6.98716416 17.1139598,6.56449284 16.6166211,6.50672773 L16.5,6.5 Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},1393:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M17.4743827,18.460666 C17.4743827,18.9827468 17.3381367,19.4957897 17.0791121,19.9490828 L14.3426258,24.7379338 C14.0686158,25.2174513 13.4577612,25.384048 12.9782437,25.110038 C12.8232124,25.0214487 12.6947288,24.8929651 12.6061395,24.7379338 L9.86965324,19.9490828 C9.61062862,19.4957897 9.47438266,18.9827468 9.47438266,18.460666 L9.47438266,6.25735931 C9.47438266,4.87664744 10.5936708,3.75735931 11.9743827,3.75735931 L14.9743827,3.75735931 C16.3550945,3.75735931 17.4743827,4.87664744 17.4743827,6.25735931 L17.4743827,18.460666 Z M15.9733827,9.75735931 L10.9733827,9.75735931 L10.9743827,18.460666 C10.9743827,18.6694983 11.0179814,18.8754385 11.1017312,19.0655043 L11.1720179,19.2048744 L13.4743827,23.2333593 L15.7767474,19.2048744 C15.8803572,19.0235572 15.9446779,18.82312 15.9662618,18.6165451 L15.9743827,18.460666 L15.9733827,9.75735931 Z M14.9743827,5.25735931 L11.9743827,5.25735931 C11.4615468,5.25735931 11.0388755,5.6433995 10.9811104,6.14073819 L10.9743827,6.25735931 L10.9733827,8.25735931 L15.9733827,8.25735931 L15.9743827,6.25735931 C15.9743827,5.74452347 15.5883425,5.32185215 15.0910038,5.26408704 L14.9743827,5.25735931 Z",transform:"rotate(45 13.474 14.5)",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},80121:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M10.5233383,15.5 C10.9764534,15.5 11.4176268,15.5685602 11.8351831,15.6973258 C11.5336806,16.1127892 11.2805739,16.5665597 11.082789,17.0527079 C10.9618256,17.0297646 10.8382113,17.0139866 10.7127692,17.0060172 L10.5233383,17 L7.47666169,17 C6.27626044,17 5.20224658,17.7256176 4.74827348,18.8235926 L4.68181818,19 L4.29760163,20.1270352 C4.27422562,20.1956048 4.26229836,20.2675553 4.26229836,20.34 C4.26229836,20.6713708 4.50650668,20.9457038 4.8247684,20.9928439 L4.92229836,21 L10.3331447,21.0005323 C10.4457793,21.5549976 10.680752,22.0650254 11.0086582,22.5012108 L4.92229836,22.5 C3.7293633,22.5 2.76229836,21.5329351 2.76229836,20.34 C2.76229836,20.1621812 2.78425536,19.9852723 2.8275087,19.8132586 L2.87783635,19.6430243 L3.2620529,18.5159891 C3.85412701,16.7792384 5.44716725,15.5906212 7.26585573,15.5049579 L7.47666169,15.5 L10.5233383,15.5 Z M19.8899234,14.5 C22.025246,14.5 23.9164694,15.8523439 24.6163537,17.852256 L24.6867394,18.0689782 L25.1470862,19.6034673 C25.5041563,20.7937012 24.8287437,22.048039 23.6385098,22.4051091 C23.481201,22.4523018 23.3193571,22.4820816 23.1558847,22.4940219 L22.991977,22.5 L14.008023,22.5 C12.7653823,22.5 11.758023,21.4926407 11.758023,20.25 C11.758023,20.0857648 11.7760046,19.9221893 11.8115413,19.7621801 L11.8529138,19.6034673 L12.3132606,18.0689782 C12.926841,16.0237101 14.7655905,14.6008397 16.8822693,14.5051427 L17.1100766,14.5 L19.8899234,14.5 Z M19.8899234,16 L17.1100766,16 C15.6254537,16 14.3092825,16.9332465 13.8103854,18.3169958 L13.75,18.5 L13.2896533,20.0344891 C13.2686788,20.1044041 13.258023,20.1770066 13.258023,20.25 C13.258023,20.6296958 13.5401769,20.943491 13.9062524,20.9931534 L14.008023,21 L22.991977,21 C23.0649704,21 23.1375729,20.9893442 23.2074879,20.9683697 C23.5711705,20.8592649 23.7906555,20.4988421 23.7330324,20.133935 L23.7103467,20.0344891 L23.25,18.5 C22.8233967,17.0779891 21.5513097,16.0854921 20.0825612,16.0052528 L19.8899234,16 Z M9,7.5 C10.9329966,7.5 12.5,9.06700338 12.5,11 C12.5,12.9329966 10.9329966,14.5 9,14.5 C7.06700338,14.5 5.5,12.9329966 5.5,11 C5.5,9.06700338 7.06700338,7.5 9,7.5 Z M18.5,5.5 C20.709139,5.5 22.5,7.290861 22.5,9.5 C22.5,11.709139 20.709139,13.5 18.5,13.5 C16.290861,13.5 14.5,11.709139 14.5,9.5 C14.5,7.290861 16.290861,5.5 18.5,5.5 Z M9,9 C7.8954305,9 7,9.8954305 7,11 C7,12.1045695 7.8954305,13 9,13 C10.1045695,13 11,12.1045695 11,11 C11,9.8954305 10.1045695,9 9,9 Z M18.5,7 C17.1192881,7 16,8.11928813 16,9.5 C16,10.8807119 17.1192881,12 18.5,12 C19.8807119,12 21,10.8807119 21,9.5 C21,8.11928813 19.8807119,7 18.5,7 Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},52227:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"3.76",cy:"8.01",r:"1.26",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("circle",{cx:"8.01",cy:"8.01",r:"1.26",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("circle",{cx:"12.26",cy:"8.01",r:"1.26",fill:e.fill?e.fill:"#111"})]});t.Z=i},19002:function(e,t,n){"use strict";var r=n(24246);let i=e=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6094 9.77581C13.6094 9.04216 14.1319 8.49902 14.7165 8.49902C15.3011 8.49902 15.8237 9.04216 15.8237 9.77581C15.8237 10.5095 15.3011 11.0526 14.7165 11.0526C14.1319 11.0526 13.6094 10.5095 13.6094 9.77581Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.17969 9.77581C8.17969 9.04216 8.70224 8.49902 9.28683 8.49902C9.87142 8.49902 10.394 9.04216 10.394 9.77581C10.394 10.5095 9.87142 11.0526 9.28683 11.0526C8.70224 11.0526 8.17969 10.5095 8.17969 9.77581Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.11029 13.8779C8.40319 13.585 8.87806 13.585 9.17096 13.8779C9.89563 14.6026 10.8946 15.0494 11.9994 15.0494C13.1042 15.0494 14.1031 14.6026 14.8278 13.8779C15.1207 13.585 15.5956 13.585 15.8885 13.8779C16.1814 14.1708 16.1814 14.6456 15.8885 14.9385C14.894 15.933 13.518 16.5494 11.9994 16.5494C10.4808 16.5494 9.10478 15.933 8.1103 14.9385C7.8174 14.6456 7.8174 14.1708 8.11029 13.8779Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19.5C16.1421 19.5 19.5 16.1421 19.5 12C19.5 7.85786 16.1421 4.5 12 4.5C7.85786 4.5 4.5 7.85786 4.5 12C4.5 16.1421 7.85786 19.5 12 19.5ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",fill:e.fill?e.fill:"#111"})]});t.Z=i},57391:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 5.75A.75.75 0 016.25 5C15.5 5 23 12.5 23 21.75a.75.75 0 01-1.5 0c0-8.422-6.828-15.25-15.25-15.25a.75.75 0 01-.75-.75zm0 6a.75.75 0 01.75-.75C12.187 11 17 15.813 17 21.75a.75.75 0 01-1.5 0 9.25 9.25 0 00-9.25-9.25.75.75 0 01-.75-.75zm0 6a.75.75 0 01.75-.75A4.75 4.75 0 0111 21.75a.75.75 0 01-1.5 0 3.25 3.25 0 00-3.25-3.25.75.75 0 01-.75-.75z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},14043:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t,n;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.737 7.958a.75.75 0 10-.389 1.45l7.245 1.94A.75.75 0 1018.98 9.9l-7.244-1.94zM10.896 11.098a.75.75 0 00-.389 1.448l7.245 1.942a.75.75 0 00.388-1.45l-7.245-1.94zM9.136 14.767a.75.75 0 01.918-.53l4.83 1.294a.75.75 0 01-.388 1.449l-4.83-1.294a.75.75 0 01-.53-.919z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 23.987L6.841 21.4a2.75 2.75 0 01-1.944-3.368L8.132 5.957A2.75 2.75 0 0111.5 4.013L21.16 6.6a2.75 2.75 0 011.944 3.368l-3.236 12.074a2.75 2.75 0 01-3.368 1.944zM6.345 18.42a1.25 1.25 0 00.884 1.531l9.66 2.588a1.25 1.25 0 001.53-.883L21.655 9.58a1.25 1.25 0 00-.884-1.531L11.11 5.46a1.25 1.25 0 00-1.53.884L6.345 18.42z",fill:null!==(n=e.fill)&&void 0!==n?n:"#111"})]})};t.Z=i},97944:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.99414 13.1953C8.05273 13.1953 8.11523 13.1816 8.18164 13.1543C8.25195 13.127 8.31641 13.0938 8.375 13.0547C9.40234 12.3945 10.2969 11.7031 11.0586 10.9805C11.8203 10.2539 12.4102 9.50977 12.8281 8.74805C13.25 7.98633 13.4609 7.21484 13.4609 6.43359C13.4609 5.94922 13.3828 5.50586 13.2266 5.10352C13.0703 4.70117 12.8535 4.35156 12.5762 4.05469C12.2988 3.75781 11.9746 3.5293 11.6035 3.36914C11.2324 3.20898 10.8301 3.12891 10.3965 3.12891C9.86523 3.12891 9.39258 3.26562 8.97852 3.53906C8.56836 3.8125 8.24023 4.17773 7.99414 4.63477C7.75586 4.18164 7.42773 3.81836 7.00977 3.54492C6.5957 3.26758 6.125 3.12891 5.59766 3.12891C5.16406 3.12891 4.75977 3.20898 4.38477 3.36914C4.01367 3.5293 3.68945 3.75781 3.41211 4.05469C3.13867 4.35156 2.92383 4.70117 2.76758 5.10352C2.61523 5.50586 2.53906 5.94922 2.53906 6.43359C2.53906 7.21484 2.74805 7.98633 3.16602 8.74805C3.58398 9.50977 4.17383 10.2539 4.93555 10.9805C5.69727 11.7031 6.5918 12.3945 7.61914 13.0547C7.67773 13.0938 7.74023 13.127 7.80664 13.1543C7.87695 13.1816 7.93945 13.1953 7.99414 13.1953Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},4745:function(e,t,n){"use strict";var r=n(24246);let i=e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6.51383 20.3448C6.85933 20.6145 7.28908 20.5218 7.80311 20.151L11.9996 17.0669L16.1876 20.151C16.7016 20.5218 17.1314 20.6145 17.4769 20.3448C17.8224 20.092 17.8982 19.6623 17.6876 19.064L16.0359 14.1344L20.2661 11.1008C20.7717 10.7385 20.9824 10.3424 20.8475 9.92952C20.7127 9.52505 20.3167 9.32281 19.6931 9.33123L14.5023 9.36494L12.9265 4.41008C12.7243 3.81179 12.4293 3.5 11.9996 3.5C11.5614 3.5 11.2665 3.81179 11.0642 4.41008L9.48844 9.36494L4.29763 9.33123C3.67406 9.32281 3.278 9.52505 3.14318 9.92952C2.99993 10.3424 3.21902 10.7385 3.72462 11.1008L7.95479 14.1344L6.30317 19.064C6.0925 19.6623 6.16834 20.092 6.51383 20.3448Z",fill:e.fill?e.fill:"#111"})});t.Z=i},62845:function(e,t,n){"use strict";var r=n(24246);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.5V9.5L0.723608 12.0528C0.391157 12.7177 0.874654 13.5 1.61804 13.5H14.382C15.1253 13.5 15.6088 12.7177 15.2764 12.0528L14 9.5V3.5C14 2.94772 13.5523 2.5 13 2.5H3C2.44772 2.5 2 2.94772 2 3.5ZM13 3.5H3V9.5H13V3.5ZM7 11.5C6.72386 11.5 6.5 11.7239 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5H9C9.27614 12.5 9.5 12.2761 9.5 12C9.5 11.7239 9.27614 11.5 9 11.5H7Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},2354:function(e,t,n){"use strict";var r=n(24246);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 5C11.5 6.67556 10.3226 8.07612 8.75 8.41946V13C8.75 13.4142 8 14.5 8 14.5C8 14.5 7.25 13.4142 7.25 13V8.41946C5.67741 8.07612 4.5 6.67556 4.5 5C4.5 3.067 6.067 1.5 8 1.5C9.933 1.5 11.5 3.067 11.5 5ZM9 5.5C9.55228 5.5 10 5.05228 10 4.5C10 3.94772 9.55228 3.5 9 3.5C8.44772 3.5 8 3.94772 8 4.5C8 5.05228 8.44772 5.5 9 5.5Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},9656:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75 4.75a2.25 2.25 0 014.5 0v1.5h-4.5v-1.5zm-1.5 1.52V4.75a3.75 3.75 0 117.5 0v1.52A1.5 1.5 0 0113 7.75v5a1.5 1.5 0 01-1.5 1.5h-7a1.5 1.5 0 01-1.5-1.5v-5a1.5 1.5 0 011.25-1.48z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},14770:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(50842),s=n.n(a);let o=e=>{var t,n,a;let[o,u]=(0,i.useState)(!0),c=null!==(t=e.duration)&&void 0!==t?t:400,d=c+200;return(0,i.useEffect)(()=>{o||setTimeout(()=>{!e.locked&&e.unlockCallback&&e.unlockCallback()},d)},[e.locked]),(0,i.useEffect)(()=>{u(!1)},[]),(0,r.jsxs)("div",{className:s().lock,children:[(0,r.jsx)("div",{className:s().frames,"data-locked":e.locked,children:(0,r.jsx)(l,{fill:null!==(n=e.fill)&&void 0!==n?n:"#111",duration:c})}),(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("rect",{x:5,y:8,width:10,height:8,rx:2,fill:null!==(a=e.fill)&&void 0!==a?a:"#111"})})]})},l=e=>{var t;return(0,r.jsx)("svg",{style:{transitionDuration:e.duration.toString()+"ms"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1940 20",width:"1940",height:"20",children:(0,r.jsx)("path",{d:"M7 8V6.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M27 7.992v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M47 7.965v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M67 7.914v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M87 7.83v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M107 7.703v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M127 7.527v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M147 7.311v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M167 7.085v-1.5c0-1.656 1.343-3 3-3s3 1.344 3 3v6M187 6.881v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M207 6.708v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M227 6.565v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M247 6.449v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M267 6.354v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M287 6.275v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M307 6.211v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M327 6.158v-1.5c0-1.656 1.343-3 3-3s3 1.344 3 3v6M347 6.116v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M367 6.081v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M387 6.054v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M407 6.033v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M427 6.018v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M447 6.008v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M467 6.002v-1.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M487 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M507 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M527 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M547 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M567 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M587 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M607 6V4.5c0-1.657 1.343-3 3-3s3 1.343 3 3v6M627.006 6V4.5c0-1.657 1.342-3 2.997-3 1.655 0 2.997 1.343 2.997 3v6M647.024 6V4.5c0-1.657 1.338-3 2.988-3S653 2.843 653 4.5v6M667.057 6V4.5c0-1.657 1.33-3 2.971-3 1.642 0 2.972 1.343 2.972 3v6M687.104 6V4.5c0-1.657 1.32-3 2.948-3S693 2.843 693 4.5v6M707.168 6V4.5c0-1.657 1.306-3 2.916-3 1.611 0 2.916 1.343 2.916 3v6M727.251 6V4.5c0-1.657 1.287-3 2.875-3 1.587 0 2.874 1.343 2.874 3v6M747.354 6V4.5c0-1.657 1.264-3 2.823-3S753 2.843 753 4.5v6M767.48 6V4.5c0-1.657 1.236-3 2.76-3 1.525 0 2.76 1.343 2.76 3v6M787.632 6V4.5c0-1.657 1.201-3 2.684-3 1.482 0 2.684 1.343 2.684 3v6M807.811 6V4.5c0-1.657 1.161-3 2.594-3 1.434 0 2.595 1.343 2.595 3v6M828.021 6V4.5c0-1.657 1.115-3 2.49-3 1.375 0 2.489 1.343 2.489 3v6M848.266 6V4.5c0-1.657 1.059-3 2.367-3 1.307 0 2.367 1.343 2.367 3v6M868.547 6V4.5c0-1.657.996-3 2.226-3S873 2.843 873 4.5v6M888.866 6V4.5c0-1.657.926-3 2.067-3 1.142 0 2.067 1.343 2.067 3v6M909.226 6V4.5c0-1.657.845-3 1.887-3S913 2.843 913 4.5v6M929.626 6V4.5c0-1.657.755-3 1.687-3S933 2.843 933 4.5v6M950.061 6V4.5c0-1.657.658-3 1.469-3 .812 0 1.47 1.343 1.47 3v6M970.526 6V4.5c0-1.657.553-3 1.237-3 .683 0 1.237 1.343 1.237 3v6M991.011 6V4.5c0-1.657.445-3 .995-3 .549 0 .994 1.343.994 3v6M1011.507 6V4.5c0-1.657.334-3 .746-3 .413 0 .747 1.343.747 3v6M1032.002 6V4.5c0-1.657.223-3 .499-3s.499 1.343.499 3v6M1052.487 6V4.5c0-1.657.115-3 .257-3 .141 0 .256 1.343.256 3v6M1072.954 6V4.5c0-1.657.011-3 .023-3 .013 0 .023 1.343.023 3v6M1093.399 6V4.5c0-1.657-.089-3-.199-3-.111 0-.2 1.343-.2 3v6M1113.819 6V4.5c0-1.657-.183-3-.409-3-.227 0-.41 1.343-.41 3v6M1134.213 6V4.5c0-1.657-.272-3-.607-3-.334 0-.606 1.343-.606 3v6M1154.581 6V4.5c0-1.657-.354-3-.791-3-.436 0-.79 1.343-.79 3v6M1174.923 6V4.5c0-1.657-.43-3-.961-3-.531 0-.962 1.343-.962 3v6M1195.242 6V4.5c0-1.657-.502-3-1.121-3S1193 2.843 1193 4.5v6M1215.538 6V4.5c0-1.657-.568-3-1.269-3S1213 2.843 1213 4.5v6M1235.813 6V4.5c0-1.657-.63-3-1.406-3-.777 0-1.407 1.343-1.407 3v6M1256.069 6V4.5c0-1.657-.687-3-1.535-3-.847 0-1.534 1.343-1.534 3v6M1276.307 6V4.5c0-1.657-.74-3-1.654-3-.913 0-1.653 1.343-1.653 3v6M1296.528 6V4.5c0-1.657-.79-3-1.764-3S1293 2.843 1293 4.5v6M1316.734 6V4.5c0-1.657-.836-3-1.867-3-1.031 0-1.867 1.343-1.867 3v6M1336.925 6V4.5c0-1.657-.878-3-1.962-3S1333 2.843 1333 4.5v6M1357.104 6V4.5c0-1.657-.919-3-2.052-3S1353 2.843 1353 4.5v6M1377.27 6V4.5c0-1.657-.956-3-2.135-3-1.179 0-2.135 1.343-2.135 3v6M1397.424 6V4.5c0-1.657-.99-3-2.212-3-1.222 0-2.212 1.343-2.212 3v6M1417.568 6V4.5c0-1.657-1.023-3-2.284-3S1413 2.843 1413 4.5v6M1437.702 6V4.5c0-1.657-1.053-3-2.351-3-1.299 0-2.351 1.343-2.351 3v6M1457.826 6V4.5c0-1.657-1.08-3-2.413-3-1.333 0-2.413 1.343-2.413 3v6M1477.942 6V4.5c0-1.657-1.106-3-2.471-3S1473 2.843 1473 4.5v6M1498.049 6V4.5c0-1.657-1.13-3-2.524-3-1.395 0-2.525 1.343-2.525 3v6M1518.149 6V4.5c0-1.657-1.153-3-2.575-3-1.421 0-2.574 1.343-2.574 3v6M1538.241 6V4.5c0-1.657-1.173-3-2.62-3-1.448 0-2.621 1.343-2.621 3v6M1558.327 6V4.5c0-1.657-1.193-3-2.664-3S1553 2.843 1553 4.5v6M1578.406 6V4.5c0-1.657-1.21-3-2.703-3-1.493 0-2.703 1.343-2.703 3v6M1598.478 6V4.5c0-1.657-1.226-3-2.739-3S1593 2.843 1593 4.5v6M1618.545 6V4.5c0-1.657-1.241-3-2.772-3-1.532 0-2.773 1.343-2.773 3v6M1638.606 6V4.5c0-1.657-1.255-3-2.803-3S1633 2.843 1633 4.5v6M1658.662 6V4.5c0-1.657-1.267-3-2.831-3S1653 2.843 1653 4.5v6M1678.713 6V4.5c0-1.657-1.279-3-2.857-3-1.577 0-2.856 1.343-2.856 3v6M1698.759 6V4.5c0-1.657-1.289-3-2.88-3-1.59 0-2.879 1.343-2.879 3v6M1718.8 6V4.5c0-1.657-1.298-3-2.9-3-1.602 0-2.9 1.343-2.9 3v6M1738.837 6V4.5c0-1.657-1.306-3-2.918-3S1733 2.843 1733 4.5v6M1758.87 6V4.5c0-1.657-1.314-3-2.935-3S1753 2.843 1753 4.5v6M1778.899 6V4.5c0-1.657-1.321-3-2.95-3-1.629 0-2.949 1.343-2.949 3v6M1798.923 6V4.5c0-1.657-1.326-3-2.961-3-1.636 0-2.962 1.343-2.962 3v6M1818.944 6V4.5c0-1.657-1.33-3-2.972-3-1.641 0-2.972 1.343-2.972 3v6M1838.962 6V4.5c0-1.657-1.335-3-2.981-3S1833 2.843 1833 4.5v6M1858.976 6V4.5c0-1.657-1.338-3-2.988-3S1853 2.843 1853 4.5v6M1878.987 6V4.5c0-1.657-1.34-3-2.994-3-1.653 0-2.993 1.343-2.993 3v6M1898.994 6V4.5c0-1.657-1.342-3-2.997-3-1.655 0-2.997 1.343-2.997 3v6M1918.999 6V4.5c0-1.657-1.343-3-3-3-1.656 0-2.999 1.343-2.999 3v6M1939 6V4.5c0-1.657-1.343-3-3-3s-3 1.343-3 3v6",fill:"none",stroke:null!==(t=e.fill)&&void 0!==t?t:"#111",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})};t.Z=o},22324:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.36719 13.0547H14.4043C14.8145 13.0547 15.1055 12.9961 15.2773 12.8789C15.4492 12.7617 15.5352 12.582 15.5352 12.3398C15.5352 11.9805 15.4277 11.6055 15.2129 11.2148C14.998 10.8203 14.6895 10.4512 14.2871 10.1074C13.8848 9.76367 13.3965 9.48438 12.8223 9.26953C12.252 9.05078 11.6074 8.94141 10.8887 8.94141C10.1738 8.94141 9.5293 9.05078 8.95508 9.26953C8.38086 9.48438 7.89062 9.76367 7.48438 10.1074C7.08203 10.4512 6.77344 10.8203 6.55859 11.2148C6.34375 11.6055 6.23633 11.9805 6.23633 12.3398C6.23633 12.582 6.32227 12.7617 6.49414 12.8789C6.66602 12.9961 6.95703 13.0547 7.36719 13.0547ZM10.8887 7.95117C11.291 7.95117 11.6582 7.84375 11.9902 7.62891C12.3262 7.41406 12.5938 7.12305 12.793 6.75586C12.9922 6.38477 13.0918 5.96875 13.0918 5.50781C13.0918 5.05859 12.9902 4.65625 12.7871 4.30078C12.584 3.94141 12.3145 3.6582 11.9785 3.45117C11.6465 3.24023 11.2832 3.13477 10.8887 3.13477C10.4941 3.13477 10.1289 3.24023 9.79297 3.45117C9.46094 3.66211 9.19336 3.94922 8.99023 4.3125C8.78711 4.67188 8.68555 5.07422 8.68555 5.51953C8.68555 5.97266 8.78516 6.38477 8.98438 6.75586C9.1875 7.12305 9.45703 7.41406 9.79297 7.62891C10.1289 7.84375 10.4941 7.95117 10.8887 7.95117ZM1.40234 13.0547H5.70312C5.55469 12.8672 5.48047 12.6289 5.48047 12.3398C5.48438 12.0547 5.54883 11.752 5.67383 11.4316C5.79883 11.1074 5.97266 10.791 6.19531 10.4824C6.41797 10.1738 6.68164 9.90234 6.98633 9.66797C6.67773 9.45312 6.31836 9.27539 5.9082 9.13477C5.50195 8.99414 5.03516 8.92383 4.50781 8.92383C3.88281 8.92383 3.32031 9.02539 2.82031 9.22852C2.32422 9.43164 1.90039 9.70117 1.54883 10.0371C1.19727 10.3691 0.927734 10.7344 0.740234 11.1328C0.552734 11.5273 0.458984 11.916 0.458984 12.2988C0.458984 12.5488 0.53125 12.7363 0.675781 12.8613C0.824219 12.9902 1.06641 13.0547 1.40234 13.0547ZM4.51367 8.07422C4.85742 8.07422 5.17383 7.98242 5.46289 7.79883C5.75586 7.61133 5.99023 7.35742 6.16602 7.03711C6.3418 6.71289 6.42969 6.35156 6.42969 5.95312C6.42969 5.55859 6.3418 5.20508 6.16602 4.89258C5.99023 4.58008 5.75586 4.33398 5.46289 4.1543C5.17383 3.97461 4.85742 3.88477 4.51367 3.88477C4.16992 3.88477 3.85156 3.97656 3.55859 4.16016C3.26953 4.34375 3.03516 4.5918 2.85547 4.9043C2.67969 5.2168 2.5918 5.56836 2.5918 5.95898C2.5918 6.35742 2.67969 6.7168 2.85547 7.03711C3.03516 7.35742 3.26953 7.61133 3.55859 7.79883C3.85156 7.98242 4.16992 8.07422 4.51367 8.07422Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},29107:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"5",y:"6.75",width:"14",height:"1.5",rx:"0.5",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("rect",{x:"5",y:"11.25",width:"14",height:"1.5",rx:"0.5",fill:e.fill?e.fill:"#111"}),e.dashboard?(0,r.jsx)("rect",{x:"5",y:"15.75",width:"14",height:"1.5",rx:"0.5",fill:e.fill?e.fill:"#111"}):(0,r.jsx)("rect",{x:"5",y:"15.75",width:"9",height:"1.5",rx:"0.5",fill:e.fill?e.fill:"#111"})]});t.Z=i},76201:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6.5 11.5A.5.5 0 017 11h2.293a.5.5 0 00.353-.146l3-3a.5.5 0 01.854.353v11.586a.5.5 0 01-.854.353l-3-3A.5.5 0 009.293 17H7a.5.5 0 01-.5-.5v-5zM21.523 12.41a.75.75 0 10-1.06-1.06l-1.592 1.59-1.59-1.59a.75.75 0 10-1.061 1.06l1.59 1.591-1.59 1.591a.75.75 0 001.06 1.06l1.591-1.59 1.591 1.59a.75.75 0 001.061-1.06l-1.591-1.59 1.591-1.592z",fill:e.fill?e.fill:"#111"})});t.Z=i},48210:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.514 17.94C7.008 18.957 6.25 20.136 6.25 21c0 .224.11.508.469.843.36.335.916.668 1.651.96 1.467.583 3.495.947 5.63.947s4.163-.364 5.63-.947c.736-.292 1.292-.625 1.651-.96.358-.335.469-.619.469-.843 0-.863-.758-2.042-2.264-3.06-1.46-.989-3.44-1.69-5.486-1.69-2.047 0-4.027.701-5.486 1.69m-.841-1.243C9.359 15.556 11.628 14.75 14 14.75s4.641.806 6.327 1.947c1.64 1.11 2.923 2.68 2.923 4.303 0 .776-.4 1.43-.945 1.939-.543.508-1.284.925-2.121 1.258-1.679.667-3.901 1.053-6.184 1.053s-4.505-.386-6.184-1.053c-.837-.333-1.577-.75-2.121-1.258-.546-.51-.945-1.163-.945-1.939 0-1.622 1.283-3.194 2.923-4.303M13.75 4.75a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7m-5 3.5a5 5 0 1 1 10 0 5 5 0 0 1-10 0",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},68529:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 3.25a5 5 0 100 10 5 5 0 000-10zm0 11.5c-2.372 0-4.641.806-6.327 1.947-1.64 1.11-2.923 2.68-2.923 4.303 0 .776.4 1.43.945 1.939.544.508 1.284.925 2.121 1.258 1.679.667 3.901 1.053 6.184 1.053 2.283 0 4.505-.386 6.184-1.053.837-.333 1.578-.75 2.121-1.258.546-.51.945-1.163.945-1.939 0-1.622-1.283-3.194-2.923-4.303-1.686-1.141-3.955-1.947-6.327-1.947z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},45777:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t,n;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.608 3.463c1.204-.794 2.798.126 2.711 1.565l-1.09 18.154c-.089 1.493-1.888 2.193-2.963 1.153l-5.667-5.48a.25.25 0 00-.105-.06l-7.58-2.168c-1.437-.412-1.73-2.32-.483-3.143l15.177-10.02zm1.214 1.476a.25.25 0 00-.387-.224L6.258 14.735a.25.25 0 00.069.45l7.58 2.168c.276.079.528.224.735.424l5.667 5.48a.25.25 0 00.423-.165l1.09-18.153z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.19 7.317l-5.383 11.325-1.732-1L20.19 7.317z",fill:null!==(n=e.fill)&&void 0!==n?n:"#111"})]})};t.Z=i},8757:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.319 5.028c.087-1.439-1.507-2.359-2.711-1.565L5.43 13.484c-1.247.823-.954 2.731.483 3.143l6.58 1.882L20.189 7.32l-5.842 12.257 4.92 4.758c1.075 1.04 2.874.34 2.963-1.153l1.09-18.154z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},38143:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.084 7.416a8.25 8.25 0 10-.555 12.174L21.94 23A.75.75 0 1023 21.94l-3.409-3.41a8.25 8.25 0 00-.506-11.114zM8.477 8.477a6.75 6.75 0 119.546 9.546 6.75 6.75 0 01-9.546-9.546z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},62722:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(3420);let s=e=>{let t,{fill:n,preventShadow:s}=e,o=(0,i.useContext)(a.Z);o.nubShadow&&(t=(0,r.jsx)("rect",{width:"26",height:"10",fill:"#C4C4C4"}));let l=n||o.nubColor;return(0,r.jsxs)("svg",{width:"26",height:"12",viewBox:"0 0 26 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[!0!==s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"26",height:"10",children:t}),(0,r.jsx)("g",{mask:"url(#mask0)",children:(0,r.jsxs)("g",{filter:"url(#filter0_d)",children:[(0,r.jsx)("path",{d:"M11.5858 3.41422C12.3668 2.63317 13.6332 2.63317 14.4142 3.41422L19.6569 8.65685C21.1571 10.1571 23.192 11 25.3137 11H26V12H0V11H0.686293C2.80802 11 4.84286 10.1571 6.34315 8.65685L11.5858 3.41422Z",fill:"#C4C4C4"}),(0,r.jsx)("path",{d:"M26.5 11V10.5H26H25.3137C23.3246 10.5 21.4169 9.70982 20.0104 8.3033L14.7678 3.06066C13.7915 2.08435 12.2085 2.08435 11.2322 3.06066L5.98959 8.3033C4.58307 9.70982 2.67542 10.5 0.686293 10.5H0H-0.5V11V12V12.5H0H26H26.5V12V11Z",stroke:"black",strokeOpacity:"0.05"})]})})]}):null,(0,r.jsx)("path",{d:"M11.5858 3.41422C12.3668 2.63317 13.6332 2.63317 14.4142 3.41422L19.6569 8.65685C21.1571 10.1571 23.192 11 25.3137 11H26V12H0V11H0.686293C2.80802 11 4.84286 10.1571 6.34315 8.65685L11.5858 3.41422Z",fill:l}),(0,r.jsx)("defs",{children:(0,r.jsxs)("filter",{id:"filter0_d",x:"-5",y:"-1.17157",width:"36",height:"19.1716",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,r.jsx)("feOffset",{dy:"1"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,r.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,r.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]})})]})};t.Z=s},48525:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.875 10.5A6.125 6.125 0 0110 4.375h4a6.125 6.125 0 013.6 11.08l-5.939 4.315a.625.625 0 01-.978-.638l.542-2.507H10A6.125 6.125 0 013.875 10.5zm14.07-2.866A4.868 4.868 0 0014 5.625h-4a4.875 4.875 0 100 9.75h1.69c.558 0 .973.515.855 1.06l-.294 1.362 4.615-3.353a4.875 4.875 0 001.078-6.81z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},898:function(e,t,n){"use strict";var r=n(24246);let i=e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M13.4326 20.9902C14.0479 20.9902 14.4873 20.4717 14.7949 19.6807L20.2529 5.40723C20.4023 5.0293 20.4814 4.69531 20.4814 4.41406C20.4814 3.85156 20.1387 3.5 19.5762 3.5C19.2949 3.5 18.9609 3.58789 18.583 3.7373L4.23926 9.23047C3.53613 9.49414 3 9.93359 3 10.5488C3 11.3223 3.58887 11.5947 4.38867 11.8408L8.81836 13.1855C9.36328 13.3525 9.6709 13.3438 10.0488 12.9922L19.2158 4.44922C19.3301 4.35254 19.4531 4.36133 19.541 4.44922C19.6289 4.52832 19.6377 4.66016 19.541 4.77441L11.0244 13.9678C10.6904 14.3193 10.6641 14.6357 10.8311 15.1982L12.1318 19.5312C12.3867 20.3662 12.6592 20.9902 13.4326 20.9902Z",fill:e.fill?e.fill:"#111"})});t.Z=i},78511:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t,n,i;return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:6,cy:12,r:1.5,fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("circle",{cx:12,cy:12,r:1.5,fill:null!==(n=e.fill)&&void 0!==n?n:"#111"}),(0,r.jsx)("circle",{cx:18,cy:12,r:1.5,fill:null!==(i=e.fill)&&void 0!==i?i:"#111"})]})};t.Z=i},17478:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.282 24.142c5.602 1.501 11.36-1.823 12.86-7.424s-1.823-11.36-7.424-12.86-11.36 1.823-12.86 7.424 1.823 11.36 7.424 12.86m3.342-1.161a9.01 9.01 0 0 0 7.845-5.935l-3.846-1.03c-.93 3.056-2.415 5.557-3.999 6.965M8.97 21.465a9.01 9.01 0 0 1-3.827-9.062l3.846 1.03c-.723 3.113-.686 6.021-.02 8.032m2.702 1.228c-.452-.12-1.177-.782-1.533-2.709-.302-1.638-.24-3.807.3-6.162l6.736 1.805c-.71 2.31-1.741 4.22-2.822 5.486-1.272 1.491-2.23 1.701-2.681 1.58m7.34-8.127 3.847 1.031a9.01 9.01 0 0 0-3.827-9.062c.667 2.011.703 4.919-.02 8.031m-2.682-9.26c.452.122 1.177.783 1.533 2.71.302 1.638.24 3.807-.3 6.162l-6.736-1.805c.71-2.31 1.74-4.219 2.822-5.486 1.271-1.491 2.23-1.701 2.681-1.58m-2.953-.287a9.01 9.01 0 0 0-7.846 5.935l3.847 1.03c.93-3.056 2.415-5.556 3.999-6.965m9.317 11.31-.017.065.034-.13z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};t.Z=i},86374:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.22 9.204c-.531-.815-.886-1.69-.886-2.577 0-1.794 1.373-3.167 3.167-3.167.703 0 1.324.288 1.82.747l.68.627.678-.627c.497-.46 1.118-.747 1.822-.747 1.793 0 3.166 1.373 3.166 3.167 0 .887-.355 1.763-.885 2.575l-.001.002c-.529.812-1.235 1.564-1.939 2.204a19.99 19.99 0 01-2.81 2.123l-.015.01a.041.041 0 01-.033 0l-.016-.01a19.996 19.996 0 01-2.81-2.12c-.703-.644-1.409-1.396-1.938-2.207z",fill:e.fill?e.fill:"#111"})});t.Z=i},24263:function(e,t,n){"use strict";var r=n(24246);n(27378);let i=e=>{var t,n,i;return(0,r.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M6.5 11.5A.5.5 0 017 11h2.293a.5.5 0 00.353-.146l3-3a.5.5 0 01.854.353v11.586a.5.5 0 01-.854.353l-3-3A.5.5 0 009.293 17H7a.5.5 0 01-.5-.5v-5z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.59 11.348a.75.75 0 011.061 0 3.75 3.75 0 010 5.304.75.75 0 11-1.06-1.06 2.25 2.25 0 000-3.183.75.75 0 010-1.06z",fill:null!==(n=e.fill)&&void 0!==n?n:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.97 8.97a.75.75 0 011.06 0 7.114 7.114 0 010 10.06.75.75 0 11-1.06-1.06 5.614 5.614 0 000-7.94.75.75 0 010-1.06z",fill:null!==(i=e.fill)&&void 0!==i?i:"#111"})]})};t.Z=i},23681:function(e,t,n){"use strict";n.d(t,{Y:function(){return l},u:function(){return o}});var r=n(14141),i=n(23728);let a=[],s=!1;function o(e,t){s?u(e,t):a.push({eventName:e,eventParams:t})}function l(e){let t=(0,r.IH)(i.H);for(let n of((0,r.Iv)(t,e,{global:!0}),s=!0,a))u(n.eventName,n.eventParams);a=[]}function u(e,t){let n=(0,r.IH)(i.H);(0,r.Kz)(n,e,t)}},97678:function(e,t,n){"use strict";var r=n(27378);let i=r.createContext(void 0);t.Z=i},44217:function(e,t,n){"use strict";var r=n(27378);let i=r.createContext(void 0);t.Z=i},7952:function(e,t,n){"use strict";var r=n(27378);let i=r.createContext({onMainDomain:!0,domainName:"read.cv",canonicalPathToDomain:"https://read.cv/",canonicalPathToMainDomain:"https://read.cv/"});t.Z=i},11098:function(e,t,n){"use strict";var r=n(27378);let i=r.createContext(void 0);t.Z=i},26952:function(e,t,n){"use strict";n.d(t,{M:function(){return a},f:function(){return s}});var r=n(27378),i=n(86677);function a(){let[e,t]=(0,r.useState)(0),n=(0,r.useRef)([]),a=(0,i.useRouter)();return(0,r.useEffect)(()=>{let e=window.history.state.key;n.current.push(e),t(n.current.length)},[]),(0,r.useEffect)(()=>{let e=()=>{let e=window.history.state.key;n.current.includes(e)?n.current=n.current.slice(0,n.current.indexOf(e)+1):n.current.push(e),t(n.current.length)};return a.events.on("routeChangeComplete",e),()=>{a.events.off("routeChangeComplete",e)}},[]),e}let s=r.createContext(0)},79520:function(e,t,n){"use strict";n.d(t,{K8:function(){return h},WT:function(){return c},Z6:function(){return s},j8:function(){return l},kC:function(){return u},n9:function(){return a},up:function(){return d},wh:function(){return o}});var r=n(2417);let i=n(5443);async function a(e,t,n){let a=t.split("/")[1];(0,r.commitMutation)(e,{mutation:i,variables:{action:"like",postID:a},optimisticUpdater:e=>{let t=e.get(n);if(!t)return;let r=t.getValue("likeCount");"number"==typeof r&&(t.setValue(r+1,"likeCount"),t.setValue(!0,"isLiked"))}})}async function s(e,t){let n=t.split("/")[1];(0,r.commitMutation)(e,{mutation:i,variables:{action:"unlike",postID:n},optimisticUpdater:e=>{let n=e.get(t);if(!n)return;let r=n.getValue("likeCount");n.setValue(r-1,"likeCount"),n.setValue(!1,"isLiked")}})}async function o(e,t,n){let a=t.split("/")[1];(0,r.commitMutation)(e,{mutation:i,variables:{action:"repost",postID:a},optimisticUpdater:e=>{let t=e.get(n);if(!t)return;let r=t.getValue("repostCount");"number"==typeof r&&(t.setValue(r+1,"repostCount"),t.setValue(!0,"isReposted"))}})}async function l(e,t){let n=t.split("/")[1];(0,r.commitMutation)(e,{mutation:i,variables:{action:"unrepost",postID:n},optimisticUpdater:e=>{let n=e.get(t);if(!n)return;let r=n.getValue("repostCount");n.setValue(r-1,"repostCount"),n.setValue(!1,"isReposted")}})}async function u(e,t){(0,r.commitMutation)(e,{mutation:i,variables:{action:"highlight",postID:t}})}async function c(e,t){(0,r.commitMutation)(e,{mutation:i,variables:{action:"unhighlight",postID:t}})}async function d(e,t){(0,r.commitMutation)(e,{mutation:i,variables:{action:"bookmark",postID:t},optimisticUpdater:e=>{let n=e.get("posts/"+t);n&&n.setValue(!0,"isBookmarked")}})}async function h(e,t){(0,r.commitMutation)(e,{mutation:i,variables:{action:"unbookmark",postID:t},optimisticUpdater:e=>{let n=e.get("posts/"+t);n&&n.setValue(!1,"isBookmarked")}})}},44228:function(e,t,n){"use strict";n.d(t,{N:function(){return o},O:function(){return l}});var r=n(27378),i=n(2417),a=n(32345);let s=null;function o(e){let t=null!=s?s:new i.Environment({network:i.Network.create(a.US),store:new i.Store(new i.RecordSource)});return e&&t.getStore().publish(new i.RecordSource(e)),s||(s=t),s}function l(e){let t=(0,r.useMemo)(()=>o(e),[e]);return t}},32765:function(e,t,n){"use strict";var r=n(27378);let i=r.createContext(void 0);t.Z=i},3420:function(e,t,n){"use strict";var r=n(27378),i=n(33714);let a=r.createContext(i.Z.light);t.Z=a},32345:function(e,t,n){"use strict";n.d(t,{AV:function(){return o},Bq:function(){return g},C4:function(){return f},I_:function(){return w},Kl:function(){return m},TQ:function(){return C},US:function(){return c},XI:function(){return k},jF:function(){return h},kA:function(){return E},lB:function(){return l},nZ:function(){return x},oD:function(){return p},pT:function(){return b},qe:function(){return S},t1:function(){return v},vj:function(){return _},yY:function(){return y}});var r,i=n(23728),a=n(25777),s=n(97018);function o(e){window.localStorage.setItem("localhost-backend",e.toString())}function l(){return"true"===window.localStorage.getItem("localhost-backend")}let u=l()?"http://localhost:8080":"https://maitake-project.uc.r.appspot.com",c=(r="".concat(u,"/graphql"),async(e,t,n,s)=>{let o=(0,a.v0)(i.H).currentUser,l={};if(o)try{let e=await o.getIdToken();l.Authorization="Bearer ".concat(e)}catch(e){console.log("Unable to get id token")}let u={method:"POST",headers:l};if(s&&window.FormData&&e.text){let n=new FormData;n.append("query",e.text),n.append("variables",JSON.stringify(t)),Object.keys(s).forEach(e=>{if("query"===e||"variables"===e)throw Error("Uploadable has illegal key.");Object.prototype.hasOwnProperty.call(s,e)&&n.append(e,s[e])}),u.body=n}else u.body=JSON.stringify({query:e.text,variables:t}),l["Content-Type"]="application/json";let c=await fetch(r,u);return await c.json()});function d(e){return async(t,n)=>{let r;let o="".concat(u).concat(e),l=(0,a.v0)(i.H).currentUser,c=null!=n?n:{};if(l)try{let e=await l.getIdToken();c.Authorization="Bearer ".concat(e)}catch(e){console.log("Unable to get id token")}c["Content-Type"]="application/json; charset=UTF-8";try{let e=await fetch(o,{method:"POST",headers:c,body:JSON.stringify(null!=t?t:{})});r=await e.json()}catch(e){throw e}return function e(t){return null===t?null:Array.isArray(t)?t.map(t=>e(t)):"object"==typeof t&&2===Object.keys(t).length&&("seconds"in t&&"nanoseconds"in t||"_seconds"in t&&"_nanoseconds"in t)?new s.EK(t.seconds||t._seconds,t.nanoseconds||t._nanoseconds):"function"==typeof t||"object"==typeof t?function(e,t){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}(t,t=>e(t)):t}(r.result)}}let h=d("/feed"),f=d("/changeUsername"),p=d("/messaging/batch"),m=d("/messaging/createThread");d("/invite");let g=d("/follow"),v=d("/block"),y=d("/visibility");d("/highlights");let _=d("/following/feed"),b=d("/following/unread"),x=d("/teams/join"),w=d("/teams/login"),k=d("/domain/set"),E=d("/domain/check"),S=d("/domain/update"),C=d("/user/referral");d("/payments/openCustomerPortal")},84983:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(27378),i=n(3321);function a(){let e=(0,r.useContext)(i.J6);return!!(null==e?void 0:e.unlockedCustomDomainViaSupporter)}},8009:function(e,t,n){"use strict";n.d(t,{S$:function(){return d},fy:function(){return u},qU:function(){return c}});var r=n(27378),i=n(32667);let a="(prefers-color-scheme: dark)",s="darkMode",o="prefers-dark",l="prefers-light";function u(e){let t=document.documentElement;t.classList.remove("light"),t.classList.remove("dark"),t.classList.add(e)}function c(e){"inherit"===e?localStorage.removeItem(s):"dark"===e?localStorage.setItem(s,o):"light"===e&&localStorage.setItem(s,l);let t=new StorageEvent("storage",{key:s});window.dispatchEvent(t)}function d(){let e=localStorage.getItem(s);return e===o?"dark":e===l?"light":"inherit"}t.ZP=function(){let[e,t]=(0,r.useState)(!1),[n,u]=(0,r.useState)();return((0,i.Z)(()=>{var e;let n=()=>{t(window.matchMedia(a).matches)};(e=window.matchMedia(a)).addEventListener?e.addEventListener("change",n):e.addListener&&e.addListener(n);let r=e=>{if(e.key===s){let e=localStorage.getItem(s);u(null!=e?e:void 0)}};return window.addEventListener("storage",r),n(),()=>{var e;(e=window.matchMedia(a)).removeEventListener?e.removeEventListener("change",n):e.removeListener&&e.removeListener(n),window.removeEventListener("storage",r)}},[]),(0,i.Z)(()=>{let e=localStorage.getItem(s);u(null!=e?e:void 0)},[]),n===o)?"dark":n===l?"light":e?"dark":"light"}},30868:function(e,t,n){"use strict";var r=n(86677);t.Z=function(){let e=(0,r.useRouter)(),t=e.asPath;return t.split("?")[0]}},33280:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B}});var r=n(24246),i=n(27378);n(98799);var a=n(23728),s=n(25777),o=n(3321),l=n(11098),u=n(97678),c=n(32765),d=n(8009),h=n(3420),f=n(33714),p=n(88038),m=n.n(p),g=n(20988),v=n(20233),y=n(22119),_=n(86992),b=n(71942),x=n.n(b),w=n(58989),k=n(30868),E=n(32345),S=n(71946);let C=()=>(0,i.useEffect)(()=>{let e=Array.from(document.querySelectorAll('link[rel="stylesheet"][data-n-p]')).map(e=>({element:e,href:e.getAttribute("href")}));e.forEach(e=>{let{element:t}=e;return t.removeAttribute("data-n-p")});let t=[],n=n=>{let r=n.filter(e=>{let{target:t}=e;return"STYLE"===t.nodeName&&t.hasAttribute("data-n-href")}).map(e=>{let{target:t}=e;return{element:t,href:t.getAttribute("data-n-href")}});r.forEach(e=>{let{element:n,href:r}=e,i=t.includes(r);i?n.remove():(n.setAttribute("data-fouc-fix-n-href",r),n.removeAttribute("data-n-href"),t.push(r))}),e=e.reduce((e,n)=>{let{element:r,href:i}=n,a=t.includes(i);return a?r.remove():e.push(n),e},[])},r=new MutationObserver(n);return r.observe(document.head,{subtree:!0,attributeFilter:["media"]}),()=>r.disconnect()},[]);var T=n(39275),I=n(97018);async function R(e,t){if(e.sectionOrder){let n=e.sectionOrder,r=T.Z.filter(e=>0>n.indexOf(e));r.length>0&&await (0,I.pl)(t,{sectionOrder:[...n,...r]},{merge:!0})}}var j=n(7952);let A=e=>{window.gtag("config","G-HS23B4V0L5",{page_path:e})};var D=n(86677),P=n(41097),N=n.n(P),L=n(60074);let M=(0,i.lazy)(()=>n.e(1426).then(n.bind(n,21426)));function O(e){let{Component:t,pageProps:n,router:a}=e,s=a.query.site,o=a.asPath.split("?")[0];t.getKey&&(o=t.getKey(a));let l=s[0],u="",c="";window.location.hostname.includes("localhost")?(u="".concat(window.location.origin,"/"),c="".concat(window.location.protocol,"//localhost:").concat(window.location.port,"/")):(u="".concat(window.location.origin,"/"),c="https://read.cv/");let d={onMainDomain:!1,domainName:l,canonicalPathToDomain:u,canonicalPathToMainDomain:c},[h,f]=(0,i.useState)(0);return(0,i.useEffect)(()=>{f(window.innerHeight)},[]),(0,S.Z)("resize",()=>{f(window.innerHeight)}),(0,r.jsx)(j.Z.Provider,{value:d,children:(0,r.jsx)(v.E.div,{initial:{opacity:0},animate:{opacity:1},transition:_.D_,"data-full-width":"true",id:x().container,children:(0,r.jsx)("main",{style:{minHeight:h},children:(0,r.jsx)(y.M,{exitBeforeEnter:!0,children:(0,i.createElement)(t,{...n,key:o})})})})})}function F(e){let{Component:t,pageProps:n,router:i}=e;return(0,r.jsx)(t,{...n})}function U(e){let t,n,{Component:d,pageProps:f,router:p}=e,[b,C]=(0,i.useState)(),[T,j]=(0,i.useState)(),[A,D]=(0,i.useState)(),[P,O]=(0,i.useState)(null),[F,U]=(0,i.useState)(null),[V,B]=(0,i.useState)(o.IC.Loading),[q,Z]=(0,i.useState)(!1),[z,H]=(0,i.useState)(!1),[K,W]=(0,i.useState)(!1),[$,G]=(0,i.useState)(!1),Y=(0,k.Z)(),[Q,X]=(0,i.useState)(0),[J,ee]=(0,i.useState)(!1),[et,en]=(0,i.useState)(!1),[er,ei]=(0,i.useState)(!0),[ea,es]=(0,i.useState)({setShowMenuButton:ei}),eo=(0,i.useContext)(h.Z),el=p.pathname.startsWith("/_dashboard/")||"/_dashboard"===p.pathname,eu=p.pathname.startsWith("/_posts/")||"/_posts"===p.pathname,ec=el||eu;(0,i.useEffect)(()=>{Z(!1)},[Y]);let ed=e=>{!el&&(e.metaKey||e.ctrlKey)&&"k"===e.key&&P&&F&&(e.preventDefault(),H(!z))},eh=()=>{window.innerWidth>540&&(Z(!1),W(!1))};(0,S.Z)("keydown",ed),(0,S.Z)("resize",eh),(0,i.useEffect)(()=>{setTimeout(()=>{G(!0)},1e3);let e=(0,s.v0)(a.H);(0,s.Aj)(e,e=>{if(O(e),B(e?o.IC.LoggedIn:o.IC.LoggedOut),L.av(e?{id:e.uid}:null),e){let t=(0,I.JU)(a.db,"users",e.uid);(0,I.cf)(t,{includeMetadataChanges:!0},n=>{let r=n.data();(null==r?void 0:r.uid)!==e.uid&&(0,I.pl)(t,{uid:e.uid,creationTime:new Date(e.metadata.creationTime||0)},{merge:!0}).then(()=>{}),n.exists()&&!n.metadata.hasPendingWrites&&(U(n.data()),G(!0))}),(0,I.cf)((0,I.JU)(t,"private-data","follow"),e=>{e.exists()?C(e.data()):C({})}),(0,I.cf)((0,I.JU)(t,"private-data","blocked"),e=>{e.exists()?j(e.data()):j({__set_merge_true__:0})});let n=(0,I.JU)(t,"private-data","settings");(0,I.cf)(n,e=>{D(e.data())}),(0,I.cf)((0,I.IO)((0,I.hJ)(a.db,"users",e.uid,"threads"),(0,I.Xo)("lastMessageTime","desc"),(0,I.b9)(20)),e=>{if(e.empty)return;let t=0;e.docs.forEach(e=>{let n=e.data();n.readUpTo.toMillis()<n.lastMessageTime.toMillis()&&t++}),X(t)}),(0,E.pT)({action:"check-unread"}).then(e=>{"check-unread"===e.action&&ee(e.unread)}),(0,I.QT)(t).then(e=>{let n=e.data();e.exists()&&n&&R(n,t)})}else U(null),G(!0)})},[]),(0,i.useEffect)(()=>{null!=F&&(F.username&&F.displayName?en(!1):en(!0))},[F,P]),et&&null!==P&&(t=(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(r.Fragment,{}),children:(0,r.jsx)(M,{user:F,currentUser:P,continueEditing:()=>en(!1)})})),(0,i.useEffect)(()=>{"/following"===p.route&&ee(!1)},[p.route]);let ef=p.asPath.split("?")[0];d.getKey&&(ef=d.getKey(p));let{renderedPages:ep}=function(e){var t,n,a,s;let{enabled:o,router:l,Component:u,pageProps:c}=e,d=(0,i.useRef)({});if((0,i.useEffect)(()=>{if(!o)return;let e=e=>{d.current[l.asPath].scrollPosition=document.body.scrollTop};return l.events.on("routeChangeStart",e),()=>{l.events.off("routeChangeStart",e)}},[l.asPath]),(0,i.useEffect)(()=>{if(!o)return;let e=e=>{document.body.scrollTop=d.current[e].scrollPosition};return l.events.on("routeChangeComplete",e),()=>{l.events.off("routeChangeComplete",e)}},[]),!o)return{renderedPages:null};let h=null!==(n=null===(t=d.current[l.asPath])||void 0===t?void 0:t.scrollPosition)&&void 0!==n?n:0;d.current[l.asPath]={path:l.asPath,component:(0,r.jsx)(u,{...c,router:l}),scrollPosition:h};let f=null!==(a=u.getLayout)&&void 0!==a?a:e=>e,p="undefined"!=typeof document?document.getElementsByClassName(N().wrapper).item(0):null,m=null!==(s=null==p?void 0:p.clientWidth)&&void 0!==s?s:0,g=f((0,r.jsx)(r.Fragment,{children:Object.entries(d.current).map(e=>{let[t,n]=e;return(0,r.jsx)("div",{"data-url":n.path,style:l.asPath!==n.path?{visibility:"hidden",pointerEvents:"none",position:"fixed",width:m,left:-9999}:void 0,children:n.component},t)})}));return{renderedPages:g}}({enabled:eu,router:p,Component:d,pageProps:f}),em=null;if(eu)em=ep;else{var eg;let e=null!==(eg=d.getLayout)&&void 0!==eg?eg:e=>e;em=(0,r.jsx)(y.M,{exitBeforeEnter:!0,children:e((0,i.createElement)(d,{...f,key:ef,router:p}))})}return ec||(n=(0,r.jsx)(g.ZP,{enableCommandBar:z,hideCommandBar:()=>H(!1),showCommandBar:()=>H(!0),showMenuButton:er,currentUser:P,userData:F,showSidebar:q,toggleSidebar:()=>Z(!q),setPanel:W,unreadCount:Q,badgeFollowing:J,children:(0,r.jsx)("div",{ref:e=>es(t=>e&&t.container!==e?{...t,container:e}:t),className:x().sidebarHolder})})),(0,r.jsx)(w.W.Provider,{value:ea,children:(0,r.jsx)(o.vy.Provider,{value:F,children:(0,r.jsx)(o.St.Provider,{value:P,children:(0,r.jsx)(o.I6.Provider,{value:V,children:(0,r.jsx)(l.Z.Provider,{value:b,children:(0,r.jsx)(u.Z.Provider,{value:T,children:(0,r.jsx)(c.Z.Provider,{value:Q,children:(0,r.jsxs)(o.J6.Provider,{value:A,children:[(0,r.jsxs)(m(),{children:[(0,r.jsx)("meta",{name:"google-site-verification",content:"YiV3fITfPFVGiqmcfjDZCgECMKska1W9Y8pw88SgA5g"}),(0,r.jsx)("title",{children:"CV"}),(0,r.jsx)("meta",{name:"description",content:"Read.cv is a new professional platform used by people across the world to create beautiful profiles and meaningful connections."}),(0,r.jsx)("meta",{name:"theme-color",content:eo.backgroundColor})]}),(0,r.jsxs)(v.E.div,{initial:{opacity:0,x:0},animate:{opacity:$?1:0},transition:_.D_,id:x().container,"data-hide-sidebar":ec,"data-is-dashboard":el,"data-is-posts":eu,children:[n,(0,r.jsx)(v.E.main,{animate:{x:q&&window.innerWidth<=540?K?64:32:0},transition:_.D_,onClick:e=>{e.target instanceof HTMLElement&&"a"!==e.target.tagName.toLowerCase()&&Z(!1)},children:em})]}),(0,r.jsx)(v.E.div,{initial:{opacity:0,x:0},animate:{opacity:$?1:0},transition:_.D_,id:x().container,children:(0,r.jsx)(y.M,{children:t})})]})})})})})})})})}function V(){return(0,r.jsxs)(m(),{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("link",{rel:"mask-icon",href:"https://read.cv/mask-icon.svg” color=”#000000"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://maitake-project.uc.r.appspot.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://firebase.googleapis.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://res.cloudinary.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"apple-touch-icon",href:"https://read.cv/apple-touch-icon.png"},"apple-touch-icon"),(0,r.jsx)("link",{rel:"manifest",href:"https://read.cv/manifest.json"},"manifest"),(0,r.jsx)("link",{rel:"icon",href:"https://read.cv/favicon.ico",type:"image/x-icon"},"favicon")]})}var B=function(e){let t=(0,d.ZP)();C(),(0,i.useEffect)(()=>{(0,d.fy)(t)},[t]);let n=(0,D.useRouter)();(0,i.useEffect)(()=>{let e=e=>{A(e)};return n.events.on("routeChangeComplete",e),()=>{n.events.off("routeChangeComplete",e)}},[n.events]);let a=null,s=e.router.pathname;return a=s.startsWith("/_sites/[...site]")?O:s.startsWith("/_openGraph")?F:U,(0,r.jsxs)(h.Z.Provider,{value:"dark"===t?f.Z.dark:f.Z.light,children:[(0,r.jsx)(V,{}),(0,r.jsx)(a,{...e})]})}},77615:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(86992),s=n(20233),o=n(70137),l=n.n(o),u=n(71946),c=n(88038),d=n.n(c);let h=e=>{let{}=e,t=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null),u=(0,i.useRef)(null),c=(0,r.jsxs)(d(),{children:[(0,r.jsx)("title",{children:"Page not found"}),(0,r.jsx)("meta",{name:"description",content:"Read.cv is a show, don't tell professional platform to form beautiful profiles and make meaningful connections with people and teams."}),(0,r.jsx)("meta",{property:"og:title",content:"Page not found"}),(0,r.jsx)("meta",{property:"og:description",content:"Read.cv is a show, don't tell professional platform to form beautiful profiles and make meaningful connections with people and teams."}),(0,r.jsx)("meta",{property:"og:site_name",content:"Read.cv"}),(0,r.jsx)("meta",{property:"og:image",content:"https://read.cv/og-image-illustrated.png"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:"Page not found"}),(0,r.jsx)("meta",{name:"twitter:description",content:"Read.cv is a show, don't tell professional platform to form beautiful profiles and make meaningful connections with people and teams."}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://read.cv/og-image-illustrated.png"})]});return(0,r.jsxs)(s.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:a.D_,ref:t,className:l().container,children:[c,(0,r.jsxs)("div",{className:l().image,children:[(0,r.jsxs)("svg",{viewBox:"0 0 540 415",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{ref:n,d:"M270.495 307.5c21.544 0 38.448-8.898 49.949-24.97C331.931 266.479 338 243.313 338 214.798v-16.69c0-27.976-6.444-50.869-18.209-66.781-11.778-15.929-28.864-24.827-50.038-24.827-21.173 0-38.137 8.76-49.793 24.726-11.642 15.949-17.96 39.047-17.96 67.703v16.416c0 28.522 6.505 51.553 18.334 67.466 11.84 15.93 28.989 24.689 50.161 24.689z",stroke:"transparent"}),(0,r.jsx)("path",{ref:o,d:"M107 307V107.5l-94 148h129.5",stroke:"transparent"}),(0,r.jsx)("path",{ref:u,d:"M492.5 307V107.5l-94 148H528",stroke:"transparent"})]}),(0,r.jsx)(f,{bounds:t,path:n}),(0,r.jsx)(f,{bounds:t,path:o}),(0,r.jsx)(f,{bounds:t,path:u})]})]})},f=e=>{let{path:t,bounds:a}=e,[o,c]=(0,i.useState)(0),[d,h]=(0,i.useState)([]),[f,m]=(0,i.useState)([]);(0,i.useEffect)(()=>{n.e(2829).then(n.t.bind(n,4477,19)).then(e=>{let t=e.default;h(t)})},[]);let g=e=>{if(!e.current)return 0;{let t=e.current.getBoundingClientRect().width/e.current.getBBox().width;return e.current.getTotalLength()*t}},v=()=>{c(g(t)/24)};return((0,i.useEffect)(()=>{c(g(t)/24)},[]),(0,i.useEffect)(()=>{m(d.filter(e=>void 0!==e.order&&13>Number(e.version)))},[d]),(0,u.Z)("resize",v),0===f.length)?null:(0,r.jsx)(r.Fragment,{children:[...Array(Math.ceil(o))].map((e,n)=>{if(!t.current)return null;let i=t.current.getTotalLength(),u=t.current.getPointAtLength(i/o*n),c=t.current.getBoundingClientRect().width/t.current.getBBox().width,d=t.current.getBoundingClientRect().height/t.current.getBBox().height;return(0,r.jsx)("div",{style:{transform:"translate("+(u.x*c-1)+"px, "+(u.y*d-1)+"px)"},className:l().emoji,children:(0,r.jsx)("div",{className:l().positioner,children:(0,r.jsx)(s.E.div,{drag:!0,dragConstraints:a,className:l().innerEmoji,children:(0,r.jsx)(p,{emojis:f})})})},n)})})},p=e=>{let t,n,{emojis:a}=e,[s,o]=(0,i.useState)((t=Math.ceil(26),n=Math.floor(a.length),a[Math.floor(Math.random()*(n-t)+t)].emoji));return(0,r.jsx)(r.Fragment,{children:s})};t.Z=h},300:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(31995),s=n.n(a),o=n(5678),l=n(86374),u=n(32667),c=n(3420);let d=e=>{let t,{showBadge:n,displayName:a,to:d,className:h,size:f}=e,p=(0,i.useContext)(c.Z),[m,g]=(0,i.useState)(!1);return(0,u.Z)(()=>{window.matchMedia("(color-gamut: p3)").matches?g(!0):g(!1)},[]),n&&(t=(0,r.jsxs)("span",{style:{whiteSpace:"nowrap",display:"inline-flex"},children:["\uFEFF",(0,r.jsx)(o.Z,{to:"https://read.cv/about/supporters",stopPropagation:!0,type:"external",hover:!1,className:"small"===f?"".concat(s().badge," ").concat(s().small):s().badge,children:m?(0,r.jsx)(l.Z,{fill:"dark"===p.name?"color(display-p3 1 0.72 0.12 / 1)":"#fff"}):(0,r.jsx)(l.Z,{fill:"dark"===p.name?"rgba(245, 178, 7, 1)":"#fff"})})]})),(0,r.jsxs)("span",{className:null!=h?h:void 0,children:[(0,r.jsx)(o.Z,{to:d,stopPropagation:!0,children:a}),t]})};t.Z=d},61825:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(51056),s=n(97678),o=n(52612),l=n.n(o);let u=e=>{var t;let{mute:n,block:o,cancel:u,blockedUser:c}=e,[d,h]=(0,i.useState)(!1),f=(0,i.useContext)(s.Z),p=(null!==(t=null==f?void 0:f.muted)&&void 0!==t?t:[]).some(e=>e.uid==c.uid);return(0,i.useEffect)(()=>{var e;let t=null==f?void 0:null===(e=f.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(c.uid));t?h(t):h(!1)},[f]),(0,r.jsxs)("ul",{className:l().threadOptions,children:[n?(0,r.jsx)("li",{children:(0,r.jsx)(a.Z,{onClick:n,label:p?"Unmute":"Mute"})}):null,(0,r.jsx)("li",{children:(0,r.jsx)("a",{target:"_blank",onClick:u,href:"mailto:support@read.cv?subject=Reporting content from "+c.displayName+"&body=Reported user:%0D%0A"+c.displayName+" — read.cv/"+c.username+"%0D%0A%0D%0ATell us about the offensive content you encountered:%0D%0A%0D%0AAttach a screenshot of the offensive content:%0D%0A%0D%0A---%0D%0A%0D%0AOn Mac use CMD Shift 3 to take a screenshot%0D%0AOn Windows use Print Screen to take a screenshot%0D%0A%0D%0AThank you for keeping the Read.cv community a safe place%0D%0AThe CV Team",children:"Report"})}),(0,r.jsx)("li",{className:l().warning,children:(0,r.jsx)(a.Z,{onClick:o,label:d?"Unblock":"Block"})})]})};t.Z=u},59983:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(9186),s=n(46605),o=n(51056),l=n(97678),u=n(32345),c=n(95773),d=n.n(c),h=n(31507);let f=e=>{let{cancel:t,currentUser:n,blockedUser:c}=e,[f,p]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),v=(0,i.useContext)(l.Z),y=()=>{n&&(p(!0),(0,u.t1)({uid:c.uid,action:"block"}).then(()=>{p(!1),t()}))},_=()=>{n&&(p(!0),(0,u.t1)({uid:c.uid,action:"unblock"}).then(()=>{p(!1),t()}))};return(0,i.useEffect)(()=>{var e;let t=null==v?void 0:null===(e=v.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(c.uid));t?g(t):g(!1)},[v]),(0,r.jsx)(a.Z,{cancel:t,clickToClose:!0,children:(0,r.jsxs)("div",{id:d().blockUserModal,children:[(0,r.jsxs)(h.r,{children:[m?"Unblock":"Block"," ",c.displayName,"?"]}),m?(0,r.jsxs)("p",{children:[c.displayName," will be able to send you messages and view your profile."]}):(0,r.jsxs)("p",{children:[c.displayName," will not be able to send you messages or view your profile."]}),(0,r.jsxs)(h.m,{children:[(0,r.jsx)("div",{className:d().cancelWrap,children:(0,r.jsx)(o.Z,{onClick:()=>t(),label:"Cancel"})}),(0,r.jsx)(s.Z,{loading:f,visualStyle:"warning",onClick:m?_:y,label:m?"Unblock":"Block"})]})]})})};t.Z=f},56838:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return z}});var i=n(24246),a=n(27378),s=n(88675),o=n(22119),l=n(20233),u=n(86992),c=n(6015),d=n(47047),h=n.n(d),f=n(9186),p=n(71517),m=n(71946),g=n(63018),v=n(86677),y=n(30868),_=n(23728),b=n(14043);let x=e=>{var t;return(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.74 10.68a6.001 6.001 0 10-1.06 1.06l3.037 3.038a.75.75 0 001.061-1.06L11.74 10.68zm-1.558-6.862a4.5 4.5 0 11-6.364 6.364 4.5 4.5 0 016.364-6.364z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var w=n(3420),k=n(97018),E=n(46605),S=n(87295),C=n(90005),T=n.n(C),I=n(72225);let R=e=>{var t;return(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6V5a2 2 0 10-2 2h1v2H5a2 2 0 102 2v-1h2v1a2 2 0 102-2h-1V7h1a2 2 0 10-2-2v1H7zM5 6a1 1 0 111-1v1H5zm2 1v2h2V7H7zm3-1h1a1 1 0 10-1-1v1zm0 4v1a1 1 0 101-1h-1zm-4 0H5a1 1 0 101 1v-1z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},j=e=>{var t;return(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.146 10.354a.5.5 0 010-.708l2.5-2.5a.5.5 0 11.708.708L4.707 9.5H9.5c.337 0 .853-.105 1.27-.406.392-.282.73-.757.73-1.594v-4a.5.5 0 011 0v4c0 1.163-.496 1.938-1.145 2.406A3.292 3.292 0 019.5 10.5H4.707l1.647 1.646a.5.5 0 01-.708.708l-2.5-2.5z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var A=n(37355),D=n(3321),P=n(51056),N=n(21152),L=n(39886),M=n(23681);let O={user:(e,t)=>{let n="";return t.title.length>0&&(n+=t.title),t.location&&(t.title&&(n+=" in "),n+=t.location),0===n.length&&(n="@"+t.username),{icon:(0,i.jsx)(g.Z,{size:36,path:t.profilePhoto,name:t.displayName}),content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:h().displayName,children:t.displayName}),(0,i.jsx)("div",{className:h().bio,children:n})]})}},team:(e,t)=>({icon:(0,i.jsx)(g.Z,{size:36,path:t.profilePhoto,name:t.displayName}),content:(0,i.jsx)("div",{className:h().displayName,children:t.displayName})}),openURL:(e,t)=>({icon:(0,i.jsx)(U,{payload:t}),content:t.title})},F={user:(e,t,n)=>n.navigate("/".concat(t.username)),team:(e,t,n)=>n.navigate("/teams/".concat(t.username)),openURL:(e,t,n)=>n.navigate(t.path)},U=e=>{var t;let{payload:n}=e,r=(0,a.useContext)(D.vy),s=(0,a.useContext)(w.Z);return"/explore"===n.path?(0,i.jsx)("div",{className:h().iconWrap,children:(0,i.jsx)(b.Z,{fill:s.grey1})}):(0,i.jsx)(g.Z,{size:36,path:null==r?void 0:r.photoURL,showStatus:!0,name:null!==(t=null==r?void 0:r.displayName)&&void 0!==t?t:""})},V=e=>{var t,n,c,d,g,b,C,I,P,O,U;let V,{cancel:z,context:H}=e,K=(0,a.useContext)(D.vy),W=(0,a.useContext)(D.St),$=(0,y.Z)(),[G,Y]=(0,a.useState)(null!==(t=null==r?void 0:r.queryText)&&void 0!==t?t:""),[Q,X]=(0,a.useState)([]),J=(0,a.useRef)(null),ee=(0,a.useContext)(w.Z),et=(0,a.useRef)(null),[en,er]=(0,a.useState)(!1),[ei,ea]=(0,a.useState)(null!==(n=null==r?void 0:r.sections)&&void 0!==n?n:[]),[es,eo]=(0,a.useState)(),[el,eu]=(0,a.useState)(null!==(c=null==r?void 0:r.selectedIndex)&&void 0!==c?c:0),ec=(0,v.useRouter)(),ed=(0,L.w5)("users"),[eh,ef]=(0,a.useState)(!1),[ep,em]=(0,a.useState)(null!==(d=null==r?void 0:r.roles)&&void 0!==d?d:[]),[eg,ev]=(0,a.useState)(!1),[ey,e_]=(0,a.useState)(null!==(g=null==r?void 0:r.companies)&&void 0!==g?g:[]),[eb,ex]=(0,a.useState)(!1),[ew,ek]=(0,a.useState)(null!==(b=null==r?void 0:r.collaborators)&&void 0!==b?b:[]),[eE,eS]=(0,a.useState)(!1),[eC,eT]=(0,a.useState)(null!==(C=null==r?void 0:r.locations)&&void 0!==C?C:[]),[eI,eR]=(0,a.useState)(!1),[ej,eA]=(0,a.useState)(0),[eD,eP]=(0,a.useState)([]),eN=(0,a.useRef)(!1),eL=(0,a.useRef)(null),[eM,eO]=(0,a.useState)(null==r?void 0:r.yoeMin),[eF,eU]=(0,a.useState)(null==r?void 0:r.yoeMax),[eV]=(0,a.useState)(null!==(I=null==r?void 0:r.scrollTop)&&void 0!==I?I:-1),[eB]=(0,a.useState)(null!==(P=null==r?void 0:r.filterScrollLeft)&&void 0!==P?P:-1),eq=(0,a.useRef)(!0),[eZ,ez]=(0,s.G)({viewportRef:eL,direction:"horizontal",friction:.05,scrollMode:"native",inputsFocus:!1,onUpdate:e=>{eL.current&&(eL.current.scrollLeft=e.position.x)},shouldScroll:()=>!(0,A.Z)()}),eH=()=>{ez&&eL.current&&ez.updateMetrics()};(0,a.useEffect)(()=>{J.current&&J.current.focus(),eH()},[]),(0,a.useEffect)(()=>{(0,M.u)("open_command_bar")},[]),(0,a.useEffect)(()=>{eH()},[ep,ey,ew,eC,eM,eF]),(0,a.useEffect)(()=>{if(!W)return;let e=(0,k.JU)(_.db,"users",W.uid,"private-data","settings");return(0,k.cf)(e,e=>{if(eN.current)return;let t=e.data();(null==t?void 0:t.searchHistoryVersion)==="v1"&&Array.isArray(t.searchHistory)?eP(t.searchHistory):eP([])})},[W]),(0,a.useEffect)(()=>{let e;e=(0,k.IO)((0,k.hJ)(_.db,"users"),(0,k.Xo)("creationTime","desc"),(0,k.Xo)("photoURL"),(0,k.Xo)("username")),(0,k.PL)((0,k.IO)(e,(0,k.b9)(50))).then(e=>{eo(e.docs)})},[]);let eK=""===G&&0===ep.length&&0===ey.length&&0===ew.length&&0===eC.length&&void 0===eM&&void 0===eF;(0,a.useEffect)(()=>{if(eK){X([]),eq.current=!1;return}if(eq.current&&(eq.current=!1,eV>=0)){et.current&&(et.current.scrollTop=eV),eL.current&&(eL.current.scrollLeft=eB),eQ(el);return}let e=[];ep.length>0&&e.push("("+ep.map(e=>'roles:"'.concat(e,'"')).join(" OR ")+")"),ey.length>0&&e.push("("+ey.map(e=>'companies:"'.concat(e,'"')).join(" OR ")+")"),ew.length>0&&e.push("("+ew.map(e=>'collaborators:"'.concat(e,'"')).join(" OR ")+")"),eC.length>0&&e.push("("+eC.map(e=>'locations:"'.concat(e,'"')).join(" OR ")+")"),eM&&e.push("(experience >= ".concat(eM,")")),eF&&e.push("(experience <= ".concat(eF,")")),X(e);let t=Date.now();ed.search(G,{highlightPreTag:"<strong>",highlightPostTag:"</strong>",filters:e.join(" AND "),hitsPerPage:100}).then(n=>{let{hits:r,nbHits:i,page:a,nbPages:s}=n;ea(n=>{var o,l;let u=a+1,c=[{id:"search-results",items:r.map(e=>({type:e.type,payload:{username:e.username,profilePhoto:e.photoURL,displayName:e.displayName,title:null!==(o=e.title)&&void 0!==o?o:"",location:null!==(l=e.location)&&void 0!==l?l:""}})),extraInfo:{searchTime:t,nbHits:i,hasMore:u<s,nextPage:u,query:G,filters:e}}];return n.length>0&&"search-results"===n[0].id&&n[0].extraInfo.searchTime>t?n:c}),eu(0),et.current&&(et.current.scrollTop=0)})},[eK,G,ep,ey,ew,eC,eM,eF]),(0,a.useEffect)(()=>{var e,t,n,i;r={queryText:G,roles:ep,companies:ey,collaborators:ew,locations:eC,yoeMin:eM,yoeMax:eF,selectedIndex:el,sections:ei,scrollTop:null!==(n=null===(e=et.current)||void 0===e?void 0:e.scrollTop)&&void 0!==n?n:0,filterScrollLeft:null!==(i=null===(t=eL.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==i?i:0}},[eK,G,ep,ey,ew,eC,eM,eF,el,ei]);let eW=async e=>{let t;let n=0;for(let r of e2){for(let i of r.items){if(n===e){t=i,n++;break}n++}if(n>e)break}if(t){if("user"===t.type&&W){let e=(0,k.JU)(_.db,"users",W.uid,"private-data","settings"),n=[{type:t.type,payload:t.payload}].concat(eD);n=JSON.parse(JSON.stringify(n=n.filter((e,t)=>n.findIndex(t=>t.payload.username===e.payload.username)===t))),eN.current=!0,await (0,k.pl)(e,{searchHistoryVersion:"v1",searchHistory:n},{merge:!0})}F[t.type](t.type,t.payload,{navigate:e=>{if(e="posts"===H?"https://posts.cv"+e:"https://read.cv"+e,en){let t=window.open(e,"_blank");t&&t.focus()}else ec.push(e),z()}})}},e$=()=>{setTimeout(()=>{var e;null===(e=J.current)||void 0===e||e.focus()},0)},eG=e=>{"Escape"===e.code&&(eg?ev(!1):eI?eR(!1):eb?ex(!1):eh?ef(!1):eE?eS(!1):z(),e$(),e.stopPropagation())},eY=e=>{eg||eI||eh||eE||eb||("MetaLeft"===e.code||"MetaRight"===e.code?er(!0):"ArrowUp"===e.code?(eQ(el-1,!0),e.preventDefault()):"ArrowDown"===e.code?(eQ(el+1,!1),e.preventDefault()):("Enter"===e.code||"NumpadEnter"===e.code)&&eW(el))},eQ=(e,t)=>{let n=null==et?void 0:et.current;if(!n)return;let r=n.querySelectorAll("."+h().row);if(e<0||e>=r.length)return;let i=r[e];if(i&&(eu(e),i.scrollIntoView({block:"nearest"}),void 0!==t)){let n=r[e+(t?-1:1)];n&&n.scrollIntoView({block:"nearest"})}},eX=e=>{("MetaLeft"===e.code||"MetaRight"===e.code)&&er(!1)},eJ=e=>{er(!1)};(0,m.Z)("keydown",eY),(0,m.Z)("keyup",eX),(0,m.Z)("blur",eJ),(0,m.Z)("focus",eH);let e0=[];if(eK){let e=[];"/explore"!==$&&"posts"!==H&&e.push({type:"openURL",payload:{path:"/explore",title:"View front page"}}),(null==K?void 0:K.username)&&$!=="/".concat(null==K?void 0:K.username)&&e.push({type:"openURL",payload:{path:"/".concat(K.username),title:"View profile"}}),e0.push({id:"actions",items:e}),eD.length>0&&e0.push({title:"Recently viewed",id:"history",items:eD.slice(0,3)}),e0.push({title:"Recently joined",id:"recent",items:(null!=es?es:[]).map(e=>({type:"user",payload:{username:e.data().username,profilePhoto:e.data().photoURL,displayName:e.data().displayName,title:null!==(O=e.data().title)&&void 0!==O?O:"",location:null!==(U=e.data().location)&&void 0!==U?U:""}}))})}let e1=0,e2=eK?e0:ei,e3=e2.map(e=>(0,i.jsxs)(a.Fragment,{children:[e.title?(0,i.jsx)("h3",{className:h().header,children:e.title}):null,e.items.map((e,t)=>{let n=e1,r=e1===el;return e1++,(0,i.jsx)(Z,{type:e.type,payload:e.payload,selected:r,metaKey:en,onMouseMove:()=>eu(n),onClick:()=>eW(n)},t)})]},e.id)),e5=()=>{if(0===e2.length||"search-results"!==e2[0].id||!e2[0].extraInfo.hasMore)return;let{searchTime:e,nextPage:t,query:n,filters:r}=e2[0].extraInfo;ed.search(n,{highlightPreTag:"<strong>",highlightPostTag:"</strong>",filters:r.join(" AND "),page:t,hitsPerPage:100}).then(t=>{let{hits:n,nbHits:i,page:a,nbPages:s}=t;ea(t=>{var o,l;if(0===t.length||"search-results"!==t[0].id||t[0].extraInfo.searchTime!==e)return t;let u=a+1,c=[{id:"search-results",items:t[0].items.concat(n.map(e=>({type:e.type,payload:{username:e.username,profilePhoto:e.photoURL,displayName:e.displayName,title:null!==(o=e.title)&&void 0!==o?o:"",location:null!==(l=e.location)&&void 0!==l?l:""}}))),extraInfo:{searchTime:e,nbHits:i,hasMore:u<s,nextPage:u,query:G,filters:r}}];return c})})},e4="Years of experience";return V=void 0!==eM&&void 0!==eF?(0,i.jsxs)(i.Fragment,{children:[e4,":\xa0",(0,i.jsxs)("span",{children:[eM," – ",eF]})]}):void 0!==eM?(0,i.jsxs)(i.Fragment,{children:[e4,":\xa0",(0,i.jsxs)("span",{children:[eM,"+"]})]}):void 0!==eF?(0,i.jsxs)(i.Fragment,{children:[e4,":\xa0",(0,i.jsxs)("span",{children:["0 – ",eF]})]}):e4,(0,i.jsx)(f.Z,{cancel:z,clickToClose:!0,maxWidth:540,commandBar:!0,children:(0,i.jsxs)("div",{className:h().commandBar,onKeyDown:eG,children:[(0,i.jsxs)("div",{className:h().input,children:[(0,i.jsx)(o.M,{children:ej<=4?null:(0,i.jsx)(l.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:u.O$,className:h().shadow})}),(0,i.jsx)("div",{className:h().searchIcon,children:(0,i.jsx)(x,{fill:ee.grey3})}),(0,i.jsx)(p.Z,{ref:J,visualStyle:"light",value:G,onChange:e=>Y(e.target.value),placeholder:"Search people or teams..."})]}),(0,i.jsx)("div",{className:h().filters,ref:eL,onMouseDown:e=>{e.target instanceof Element&&"INPUT"!==e.target.tagName&&e.preventDefault()},children:(0,i.jsxs)("div",{className:h().filtersInner,onMouseDown:e=>{e.target instanceof Element&&"INPUT"!==e.target.tagName&&e.preventDefault()},children:[(0,i.jsx)(B,{isOpen:eh,open:()=>ef(!0),cancel:()=>{ef(!1),e$()},selectedValues:ep,onSelectValues:e=>em(e),facet:"roles",label:"Role",queryText:G,filters:Q}),(0,i.jsx)(B,{isOpen:eE,open:()=>eS(!0),cancel:()=>{eS(!1),e$()},selectedValues:eC,onSelectValues:e=>eT(e),facet:"locations",label:"Location",queryText:G,filters:Q}),(0,i.jsx)(B,{isOpen:eg,open:()=>ev(!0),cancel:()=>{ev(!1),e$()},selectedValues:ey,onSelectValues:e=>e_(e),facet:"companies",label:"Has worked at",queryText:G,filters:Q}),(0,i.jsx)(S.Z,{alignment:"left",width:220,open:eI,component:(0,i.jsx)(q,{close:()=>eR(!1),min:eM,setMin:eO,max:eF,setMax:eU}),close:()=>{eR(!1),e$()},yOffset:4,children:(0,i.jsx)(E.Z,{className:T()(h().filter,{[h().activeFilter]:void 0!==eM||void 0!==eF}),label:V,onClick:()=>eR(!0)})}),(0,i.jsx)(B,{isOpen:eb,open:()=>ex(!0),cancel:()=>{ex(!1),e$()},selectedValues:ew,onSelectValues:e=>ek(e),facet:"collaborators",label:"Collaborators",queryText:G,filters:Q}),(0,i.jsx)("div",{className:h().filterBookend})]})}),(0,i.jsx)("div",{ref:et,onScroll:e=>eA(e.currentTarget.scrollTop),"data-mobile":(0,A.Z)(),className:h().scrollableArea,children:(0,i.jsxs)("div",{className:h().rows,children:[e3,(0,i.jsx)(N.Z,{onVisible:e5})]})}),(0,i.jsxs)("div",{className:h().commandBarFooter,children:[e2.length>0&&"search-results"===e2[0].id?(0,i.jsxs)("div",{children:[e2[0].extraInfo.nbHits," results"]}):null,(0,A.Z)()?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:h().shortcut,children:[(0,i.jsx)("div",{className:h().keycap,children:(0,i.jsx)(j,{fill:ee.grey3})}),(0,i.jsx)("span",{children:"Open"})]}),(0,i.jsxs)("div",{className:h().shortcut,children:[(0,i.jsx)("div",{className:h().keycap,children:(0,i.jsx)(R,{fill:ee.grey3})}),(0,i.jsx)("div",{className:h().keycap,children:(0,i.jsx)(j,{fill:ee.grey3})}),(0,i.jsx)("span",{children:"Open in new tab"})]})]})]})]})})},B=e=>{let{isOpen:t,open:n,cancel:r,onSelectValues:s,selectedValues:o,facet:l,label:u,queryText:c,filters:d}=e;(0,a.useContext)(w.Z);let f=(0,L.w5)("users"),[g,v]=(0,a.useState)(""),[y,_]=(0,a.useState)([]),[b,x]=(0,a.useState)(0),k=(0,a.useRef)(null),C=y.filter(e=>!o.includes(e.value));(0,a.useEffect)(()=>{x(0),f.searchForFacetValues(l,g,{query:c,filters:d.filter(e=>!e.startsWith("("+l)).join(" AND "),maxFacetHits:30}).then(e=>{_(e.facetHits)})},[g,t]),(0,a.useEffect)(()=>{t&&x(0)},[t]);let R=(e,t)=>{let n=null==k?void 0:k.current;if(!n)return;let r=n.querySelectorAll("."+h().optionsRow);if(e<0||e>=r.length)return;let i=r[e];if(!i)return;x(e),0===e&&(n.scrollTop=0),i.scrollIntoView({block:"nearest"});let a=r[e+(t?-1:1)];a&&a.scrollIntoView({block:"nearest"})},j=e=>{t&&("ArrowUp"===e.code?(R(b-1,!0),e.preventDefault()):"ArrowDown"===e.code?(R(b+1,!1),e.preventDefault()):("Enter"===e.code||"NumpadEnter"===e.code)&&C[b]&&D(C[b].value))};(0,m.Z)("keydown",j);let A=o.length>0,D=e=>{if(o.includes(e))return;let t=o.concat([e]);s(t),b+t.length>=y.length&&x(y.length-t.length-1)},P=e=>{s(o.filter(t=>t!==e))};return(0,i.jsx)(S.Z,{width:320,alignment:"left",open:t,component:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:h().rolesHeader,children:[(0,i.jsx)(p.Z,{visualStyle:"light",value:g,placeholder:"Search "+("locations"===l?"cities or countries":l),onChange:e=>v(e.target.value),ref:e=>null==e?void 0:e.focus()}),(0,i.jsx)(E.Z,{visualStyle:"light",label:"Done",onClick:r})]}),(0,i.jsxs)("div",{className:h().popoverScrollableArea,ref:k,children:[A?(0,i.jsxs)("ul",{className:h().selectedRoles,children:[o.map(e=>(0,i.jsxs)("li",{className:h().selectedRole,children:["collaborators"===l?e.substring(0,e.lastIndexOf(" ||")):e,(0,i.jsx)(E.Z,{visualStyle:"light",icon:(0,i.jsx)(I.Z,{fill:"rgba(7, 136, 245, 1)"}),onClick:()=>P(e)})]},e)),(0,i.jsx)(E.Z,{className:"".concat(h().selectedRole," "),label:"Clear all",onClick:()=>s([])})]}):null,(0,i.jsx)("h3",{className:h().filterHeading,children:""===g?"Suggestions":"Results"}),(0,i.jsx)("ul",{className:h().options,children:C.map((e,t)=>(0,i.jsxs)("li",{onMouseMove:()=>x(t),className:T()(h().optionsRow,t===b?h().optionsHoveringRow:null),onClick:()=>D(e.value),children:[(0,i.jsx)("label",{children:"collaborators"===l?e.value.substring(0,e.value.lastIndexOf(" ||")):e.value})," ",(0,i.jsx)("span",{children:e.count})]},e.value))})]})]}),close:r,yOffset:4,children:(0,i.jsx)(E.Z,{className:T()(h().filter,{[h().activeFilter]:A}),label:A?(0,i.jsxs)(i.Fragment,{children:[u,":\xa0",(0,i.jsx)("span",{children:o.map(e=>"collaborators"===l?e.substring(0,e.lastIndexOf(" ||")):e).join(", ")})]}):u,onClick:n})})},q=e=>{let{close:t,min:n,max:r,setMin:s,setMax:o}=e,[l,u]=(0,a.useState)(n),[c,d]=(0,a.useState)(r),f=(0,a.useRef)();return(0,a.useEffect)(()=>{c&&l&&l>=c&&d(l)},[l]),(0,a.useEffect)(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=void 0,s(l),o(c)},50)},[l,c]),(0,i.jsxs)("div",{className:h().yearsOfExperiencePopover,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:h().label,children:[(0,i.jsx)("label",{children:"Min"}),void 0!==l?(0,i.jsx)("div",{className:h().buttonWrap,children:(0,i.jsx)(P.Z,{label:"Clear",onClick:()=>{u(void 0)}})}):null]}),(0,i.jsx)("div",{className:h().yearsOfExperienceRow,children:(0,i.jsx)("input",{type:"number",min:0,step:1,value:null!=l?l:"",placeholder:"No minimum",className:h().numberInput,onChange:e=>{isNaN(e.target.valueAsNumber)?u(void 0):u(e.target.valueAsNumber)}})})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:h().label,children:[(0,i.jsx)("label",{children:"Max"}),void 0!==c?(0,i.jsx)("div",{className:h().buttonWrap,children:(0,i.jsx)(P.Z,{label:"Clear",onClick:()=>d(void 0)})}):null]}),(0,i.jsx)("div",{className:h().yearsOfExperienceRow,children:(0,i.jsx)("input",{type:"number",min:null!=l?l:0,step:1,value:null!=c?c:"",placeholder:"No maximum",className:h().numberInput,onChange:e=>{isNaN(e.target.valueAsNumber)?d(void 0):d(e.target.valueAsNumber)}})})]}),(0,i.jsxs)("div",{className:h().yearsOfExperienceFooter,children:[(0,i.jsx)("div",{children:(0,i.jsx)(P.Z,{disabled:!l&&!c,onClick:()=>{u(void 0),d(void 0)},label:"Clear all"})}),(0,i.jsx)(E.Z,{label:"Done",onClick:t})]})]})},Z=e=>{let{type:t,payload:n,selected:r,metaKey:s,onMouseMove:d,onClick:f}=e,p=(0,a.useContext)(w.Z),{icon:m,content:g}=O[t](t,n);return(0,i.jsxs)("div",{className:h().row,"data-selected":r,onMouseMove:d,onClick:f,children:[(0,i.jsx)("div",{className:h().icon,children:m}),(0,i.jsx)("div",{className:h().userDetails,children:g}),(0,i.jsx)(o.M,{children:r&&s?(0,i.jsx)(l.E.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0},transition:u.O9,className:h().newTabIcon,children:(0,i.jsx)(c.Z,{fill:p.grey3})}):null})]})};var z=V},72916:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(24246),i=n(27378),a=n(3420),s=n(12532);function o(e){let t=null!=e?e:"";return t.startsWith("@")?t.substring(1):t}var l=n(6015),u=n(5678),c=n(64687),d=n.n(c),h=n(90005),f=n.n(h);let p=e=>{let t=(0,i.useContext)(a.Z),n=f()(d().contact,e.context?d().insideForm:"");return(0,r.jsxs)("div",{className:n,children:[(0,r.jsx)("div",{className:d().platform,children:(0,r.jsx)("span",{children:"Custom"===e.platform?e.platformLink:e.platform})}),(0,r.jsxs)("div",{className:d().platformLink,children:[(0,r.jsxs)("div",{children:[(()=>{var t,n;if(!e.platform||!e.platformLink)return null;let i=function(e){var t,n,r;switch(e.contactType){case"Email":return"mailto:"+e.contactValue;case"Twitter":return"https://twitter.com/"+o(e.contactValue);case"X":return"https://x.com/"+o(e.contactValue);case"Instagram":return"https://instagram.com/"+o(e.contactValue);case"Facebook":return"https://facebook.com/"+e.contactValue;case"LinkedIn":return"https://linkedin.com/in/"+e.contactValue;case"Are.na":return"https://are.na/"+e.contactValue;case"Figma":return"https://figma.com/@"+o(e.contactValue);case"Dribbble":return"https://dribbble.com/"+e.contactValue;case"GitHub":return"https://github.com/"+e.contactValue;case"GitLab":return"https://gitlab.com/"+e.contactValue;case"Honk":return"https://honk.me/"+e.contactValue;case"Letterboxd":return"https://letterboxd.com/"+e.contactValue;case"Substack":return"https://"+e.contactValue+".substack.com/";case"Telegram":return"https://t.me/"+o(e.contactValue);case"Tumblr":return"https://"+e.contactValue+".tumblr.com/";case"Twitch":return"https://twitch.tv/"+e.contactValue;case"TikTok":return"https://tiktok.com/@"+o(e.contactValue);case"Itch":return"https://"+e.contactValue+".itch.io/";case"Youtube":return(0,s.ZP)(null!==(t=e.contactValue)&&void 0!==t?t:"");case"Vimeo":return"https://vimeo.com/"+e.contactValue;case"VSCO":return"https://vsco.co/"+e.contactValue;case"Custom":return(0,s.ZP)(null!==(n=e.channelURL)&&void 0!==n?n:"");case"Website":return(0,s.ZP)(null!==(r=e.contactValue)&&void 0!==r?r:"")}}({contactType:e.platform,contactValue:e.platformLink,channelName:null!==(t=e.channelName)&&void 0!==t?t:void 0,channelURL:null!==(n=e.channelURL)&&void 0!==n?n:void 0,order:""});switch(e.platform){case"Email":case"Twitter":case"X":case"Instagram":case"Facebook":case"LinkedIn":case"Are.na":case"Figma":case"Dribbble":case"GitHub":case"GitLab":case"Honk":case"Letterboxd":case"Substack":case"Telegram":case"Tumblr":case"Twitch":case"TikTok":case"Itch":case"Vimeo":case"VSCO":return(0,r.jsx)(u.Z,{type:"external",rel:"me",to:i,children:e.platformLink});case"Youtube":return(0,r.jsx)(u.Z,{type:"external",rel:"me",to:i,children:e.channelName?e.channelName:"Youtube"});case"Custom":return(0,r.jsx)(u.Z,{type:"external",rel:"me",to:i,children:e.channelName?e.channelName:"Myspace"});case"Website":let a=e.platformLink.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").replace(/\/$/,"");return(0,r.jsx)(u.Z,{type:"external",rel:"me",to:i,children:a})}})(),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:["\uFEFF",(0,r.jsx)(l.Z,{fill:t.grey1})]})]}),e.children]})]})};var m=p},35043:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,a,s,o,l,u,c,d,h,f,p,m,g,v,y,_,b=n(24246),x=n(27378);function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var S=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function C(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||S(n)&&S(r)))return!1;return!0}var T=function(e,t){void 0===t&&(t=C);var n,r,i=[],a=!1;return function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return a&&n===this&&t(s,i)||(r=e.apply(this,s),a=!0,n=this,i=s),r}},I="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function R(e){cancelAnimationFrame(e.id)}var j=-1,A=null;function D(e){if(void 0===e&&(e=!1),null===A||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?A="positive-descending":(t.scrollLeft=1,A=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t)}return A}var P=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t},N=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},L=function(e,t,n,r){var i,a,s;if("column"===e?(i=r.columnMetadataMap,a=t.columnWidth,s=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,a=t.rowHeight,s=r.lastMeasuredRowIndex),n>s){var o=0;if(s>=0){var l=i[s];o=l.offset+l.size}for(var u=s+1;u<=n;u++){var c=a(u);i[u]={offset:o,size:c},o+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},M=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,a=n.lastMeasuredIndex;if(t>a){var s=0;if(a>=0){var o=i[a];s=o.offset+o.size}for(var l=a+1;l<=t;l++){var u=r(l);i[l]={offset:s,size:u},s+=u}n.lastMeasuredIndex=t}return i[t]},O=(a=(r={getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,i,a){var s=e.columnCount,o=e.columnWidth,l=e.width,u=Math.max(0,s*o-l),c=Math.min(u,t*o),d=Math.max(0,t*o-l+a+o);switch("smart"===n&&(n=r>=d-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":var h=Math.round(d+(c-d)/2);if(h<Math.ceil(l/2))return 0;if(h>u+Math.floor(l/2))return u;return h;default:if(r>=d&&r<=c)return r;if(d>c)return d;if(r<d)return d;return c}},getOffsetForRowAndAlignment:function(e,t,n,r,i,a){var s=e.rowHeight,o=e.height,l=Math.max(0,e.rowCount*s-o),u=Math.min(l,t*s),c=Math.max(0,t*s-o+a+s);switch("smart"===n&&(n=r>=c-o&&r<=u+o?"auto":"center"),n){case"start":return u;case"end":return c;case"center":var d=Math.round(c+(u-c)/2);if(d<Math.ceil(o/2))return 0;if(d>l+Math.floor(o/2))return l;return d;default:if(r>=c&&r<=u)return r;if(c>u)return c;if(r<c)return c;return u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth;return Math.max(0,Math.min(e.columnCount-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth;return Math.max(0,Math.min(e.columnCount-1,t+Math.ceil((e.width+n-t*r)/r)-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight;return Math.max(0,Math.min(e.rowCount-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight;return Math.max(0,Math.min(e.rowCount-1,t+Math.ceil((e.height+n-t*r)/r)-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}).getColumnOffset,s=r.getColumnStartIndexForOffset,o=r.getColumnStopIndexForStartIndex,l=r.getColumnWidth,u=r.getEstimatedTotalHeight,c=r.getEstimatedTotalWidth,d=r.getOffsetForColumnAndAlignment,h=r.getOffsetForRowAndAlignment,f=r.getRowHeight,p=r.getRowOffset,m=r.getRowStartIndexForOffset,g=r.getRowStopIndexForStartIndex,v=r.initInstanceProps,y=r.shouldResetStyleCacheOnItemSizeChange,_=r.validateProps,(i=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=v(n.props,k(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:k(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=T(function(e,t,r,i,a,s,o,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:i,visibleColumnStartIndex:a,visibleColumnStopIndex:s,visibleRowStartIndex:o,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=T(function(e,t,r,i,a){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:a})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,i=n.props,s=i.columnWidth,o=i.direction,u=i.rowHeight,c=n._getItemStyleCache(y&&s,y&&o,y&&u),d=e+":"+t;if(c.hasOwnProperty(d))r=c[d];else{var h=a(n.props,t,n._instanceProps),m="rtl"===o;c[d]=r={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:f(n.props,e,n._instanceProps),width:l(n.props,t,n._instanceProps)}}return r},n._getItemStyleCache=void 0,n._getItemStyleCache=T(function(e,t,n){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.clientWidth,a=t.scrollLeft,s=t.scrollTop,o=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===a&&e.scrollTop===s)return null;var t=n.props.direction,u=a;if("rtl"===t)switch(D()){case"negative":u=-a;break;case"positive-descending":u=l-i-a}return u=Math.max(0,Math.min(u,l-i)),{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:u,scrollTop:Math.max(0,Math.min(s,o-r)),verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r;null!==n._resetIsScrollingTimeoutId&&R(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=I(),r={id:requestAnimationFrame(function n(){I()-t>=150?e.call(null):r.id=requestAnimationFrame(n)})})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}(n=t).prototype=Object.create(e.prototype),n.prototype.constructor=n,E(n,e),t.getDerivedStateFromProps=function(e,t){return N(e,t),_(e),null};var n,r=t.prototype;return r.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return(void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n)?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},r.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,a=this.props,s=a.columnCount,o=a.height,l=a.rowCount,f=a.width,p=this.state,m=p.scrollLeft,g=p.scrollTop,v=function(e){if(void 0===e&&(e=!1),-1===j||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),j=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return j}();void 0!==r&&(r=Math.max(0,Math.min(r,s-1))),void 0!==i&&(i=Math.max(0,Math.min(i,l-1)));var y=u(this.props,this._instanceProps),_=c(this.props,this._instanceProps);this.scrollTo({scrollLeft:void 0!==r?d(this.props,r,n,m,this._instanceProps,y>o?v:0):m,scrollTop:void 0!==i?h(this.props,i,n,g,this._instanceProps,_>f?v:0):g})},r.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},r.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(D()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},r.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&R(this._resetIsScrollingTimeoutId)},r.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,i=e.direction,a=e.height,s=e.innerRef,o=e.innerElementType,l=e.innerTagName,d=e.itemData,h=e.itemKey,f=void 0===h?P:h,p=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,y=e.useIsScrolling,_=e.width,b=this.state.isScrolling,k=this._getHorizontalRangeToRender(),E=k[0],S=k[1],C=this._getVerticalRangeToRender(),T=C[0],I=C[1],R=[];if(r>0&&g)for(var j=T;j<=I;j++)for(var A=E;A<=S;A++)R.push((0,x.createElement)(t,{columnIndex:A,data:d,isScrolling:y?b:void 0,key:f({columnIndex:A,data:d,rowIndex:j}),rowIndex:j,style:this._getItemStyle(j,A)}));var D=u(this.props,this._instanceProps),N=c(this.props,this._instanceProps);return(0,x.createElement)(p||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:w({position:"relative",height:a,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},(0,x.createElement)(o||l||"div",{children:R,ref:s,style:{height:D,pointerEvents:b?"none":void 0,width:N}}))},r._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var a=this._getHorizontalRangeToRender(),s=a[0],o=a[1],l=a[2],u=a[3],c=this._getVerticalRangeToRender(),d=c[0],h=c[1],f=c[2],p=c[3];this._callOnItemsRendered(s,o,d,h,l,u,f,p)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,_=m.scrollUpdateWasRequested,b=m.verticalScrollDirection;this._callOnScroll(v,y,g,b,_)}},r._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,i=e.overscanCount,a=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,h=n||r||i||1;if(0===t||0===a)return[0,0,0,0];var f=s(this.props,d,this._instanceProps),p=o(this.props,f,d,this._instanceProps);return[Math.max(0,f-(c&&"backward"!==u?1:Math.max(1,h))),Math.max(0,Math.min(t-1,p+(c&&"forward"!==u?1:Math.max(1,h)))),f,p]},r._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,a=e.rowCount,s=this.state,o=s.isScrolling,l=s.verticalScrollDirection,u=s.scrollTop,c=r||i||n||1;if(0===t||0===a)return[0,0,0,0];var d=m(this.props,u,this._instanceProps),h=g(this.props,d,u,this._instanceProps);return[Math.max(0,d-(o&&"backward"!==l?1:Math.max(1,c))),Math.max(0,Math.min(a-1,h+(o&&"forward"!==l?1:Math.max(1,c)))),d,h]},t}(x.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},i),F=n(71517),U=n(46605),V=n(9575),B=n(21460),q=n(47897),Z=n.n(q);let z=e=>{var t,r;let[i,a]=(0,x.useState)(""),[s,o]=(0,x.useState)(0),[l,u]=(0,x.useState)([]),[c,d]=(0,x.useState)([]),[h,f]=(0,x.useState)(!0),p=null!==(t=e.columnCount)&&void 0!==t?t:8,m=null!==(r=e.columnSize)&&void 0!==r?r:32,g=["✌️","✌\uD83C\uDFFF","✌\uD83C\uDFFE","✌\uD83C\uDFFD","✌\uD83C\uDFFC","✌\uD83C\uDFFB"];(0,x.useEffect)(()=>{n.e(2829).then(n.t.bind(n,4477,19)).then(e=>{let t=e.default;a(""),u(t),f(!1)})},[]);let v=()=>{if(s+1<g.length){let e=s+1;window.localStorage.setItem("skinTone",e.toString()),o(e)}else o(0),window.localStorage.setItem("skinTone","0")};return(0,x.useEffect)(()=>{d(l.filter(e=>void 0!==e.order&&13>Number(e.version)&&e.tags&&e.tags.find(e=>e.includes(i.trim()))||void 0!==e.order&&13>Number(e.version)&&e.annotation.includes(i.trim())))},[i,l]),(0,x.useEffect)(()=>{let e=window.localStorage.getItem("skinTone");e?o(parseInt(e)):o(0)},[]),(0,b.jsxs)(x.Fragment,{children:[(0,b.jsxs)("div",{className:Z().emojiPickerHeader,children:[(0,b.jsx)(F.Z,{value:i,onChange:e=>a(e.target.value.toLowerCase()),visualStyle:"emoji",placeholder:"Search emoji"}),(0,b.jsx)("div",{children:(0,b.jsx)(V.Z,{string:"Toggle skin tone",children:(0,b.jsx)(U.Z,{onClick:v,visualStyle:"light",label:(0,b.jsx)("span",{className:Z().skinTone,children:g[s]})})})})]}),h?(0,b.jsx)("div",{className:Z().emojiLoadingIndicator,children:(0,b.jsx)(B.Z,{})}):(0,b.jsx)(O,{className:Z().emojiPicker,columnCount:p,columnWidth:m,height:280,rowCount:Math.ceil(c.length/p),rowHeight:m,width:p*m,children:t=>{var n;let{columnIndex:r,rowIndex:i,style:a}=t,o=r+i*p;if(o>=c.length)return null;let l=c[o].emoji,u=c[o].annotation,d=c[o].skins;void 0!==d&&0!==s&&(l=d[4-(s-1)].emoji,u=d[4-(s-1)].annotation);let h={emoji:l,description:u};return(0,b.jsx)("div",{className:Z().emoji,style:{...a,top:"".concat(a.top+5,"px")},children:(0,b.jsx)("button",{onClick:()=>e.emojiCallback(h),children:(0,b.jsx)("span",{style:{fontSize:null!==(n=e.fontSize)&&void 0!==n?n:40},role:"img","aria-label":c[o].annotation,children:l})})})}})]})};var H=z},44967:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(5678),a=n(83896),s=n.n(a);let o=e=>(0,r.jsx)("nav",{className:s().aboutFooter,"data-context":e.context,children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"https://twitter.com/read_cv",type:"external",children:"Twitter"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"/faq",children:"FAQs"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"/terms",children:"Terms"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"https://discord.gg/bpXDGEDNRq",type:"external",children:"Discord"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"/support",children:"Support"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i.Z,{rel:"canonical",to:"/privacy",children:"Privacy"})})]})});t.Z=o},84285:function(e,t,n){"use strict";function r(e){return({Projects:"printProjects","Side Projects":"printSideProjects",Exhibitions:"printExhibitions",Speaking:"printSpeaking",Writing:"printWriting",Awards:"printAwards",Features:"printFeatures","Work Experience":"printWorkExperience",Volunteering:"printVolunteering",Certifications:"printCertifications",Education:"printEducation",Contact:"printContact",About:"printAbout",Teams:"printTeams"})[e]}n.d(t,{B:function(){return r}})},61:function(e,t,n){"use strict";n.d(t,{K:function(){return s},e:function(){return o}});var r=n(24246),i=n(63623),a=n.n(i);let s=e=>(0,r.jsx)("div",{id:a().profileEditorContent,"data-editing":e.isEditing,style:e.hasOwnFooter?{bottom:0}:void 0,children:e.children}),o=e=>{let{noBorder:t,children:n}=e;return(0,r.jsx)("div",{id:a().profileEditorFooter,style:{boxShadow:t?"none":void 0},children:n})}},87048:function(e,t,n){"use strict";n.d(t,{xY:function(){return eF},YG:function(){return eW},ZP:function(){return eG},a3:function(){return eU}});var r=n(24246),i=n(27378),a=n(22119),s=n(20233),o=n(86992),l=n(12532),u=n(5678),c=n(36300),d=n(83647),h=n(53444),f=n(63018),p=n(9575);let m=e=>(0,r.jsxs)("svg",{style:{transform:"translateX(1.25px)"},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("ellipse",{cx:"8.75",cy:"6.61028",rx:"1",ry:"1.125",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("ellipse",{cx:"4.75",cy:"6.61028",rx:"1",ry:"1.125",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.27991 9.45453C5.27991 9.45453 5.27991 9.45453 5.27991 9.45453L5.27986 9.45448C5.27988 9.4545 5.27989 9.45451 5.27991 9.45453ZM4.75 9.98528C4.21967 10.5156 4.21989 10.5158 4.22011 10.5161L4.22057 10.5165L4.22154 10.5175L4.22371 10.5196L4.22894 10.5248L4.24292 10.5382C4.2538 10.5485 4.26782 10.5615 4.28492 10.5768C4.31909 10.6073 4.36576 10.6471 4.42449 10.6931C4.5416 10.7848 4.70873 10.9023 4.92211 11.0187C5.34864 11.2514 5.97163 11.4853 6.75 11.4853C7.52837 11.4853 8.15136 11.2514 8.57789 11.0187C8.79127 10.9023 8.9584 10.7848 9.07551 10.6931C9.13424 10.6471 9.18091 10.6073 9.21508 10.5768C9.23218 10.5615 9.2462 10.5485 9.25708 10.5382L9.27106 10.5248L9.27629 10.5196L9.27846 10.5175L9.27943 10.5165L9.27989 10.5161C9.28011 10.5158 9.28033 10.5156 8.75 9.98528L9.28033 10.5156C9.57322 10.2227 9.57322 9.74785 9.28033 9.45495C8.98926 9.16388 8.51846 9.16207 8.22515 9.44953L8.21558 9.45827C8.20385 9.46875 8.18217 9.48749 8.15105 9.51184C8.08848 9.56081 7.98998 9.63075 7.85961 9.70186C7.59864 9.84421 7.22163 9.98528 6.75 9.98528C6.27837 9.98528 5.90136 9.84421 5.64039 9.70186C5.51002 9.63075 5.41152 9.56081 5.34895 9.51184C5.31783 9.48749 5.29615 9.46875 5.28442 9.45827L5.27485 9.44953C4.98154 9.16207 4.51074 9.16388 4.21967 9.45495C3.92678 9.74785 3.92678 10.2227 4.21967 10.5156L4.75 9.98528Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{d:"M13.75 1C13.75 0.585786 13.4142 0.25 13 0.25C12.5858 0.25 12.25 0.585786 12.25 1V2.5H10.75C10.3358 2.5 10 2.83579 10 3.25C10 3.66421 10.3358 4 10.75 4H12.25V5.5C12.25 5.91421 12.5858 6.25 13 6.25C13.4142 6.25 13.75 5.91421 13.75 5.5V4H15.25C15.6642 4 16 3.66421 16 3.25C16 2.83579 15.6642 2.5 15.25 2.5H13.75V1Z",fill:e.fill?e.fill:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43526 2.79492C4.56057 2.41646 1.92337 4.44005 1.54491 7.31474C1.16645 10.1894 3.19004 12.8266 6.06473 13.2051C8.93942 13.5835 11.5766 11.56 11.9551 8.68527C12.0091 8.2746 12.3859 7.98551 12.7966 8.03958C13.2072 8.09364 13.4963 8.47039 13.4422 8.88105C12.9557 12.5771 9.56497 15.1788 5.86894 14.6923C2.17291 14.2057 -0.428848 10.815 0.0577429 7.11895C0.544334 3.42292 3.93502 0.821159 7.63105 1.30775C8.04172 1.36182 8.3308 1.73856 8.27674 2.14923C8.22267 2.5599 7.84593 2.84898 7.43526 2.79492Z",fill:e.fill?e.fill:"#111"})]});var g=n(62722),v=n(39275),y=n(46605),_=n(51056),b=n(87295),x=n(52227),w=n(62130),k=n(84530),E=n.n(k),S=n(38336),C=n(5152),T=n(3420),I=n(59983),R=n(61825),j=n(32345),A=n(97678),D=n(85556),P=n(9867),N=n(18096),L=n(34463),M=n(26337),O=n(63297),F=n(32315);let U=e=>{var t,n,a,s,o,l;let[u,c]=(0,i.useState)(0),d=(a={stiffness:300,damping:100},s=(0,i.useContext)(O._).isStatic,o=(0,i.useRef)(null),l=(0,L.c)((0,N.i)(0)?0..get():0),(0,i.useMemo)(function(){return l.attach(function(e,t){return s?t(e):(o.current&&o.current.stop(),o.current=(0,P.j)((0,D.pi)((0,D.pi)({from:l.get(),to:e,velocity:l.getVelocity()},a),{onUpdate:t})),l.get())})},Object.values(a)),(0,M.p)(0,function(e){return l.set(parseFloat(e))}),l),h=()=>{(e.hover||0!==d.get())&&(e.hover||0===d.get()?d.set(8):d.set(0),c(u+d.get()))};return(0,F.Yz)(()=>{h()},30),(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{transform:"rotate("+u+" 8 8)",d:"M10.046 1.56a1.5 1.5 0 001.06.44H12.5A1.5 1.5 0 0114 3.5v1.393c0 .398.158.78.44 1.061l.984.985a1.5 1.5 0 010 2.122l-.985.985a1.5 1.5 0 00-.44 1.06V12.5a1.5 1.5 0 01-1.5 1.5h-1.393a1.5 1.5 0 00-1.06.44l-.986.985a1.5 1.5 0 01-2.12 0l-.986-.986a1.5 1.5 0 00-1.06-.44H3.5A1.5 1.5 0 012 12.5v-1.393a1.5 1.5 0 00-.44-1.06L.575 9.06a1.5 1.5 0 010-2.122l.985-.985A1.5 1.5 0 002 4.894V3.5A1.5 1.5 0 013.5 2h1.393a1.5 1.5 0 001.06-.44L6.94.576a1.5 1.5 0 012.121 0l.986.986z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.133 5.903a.75.75 0 00-1.266-.806L6.93 9.712l-1.344-1.68a.75.75 0 00-1.172.937l2 2.5a.75.75 0 001.219-.066l3.5-5.5z",fill:null!==(n=e.checkFill)&&void 0!==n?n:"#fff"})]})},V=e=>{var t;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M1.081 10.02a4.041 4.041 0 010-4.04L2.79 3.02A4.041 4.041 0 016.29 1h3.416c1.444 0 2.778.77 3.5 2.02l1.708 2.96a4.041 4.041 0 010 4.04l-1.708 2.96a4.041 4.041 0 01-3.5 2.02H6.29a4.041 4.041 0 01-3.5-2.02L1.08 10.02z",fill:null!==(t=e.fill)&&void 0!==t?t:"#F50796"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.133 5.903a.75.75 0 00-1.266-.806L6.93 9.712l-1.344-1.68a.75.75 0 00-1.172.936l2 2.5a.75.75 0 001.219-.065l3.5-5.5z",fill:"#fff"})]})};var B=n(56629),q=n.n(B);let Z=e=>{let t,n,a,{user:o,team:l}=e,[u,c]=(0,i.useState)(!1);return(o?(n=o.displayName?o.displayName:"@"+o.username,a=(0,r.jsx)(U,{fill:"#0788f5",hover:u})):l&&(n=null==(t=l.team)?void 0:t.teamName,a=(null==t?void 0:t.dao)?(0,r.jsx)(V,{}):(0,r.jsx)(U,{fill:"#0788f5",hover:u})),o&&!0!==o.verified||l&&(null==t?void 0:t.verified)!==!0)?(0,r.jsx)(r.Fragment,{children:n}):(0,r.jsxs)("div",{className:q().displayNameComponent,children:[null==n?void 0:n.trim(),(0,r.jsxs)("span",{className:q().badge,style:{whiteSpace:"nowrap"},children:["\uFEFF",(0,r.jsx)(s.E.div,{onHoverStart:()=>c(!0),onHoverEnd:()=>c(!1),children:(0,r.jsx)(p.Z,{string:o?"Verified profile":(null==t?void 0:t.dao)?"Verified DAO":"Verified team",children:a})})]})]})};var z=n(71942),H=n.n(z),K=n(88038),W=n.n(K),$=n(37888),G=n(58989),Y=n(9186),Q=n(99337),X=n(77615),J=n(45080),ee=n.n(J),et=n(78339),en=n.n(et);let er=e=>{var t,n,i,a,s;let{data:o,canEdit:l}=e,c=null!==(a=null===(t=o.userByUsername)||void 0===t?void 0:t.currentTeams)&&void 0!==a?a:[],d=null!==(s=null===(n=o.userByUsername)||void 0===n?void 0:n.pastTeams)&&void 0!==s?s:[],h=[];return(c.length>0&&h.push({title:"Current",content:c.map((e,t)=>{var n;return(0,r.jsx)(u.Z,{to:"/teams/"+e.username,hover:!1,children:(0,r.jsx)(p.Z,{string:null!==(n=e.teamName)&&void 0!==n?n:"",children:(0,r.jsx)(f.Z,{size:40,path:e.profilePhotoURL,name:e.teamName})})},e.id)})}),d.length>0&&h.push({title:"Past",content:d.map((e,t)=>{var n;return(0,r.jsx)(u.Z,{to:"/teams/"+e.username,hover:!1,children:(0,r.jsx)(p.Z,{string:null!==(n=e.teamName)&&void 0!==n?n:"",children:(0,r.jsx)(f.Z,{size:40,path:e.profilePhotoURL,name:e.teamName})})},e.id)})}),0===h.length)?null:(0,r.jsxs)(w.$0,{id:"teams",print:(null===(i=o.userByUsername)||void 0===i?void 0:i.printTeams)!==!1||!l,children:[(0,r.jsxs)("div",{className:E().breakInside,children:[(0,r.jsx)("h3",{children:"Teams"}),(0,r.jsxs)("div",{className:ee().experience,children:[(0,r.jsx)("div",{className:ee().duration,children:(0,r.jsx)("span",{children:h[0].title})}),(0,r.jsx)("div",{className:ee().experienceContent,children:(0,r.jsx)("div",{className:en().teams,children:h[0].content})})]})]}),h.length>1?(0,r.jsxs)("div",{className:ee().experience,children:[(0,r.jsx)("div",{className:ee().duration,children:(0,r.jsx)("span",{children:h[1].title})}),(0,r.jsx)("div",{className:ee().experienceContent,children:(0,r.jsx)("div",{className:en().teams,children:h[1].content})})]}):null]})};var ei=n(2417),ea=n(90251),es=n(97018),eo=n(73941),el=n(44228),eu=n(92401),ec=n(96976),ed=n(23728),eh=n(31340),ef=n(20391),ep=n.n(ef),em=n(63623),eg=n.n(em),ev=n(84285);let ey=e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:ep().printBody,children:[(0,r.jsx)("div",{className:eg().profileEditorHeader,children:(0,r.jsx)("h2",{children:"Print Profile"})}),(0,r.jsx)("div",{className:ep().tip,children:(0,r.jsxs)("p",{children:[(0,r.jsxs)("strong",{children:["Tip",(0,r.jsx)("span",{role:"img","aria-label":"sparkle",children:"\uFEFF\xa0✨"})]}),' For best results we suggest turning off "Headers and footers" in your browser print settings.']})}),(0,r.jsxs)("div",{className:ep().printSettings,children:[(0,r.jsx)("h3",{children:"Toggle printed sections"}),(0,r.jsx)(e_,{label:"About",user:e.user},"about"),e.sections.map(t=>(0,r.jsx)(e_,{label:t,user:e.user},t))]})]}),(0,r.jsx)("div",{className:ep().printFooter,children:(0,r.jsxs)("div",{className:ep().buttons,children:[(0,r.jsx)("div",{children:(0,r.jsx)(_.Z,{label:"Cancel",onClick:e.cancel})}),(0,r.jsx)(y.Z,{onClick:()=>{document.queryCommandSupported("print")?document.execCommand("print",!1):window.print()},label:"Print"})]})})]}),e_=e=>{let t=(0,ev.B)(e.label),[n,a]=(0,i.useState)(!e.user||!1!==e.user[t]),s=(0,el.O)();return(0,i.useEffect)(()=>{e.user&&((0,es.pl)((0,es.JU)(ed.db,"users",e.user.uid),{[t]:n},{merge:!0}),(0,ei.commitLocalUpdate)(s,r=>{var i;let a=r.get("users/".concat(null===(i=e.user)||void 0===i?void 0:i.uid));null==a||a.setValue(n,t)}))},[n]),(0,r.jsxs)("div",{className:ep().printOption,children:[(0,r.jsxs)("label",{htmlFor:t,children:[(0,r.jsx)("div",{children:e.label}),(0,r.jsx)("span",{children:n?"On":"Off"})]}),(0,r.jsx)(eh.Z,{checked:n,onChange:()=>a(!n),id:t})]})};var eb=n(7952),ex=n(30155),ew=n(22604),ek=n(30420),eE=n.n(ek),eS=n(75276),eC=n(9656);let eT=n(95093),eI=e=>{var t,n;let{data:i}=e,a=(0,eo.useFragment)(eT,i),s=null!==(n=null===(t=a.writingTab)||void 0===t?void 0:t.edges)&&void 0!==n?n:[];return(0,r.jsx)("div",{className:eE().writingTab,children:(function(e){let t=[],n="",r=[];for(let a of e){var i;if(!(null==a?void 0:a.node))continue;let e=new Date(null==a?void 0:null===(i=a.node)||void 0===i?void 0:i.publishedAt).toLocaleString("en-CA",{year:"numeric",timeZone:"UTC"});e===n?r.push(a.node):(r.length>0&&t.push({year:n,pages:r}),r=[a.node],n=e)}return r.length>0&&t.push({year:n,pages:r}),t})(s).map(e=>{var t;let{year:n,pages:i}=e;return(0,r.jsx)(eR,{year:n,pages:i,username:null!==(t=a.username)&&void 0!==t?t:""},n)})})},eR=e=>{let{year:t,pages:n,username:i}=e;return(0,r.jsxs)("div",{className:eE().yearSection,children:[(0,r.jsx)("h3",{children:t}),(0,r.jsx)("div",{className:eE().pages,children:n.map((e,t)=>(0,r.jsx)(eA,{node:e,username:i}))})]})},ej=n(80680),eA=e=>{var t,n,a,s,o,l,c,d,h,f,p,m,g,v,y,_;let{node:b,username:x}=e,w=(0,i.useRef)(null),[k,E]=(0,i.useState)(),S=(0,i.useContext)(eb.Z),C=(0,eo.useFragment)(ej,b);(0,i.useEffect)(()=>{w.current&&E(w.current.offsetHeight)},[]);let T=()=>{w.current&&E(w.current.offsetHeight)};(0,eS.Z)({ref:w,onResize:T});let I=null===(t=C.page)||void 0===t?void 0:null===(n=t.publishedContent)||void 0===n?void 0:n.thumbnail,R=null===(a=C.page)||void 0===a?void 0:a.id,j=null===(s=C.page)||void 0===s?void 0:s.slug,A=S.onMainDomain?"/"+x+"/"+j:S.canonicalPathToDomain+j;return(0,r.jsxs)("div",{className:eE().pageRow,children:[(0,r.jsx)("div",{className:eE().dateMarker,children:(0,r.jsx)("div",{className:eE().dateContainer,style:{height:k},children:(0,r.jsx)(u.Z,{to:A,children:new Date(C.publishedAt).toLocaleString("en-CA",{timeZone:"UTC",month:"short",day:"numeric"})})})}),(0,r.jsxs)("div",{ref:w,className:eE().pageInfo,children:[(0,r.jsx)("div",{className:eE().title,children:(0,r.jsx)(u.Z,{to:A,children:(null===(o=C.page)||void 0===o?void 0:o.isPrivate)?"This page is private":null===(l=C.page)||void 0===l?void 0:null===(c=l.publishedContent)||void 0===c?void 0:c.title})}),(0,r.jsxs)("div",{className:eE().date,children:[(0,r.jsxs)("span",{className:eE().mobileDate,children:[(0,r.jsx)(u.Z,{to:A,children:new Date(C.publishedAt).toLocaleString("en-CA",{month:"short",day:"numeric"})}),(null===(d=C.page)||void 0===d?void 0:d.isPrivate)?null:(0,r.jsx)(r.Fragment,{children:"\xa0\xb7\xa0"})]}),(0,r.jsx)(u.Z,{className:(null===(h=C.page)||void 0===h?void 0:h.isPrivate)?eE().pwIndicator:void 0,to:A,children:(null===(f=C.page)||void 0===f?void 0:f.isPrivate)?"Enter password to view":function(e){let t=e.split(" ").length;return Math.ceil(t/225)+" min read"}(null!==(y=null===(p=C.page)||void 0===p?void 0:null===(m=p.publishedContent)||void 0===m?void 0:m.content)&&void 0!==y?y:"")})]})]}),(0,r.jsx)("div",{className:eE().thumbnailWrap,children:(0,r.jsx)(u.Z,{to:A,hover:!1,children:I?(0,r.jsxs)(r.Fragment,{children:[(null===(g=C.page)||void 0===g?void 0:g.isPrivate)?(0,r.jsx)("div",{className:eE().thumbnailLock,children:(0,r.jsx)(eC.Z,{fill:"#fff"})}):null,(0,r.jsx)("img",{className:eE().thumbnail,src:(0,eu.Zw)(I,{mode:eu.yX.Fill,width:152,height:90})})]}):(0,r.jsx)("div",{className:eE().embeddedThumb,children:(0,r.jsx)(ew.Z,{slug:null!==(_=null===(v=C.page)||void 0===v?void 0:v.slug)&&void 0!==_?_:"",showSnippet:!1,uid:(null!=R?R:"").split("/")[1],width:52,height:66})})})})]})};var eD=n(86677),eP=n(83007),eN=n(17478),eL=n(38562),eM=n(44217);let eO=()=>null,eF=92,eU=n(64729),eV=e=>{var t,l,u,p,m,k,D,P,N,L,M,O,F,U,V,B;let q,Z,z,H,K,X,J;let ee=(0,i.useContext)(T.Z),[et,en]=(0,i.useState)(!1),[ed,eh]=(0,i.useState)(!1),[ef,ep]=(0,i.useState)(!1),[em,eg]=(0,i.useState)(!1),[ev,e_]=(0,i.useState)(!1),[ex,ew]=(0,i.useState)(!1),[ek,eE]=(0,i.useState)(!1),eS=(0,i.useContext)(A.Z),[eC,eT]=(0,i.useState)(!1),[eR,ej]=(0,i.useState)(e.defaultTab),[eA,eV]=(0,i.useState)(),{data:eG,isLoading:eY}=(0,ea.aM)(eU,{username:e.username},{fetchKey:eA}),[eQ,eX]=(0,i.useState)(!1),[eJ,e0]=(0,i.useState)(eG),e1=null!=eG?eG:eJ,e2=null==e1?void 0:e1.userByUsername,e3=null!==(N=null==e1?void 0:null===(t=e1.userByUsername)||void 0===t?void 0:t.sectionOrder)&&void 0!==N?N:v.Z,e5=(0,el.O)(),e4=(null!==(L=null==e2?void 0:null===(l=e2.writingTab)||void 0===l?void 0:l.totalCount)&&void 0!==L?L:0)!==0,e6=(0,i.useRef)(null),e7=(0,eD.useRouter)(),[e8,e9]=(0,i.useState)(e7.asPath.endsWith("/writing")?"Writing":"About"),[te,tt]=(0,i.useState)(0),[tn,tr]=(0,i.useState)(0),ti=(0,i.useContext)(eb.Z),ta=(0,i.useContext)(eM.Z),ts=(null==ta?void 0:null===(u=ta.domainDoc)||void 0===u?void 0:u.type)==="user_profile"?ta.domainDoc.extraOptions:void 0;(0,i.useEffect)(()=>{e6.current&&(tt(e6.current.offsetLeft),tr(e6.current.offsetWidth))},[e8,e6,e6.current,e2]),(0,i.useEffect)(()=>{let t=[];ti.onMainDomain&&t.push(e.username),"Writing"===e8&&t.push("writing");let n="/"+t.join("/");e7.replace(n,n)},[e8,e.username]),(0,eo.useSubscribeToInvalidationState)((null==eG?void 0:null===(p=eG.userByUsername)||void 0===p?void 0:p.id)?[eG.userByUsername.id]:[],()=>{e0(eG),eV(Date.now())});let to=()=>{(0,ei.commitLocalUpdate)(e5,e=>{var t,n;(null==eG?void 0:null===(t=eG.userByUsername)||void 0===t?void 0:t.id)&&(null===(n=e.get(null==eG?void 0:eG.userByUsername.id))||void 0===n||n.invalidateRecord(),eX(!0))})};(0,i.useEffect)(()=>{document.body.scrollTo(0,0)},[]),(0,i.useEffect)(()=>{!eY&&eQ&&(en(!1),eX(!1))},[eY,eQ]);let tl=(null==e1?void 0:null===(m=e1.userByUsername)||void 0===m?void 0:m.id)==="users/".concat(null===(k=e.currentUser)||void 0===k?void 0:k.uid);(0,i.useEffect)(()=>{var e;let t=null==e2?void 0:e2.uid;if(!t)return;let n=null==eS?void 0:null===(e=eS.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(t));n?ew(n):ew(!1),(0,j.yY)({type:"person",objectID:t}).then(e=>{"unable"===e.visibility?e_(!0):e_(!1)})},[e2,eS]);let tu=()=>{Promise.all([n.e(9774),n.e(417),n.e(7291),n.e(8642),n.e(1217),n.e(6637),n.e(8579),n.e(780),n.e(2886),n.e(124),n.e(2668),n.e(3287),n.e(4197),n.e(3510),n.e(7222),n.e(6381),n.e(4245),n.e(3868)]).then(n.bind(n,81369)).then(e=>{eO=e.default,eT(!0)})};(0,i.useEffect)(()=>{tl&&Promise.all([n.e(9774),n.e(417),n.e(7291),n.e(8642),n.e(1217),n.e(6637),n.e(8579),n.e(780),n.e(2886),n.e(124),n.e(2668),n.e(3287),n.e(4197),n.e(3510),n.e(7222),n.e(6381),n.e(4245),n.e(3868)]).then(n.bind(n,81369)).then(e=>{eO=e.default})},[tl]),(0,i.useEffect)(()=>{e.startWithEditorOpen&&tu()},[e.startWithEditorOpen]);let tc=(e,t)=>{switch(e){case"Contact":return e1?(0,r.jsx)(w.VQ,{data:e1,canEdit:tl},e):null;case"Teams":return e1?(0,r.jsx)(er,{data:e1,canEdit:tl},e):null;default:return e1?(0,r.jsx)(w.ns,{title:e,canEdit:tl,collection:eH(e),data:e1,user:t},e):null}};if(eY&&!e1)return(0,r.jsx)(eB,{notHomepage:!0});if(!e2||ev)return(0,r.jsx)(eq,{});if(tl){let e;e2.statusEmoji&&!et&&(e=(0,r.jsx)(C.Z,{description:e2.statusEmoji.description,emoji:e2.statusEmoji.emoji,context:"profile",size:"large"})),q=(0,r.jsx)(eW,{onClick:()=>en(!et),editing:et,children:e})}if(Z=tl?(0,r.jsxs)("div",{className:E().profileActions,children:[(0,r.jsx)(eL.Z,{label:"Edit profile",onClick:()=>tu(),icon:(0,r.jsx)($.Z,{fill:ee.grey1}),responsive:!0}),(0,r.jsx)(eL.Z,{collapsed:!0,label:"Turn into site",onClick:()=>e7.push("/sites/about"),icon:(0,r.jsx)(eN.Z,{fill:ee.grey1})})]}):(0,r.jsxs)("div",{className:E().profileActions,children:[(0,r.jsx)(Q.Z,{uid:e2.uid}),(0,r.jsx)(eP.Z,{messageFragment:e2})]}),eC&&e.currentUser&&e.userData){let t="Job Listings"===eR||"Billing"===eR?"account":"profile";"Writing"===e8&&(t="writing"),z=(0,r.jsx)(Y.Z,{clickToClose:!1,maxWidth:840,cancel:()=>{eT(!1)},children:(0,r.jsx)(eO,{caseStudyDocID:"",showPageEditor:!1,cancel:()=>{eT(!1),ej(void 0)},currentUser:e.currentUser,user:e.userData,defaultTab:eR,defaultMasterTab:t})})}ef&&e.currentUser&&e.userData&&(H=(0,r.jsx)(Y.Z,{maxWidth:540,clickToClose:!0,cancel:()=>ep(!1),children:(0,r.jsx)("div",{className:E().printModal,children:(0,r.jsx)(ey,{currentUser:e.currentUser,user:e.userData,sections:e3,cancel:()=>ep(!1)})})})),et&&(K=(0,r.jsx)(d.Z,{uid:e2.uid,cancel:()=>en(!1),onDoneSaving:to})),!et&&e2.statusBody&&e2.statusEmoji&&e2.statusTimestamp&&!e.hideSocialInfo&&(X=(0,r.jsx)(c.Z,{onClick:tl?e=>{"a"!==e.target.tagName.toLowerCase()&&en(!0)}:void 0,user:{uid:e2.uid,replyPrivacy:null!==(O=e2.replyPrivacy)&&void 0!==O?O:void 0},clamp:!1,message:e2.statusBody,timestamp:es.EK.fromMillis(e2.statusTimestamp),uid:e2.uid,showReply:!tl,latestStatusPath:null===(M=e2.latestStatus)||void 0===M?void 0:M.id,currentUser:e.currentUser,hideWhenPrinting:!0})),em&&(J=(0,r.jsx)(I.Z,{cancel:()=>eg(!1),currentUser:e.userData,blockedUser:{uid:e2.uid,displayName:e2.displayName}}));let td=e2&&!e2.statusBody&&!e2.about&&0===(null!==(F=e2.allContactItems)&&void 0!==F?F:[]).length&&0===(null!==(U=e2.allProfileItems)&&void 0!==U?U:[]).length&&0===(null!==(V=e2.pastTeams)&&void 0!==V?V:[]).length&&0===(null!==(B=e2.currentTeams)&&void 0!==B?B:[]).length&&!e4,{pageTitle:th,pageDescription:tf,openGraphImage:tp}=function(e,t,n){let r=e.displayName?e.displayName+(t?"":" – Read.cv"):"CV",i=ez(e),a=i.length>0?i:e.displayName?"Read "+e.displayName+"'s CV":"Mindful professional profiles",s=(null==n?void 0:n.ogImage)?(0,eu.Zw)(n.ogImage):e.openGraphImageURL?(0,eu.Zw)(e.openGraphImageURL):"https://read.cv/og-image-illustrated.png";return{pageTitle:r,pageDescription:a,openGraphImage:s}}(e2,!ti.onMainDomain,ts),tm=(0,r.jsxs)(W(),{children:[(0,r.jsx)("title",{children:th}),(0,r.jsx)("meta",{name:"description",content:tf}),(0,r.jsx)("meta",{property:"og:image",content:tp}),(0,r.jsx)("meta",{property:"og:title",content:th}),(0,r.jsx)("meta",{property:"og:description",content:tf}),(0,r.jsx)("meta",{property:"og:site_name",content:"Read.cv"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:th}),(0,r.jsx)("meta",{name:"twitter:description",content:tf}),(0,r.jsx)("meta",{name:"twitter:image",content:tp}),(0,r.jsx)("link",{rel:"alternate",type:"application/rss+xml",title:"RSS",href:"https://read.cv/api/feed/"+e2.username}),(null==ts?void 0:ts.favicon)?(0,r.jsx)("link",{rel:"icon",href:(0,eu.WQ)(ts.favicon),type:"image/x-icon"},"favicon"):null]});return(0,r.jsxs)(eZ,{children:[tm,(0,r.jsx)(G.Z,{children:Z}),(0,r.jsxs)(a.M,{children:[z,H]}),(0,r.jsxs)("div",{className:E().profileHeader,children:[e.hideSocialInfo?null:(0,r.jsxs)("div",{"data-status":!!e2.statusEmoji,"data-editable":!!tl,className:E().profilePhotoWrap,children:[tl&&e.currentUser?(0,r.jsx)(h.Z,{currentUser:e.currentUser}):(0,r.jsx)(f.Z,{size:eF,status:null===(D=e2.statusEmoji)||void 0===D?void 0:D.emoji,statusLabel:null===(P=e2.statusEmoji)||void 0===P?void 0:P.description,showStatus:!tl&&(!ex||!!ek),path:e2.photoURL,name:e2.displayName}),q]}),(0,r.jsx)(eK,{user:e2}),e.currentUser?(0,r.jsxs)("div",{className:E().ellipsis,children:[(0,r.jsx)(b.Z,{yOffset:0,alignment:"right",component:tl?(0,r.jsx)(ec.Z,{items:[{label:"Edit profile",action:()=>{tu(),eh(!1)}},{label:"Print profile",action:()=>{ep(!0),eh(!1)}}]}):(0,r.jsx)(R.Z,{blockedUser:e2,block:()=>{eh(!1),eg(!0)},cancel:()=>{eh(!1)}}),width:220,open:ed,close:()=>eh(!1),children:(0,r.jsx)(y.Z,{icon:(0,r.jsx)(x.Z,{fill:ee.grey3}),onClick:()=>eh(!0),visualStyle:"light"})}),(0,r.jsx)(a.M,{children:J})]}):null]}),K,td&&!et?(0,r.jsx)("div",{className:E().blankState,children:tl?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h2",{children:["Welcome to your new profile!",(0,r.jsx)("span",{role:"img","aria-label":"sparkle",children:"\uFEFF\xa0✨"})]}),(0,r.jsxs)("ol",{children:[(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Add the basics, like work experience or education."})}),(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Add the stuff you're passionate about, like side projects or writing."})}),(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Add images or case studies to any experiences that need more detail."})})]}),(0,r.jsx)(y.Z,{onClick:()=>{ej("Work Experience"),eT(!0)},label:"Add your first work experience"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h2",{children:["Nothing here yet ",(0,r.jsx)("span",{role:"img","aria-label":"leaves falling",children:"\uFEFF\xa0\uD83C\uDF43"})]}),(0,r.jsxs)("p",{children:["It looks like ",e2.displayName," is still working on it."]})]})}):null,!ex||ek?X:null,e4?(0,r.jsx)(w.$0,{id:E().tabs,print:!1,children:(0,r.jsxs)("div",{className:E().tabs,children:[e6.current?(0,r.jsx)(s.E.div,{initial:{x:e6.current.offsetLeft,width:e6.current.offsetWidth},animate:{x:te,width:tn},transition:o.O$,className:E().activeTabIndicator},e2.id):null,["About","Writing"].map((t,n)=>{let i=[];ti.onMainDomain&&i.push(e.username),"Writing"===t&&i.push("writing");let a="/"+i.join("/");return(0,r.jsx)("a",{href:a,ref:e8===t?e6:null,className:E().tab,onClick:e=>{e9(t),e.preventDefault()},"data-selected":t===e8,children:(0,r.jsx)(s.E.span,{initial:{color:e8===t?ee.grey1:ee.grey3},animate:{color:e8===t?ee.grey1:ee.grey3},transition:o.O$,children:t})},t)})]})}):null,(0,r.jsx)(a.M,{exitBeforeEnter:!0,children:"About"===e8?(0,r.jsxs)(e$,{name:"About",hasMultipleTabs:e4,children:[(!ex||ek)&&e2.about?(0,r.jsxs)(w.$0,{id:E().aboutID,print:!1!==e2.printAbout||!tl,children:[e4?null:(0,r.jsx)("h3",{children:"About"}),(0,r.jsx)("div",{className:E().about,children:(0,r.jsx)(S.Z,{type:"profileItem",content:e2.about})})]}):null,e3.map((e,t)=>{var n;let a=tc(e,{uid:e2.uid,username:e2.username,replyPrivacy:null!==(n=e2.replyPrivacy)&&void 0!==n?n:void 0});if(!ex||ek)return(0,r.jsx)(i.Fragment,{children:a},t)})]},"About"):(0,r.jsx)(e$,{name:"Writing",hasMultipleTabs:e4,children:(0,r.jsx)(w.$0,{id:E().writingTab,print:!0,children:(0,r.jsx)(eI,{data:e2})})},"Writing")}),ex&&!ek?(0,r.jsxs)("div",{className:E().blockedProfileStatus,children:[(0,r.jsx)(g.Z,{}),(0,r.jsxs)("div",{className:E().blockedInterstitial,children:["You blocked ",e2.displayName,(0,r.jsx)("span",{children:(0,r.jsx)(_.Z,{onClick:()=>eE(!0),label:"View anyway"})})]})]}):null]})},eB=e=>{let t;if(e.openGraphData){let{pageTitle:n,pageDescription:i,openGraphImage:a}=e.openGraphData;t=(0,r.jsxs)(W(),{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{name:"description",content:i}),(0,r.jsx)("meta",{property:"og:image",content:a}),(0,r.jsx)("meta",{property:"og:title",content:n}),(0,r.jsx)("meta",{property:"og:description",content:i}),(0,r.jsx)("meta",{property:"og:site_name",content:"Read.cv"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:n}),(0,r.jsx)("meta",{name:"twitter:description",content:i}),(0,r.jsx)("meta",{name:"twitter:image",content:a})]})}else!0===e.notHomepage&&(t=(0,r.jsxs)(W(),{children:[(0,r.jsx)("title",{children:"Loading..."}),(0,r.jsx)("meta",{name:"description",content:"Mindful professional profiles"}),(0,r.jsx)("meta",{property:"og:title",content:"CV"}),(0,r.jsx)("meta",{property:"og:description",content:"Mindful professional profiles"}),(0,r.jsx)("meta",{property:"og:site_name",content:"Read.cv"})]}));return(0,r.jsx)(eZ,{children:t})},eq=()=>(0,r.jsx)(X.Z,{}),eZ=e=>(0,r.jsx)(s.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.D_,className:H().content,id:E().profile,children:e.children});function ez(e){let t="";return e.title&&(t+=e.title),e.location&&(e.title&&(t+=" in "),t+=e.location),e.pronouns&&(t.length>0&&(t+=", "),t+=e.pronouns),t}let eH=e=>{switch(e){case"Projects":break;case"Side Projects":return"side-projects";case"Exhibitions":return"exhibitions";case"Speaking":return"talks";case"Writing":return"articles";case"Awards":return"awards";case"Features":return"features";case"Work Experience":return"work-experience";case"Volunteering":return"volunteering";case"Education":return"education";case"Certifications":return"certifications"}return"projects"},eK=e=>{let t,n;let a=(0,i.useContext)(eb.Z);if(e.user.website){let n=e.user.website.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").replace(/\/$/,"");t=(0,r.jsx)("div",{"data-custom-domain":!a.onMainDomain,className:E().link,children:(0,r.jsx)(u.Z,{to:(0,l.ZP)(e.user.website),hover:!1,type:"external",children:n})})}return e.user.supporterInfo&&"supporter"===e.user.supporterInfo.tier&&!e.user.verified?n=(0,r.jsx)(ex.Z,{compress:null!==e.user.website,type:"supporter"}):e.user.verified&&(n=(0,r.jsx)(ex.Z,{compress:null!==e.user.website,type:"verified"})),(0,r.jsxs)("div",{className:E().profileInfo,children:[(0,r.jsx)("div",{className:E().displayName,children:(0,r.jsx)("h2",{children:(0,r.jsx)(Z,{user:{username:e.user.username,displayName:e.user.displayName}})})}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:(0,r.jsx)("p",{children:ez(e.user)})}),n||t?(0,r.jsxs)("div",{className:E().badges,children:[t,a.onMainDomain?n:null]}):null]})},eW=e=>{let{onClick:t,editing:n,children:a}=e,l=(0,i.useContext)(T.Z);return(0,r.jsx)("div",{className:E().tooltipWrap,children:(0,r.jsx)(p.Z,{string:"Set status",children:(0,r.jsx)(s.E.button,{initial:{opacity:1,scale:1},animate:{opacity:1,scale:1},transition:o.O9,onClick:t,"data-active":n,className:E().statusButton,children:a||(0,r.jsx)(m,{fill:l.grey2})})})})},e$=e=>{let{hasMultipleTabs:t,name:n,children:i}=e;return t?(0,r.jsx)(s.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:o.D_,className:E().tabWrap,children:i},n):(0,r.jsx)(r.Fragment,{children:i})};var eG=eV},56870:function(e,t,n){"use strict";n.d(t,{Z:function(){return q},G:function(){return U}});var r=n(24246),i=n(27378),a=n(23728),s=n(3420),o=n(5678),l=n(63018),u=n(6015),c=n(12532),d=n(9575),h=n(45080),f=n.n(h),p=n(20233),m=n(22119),g=n(46605),v=n(87295);let y=e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M11.2927 19.1631C11.824 19.1631 12.2068 18.7725 12.2068 18.249V15.2646H12.4333C15.4646 15.2646 17.3708 16.0303 18.738 18.585C19.0115 19.085 19.3708 19.1631 19.699 19.1631C20.113 19.1631 20.5037 18.7881 20.5037 18.1162C20.5037 12.3428 18.0583 8.74121 12.4333 8.74121H12.2068V5.78809C12.2068 5.26465 11.824 4.83496 11.2771 4.83496C10.8943 4.83496 10.6365 4.99902 10.2224 5.38965L4.05835 11.1553C3.75366 11.4443 3.65991 11.7334 3.65991 11.999C3.65991 12.2568 3.76147 12.5537 4.05835 12.835L10.2224 18.6553C10.5974 19.0068 10.9099 19.1631 11.2927 19.1631Z",fill:e.fill?e.fill:"#111"})});var _=n(4745),b=n(63073),x=n(3321),w=n(88231),k=n(2301),E=n(37355),S=n(11098),C=n(97678),T=n(9742),I=n(81344),R=n.n(I),j=n(7952),A=n(45515);let D=(0,i.lazy)(()=>Promise.all([n.e(9774),n.e(7705),n.e(8642),n.e(1217),n.e(8946),n.e(2093),n.e(2668),n.e(3287),n.e(5498),n.e(6166),n.e(3660),n.e(8312),n.e(7825)]).then(n.bind(n,98312))),P=e=>{var t;let n,a,o,{recipient:l,user:u,children:c,disableReply:d,replyContent:h,highlightContent:f,draggable:I}=e,P=(0,b.y)("admin"),N=(0,i.useContext)(x.St),L=(0,i.useContext)(S.Z),M=(0,i.useContext)(C.Z),O=(0,i.useContext)(s.Z),[F,U]=(0,i.useState)(!1),[V,B]=(0,i.useState)(!1),[q,Z]=(0,i.useState)(),[z,H]=(0,i.useState)({opacity:0,y:-4}),[K,W]=(0,i.useState)(!1),[$,G]=(0,i.useState)(!1),[Y,Q]=(0,i.useState)(!1),[X,J]=(0,i.useState)(0),[ee,et]=(0,i.useState)(!1),en=(0,i.useContext)(j.Z),er=(0,A.Z)(),ei=(0,E.d)(),ea=(0,i.useCallback)(e=>{H({opacity:0,y:-100}),B(!0),U(!1),Z(e)},[]);(0,i.useEffect)(()=>{F&&H({opacity:0,y:4})},[F]),(0,i.useEffect)(()=>{V&&setTimeout(()=>{B(!1)},1e3)},[V]),(0,i.useEffect)(()=>{var e;if(!l)return;let t=null==M?void 0:null===(e=M.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(l));t?G(t):G(!1)},[l,M]);let es=null==L?void 0:null===(t=L.followers)||void 0===t?void 0:t.some(e=>e.uid.includes(u.uid));if(d||$||!l||N&&N.uid===l&&!P||N&&N.uid===l&&ei||"Following"===u.replyPrivacy&&!es&&!P||"Nobody"===u.replyPrivacy&&!P||!1===en.onMainDomain)return(0,r.jsx)(r.Fragment,{children:c});ee&&(n=(0,r.jsx)(T.Z,{newProfile:!0,cancel:()=>et(!1)})),V&&(a=(0,r.jsx)(w.Z,{emoji:q})),K&&(o=(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(r.Fragment,{}),children:(0,r.jsx)(D,{highlightContent:f,uid:l,cancel:()=>W(!1)})}));let eo=N&&N.uid!==l&&"Everyone"===u.replyPrivacy||N&&N.uid!==l&&!u.replyPrivacy||N&&N.uid!==l&&"Following"===u.replyPrivacy&&es||!N;return(0,r.jsxs)(p.E.div,{drag:!!ei&&!!I&&!!eo&&"x",dragConstraints:{left:0,right:0},dragMomentum:!1,dragElastic:{top:0,left:.5,right:0,bottom:0},onDragStart:()=>Q(!0),onDragEnd:()=>{X<-100&&setTimeout(()=>{N?U(!0):et(!0)},1),Q(!1),J(0)},onDrag:(e,t)=>{J(t.offset.x)},className:R().replyContainerWrap,"data-confirm":V,"data-reply":F,"data-admin":P,"data-noreply":!eo,"data-desktop":!ei,"data-selfie":N&&N.uid===l,children:[c,ei?(0,r.jsx)(m.M,{children:a}):null,(0,r.jsxs)("div",{style:{opacity:Y?1:void 0},className:R().replyContainer,children:[eo?(0,r.jsxs)(v.Z,{component:(0,r.jsx)(k.Z,{context:"ReplyContainer",numberOfReactions:"all",user:u,onSend:ea,loggedOutAction:()=>{U(!1),et(!0)},replyContent:h,clearOnEnter:!1,focusOnMount:!ei}),width:!er&&window.innerWidth<436?window.innerWidth-16:420,radius:16,open:F,close:()=>U(!1),exit:z,children:[(0,r.jsx)(g.Z,{onClick:()=>{N?U(!0):et(!0)},visualStyle:"light",icon:(0,r.jsx)(y,{fill:X>=-100?O.grey3:O.grey1})}),ei?null:(0,r.jsx)(m.M,{children:a})]}):null,P&&!ei?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:R().spacer}),(0,r.jsx)(m.M,{children:o}),(0,r.jsx)(g.Z,{onClick:()=>W(!0),visualStyle:"light",icon:(0,r.jsx)(_.Z,{fill:O.grey3})})]}):null,(0,r.jsx)(m.M,{children:n})]})]})};var N=n(43284),L=n(38336),M=n(90005),O=n.n(M),F=n(97018);n(2417);let U=n(71016),V=e=>{var t,n,l,d,h;let p,m,g,v,y,_,b,x,w;let k=(0,i.useContext)(s.Z);(0,i.useContext)(j.Z);let E="feed"===e.context||"inbox"===e.context,[S,C]=(0,i.useState)([]);if(e.company&&e.title?p=(0,r.jsxs)("span",{children:[e.preposition," ",e.company]}):e.company&&(p=(0,r.jsx)("span",{children:e.company})),e.location&&(m=(0,r.jsx)("div",{className:f().location,children:e.location})),e.description&&(g=(0,r.jsx)("div",{className:f().description,children:(0,r.jsx)(L.Z,{type:"profileItem",content:e.description})})),e.link){let t=(0,c.ZP)(e.link);y=(0,r.jsx)("div",{className:f().title,children:(0,r.jsxs)("div",{children:[(0,r.jsxs)(o.Z,{to:t,type:"external",className:f().titleLink,children:[e.title,p]}),(0,r.jsxs)("span",{style:{whiteSpace:"nowrap"},children:["\uFEFF",(0,r.jsx)(u.Z,{fill:k.grey1})]})]})})}else y=(0,r.jsxs)("div",{children:[e.title,p]});e.collaborators&&e.collaborators.length>0&&(v=(0,r.jsx)("div",{className:f().collaborators,style:{gridTemplateColumns:E?"repeat(auto-fill,minmax(18px,18px))":""},children:e.collaborators.map(e=>(0,r.jsx)(B,{uid:e,collaboratorSize:E?18:24},e))})),(0,i.useEffect)(()=>{var t,n;if(e.isInEditor||e.graphqlData||!["feed","inbox"].includes(e.context))return;let r=null!==(n=null===(t=e.project)||void 0===t?void 0:t.attachments)&&void 0!==n?n:[],i=[];for(let e of r)"page"===e.type&&i.push(e.payload.docID);Promise.all(i.map(t=>(0,F.QT)((0,F.JU)(a.db,"users",e.user.uid,"pages",t)))).then(e=>{let t=[];for(let a of r)if("page"===a.type){var n,i;(null===(n=null===(i=e.find(e=>e.id===a.payload.docID))||void 0===i?void 0:i.data())||void 0===n?void 0:n.pageStatus)==="published"&&t.push(a)}else t.push(a);C(t)})},[null===(t=e.project)||void 0===t?void 0:t.attachments]),e.graphqlData&&e.graphqlData.attachments&&e.graphqlData.attachments.length>0?b=(0,r.jsx)("div",{className:f().images,children:(0,r.jsx)(N.Z,{context:e.context,user:e.user,attachments:e.graphqlData.attachments})}):(e.isInEditor||S)&&(b=(0,r.jsx)("div",{className:f().images,children:(0,r.jsx)(N.Z,{context:e.isInEditor?"editor":e.context,onClick:e.editorAction,user:e.user,rawAttachments:e.isInEditor?null!==(d=null===(l=e.project)||void 0===l?void 0:l.attachments)&&void 0!==d?d:[]:S,attachments:[]})}));let T={type:"profile-item",data:{docPath:null!==(h=e.docPath)&&void 0!==h?h:""}};if("highlight"===e.context)return(0,r.jsxs)(r.Fragment,{children:[y,g,v]});"inbox"===e.context?x=f().inInbox:"feed"===e.context?x=f().inFeed:e.isInEditor&&(x=f().inForm),w=e.isInEditor?(0,r.jsxs)("div",{className:f().innerExperienceContent,"data-hidden":e.hidden,children:[y,m,g,e.newPageButton,_,b,v]}):(0,r.jsxs)(r.Fragment,{children:[y,m,g,e.newPageButton,_,b,v]});let I=(0,r.jsxs)("div",{className:O()(f().experience,x),"data-flag":"profileItem",children:[(0,r.jsx)("div",{className:f().duration,children:(0,r.jsx)("span",{children:e.duration})}),(0,r.jsxs)("div",{className:f().experienceContent,children:[w,e.children]})]});return e.isInEditor?I:(0,r.jsx)(P,{user:e.user,draggable:!0,recipient:null===(n=e.user)||void 0===n?void 0:n.uid,disableReply:e.isInEditor||"profile"!==e.context,replyContent:T,highlightContent:T,children:I})},B=e=>{let[t,n]=(0,i.useState)(""),[s,u]=(0,i.useState)(""),[c,h]=(0,i.useState)("");return(0,i.useEffect)(()=>{(0,F.QT)((0,F.JU)(a.db,"users",e.uid)).then(e=>{let t=e.data();if(!t){u("Deleted user");return}n(t.photoURL),u(t.displayName),h(t.username)})},[]),(0,r.jsx)(d.Z,{string:s,children:(0,r.jsx)(o.Z,{to:"/"+c,hover:!1,children:(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{size:e.collaboratorSize,showStatus:!1,path:t,name:s})})})})};V.defaultProps={preposition:" at",isInEditor:!1};var q=V},18955:function(e,t,n){"use strict";n.d(t,{e:function(){return E}});var r=n(24246),i=n(31542),a=n(20233),s=n(22119),o=n(75276),l=n(27378),u=n(71946),c=n(37355),d=n(92401),h=n(86992),f=n(67447),p=n(74756),m=n(72880),g=n.n(m),v=n(34955),y=n.n(v),_=n(90005),b=n.n(_),x=n(46605),w=n(76201),k=n(24263);let E=e=>{let{images:t,currentImage:n,close:o,context:d,muted:m,hasAudio:v}=e,[y,_]=(0,l.useState)(!1),[b,x]=(0,l.useState)(n),w=(0,l.useRef)(null),k=(0,p.Z)();(0,l.useEffect)(()=>(document.body.style.transform="none",function(){document.body.style.removeProperty("transform")}),[k]),(0,l.useEffect)(()=>{setTimeout(()=>{_(!0)},600),(0,c.Z)()&&w.current&&(w.current.scrollLeft=-(window.outerWidth*n))},[]),(0,l.useEffect)(()=>{(0,c.Z)()&&w.current&&(w.current.scrollLeft=window.outerWidth*n)},[w.current]);let E=e=>{x(Math.round(e.currentTarget.scrollLeft/(e.currentTarget.scrollWidth-e.currentTarget.offsetWidth)*(t.length-1)))},I=()=>{b===t.length-1?x(0):x(b+1)},R=()=>{0===b?x(t.length-1):x(b-1)},j=()=>{_(!1),setTimeout(()=>{o()},600)},A=e=>{"Escape"===e.code?j():39===e.keyCode?I():37===e.keyCode&&R()};(0,u.Z)("keydown",A);let D=t.filter((e,n)=>n===b||n===(b-1+t.length)%t.length||n===(b+1)%t.length);return i.createPortal((0,r.jsxs)(a.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:h.D_,className:g().lightbox,children:[D.map(e=>"image"===(0,f.$)(e.type)?(0,r.jsx)("link",{rel:"preload",href:S(e.src),as:"image"},e.src):(0,r.jsx)("link",{rel:"preload",href:C(e.src),as:"video",type:e.type},e.src)),(0,r.jsx)(s.M,{children:y?(0,r.jsxs)(a.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:h.D_,className:g().inner,children:[(0,r.jsx)("div",{className:g().images,"data-mobile":(0,c.Z)(),ref:w,onScroll:e=>E(e),children:(0,r.jsx)("div",{className:g().mobileScrollView,children:t.map((e,n)=>(0,r.jsx)(T,{close:j,showNav:t.length>1&&!(0,c.Z)(),next:I,previous:R,image:e,selected:n===b,showImage:n===b||(0,c.Z)()&&1>=Math.abs(n-b),context:d,muted:m,hasAudio:v},e.src))})}),"posts"!==d?(0,r.jsxs)("div",{className:g().controls,children:[(0,r.jsx)("button",{className:g().closeButton,onClick:()=>j(),children:"Close"}),t.length>1?(0,r.jsxs)("div",{className:g().count,children:[b+1," / ",t.length]}):null]}):null]}):null})]}),k)};function S(e){let t=e.includes(".gif")?1024:2048;return(0,d.Zw)(e,{mode:d.yX.Fit,width:t,height:t})}function C(e){return(0,d.LP)(e,d.UX.Best)}let T=e=>{var t;let n,i,a,{image:s,selected:u,showImage:h,showNav:p,next:m,previous:v,close:_,context:E,muted:T,hasAudio:I}=e,R=(0,l.useRef)(null),[j,A]=(0,l.useState)(window.innerHeight/window.innerWidth),[D,P]=(0,l.useState)(window.innerHeight),[N,L]=(0,l.useState)(null==T||T),M=s.height/s.width;(0,l.useEffect)(()=>{O()},[]);let O=()=>{if(!R.current)return;let e=R.current.getBoundingClientRect();A(e.height/e.width),P(e.height)},F=()=>{O()};(0,o.Z)({ref:R,onResize:F}),n=j>=M?{width:"100%",paddingBottom:100*M+"%"}:{height:"100%",width:D*(s.width/s.height)+"px"};let U=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"".concat(g().navButton," ").concat(g().next),onClick:()=>m(),children:"next"}),(0,r.jsx)("button",{className:"".concat(g().navButton," ").concat(g().previous),onClick:()=>v(),children:"previous"})]});(0,c.Z)()||(i=(0,r.jsx)("div",{className:g().backdrop,onClick:()=>{_()}}));let V="";return"image"===(0,f.$)(s.type)&&(V="teams"===E?function(e){let t=e.includes(".gif")?630:2048;return(0,d.Zw)(e,{mode:d.yX.Fit,width:t,height:t})}(s.src):S(s.src)),"posts"===E&&"video"===(0,f.$)(s.type)&&(a=(0,r.jsx)(x.Z,{className:b()(y().overlayButton,!I&&y().disabled,y().lightbox),onClick:e=>{if(!I){e.stopPropagation();return}L(!N),e.stopPropagation()},icon:(0,r.jsx)("div",{style:{opacity:I?1:.7},children:N?(0,r.jsx)(w.Z,{fill:"#fff"}):(0,r.jsx)(k.Z,{fill:"#fff"})})})),(0,r.jsxs)("div",{ref:R,className:g().image,"data-selected":u,children:[a,i,(0,r.jsxs)("div",{onClick:"posts"===E?()=>_():void 0,className:g().imgWrap,style:n,children:[p?U:null,h?"image"===(0,f.$)(s.type)?(0,r.jsx)("img",{src:V}):(0,r.jsx)("video",{src:"posts"===E?(t=s.src,(0,d.LP)(t,d.UX.Posts)):C(s.src),autoPlay:!0,loop:!0,muted:N,playsInline:!0}):null]})]})}},62130:function(e,t,n){"use strict";n.d(t,{$0:function(){return g},VQ:function(){return m},ns:function(){return p},pR:function(){return v}});var r=n(24246),i=n(27378),a=n(20233),s=n(86992),o=n(56870),l=n(72916),u=n(21990),c=n(84530),d=n.n(c),h=n(84285),f=n(2417);let p=e=>{var t,n,a;let{canEdit:s,collection:l,data:u,title:c,user:p}=e,m=(null!==(a=null===(t=u.userByUsername)||void 0===t?void 0:t.allProfileItems)&&void 0!==a?a:[]).filter(e=>e.collection===l&&!0!==e.content.hidden).sort((e,t)=>{let n=e.content,r=t.content,i="endYear"in n?n.endYear:"year"in n?n.year:void 0,a="endYear"in r?r.endYear:"year"in r?r.year:void 0;"certifications"===l&&(i=n.startYear,a=r.startYear);let s=n.order,o=r.order;if(i===a){if(s>o)return 1;if(s<o)return -1}else if(i>a)return -1;else if(i<a)return 1;return 0});if(0===m.length)return null;let v=(0,h.B)(c),_=null===(n=u.userByUsername)||void 0===n?void 0:n[v];return(0,r.jsx)(g,{id:l,print:!1!==_||!s,children:m.map((e,t)=>{let n=y({docPath:e.id,collection:e.collection,profileItem:e.content,context:"profile",user:p,graphqlData:(0,f.readInlineData)(o.G,e)});return 0===t?(0,r.jsxs)("div",{className:d().breakInside,children:[(0,r.jsx)("h3",{children:c}),n]},e.id):(0,r.jsx)(i.Fragment,{children:n},e.id)})})},m=e=>{var t,n,a;let{canEdit:s,data:o}=e,u=(null!==(a=null===(t=o.userByUsername)||void 0===t?void 0:t.allContactItems)&&void 0!==a?a:[]).slice().sort((e,t)=>e.order>t.order?1:e.order<t.order?-1:0);return 0===u.length?null:(0,r.jsx)(g,{id:"contact",print:(null===(n=o.userByUsername)||void 0===n?void 0:n.printContact)!==!1||!s,children:u.map((e,t)=>{let n=(0,r.jsx)(l.Z,{platform:e.contactType,platformLink:e.contactValue,channelName:e.channelName,channelURL:e.channelURL});return 0===t?(0,r.jsxs)("div",{className:d().breakInside,children:[(0,r.jsx)("h3",{children:"Contact"}),n]},e.id):(0,r.jsx)(i.Fragment,{children:n},e.id)})})},g=e=>(0,r.jsx)(a.E.section,{"data-print":e.print,id:e.id,initial:{opacity:0},animate:{opacity:1},transition:s.D_,children:e.children});function v(e,t,n){return y(function(e,t,n){let r=e.ref.path,i=e.ref.parent.id;return{docPath:r,profileItem:e.data(),collection:i,context:t,user:n}}(e,t,n))}function y(e){let{docPath:t,profileItem:n,collection:i,context:a,user:s,graphqlData:l}=e,c={docPath:t,user:s,context:a,graphqlData:l};if("projects"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,duration:n.year,title:n.title,company:n.client,link:n.URL,project:n,collaborators:n.collaborators,description:n.description});if("side-projects"===i)return(0,r.jsx)(o.Z,{...c,duration:n.year,slug:n.slug,title:n.title,company:n.client,link:n.URL,project:n,collaborators:n.collaborators,description:n.description});if("exhibitions"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,duration:n.year,location:n.location,title:n.exhibitionTitle,company:n.venue,link:n.URL,collaborators:n.collaborators,description:n.description});if("talks"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,duration:n.year,location:n.location,title:n.talkTitle,company:n.event,link:n.URL,collaborators:n.collaborators,description:n.description});if("articles"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,duration:n.year,title:n.articleTitle,company:n.publisher,link:n.URL,collaborators:n.collaborators,description:n.description,preposition:","});if("awards"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,duration:n.year,title:n.awardTitle,company:n.presenter,link:n.URL,collaborators:n.collaborators,description:n.description,preposition:" from"});if("features"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,duration:n.year,title:n.featureTitle,company:n.publisher,link:n.URL,collaborators:n.collaborators,description:n.description,preposition:" on"});else if("work-experience"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,company:n.company,location:n.location,link:n.URL,title:n.title,duration:n.startYear+" — "+n.endYear,collaborators:n.coworkers,description:n.description});else if("volunteering"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,company:n.company,location:n.location,link:n.URL,title:n.title,duration:n.startYear+" — "+n.endYear,collaborators:n.coworkers,description:n.description});else if("education"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,company:n.school,location:n.location,link:n.URL,title:n.degree,duration:"0000"===n.startYear||"0000"===n.endYear?"":n.startYear+" — "+n.endYear,collaborators:n.classmates,description:n.description});else if("certifications"===i)return(0,r.jsx)(o.Z,{...c,slug:n.slug,project:n,company:n.company,link:n.URL,title:n.title,duration:n.startYear+(n.endYear!==u.f?" — "+n.endYear:""),description:n.description,preposition:" from"});return null}},43284:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(24246),i=n(22119),a=n(75276),s=n(27378),o=n(37355),l=n(92401),u=n(67447),c=n(13171),d=n.n(c),h=n(43407),f=n.n(h);let p=e=>{let{scrollview:t,innerChild:n,inlineStyle:i}=e,[o,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(0),d=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!t.current)return;let e=t.current,n=e=>{t.current&&c(e=>e+1)};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)},[]);let h=()=>{let e=t.current;e&&e.scrollWidth>e.offsetWidth?l(!0):l(!1),c(e=>e+1)};(0,a.Z)({ref:t,onResize:h}),(0,a.Z)({ref:n,onResize:h});let p=t.current?t.current.offsetWidth/t.current.scrollWidth:0,m=d.current?d.current.offsetWidth:0,g=t.current?t.current.scrollLeft/(t.current.scrollWidth-t.current.offsetWidth):0;return o?(0,r.jsx)("div",{style:i,children:(0,r.jsx)("div",{ref:d,className:f().track,children:(0,r.jsx)("div",{className:f().bar,style:{width:100*p+"%",transform:"translateX("+(1-p)*m*g+"px)"}})})}):null};var m=n(18955),g=n(88675),v=n(22604),y=n(2417),_=n(46605),b=n(92886),x=n(1855);let w=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.697 3.76a.75.75 0 000 1.06l2.43 2.43H3.75a.75.75 0 000 1.5h6.381l-2.434 2.434a.75.75 0 001.06 1.061l3.713-3.712a.75.75 0 000-1.061L8.757 3.76a.75.75 0 00-1.06 0z",fill:e.fill?e.fill:"#111"})}),k=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8.303 12.24a.75.75 0 000-1.06l-2.43-2.43h6.377a.75.75 0 000-1.5H5.869l2.434-2.434a.75.75 0 00-1.06-1.061L3.53 7.467a.75.75 0 000 1.061l3.713 3.712a.75.75 0 001.06 0z",fill:e.fill?e.fill:"#111"})});var E=n(7952),S=n(32315);let C=n(41229),T=["editor","form","feed","inbox"],I=e=>{let t,{attachments:n,rawAttachments:c,onClick:h,context:f,user:I,onAction:R}=e,[j,A]=(0,s.useState)(!1),[D,P]=(0,s.useState)(0),N=90*(21/9),L=90*(3.8/9),M=(0,s.useRef)(null),O=(0,s.useRef)(null),[F,U]=(0,s.useState)(),V=(0,s.useContext)(E.Z),B=(0,S.S1)(M,{rootMargin:"50%",root:"undefined"==typeof document?null:document.body}),q=(null==B?void 0:B.isIntersecting)||"editor"===f||"form"===f;(0,s.useEffect)(()=>{W()},[]);let[Z,z]=(0,g.G)({direction:"horizontal",friction:.05,scrollMode:"native",textSelection:!1,onUpdate:e=>{M.current&&(M.current.scrollLeft=e.position.x)},shouldScroll:()=>!(0,o.Z)()}),H=(0,s.useCallback)(e=>{M.current=e,Z(e),W()},[Z]),K=()=>{z&&M.current&&z.updateMetrics()},W=()=>{K(),M.current&&U(M.current.offsetWidth-24)};(0,a.Z)({ref:M,onResize:W}),(0,a.Z)({ref:O,onResize:W});let $=e=>e<L?L:e>N?N:e,G=[],Y=new Map;if(T.includes(f))G=null!=c?c:[];else for(let e of n){var Q;let t=(0,y.readInlineData)(C,e);if("ProfileItemMediaAttachment"===t.__typename&&G.push({type:"media",payload:{data:t.data}}),"ProfileItemCaseStudyAttachment"===t.__typename&&void 0!==(null===(Q=t.caseStudy)||void 0===Q?void 0:Q.slug)&&"published"===t.caseStudy.pageStatus){let e=t.caseStudy.id.split("/")[3];t.caseStudy.slug&&Y.set(e,t.caseStudy.slug),G.push({type:"page",payload:{docID:e}})}}let X=G.map(e=>"media"===e.type?e.payload.data:void 0).filter(x.U);return 0===G.length?null:(j&&X&&(t=(0,r.jsx)(m.e,{currentImage:D,images:X,close:()=>A(!1)})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.M,{children:t}),(0,r.jsxs)("div",{onPointerDownCapture:e=>{M.current&&M.current.offsetWidth<M.current.scrollWidth&&e.stopPropagation()},className:d().profileItemGallery,style:{paddingTop:90},children:[(0,r.jsx)("div",{ref:H,"data-context":f,className:d().scrollableArea,children:(0,r.jsx)("div",{className:d().images,ref:O,style:{height:90},children:G.map((e,t)=>{let n="form"===f?(0,r.jsxs)("div",{className:d().editorActions,children:[(0,r.jsxs)("div",{className:d().moveButtons,children:[0===t?null:(0,r.jsx)(_.Z,{className:d().overlayButton,icon:(0,r.jsx)(k,{fill:"#fff"}),onClick:()=>{var e,n;R&&R("moveLeft",t);let r=null===(e=O.current)||void 0===e?void 0:e.children[t-1],i=null===(n=O.current)||void 0===n?void 0:n.children[t];if(r&&i&&M.current){let e=i.offsetLeft-r.offsetLeft;M.current.scrollLeft-=e}}}),t===G.length-1?null:(0,r.jsx)(_.Z,{className:d().overlayButton,icon:(0,r.jsx)(w,{fill:"#fff"}),onClick:()=>{var e,n;R&&R("moveRight",t);let r=null===(e=O.current)||void 0===e?void 0:e.children[t+1],i=null===(n=O.current)||void 0===n?void 0:n.children[t];if(r&&i&&M.current){let e=r.offsetLeft+r.offsetWidth-(i.offsetLeft+i.offsetWidth);M.current.scrollLeft+=e}}})]}),(0,r.jsx)(_.Z,{className:d().overlayButton,icon:(0,r.jsx)(b.Z,{fill:"#fff"}),onClick:()=>R&&R("delete",t)})]}):null;if("page"===e.type){var i;let t=null!==(i=Y.get(e.payload.docID))&&void 0!==i?i:e.payload.docID,a=V.onMainDomain?("inbox"==f?V.canonicalPathToMainDomain:"")+"/"+I.username+"/"+t:V.canonicalPathToDomain+t;return(0,r.jsx)(v.Z,{context:"editor",action:h,width:52,height:66,uid:I.uid,slug:"",docID:e.payload.docID,cardWidth:G.length<2?void 0:null!=F?F:void 0,link:"form"===f||"editor"===f?void 0:a,draggable:G.length>1,showSnippet:!0,children:n},e.payload.docID)}if("media"===e.type){let i;let a=e.payload.data;if(q){if("image"===(0,u.$)(a.type)){let e=(0,l.NR)(a.src,{mode:l.yX.Fill,width:a.width/a.height*90,height:90}),t=e.find(e=>"1x"===e.description).url;i=(0,r.jsx)("img",{src:t,srcSet:e.map(e=>"".concat(e.url," ").concat(e.description)).join(", ")})}else i=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:d().safariFix}),(0,r.jsx)("video",{src:(0,l.LP)(a.src,l.UX.ThumbnailLarge),autoPlay:!0,loop:!0,muted:!0,playsInline:!0})]})}return(0,r.jsxs)("div",{onClick:()=>{if(h)h();else{if("form"===f||"editor"===f)return;P(t),A(!0)}},className:d().image,style:{width:$(a.width/a.height*90)},children:[n,i]},a.id)}})})}),(0,r.jsx)(p,{inlineStyle:{width:"100%",height:2,marginTop:8},innerChild:O,scrollview:M})]})]}))};var R=I},20988:function(e,t,n){"use strict";n.d(t,{Cb:function(){return et},ZP:function(){return es},fS:function(){return ee}});var r=n(24246),i=n(27378),a=n(20233),s=n(86992),o=n(23728),l=n(5678),u=n(22119),c=n(71946),d=n(46605),h=n(51056),f=n(9575),p=n(9742),m=n(39245),g=n(81741),v=n(29107),y=n(3420),_=n(44967),b=n(27097),x=n.n(b),w=n(30868),k=n(63018),E=n(25777),S=n(2417),C=n(44228),T=n(56838),I=n(3932),R=n(97018),j=n(57391),A=n(14043),D=n(38143),P=n(45777);let N=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5.25a3.016 3.016 0 100 6.033 3.016 3.016 0 000-6.033zM9.484 8.266a4.516 4.516 0 119.032 0 4.516 4.516 0 01-9.032 0zM14 15.75c-2.572 0-4.927.92-6.758 2.448a1.342 1.342 0 000 2.078A10.503 10.503 0 0014 22.724c2.572 0 4.927-.92 6.758-2.448a1.342 1.342 0 000-2.078A10.503 10.503 0 0014 15.75zm-7.719 1.297A12.003 12.003 0 0114 14.25c2.936 0 5.629 1.051 7.72 2.797a2.842 2.842 0 010 4.38A12.003 12.003 0 0114 24.224a12.003 12.003 0 01-7.72-2.797 2.842 2.842 0 01.001-4.38z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},L=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.68 22.696L6.84 21.399a2.75 2.75 0 01-1.944-3.368L8.132 5.957A2.75 2.75 0 0111.5 4.013L21.16 6.6a2.75 2.75 0 011.944 3.368l-1.944 7.253a5.25 5.25 0 01-2.446 3.188l-3.05 1.761a5.25 5.25 0 01-3.984.525zm-5.335-4.277a1.25 1.25 0 00.884 1.531l4.588 1.23.971-3.622a2.75 2.75 0 013.368-1.945l3.622.97 1.877-7.002a1.25 1.25 0 00-.884-1.531L11.11 5.46a1.25 1.25 0 00-1.53.884L6.345 18.42zm12.841-.441l-3.418-.916a1.25 1.25 0 00-1.531.884l-.916 3.418a3.75 3.75 0 001.592-.492l3.051-1.761a3.75 3.75 0 001.222-1.133z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var M=n(86677);let O=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.03 8.47a.75.75 0 010 1.06l-3.72 3.72h9.19a.75.75 0 010 1.5h-9.19l3.72 3.72a.75.75 0 11-1.06 1.06l-5-5a.75.75 0 010-1.06l5-5a.75.75 0 011.06 0z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var F=n(87295),U=n(73941),V=n(9186),B=n(39886),q=n(23681),Z=n(26952);let z=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.841 21.4l9.659 2.587a2.75 2.75 0 003.368-1.945l3.236-12.074A2.75 2.75 0 0021.16 6.6L11.5 4.013a2.75 2.75 0 00-3.368 1.944L4.897 18.032A2.75 2.75 0 006.841 21.4zm4.604-13.461a.75.75 0 01.292.019l-.001.002L18.98 9.9a.749.749 0 01-.088 1.478.75.75 0 01-.299-.03l-7.245-1.94a.75.75 0 01.097-1.47zm-1.106 3.245a.75.75 0 01.557-.086l7.244 1.94a.75.75 0 01-.388 1.45l-7.245-1.942a.75.75 0 01-.168-1.362zm-.854 3.128a.75.75 0 00.181 1.374l4.83 1.294a.75.75 0 10.388-1.449l-4.83-1.294a.75.75 0 00-.569.075z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var H=n(8757);let K=e=>{var t,n;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 17.75a1 1 0 011-1 5 5 0 015 5 1 1 0 11-2 0 3 3 0 00-3-3 1 1 0 01-1-1zM5.25 11.75a1 1 0 011-1c6.075 0 11 4.925 11 11a1 1 0 11-2 0 9 9 0 00-9-9 1 1 0 01-1-1z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 5.75a1 1 0 011-1c9.389 0 17 7.611 17 17a1 1 0 11-2 0c0-8.284-6.716-15-15-15a1 1 0 01-1-1z",fill:null!==(n=e.fill)&&void 0!==n?n:"#111"})]})};var W=n(48210),$=n(68529),G=n(31507),Y=n(17478);let Q=e=>{var t;return(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.282 24.142c.643.172 1.816-.154 3.283-1.873 1.276-1.495 2.482-3.745 3.3-6.457l-8.119-2.175c-.647 2.757-.727 5.309-.37 7.241.41 2.223 1.264 3.092 1.906 3.264M23.923 17.435c-1.345 3.898-4.808 6.55-8.73 7-.239.027-.361-.274-.189-.442 1.717-1.665 3.306-4.44 4.31-7.792zM24.31 15.986c.785-4.047-.888-8.076-4.06-10.426-.193-.143-.45.056-.384.288.655 2.3.643 5.499-.163 8.904zM8.133 22.152c.066.232-.19.431-.384.288-3.171-2.35-4.844-6.379-4.06-10.426l4.608 1.234c-.806 3.405-.818 6.604-.164 8.904M4.077 10.565l4.608 1.234c1.004-3.351 2.593-6.127 4.31-7.792.173-.168.05-.47-.188-.442-3.922.45-7.385 3.102-8.73 7M16.718 3.858c-.643-.172-1.817.154-3.284 1.873-1.275 1.495-2.481 3.745-3.3 6.457l8.12 2.175c.647-2.757.727-5.309.37-7.241-.41-2.223-1.264-3.092-1.906-3.264",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},X=()=>null,J=n(99653),ee=n(798),et=e=>e,en=i.forwardRef((e,t)=>{var v,b,en,es,eo,el,eu,ec,ed,eh,ef,ep;let em,eg,ev,ey,e_,eb,ex,ew;let ek=(0,i.useContext)(y.Z),[eE,eS]=(0,i.useState)(!1),[eC,eT]=(0,i.useState)(!1),[eI,eR]=(0,i.useState)(!0),[ej,eA]=(0,i.useState)(0),[eD,eP]=(0,i.useState)(0);(0,i.useEffect)(()=>{eA(window.innerHeight),eP(window.innerWidth)},[]);let[eN,eL]=(0,i.useState)(!1),[eM,eO]=(0,i.useState)(!1),eF=(0,w.Z)(),[eU,eV]=(0,i.useState)(!1),[eB,eq]=(0,i.useState)(!1),[eZ,ez]=(0,i.useState)(),[eH,eK]=(0,i.useState)("-12"),eW=(0,C.O)(),[e$,eG]=(0,i.useState)();et=eG;let eY=(0,M.useRouter)(),[eQ,eX]=(0,i.useState)("/t"),[eJ,e0]=(0,i.useState)(!1),e1=(0,Z.M)(),[e2,e3]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=localStorage.getItem("last-message-thread");e&&window.innerWidth>=720&&eX("/t/"+e)},[]),(0,i.useEffect)(()=>{e.setPanel(eM)},[eM]),(0,c.Z)("resize",()=>{eA(window.innerHeight),eP(window.innerWidth),window.innerWidth<=540&&(eq(!1),eT(!1),eV(!1))}),(0,i.useEffect)(()=>{if(!e.currentUser)return;(0,S.fetchQuery)(eW,J,{uid:e.currentUser.uid}).toPromise().then(e=>{var t;e&&(eG((0,S.readInlineData)(ee,e).adminableTeams),(null===(t=e.userByUID)||void 0===t?void 0:t.algoliaUserToken)&&((0,B.$9)(e.userByUID.algoliaUserToken),(0,q.Y)(e.userByUID.algoliaUserToken)))});let t=(0,R.JU)(o.db,"users",e.currentUser.uid,"private-data","settings");return(0,R.cf)(t,e=>{e.exists()?ez(e.data()):ez(void 0)})},[e.currentUser]);let[e5,e4]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(e.currentUser)return(0,R.cf)((0,R.IO)((0,R.hJ)(o.db,"site-builder/data/templates"),(0,R.ar)("owner","==",e.currentUser.uid),(0,R.b9)(1)),e=>{e4(e.docs.length>0)})},[e.currentUser]),(0,i.useEffect)(()=>{let e=eF.split("/");"t"===e[1]&&3===e.length?eL(!0):eL(!1)},[eF]),(0,i.useEffect)(()=>{e.showSidebar||eO(!1)},[e.showSidebar]);let e6=()=>{Promise.all([n.e(9774),n.e(417),n.e(7291),n.e(8642),n.e(1217),n.e(6637),n.e(8579),n.e(780),n.e(2886),n.e(124),n.e(2668),n.e(3287),n.e(4197),n.e(3510),n.e(7222),n.e(6381),n.e(4245),n.e(3868)]).then(n.bind(n,81369)).then(e=>{X=e.default,e3(!0)})},e7=()=>{(0,E.v0)(o.H).signOut().then(()=>{setTimeout(()=>{window.location.href=window.location.origin},10)})};if(eE&&(em=(0,r.jsx)(p.Z,{newProfile:eI,cancel:()=>eS(!1)})),eC&&(eg=(0,r.jsx)(U.RelayEnvironmentProvider,{environment:eW,children:(0,r.jsx)(m.Z,{cancel:()=>eT(!1)})})),eB&&e.currentUser&&e.userData&&(ev=(0,r.jsx)(V.Z,{maxWidth:415,cancel:()=>eq(!1),children:(0,r.jsxs)("div",{className:x().settingsModal,children:[(0,r.jsx)("div",{className:x().scrollableArea,children:(0,r.jsx)(g.Z,{context:"modal",currentUser:e.currentUser,user:e.userData})}),(0,r.jsx)(G.m,{children:(0,r.jsx)(d.Z,{onClick:()=>eq(!1),label:"Done"})})]})})),null!==e.currentUser){let t;t=e.userData?e.userData.username:e.currentUser.uid,ey=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:x().profileLink,children:[(0,r.jsx)(l.Z,{type:"navlink",to:"/"+t,hover:!1,children:(0,r.jsx)(k.Z,{path:null===(v=e.userData)||void 0===v?void 0:v.photoURL,size:40,showStatus:!0,status:null===(b=e.userData)||void 0===b?void 0:null===(en=b.statusEmoji)||void 0===en?void 0:en.emoji,name:null!==(el=null===(es=e.userData)||void 0===es?void 0:es.displayName)&&void 0!==el?el:""})}),(null!=e$?e$:[]).map(e=>(0,r.jsx)(l.Z,{type:"navlink",to:"/teams/".concat(e.username),hover:!1,children:(0,r.jsx)(f.Z,{string:null!==(eu=e.teamName)&&void 0!==eu?eu:"",children:(0,r.jsx)(k.Z,{path:e.profilePhotoURL,size:40,name:e.teamName})})},e.username))]}),(0,r.jsxs)("ul",{className:x().nav,children:[(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,type:"navlink",to:"/explore",children:[(0,r.jsx)(A.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Explore"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,to:"/"+(null===(eo=e.userData)||void 0===eo?void 0:eo.username),type:"navlink",children:[(0,r.jsx)(W.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Profile"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(h.Z,{onClick:()=>{e.showCommandBar()},children:[(0,r.jsx)(D.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Search"})]})}),(0,r.jsx)("li",{"data-unread":e.unreadCount>0,children:(0,r.jsxs)(l.Z,{hover:!1,type:"navlink",to:eQ,children:[(0,r.jsx)(P.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Replies"})]})}),(0,r.jsx)("li",{"data-unread":e.badgeFollowing,children:(0,r.jsxs)(l.Z,{hover:!1,type:"navlink",to:"/following",children:[(0,r.jsx)(j.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Following"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,to:e5?"/sites/dashboard":"/sites/about",type:"navlink",children:[(0,r.jsx)(Y.Z,{fill:ek.grey2,shimmer:!0}),(0,r.jsx)("span",{children:"Sites"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,type:"external",to:"https://posts.cv",children:[(0,r.jsx)("div",{className:x().posts,children:(0,r.jsx)(L,{fill:ek.grey2})}),(0,r.jsx)("span",{children:"Posts"})]})})]}),(0,r.jsx)("div",{className:x().topButtons,children:(0,r.jsx)(d.Z,{onClick:()=>{e6()},className:x().settingsButton,label:"Manage account"})})]})}else ey=(0,r.jsxs)("ul",{className:x().nav,children:[(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,type:"navlink",to:"/explore",children:[(0,r.jsx)(A.Z,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Explore"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,to:e5?"/sites/dashboard":"/sites/about",type:"navlink",children:[(0,r.jsx)(Y.Z,{fill:ek.grey2,shimmer:!0}),(0,r.jsx)("span",{children:"Sites"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(h.Z,{onClick:()=>{eR(!1),eS(!0)},children:[(0,r.jsx)(N,{fill:ek.grey2}),(0,r.jsx)("span",{children:"Login"})]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(l.Z,{hover:!1,type:"external",to:"https://posts.cv",children:[(0,r.jsx)("div",{className:x().posts,children:(0,r.jsx)(L,{fill:ek.grey2})}),(0,r.jsx)("span",{children:"Posts"})]})})]}),e_=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:x().login,children:(0,r.jsx)(d.Z,{label:"Create a profile",onClick:()=>{eR(!0),eS(!0)}})}),(0,r.jsx)(_.Z,{context:"sidebar"})]});return(eU&&(eb=(0,r.jsx)(I.j,{modal:!0,cancel:()=>eV(!1),referrals:null!==(ec=null==eZ?void 0:eZ.referrals)&&void 0!==ec?ec:0})),e.enableCommandBar&&(ex=(0,r.jsx)(T.Z,{cancel:e.hideCommandBar})),e2&&e.currentUser&&e.userData&&(ew=(0,r.jsx)(U.RelayEnvironmentProvider,{environment:eW,children:(0,r.jsx)(V.Z,{clickToClose:!1,maxWidth:840,cancel:()=>{e3(!1)},children:(0,r.jsx)(X,{caseStudyDocID:"",showPageEditor:!1,cancel:()=>{e3(!1)},currentUser:e.currentUser,user:e.userData,defaultMasterTab:"account"})})})),eD>540)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{height:ej},id:x().compressedSidebar,children:[(0,r.jsx)(u.M,{children:e1>1?(0,r.jsx)(a.E.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:s.O9,className:x().backButton,children:(0,r.jsx)(d.Z,{onClick:()=>eY.back(),visualStyle:"light",icon:(0,r.jsx)(O,{fill:ek.grey2})})}):null}),(0,r.jsxs)("ul",{className:x().compressedSidebarNavButtons,children:[(0,r.jsx)("li",{children:(0,r.jsx)(f.Z,{string:"Explore",orientation:"right",children:(0,r.jsx)(l.Z,{hover:!1,to:"/explore",type:"navlink",children:"/explore"===eY.asPath?(0,r.jsx)(z,{fill:ek.grey1}):(0,r.jsx)(A.Z,{fill:ek.grey2})})})}),(0,r.jsx)("li",{children:(0,r.jsx)(f.Z,{string:"Profile",orientation:"right",children:e.currentUser&&e.userData?(0,r.jsx)(l.Z,{hover:!1,to:"/"+(null===(ed=e.userData)||void 0===ed?void 0:ed.username),type:"navlink",children:eY.asPath==="/"+(null===(eh=e.userData)||void 0===eh?void 0:eh.username)?(0,r.jsx)($.Z,{fill:ek.grey1}):(0,r.jsx)(W.Z,{fill:ek.grey2})}):(0,r.jsx)(d.Z,{onClick:()=>eS(!0),visualStyle:"light",icon:(0,r.jsx)(W.Z,{fill:ek.grey2})})})}),(0,r.jsx)("li",{children:(0,r.jsx)(f.Z,{string:e.currentUser&&e.userData?"Search ⌘K":"Search",orientation:"right",children:e.currentUser&&e.userData?(0,r.jsx)(d.Z,{onClick:()=>e.showCommandBar(),visualStyle:"light",icon:(0,r.jsx)(D.Z,{fill:ek.grey2})}):(0,r.jsx)(d.Z,{onClick:()=>eS(!0),visualStyle:"light",icon:(0,r.jsx)(D.Z,{fill:ek.grey2})})})}),(0,r.jsxs)("li",{children:[(0,r.jsx)(u.M,{children:e.unreadCount>0?(0,r.jsx)(ea,{}):null}),(0,r.jsx)(f.Z,{string:"Replies",orientation:"right",children:e.currentUser&&e.userData?(0,r.jsx)(l.Z,{hover:!1,to:eQ,type:"navlink",children:"t"===eY.asPath.split("/")[1]?(0,r.jsx)(H.Z,{fill:ek.grey1}):(0,r.jsx)(P.Z,{fill:ek.grey2})}):(0,r.jsx)(d.Z,{onClick:()=>eS(!0),visualStyle:"light",icon:(0,r.jsx)(P.Z,{fill:ek.grey2})})})]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(u.M,{children:e.badgeFollowing?(0,r.jsx)(ea,{}):null}),(0,r.jsx)(f.Z,{string:"Following",orientation:"right",children:e.currentUser&&e.userData?(0,r.jsx)(l.Z,{hover:!1,to:"/following",type:"navlink",children:"/following"===eY.asPath?(0,r.jsx)(K,{fill:ek.grey1}):(0,r.jsx)(j.Z,{fill:ek.grey2})}):(0,r.jsx)(d.Z,{onClick:()=>eS(!0),visualStyle:"light",icon:(0,r.jsx)(j.Z,{fill:ek.grey2})})})]}),(0,r.jsx)("li",{children:(0,r.jsx)(f.Z,{string:"Sites",orientation:"right",children:(0,r.jsx)(l.Z,{hover:!1,to:e5?"/sites/dashboard":"/sites/about",type:"navlink",children:eY.asPath.startsWith("/sites/")?(0,r.jsx)(Q,{fill:ek.grey1}):(0,r.jsx)(Y.Z,{fill:ek.grey2,shimmer:!0})})})})]}),(0,r.jsxs)("div",{className:x().profileMenu,children:[(0,r.jsx)("div",{className:x().postsLink,children:(0,r.jsx)(f.Z,{string:"Posts",orientation:"right",children:(0,r.jsx)(l.Z,{className:x().posts,hover:!1,to:"https://posts.cv",type:"external",children:(0,r.jsx)(L,{fill:ek.grey2})})})}),e.userData?(0,r.jsx)(F.Z,{width:260,alignment:"left",verticalAlignment:"top",yOffset:-6,open:eJ,close:()=>e0(!1),component:(0,r.jsxs)("div",{className:x().profilePopover,children:[(0,r.jsxs)("ul",{className:x().accountList,children:[(0,r.jsxs)("li",{onClick:()=>{var t;e0(!1),eY.push("/".concat(null===(t=e.userData)||void 0===t?void 0:t.username))},children:[(0,r.jsx)(k.Z,{path:e.userData.photoURL,size:32,showStatus:!1,name:e.userData.displayName}),(0,r.jsx)("span",{children:e.userData.displayName})]}),(null!=e$?e$:[]).map(e=>(0,r.jsxs)("li",{onClick:()=>{e0(!1),eY.push("/teams/".concat(e.username))},children:[(0,r.jsx)(k.Z,{path:e.profilePhotoURL,size:32,name:e.teamName}),(0,r.jsx)("span",{children:e.teamName})]},e.username))]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{onClick:()=>{e0(!1),eT(!0)},children:"Create a team"}),(0,r.jsx)("li",{onClick:()=>{e0(!1),e6()},children:"Manage account"}),(0,r.jsx)("li",{onClick:()=>{e0(!1),e7()},children:"Log out"})]})]}),children:(0,r.jsx)(d.Z,{onClick:()=>e0(!0),className:x().profileMenuButton,visualStyle:"light",icon:(0,r.jsx)(k.Z,{path:e.userData.photoURL,size:32,showStatus:!0,status:null===(ef=e.userData.statusEmoji)||void 0===ef?void 0:ef.emoji,name:null!==(ep=e.userData.displayName)&&void 0!==ep?ep:""})})}):null]}),(0,r.jsxs)(u.M,{children:[ex,eb,eg,em,ev,ew]})]}),(0,r.jsx)(er,{height:ej,children:e.children})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.E.div,{animate:{x:e.showSidebar?eM?"calc(100% + 32px)":"100%":-12},onUpdate:e=>eK(e.x.toString()),transition:s.D_,ref:t,id:x().sidebar,style:{height:ej,boxShadow:"-12"===eH?"none":""},children:[(0,r.jsxs)(u.M,{children:[em,ex,ew]}),(0,r.jsx)("div",{id:x().defaultSidebar,onClick:()=>{eM&&eO(!1)},children:(0,r.jsxs)("div",{children:[ey,e_]})})]}),(0,r.jsxs)(er,{height:ej,children:[(0,r.jsx)(u.M,{children:eD<=720&&eN?null:(0,r.jsx)(ei,{remove:e.showMenuButton,hide:eD<=720&&eN,showBadge:!e.showSidebar&&(e.unreadCount>0||e.badgeFollowing),onClick:e.toggleSidebar})}),e.children]})]})}),er=e=>{let{height:t,children:n}=e;return(0,r.jsx)("div",{style:{height:t},id:x().floatingButtons,children:(0,r.jsx)("div",{className:x().sidebarToggleWrap,children:n})})},ei=e=>{let{showBadge:t,onClick:n,hide:o,remove:l}=e,c=(0,i.useContext)(y.Z);return(0,r.jsx)("div",{style:{display:l?void 0:"none"},children:(0,r.jsx)(f.Z,{string:"Menu",orientation:"top",children:(0,r.jsxs)(a.E.button,{initial:{opacity:o?1:0,scale:o?1:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:s.O9,whileTap:{scale:.9},className:x().sidebarButton,id:x().sidebarToggle,onClick:n,children:[(0,r.jsx)(u.M,{children:t?(0,r.jsx)(a.E.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},transition:s.O9,className:x().badge}):null}),(0,r.jsx)(v.Z,{fill:"dark"===c.name?"#eee":"#111"})]})})})},ea=e=>{let{}=e;return(0,r.jsx)(a.E.div,{className:x().unreadDot,transition:s.O9,initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0}})};var es=en},58989:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(27378),i=n(31542);let a=r.createContext({}),s=e=>{let{children:t}=e,{container:n}=(0,r.useContext)(a);return n?i.createPortal(t,n):null};t.Z=s},81741:function(e,t,n){"use strict";n.d(t,{Z:function(){return q}});var r=n(24246),i=n(27378),a=n(22119),s=n(23728),o=n(46605),l=n(51056),u=n(71517),c=n(34707),d=n(31153),h=n(3932),f=n(31340);let p=e=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 8C13.75 11.1756 11.1756 13.75 8 13.75C4.82436 13.75 2.25 11.1756 2.25 8C2.25 4.82436 4.82436 2.25 8 2.25C11.1756 2.25 13.75 4.82436 13.75 8ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8.77272 4.54197C8.77272 4.97097 8.42072 5.30097 7.98072 5.30097C7.54072 5.30097 7.18872 4.97097 7.18872 4.54197C7.18872 4.10197 7.54072 3.77197 7.98072 3.77197C8.42072 3.77197 8.77272 4.10197 8.77272 4.54197ZM8.66272 12H7.33172V6.24697H8.66272V12Z",fill:e.fill?e.fill:"#111"})});var m=n(8009),g=n(9575),v=n(3420),y=n(63073),_=n(32345),b=n(44967),x=n(9186),w=n(71946),k=n(5678),E=n(63018),S=n(32946),C=n.n(S),T=n(97018),I=n(31507);let R=e=>{let t,{currentUser:n}=e,[l,u]=(0,i.useState)([]),[c,d]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!n)return;let e=(0,T.JU)(s.db,"users",n.uid,"private-data","blocked");return(0,T.cf)(e,e=>{var t;if(!e.exists())return;let n=e.data();u((null!==(t=null==n?void 0:n.blocked)&&void 0!==t?t:[]).map(e=>e.uid))})},[n]),c&&(t=(0,r.jsx)(j,{currentUser:n,blockedAccounts:l,cancel:()=>d(!1)})),(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Blocked accounts"}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:0===l.length?"No blocked accounts":l.length.toString()+" blocked accounts"})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{disabled:0===l.length,label:"See all",onClick:()=>d(!0)})}),(0,r.jsx)(a.M,{children:t})]})},j=e=>{let{blockedAccounts:t,cancel:n,currentUser:a}=e,[s,l]=(0,i.useState)(window.innerHeight-64);return(0,w.Z)("resize",()=>{l(window.innerHeight-64)}),(0,r.jsx)(x.Z,{cancel:n,clickToClose:!0,maxWidth:540,children:(0,r.jsxs)("div",{style:{height:s},id:C().blockedModal,children:[(0,r.jsx)(I.r,{children:"Blocked accounts"}),(0,r.jsx)("div",{className:C().blockedAccounts,children:(0,r.jsx)("ul",{children:t.map(e=>(0,r.jsx)(A,{uid:e,currentUser:a},e))})}),(0,r.jsx)(I.m,{context:"blockedModal",children:(0,r.jsx)(o.Z,{onClick:n,label:"Done"})})]})})},A=e=>{var t,n;let{uid:a,currentUser:l}=e,[u,c]=(0,i.useState)(),[d,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{(0,T.QT)((0,T.JU)(s.db,"users",a)).then(e=>{let t=e.data();t&&c(t)})},[]);let f=()=>{l&&(h(!0),(0,_.t1)({uid:a,action:"unblock"}).then(()=>{h(!1)}))};return u?(0,r.jsxs)("li",{children:[(0,r.jsx)(k.Z,{to:"/"+u.username,type:"external",hover:!1,children:(0,r.jsx)(E.Z,{size:40,showStatus:!0,status:null===(t=u.statusEmoji)||void 0===t?void 0:t.emoji,statusLabel:null===(n=u.statusEmoji)||void 0===n?void 0:n.description,path:u.photoURL,name:u.displayName})}),(0,r.jsx)("span",{className:C().displayName,children:(0,r.jsx)(k.Z,{to:"/"+u.username,type:"external",children:u.displayName})}),(0,r.jsx)(o.Z,{className:C().unblockButton,label:"Unblock",onClick:f,loading:d})]}):(0,r.jsx)("li",{})};var D=n(90005),P=n.n(D);let N=e=>{let{user:t}=e,[n,a]=(0,i.useState)();(0,i.useEffect)(()=>{t&&a(t.replyPrivacy?t.replyPrivacy:"Everyone")},[t]),(0,i.useEffect)(()=>{n&&(0,T.pl)((0,T.JU)(s.db,"users",t.uid),{replyPrivacy:n},{merge:!0})},[n]);let o=e=>{let t=e.target.value;a(t)};return(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Allow new replies from"}),(0,r.jsx)("div",{className:P()(C().settingSecondaryLabel,C().unclamp),children:(e=>{switch(e){case"Everyone":return"Everyone can reply to you";case"Following":return"People you follow can reply to you";case"Nobody":return"Nobody can reply to you"}})(n||"Everyone")})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(d.Z,{options:Object.values(["Everyone","Following","Nobody"]),value:n,onChange:o,visualStyle:"sidebar"})})]})};var L=n(25777),M=n(70502),O=n(61);function F(e,t){e.message.includes("auth/requires-recent-login")?"delete"===t?alert("Please re-authenticate to delete your account (log out and log back in)"):"email"===t&&alert("Please re-authenticate to change your email (log out and log back in)"):alert(e.message)}let U=e=>{var t,n,f,p,g,v;let y,_,x,w;let[k,E]=(0,i.useState)(null!==(t=e.currentUser.email)&&void 0!==t?t:""),[S,I]=(0,i.useState)(!1),[j,A]=(0,i.useState)(!1),[D,P]=(0,i.useState)(e.user.creationTime),[U,q]=(0,i.useState)(!1!==e.user.notifications),[Z,z]=(0,i.useState)(!1),[H,K]=(0,i.useState)(!1),[W,$]=(0,i.useState)(""),[G,Y]=(0,i.useState)(!1),[Q,X]=(0,i.useState)();(0,i.useEffect)(()=>{var t;e.user&&(E(null!==(t=e.currentUser.email)&&void 0!==t?t:""),P(e.user.creationTime),q(!1!==e.user.notifications))},[e.user]);let J=(0,T.JU)(s.db,"users",e.user.uid,"private-data","settings");(0,i.useEffect)(()=>{if(e.user)return(0,T.cf)(J,e=>{e.exists()?X(e.data()):X(void 0)})},[e.user]);let ee=null===(n=null==Q?void 0:Q.emailNewFollowers)||void 0===n||n,et=e=>{(0,T.pl)(J,{emailNewFollowers:e},{merge:!0}).then(()=>{console.log("Successfully saved email settings")}).catch(e=>{console.error("Failed to save email settings with error",e)})},en=null===(f=null==Q?void 0:Q.emailNewReplies)||void 0===f||f,er=e=>{(0,T.pl)(J,{emailNewReplies:e},{merge:!0}).then(()=>{console.log("Successfully saved email settings")}).catch(e=>{console.error("Failed to save email settings with error",e)})},ei=null===(p=null==Q?void 0:Q.emailTagged)||void 0===p||p,ea=e=>{(0,T.pl)(J,{emailTagged:e},{merge:!0}).then(()=>{console.log("Successfully saved email settings")}).catch(e=>{console.error("Failed to save email settings with error",e)})},es=null!==(g=null==Q?void 0:Q.emailInstantJobPosting)&&void 0!==g&&g,eo=e=>{(0,T.pl)(J,{emailInstantJobPosting:e},{merge:!0}).then(()=>{console.log("Successfully saved email settings")}).catch(e=>{console.error("Failed to save email settings with error",e)})},el=()=>{var t;I(!1),e.user&&E(null!==(t=e.currentUser.email)&&void 0!==t?t:"")},eu=()=>{A(!0),(0,L.s)(e.currentUser,k).then(function(){var t;if(!(0,L.v0)(s.H).currentUser)return;let n=(0,T.JU)(s.db,"users",e.user.uid);(0,T.pl)(n,{email:null===(t=(0,L.v0)(s.H).currentUser)||void 0===t?void 0:t.email},{merge:!0}).then(function(){A(!1),I(!1)})}).catch(function(e){A(!1),F(e,"email")})},ec=()=>{(0,L.v0)(s.H).signOut().then(()=>{setTimeout(()=>{window.location.href=window.location.origin},10)})},ed=()=>{z(!0),e.currentUser.delete().then(()=>{z(!1),ec()}).catch(e=>{z(!1),F(e,"delete")})};G&&(y=(0,r.jsx)(h.j,{modal:!0,cancel:()=>Y(!1),referrals:null!==(v=null==Q?void 0:Q.referrals)&&void 0!==v?v:0})),_=S?(0,r.jsxs)("div",{className:C().form,children:[(0,r.jsx)("div",{className:C().row,children:(0,r.jsx)(u.Z,{onChange:e=>E(e.target.value.trim()),type:"email",value:k,label:"Update email address",valid:(0,c.Z)(k)&&k!==e.currentUser.email,placeholder:"Email address"})}),(0,r.jsxs)("div",{className:C().formFooter,children:[(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{label:"Cancel",onClick:el})}),(0,r.jsx)(o.Z,{disabled:!(0,c.Z)(k)||k===e.currentUser.email,onClick:eu,loading:j,label:"Save"})]})]}):(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Email address"}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:k})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{label:"Change",onClick:()=>I(!0)})})]});let eh=(0,M.w)(D.toDate());x=H?(0,r.jsxs)("div",{className:C().form,children:[(0,r.jsx)("p",{children:"Deleting your account cannot be undone, your data will be permanently erased. To continue type your username."}),(0,r.jsx)("div",{className:C().row,children:(0,r.jsx)(u.Z,{onChange:e=>$(e.target.value),value:W,placeholder:"Your username"})}),(0,r.jsxs)("div",{className:C().formFooter,children:[(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{label:"Cancel",onClick:()=>K(!1)})}),(0,r.jsx)(o.Z,{visualStyle:"warning",label:"Delete account",disabled:W!==e.user.username,loading:Z,onClick:ed})]})]}):(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Account"}),(0,r.jsxs)("div",{className:C().settingSecondaryLabel,children:["Joined ",eh]})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{visualStyle:"warning",label:"Delete",onClick:()=>K(!0)})})]});let ef={inherit:"System",light:"Light",dark:"Dark"},ep=e=>{let t=e.target.value;for(let[e,n]of Object.entries(ef))if(n===t){(0,m.qU)(e);return}};e.showBackButton&&(w=e.backButton);let em=(0,r.jsxs)("div",{"data-context":e.context,id:C().sidebarSettings,children:[(0,r.jsx)(a.M,{children:y}),e.posts?null:(0,r.jsxs)("div",{className:C().profileEditorHeader,children:[w,(0,r.jsx)("h2",{children:"Settings"})]}),(0,r.jsxs)("div",{className:C().group,children:[(0,r.jsx)("h3",{children:"General"}),(0,r.jsx)(N,{user:e.user}),(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Appearance"}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:{inherit:"Inherits OS dark mode",light:"Always appears light",dark:"Always appears dark"}[(0,m.S$)()]})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(d.Z,{options:Object.values(ef),value:ef[(0,m.S$)()],onChange:ep,visualStyle:"sidebar"})})]})]}),(0,r.jsxs)("div",{className:C().group,children:[(0,r.jsx)("h3",{children:"Email notifications"}),U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B,{id:"emailNewFollowers",label:"New followers",toggle:ee,setToggle:()=>et(!ee),tooltip:"Receive an email notification when someone new follows you."}),(0,r.jsx)(B,{id:"emailNewReplies",label:"New replies",toggle:en,setToggle:()=>er(!en),tooltip:"Receive an email notification when you receive a new reply."}),(0,r.jsx)(B,{id:"emailTaggedIn",label:"Tagged in a profile",toggle:ei,setToggle:()=>ea(!ei),tooltip:"Receive an email notification when you are tagged in a profile."}),(0,r.jsx)(B,{id:"instantJobPosting",label:"New job alert",toggle:es,setToggle:()=>eo(!es),tooltip:"Get instant email notifications when new jobs are posted."})]}):null]}),(0,r.jsxs)("div",{className:C().group,children:[(0,r.jsx)("h3",{children:"Account"}),"modal"!==e.context?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:e.user.displayName}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:"Not you?"})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{label:"Log out",onClick:ec})})]}),(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"Invite a friend"}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:"Thank you ❤️"})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{label:"Invite",onClick:()=>Y(!0)})})]})]}):null,_,(0,r.jsx)(R,{currentUser:e.currentUser}),x]}),(0,r.jsx)(V,{}),"sidebar"===e.context?(0,r.jsx)("div",{className:C().group,children:(0,r.jsx)(b.Z,{context:"sidebar"})}):null]});return"profileEditor"===e.context?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O.K,{hasOwnFooter:!1,children:em}),(0,r.jsx)(O.e,{children:(0,r.jsx)("div",{className:C().footer,children:(0,r.jsx)(o.Z,{label:"Done",onClick:e.cancel})})})]}):(0,r.jsx)(r.Fragment,{children:em})};function V(){let e=(0,y.y)("admin"),[t,n]=(0,i.useState)((0,_.lB)());if(!e)return null;let a=async()=>{let e=(0,L.v0)(s.H).currentUser;if(!e)return;let t=await e.getIdToken();await navigator.clipboard.writeText(JSON.stringify({Authorization:"Bearer ".concat(t)},null,2))};return(0,r.jsxs)("div",{className:C().group,children:[(0,r.jsx)("h3",{children:"Admin"}),(0,r.jsx)(B,{id:"useEmulator",label:"Use localhost backend (requires refresh)",toggle:t,setToggle:()=>{n(!t),(0,_.AV)(!t)}}),(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:C().settingPrimaryLabel,children:"GraphiQL headers"}),(0,r.jsx)("div",{className:C().settingSecondaryLabel,children:"Copy your login state"})]}),(0,r.jsx)("div",{className:C().settingAction,children:(0,r.jsx)(o.Z,{label:"Copy",onClick:a})})]})]})}let B=e=>{let t,{id:n,label:a,toggle:s,setToggle:o,tooltip:l}=e,u=(0,i.useContext)(v.Z);return l&&(t=(0,r.jsx)(g.Z,{string:l,width:172,orientation:"left",children:(0,r.jsx)(p,{fill:u.grey3})})),(0,r.jsxs)("div",{className:C().setting,children:[(0,r.jsx)("label",{htmlFor:n,children:(0,r.jsx)("div",{children:a})}),(0,r.jsxs)("div",{className:C().switch,children:[(0,r.jsx)("div",{className:C().tooltipWrap,children:t}),(0,r.jsx)(f.Z,{checked:s,onChange:o,id:n})]})]})};var q=U},83647:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(23728),s=n(46605),o=n(51056),l=n(15703),u=n(87295),c=n(9575),d=n(35043),h=n(62722),f=n(63695),p=n.n(f),m=n(97018);let g=e=>{let t;let[n,f]=(0,i.useState)({emoji:"\uD83D\uDE42",description:"slightly smiling face"}),[g,v]=(0,i.useState)(!1),[y,_]=(0,i.useState)(""),[b,x]=(0,i.useState)(!1),[w,k]=(0,i.useState)(!1),E=["Looking for remote opportunities...","Looking to grow our team...","Looking for studio space...","Looking to learn about design...","Looking to learn about engineering...","Looking to collaborate...","Looking to build something new..."],[S]=(0,i.useState)(Math.floor(Math.random()*(E.length-1-0+1)+0));(0,i.useEffect)(()=>{x(""!==y.trim())},[y]);let C=()=>{k(!0);let t=(0,m.qs)(a.db),r=(0,m.JU)(a.db,"users",e.uid),i=(0,m.Bt)(),s=(0,m.JU)((0,m.hJ)(r,"statuses"));b&&t.set(s,{emoji:n,body:y,timestamp:i}),t.set(r,{statusEmoji:b?n:null,statusBody:b?y:null,statusTimestamp:b?i:null,latestStatus:b?s:null},{merge:!0}),t.commit().then(function(){e.onDoneSaving()})},T=e=>{f(e),v(!1)};t=b?(0,r.jsx)(s.Z,{onClick:C,label:"Set status",loading:w}):(0,r.jsx)(s.Z,{onClick:C,label:"Clear status",loading:w});let I=(0,r.jsx)(i.Fragment,{children:(0,r.jsx)("div",{className:p().emojiLabel,children:(0,r.jsx)("span",{role:"img","aria-label":n.description,children:n.emoji})})}),R=(0,r.jsx)(d.Z,{emojiCallback:T,columnCount:7,columnSize:36,fontSize:48});return(0,r.jsxs)("div",{className:p().statusEditor,children:[(0,r.jsx)(h.Z,{}),(0,r.jsxs)("div",{className:p().statusEditorBody,children:[(0,r.jsx)("div",{className:p().emojiButton,children:(0,r.jsx)(u.Z,{component:R,width:260,open:g,close:()=>v(!1),children:(0,r.jsx)(c.Z,{string:"Choose emoji",children:(0,r.jsx)(s.Z,{visualStyle:"light",label:I,onClick:()=>v(!g)})})})}),(0,r.jsx)("div",{className:p().statusEditorWrapper,children:(0,r.jsx)(l.Z,{visualStyle:"light",lines:2,placeholder:E[S],value:y,onChange:e=>_(e.target.value)})})]}),(0,r.jsxs)("div",{className:p().statusEditorFooter,children:[(0,r.jsx)("div",{children:(0,r.jsx)(o.Z,{onClick:e.cancel,label:"Cancel"})}),t]})]})};t.Z=g},22604:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(23728),s=n(38336),o=n(52042),l=n.n(o),u=n(97018),c=n(3420),d=n(14770),h=n(7952),f=n(92401),p=n(5678),m=n(9656);let g=e=>{var t,n,o,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D,P,N;let L,M,O,F,U,V;let[B,q]=(0,i.useState)(),[Z,z]=(0,i.useState)(),H=(0,i.useContext)(c.Z),K=(0,i.useContext)(h.Z);function W(e){let t=e.split(" ").length;return Math.ceil(t/225)+" min read"}(0,i.useEffect)(()=>e.uid?e.docID?(0,u.cf)((0,u.JU)(a.db,"users",e.uid,"pages",e.docID),e=>{let t=e.data();t&&q(t)}):(0,u.cf)((0,u.IO)((0,u.hJ)(a.db,"users",e.uid,"pages"),(0,u.ar)("slug","==",e.slug)),e=>{if(e.empty)return;let t=e.docs[0].data();t&&q(t)}):void 0,[e.slug,e.docID]),(0,i.useEffect)(()=>{if("editor"===e.context&&e.docID&&e.uid)return(0,u.cf)((0,u.JU)(a.db,"users",e.uid,"private-pages",e.docID),e=>{let t=e.data();t&&z(t)})},[]);let $="editorWritingTab"===e.presentation&&null!=Z?Z:B;if($&&("draft"===$.pageStatus?(L=(0,r.jsxs)("span",{className:l().draftLabel,children:["\xa0\xb7 ",(0,r.jsx)("strong",{children:"Draft"})]}),M=(0,r.jsxs)(r.Fragment,{children:["editor"===e.context&&$.isPrivate?null!==(x=null==Z?void 0:null===(v=Z.page)||void 0===v?void 0:v.draftTitle)&&void 0!==x?x:"":null!==(w=null===(y=$.page)||void 0===y?void 0:y.draftTitle)&&void 0!==w?w:"",L]}),F=$.isPrivate?"Enter the password to view":W(null!==(k=$.page.draftContent)&&void 0!==k?k:""),O=(0,r.jsxs)("div",{className:l().scaledContainer,style:{transform:"scale3d("+e.width/720+","+e.width/720+", 1)"},children:[(0,r.jsx)("p",{className:l().title,children:null!==(E=null===(_=$.page)||void 0===_?void 0:_.draftTitle)&&void 0!==E?E:""}),(0,r.jsx)(s.Z,{context:"thumbnail",content:null!==(S=null===(b=$.page)||void 0===b?void 0:b.draftContent)&&void 0!==S?S:"",type:"caseStudy"})]})):"published"===$.pageStatus&&(M=$.isPrivate?"This page is private":null!==(R=null===(C=$.page)||void 0===C?void 0:C.publishedTitle)&&void 0!==R?R:"",F=$.isPrivate?"Enter the password to view":W(null!==(j=$.page.publishedContent)&&void 0!==j?j:""),O=(0,r.jsxs)("div",{className:l().scaledContainer,style:{transform:"scale3d("+e.width/720+","+e.width/720+", 1)"},children:[(0,r.jsx)("p",{className:l().title,children:null!==(A=null===(T=$.page)||void 0===T?void 0:T.publishedTitle)&&void 0!==A?A:""}),(0,r.jsx)(s.Z,{context:"thumbnail",content:null!==(D=null===(I=$.page)||void 0===I?void 0:I.publishedContent)&&void 0!==D?D:"",type:"caseStudy"})]}))),B&&(U=(0,r.jsx)("div",{className:l().pagesThumbnail,style:{width:e.width,height:e.height},children:B.isPrivate?(0,r.jsx)("div",{className:l().lockContainer,children:(0,r.jsx)(d.Z,{fill:H.grey1,locked:!0})}):O})),e.publishedDate&&"editorWritingTab"===e.presentation&&(V=(0,r.jsxs)(r.Fragment,{children:[new Date(e.publishedDate).toLocaleString("en-CA",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}),"\xa0\xb7\xa0"]})),!e.showSnippet)return(0,r.jsx)(r.Fragment,{children:U});let G=(0,r.jsxs)(r.Fragment,{children:[e.children,(0,r.jsx)("div",{className:l().thumbnailWrap,children:"editor"!==e.context&&(null==$?void 0:null===(t=$.page)||void 0===t?void 0:t.publishedThumbnail)||"editor"===e.context&&(null==$?void 0:null===(n=$.page)||void 0===n?void 0:n.publishedThumbnail)&&!(null==$?void 0:null===(o=$.page)||void 0===o?void 0:o.draftThumbnail)?(0,r.jsxs)(r.Fragment,{children:[(null==B?void 0:B.isPrivate)?(0,r.jsx)("div",{className:l().thumbnailLock,children:(0,r.jsx)(m.Z,{fill:"#fff"})}):null,(0,r.jsx)("img",{className:l().thumbnail,src:(0,f.Zw)(null==$?void 0:$.page.publishedThumbnail,{mode:f.yX.Fill,width:152,height:90})})]}):"editor"===e.context&&(null==$?void 0:null===(g=$.page)||void 0===g?void 0:g.draftThumbnail)?(0,r.jsxs)(r.Fragment,{children:[(null==B?void 0:B.isPrivate)?(0,r.jsx)("div",{className:l().thumbnailLock,children:(0,r.jsx)(m.Z,{fill:"#fff"})}):null,(0,r.jsx)("img",{className:l().thumbnail,src:(0,f.Zw)(null==$?void 0:$.page.draftThumbnail,{mode:f.yX.Fill,width:152,height:90})})]}):U}),(0,r.jsxs)("div",{className:l().pageInfo,children:[(0,r.jsx)("div",{className:l().pageTitle,children:M}),(0,r.jsxs)("div",{className:l().snippet,children:[V,F]})]})]});return e.link?(0,r.jsx)("div",{"data-custom-domain":!K.onMainDomain,"data-draggable":e.draggable,className:l().container,style:{width:null!==(P=e.cardWidth)&&void 0!==P?P:"100%"},children:(0,r.jsx)(p.Z,{to:e.link,className:"editorWritingTab"===e.presentation?"".concat(l().updatedPagesAttachment," ").concat(l().editorWritingTab):l().updatedPagesAttachment,hover:!1,children:G})}):(0,r.jsx)("div",{onClick:()=>{"editor"===e.context&&e.action&&e.action()},"data-clickable":"editor"===e.context&&!!e.action,"data-custom-domain":!K.onMainDomain,"data-draggable":e.draggable,className:"editorWritingTab"===e.presentation?"".concat(l().updatedPagesAttachment," ").concat(l().editorWritingTab):l().updatedPagesAttachment,style:{width:null!==(N=e.cardWidth)&&void 0!==N?N:"100%"},children:G})};g.defaultProps={width:52,height:66},t.Z=g},76416:function(e,t,n){"use strict";n.d(t,{E:function(){return z}});var r=n(24246),i=n(27378),a=n(67672),s=n(23539),o=n(20233),l=n(27250),u=n.n(l),c=n(90005),d=n.n(c),h=n(7952),f=n(52042),p=n.n(f),m=n(53304),g=n.n(m);let v=e=>{let{textContent:t,selected:n}=e,i=JSON.parse(t),a=i.height/i.width*100;return(0,r.jsx)("div",{onMouseDown:e=>e.preventDefault(),className:g().gallery,"data-context":"editor","data-selected":n,children:(0,r.jsx)("div",{className:d()(u().embeddedVimeo,u().editor),children:(0,r.jsx)("div",{style:{paddingBottom:a+"%",position:"relative"},children:(0,r.jsx)(s.Z,{width:i.width,height:i.height,showTitle:!1,showByline:!1,showPortrait:!1,responsive:!0,video:i.url})})})})},y=e=>{let{textContent:t}=e,n=(0,i.useContext)(h.Z),a=JSON.parse(t),l=a.height/a.width*100;return(0,r.jsx)(o.E.div,{layout:"position",onMouseDown:e=>e.preventDefault(),"data-custom-domain":!n.onMainDomain,className:g().gallery,children:(0,r.jsx)("div",{className:u().embeddedVimeo,children:(0,r.jsx)("div",{style:{paddingBottom:l+"%",position:"relative"},children:(0,r.jsx)(s.Z,{width:a.width,height:a.height,showTitle:!1,showByline:!1,showPortrait:!1,responsive:!0,video:a.url})})})})},_=e=>{let{textContent:t}=e,n=(0,i.useRef)(null),[a,s]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(n.current){var e;let t=null===(e=n.current.closest(".".concat(p().pagesThumbnail)))||void 0===e?void 0:e.getBoundingClientRect(),r=n.current.getBoundingClientRect();t&&r.top<t.top+t.height&&s(!0)}},[]);let o=JSON.parse(t),l=o.height/o.width*100;return(0,r.jsx)("div",{onMouseDown:e=>e.preventDefault(),className:g().gallery,ref:n,style:{width:"720px",margin:"24px 0"},children:(0,r.jsx)("div",{className:u().embeddedVimeo,children:(0,r.jsx)("div",{style:{paddingBottom:l+"%",position:"relative"},children:a?(0,r.jsx)("div",{style:{backgroundImage:"url("+o.thumbnail+")",backgroundSize:"cover",backgroundPosition:"center"}}):null})})})};var b=n(68961),x=n.n(b);let w=e=>{let{textContent:t,selected:n}=e,a=(0,i.useContext)(h.Z),s=JSON.parse(t);return(0,r.jsx)("div",{"data-custom-domain":!a.onMainDomain,onMouseDown:e=>e.preventDefault(),className:g().gallery,"data-context":"editor","data-selected":n,children:(0,r.jsx)("div",{className:d()(x().embeddedFigma,x().editor),children:(0,r.jsx)("div",{className:x().iframeWrap,children:(0,r.jsx)("iframe",{allowFullScreen:!0,src:"https://www.figma.com/embed?embed_host=readcv&url=".concat(s.url)})})})})},k=e=>{let{textContent:t}=e,n=(0,i.useContext)(h.Z),a=JSON.parse(t);return(0,r.jsx)(o.E.div,{layout:"position","data-custom-domain":!n.onMainDomain,onMouseDown:e=>e.preventDefault(),className:g().gallery,children:(0,r.jsx)("div",{className:x().embeddedFigma,children:(0,r.jsx)("div",{className:x().iframeWrap,children:(0,r.jsx)("iframe",{allowFullScreen:!0,src:"https://www.figma.com/embed?embed_host=readcv&url=".concat(a.url)})})})})},E=e=>{let{textContent:t}=e,n=(0,i.useContext)(h.Z),a=(0,i.useRef)(null),[s,o]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(a.current){var e;let t=null===(e=a.current.closest(".".concat(p().pagesThumbnail)))||void 0===e?void 0:e.getBoundingClientRect(),n=a.current.getBoundingClientRect();t&&n.top<t.top+t.height&&o(!0)}},[]);let l=JSON.parse(t);return(0,r.jsx)("div",{"data-custom-domain":!n.onMainDomain,onMouseDown:e=>e.preventDefault(),className:g().gallery,ref:a,style:{width:"720px",margin:"24px 0"},children:(0,r.jsx)("div",{className:x().embeddedFigma,children:(0,r.jsx)("div",{className:x().iframeWrap,children:s?(0,r.jsx)("iframe",{allowFullScreen:!0,src:"https://www.figma.com/embed?embed_host=readcv&url=".concat(l.url)}):null})})})};var S=n(88675),C=n(71946),T=n(92401),I=n(67447),R=n(37355),j=n(9867),A=n(27165);let D=e=>{let{textContent:t,selected:n,identifier:a}=e,s=(0,i.useMemo)(()=>JSON.parse(t),[t]);return(0,r.jsx)(L,{galleryObject:s,selected:n,identifier:a,context:"editor"})},P=e=>{let{textContent:t}=e,n=(0,i.useMemo)(()=>JSON.parse(t),[t]);return(0,r.jsx)(L,{galleryObject:n,lightbox:!0,context:"permalink"})},N=e=>{let{textContent:t}=e,n=(0,i.useMemo)(()=>JSON.parse(t),[t]);return(0,r.jsx)(O,{galleryObject:n})},L=e=>{let[t,n]=(0,i.useState)(!1),[a,s]=(0,i.useState)(540),[l,u]=(0,i.useState)(320),[c,d]=(0,i.useState)(0),[f,p]=(0,i.useState)(0),m=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(0),[_,b]=(0,i.useState)(0),[x,w]=(0,i.useState)(0),k=(0,i.useRef)(_),E=(0,i.useRef)(x),T=(0,i.useContext)(h.Z),I=e=>{k.current=e,b(e)},D=e=>{E.current=e,w(e)},[P,N]=(0,S.G)({viewportRef:m,direction:"horizontal",friction:.05,scrollMode:"native",textSelection:!0,onUpdate:e=>{m.current&&(m.current.scrollLeft=e.position.x)},shouldScroll:()=>!(0,R.Z)()}),L=()=>{N&&m.current&&N.updateMetrics()},O=()=>{u(Math.min(window.innerHeight-48,720));let t=e.galleryObject.images[0];t&&U(t.width,t.height),L()},F=(e,t)=>{let n=t/e;return n<=.56?"panoramic":n>.56&&n<1?"landscape":1===n?"square":"portrait"},U=(e,t)=>{let n,r;r=T.onMainDomain?60:0,n=window.innerWidth>540?window.innerWidth-48-r:window.innerWidth-48;let i=window.innerHeight-48;n*(t/e)>i?s(e/t*i):s(n)},V=()=>{var e;(null===(e=v.current)||void 0===e?void 0:e.classList.contains("open"))&&(B(),n(!1))},B=()=>{var e;if(Z)return;let t=null===(e=m.current)||void 0===e?void 0:e.querySelector(".".concat(g().horizontalScroll)),n=null==t?void 0:t.firstElementChild;if(!m.current||!t||!n)return;let r=m.current.scrollLeft+window.innerWidth/2,i=0,a=0;for(let e=0;e<t.childElementCount;e++){let n=t.children[e],s=n.offsetLeft-t.offsetLeft,o=s+n.offsetWidth;if(r<=o){i=e,a=(r-s)/n.offsetWidth;break}}let s=n.offsetLeft-t.offsetLeft,o=320/n.firstElementChild.offsetHeight;320===Math.round(n.offsetWidth)&&console.warn("Sizing issue when closing lightbox in GalleryNodeView");for(let e=0;e<i;e++){let n=t.children[e];s+=n.clientWidth*o+12}let l=t.children[i];s+=l.clientWidth*o*a,s-=window.innerWidth/2,t.style.width=2*t.clientWidth+"px",s=Math.min(Math.max(0,s),y.current-window.innerWidth),q(m.current,"x",m.current.scrollLeft,s,()=>{t.style.width="",N&&m.current&&N.setPosition({x:m.current.scrollLeft})})},q=(e,t,n,r,i)=>{e&&(0,j.j)({from:n,to:r,duration:400,ease:A.mZ,onUpdate:n=>{"x"===t?e.scrollLeft=n:e.scrollTop=n},onComplete:()=>{i&&i()}})};(0,i.useEffect)(()=>{if(!t){var e;if(null===(e=v.current)||void 0===e||e.classList.remove("open"),!m.current)return;let t=360/l,n=k.current-window.innerWidth;m.current.scrollLeft*t>n&&q(m.current,"x",m.current.scrollLeft,Math.min(m.current.scrollLeft*t,n))}},[t]),(0,i.useEffect)(L,[e.galleryObject]),(0,i.useEffect)(()=>(O(),document.body.addEventListener("scroll",V),function(){document.body.removeEventListener("scroll",V)}),[]),(0,C.Z)("resize",O),(0,C.Z)("focus",L);let Z=1===e.galleryObject.images.length,z=e.galleryObject.images[0],H=r=>{if(e.lightbox&&window.innerWidth>600){if(n(e=>!e),t)document.body.scrollTop<f-window.innerHeight&&(q(document.body,"y",document.body.scrollTop,c),B());else{let e,t=r.target;if(Z){let t=z.height/z.width;e=a*t}else e=l;let n=(window.innerHeight-e)/2;d(document.body.scrollTop),p(document.body.scrollHeight);let i=t.closest(".".concat(g().gallery)),s=i.querySelectorAll("img");if(s.forEach(e=>e.style.willChange="transform"),q(document.body,"y",document.body.scrollTop,t.getBoundingClientRect().top+document.body.scrollTop-n,()=>{s.forEach(e=>e.style.willChange=""),setTimeout(()=>{var e;null===(e=v.current)||void 0===e||e.classList.add("open")},100)}),Z)return;let o=t.closest(".".concat(g().multiImage)),u=t.closest(".".concat(g().horizontalScroll));if(!m.current||!o||!u)return;let c=u.firstElementChild,h=c.offsetLeft-u.offsetLeft,f=l/o.firstElementChild.offsetHeight;for(let e of Array.from(u.children)){if(e===o)break;h+=e.clientWidth*f+12}let _=(window.innerWidth-o.offsetWidth*f)/2;h-=_;let b=c.offsetLeft-u.offsetLeft;o===u.children[u.childElementCount-1]&&b<_&&(h-=_-b),y.current=u.offsetWidth,u.style.width=u.clientWidth*f*2+"px",q(m.current,"x",m.current.scrollLeft,h,()=>{u.style.width="",N&&m.current&&N.setPosition({x:m.current.scrollLeft})})}}};function K(n){let i=Z?{maxWidth:t?a+"px":"540px"}:{height:t?l+"px":"320px",width:t?l*(n.width/n.height)+"px":320*(n.width/n.height)+"px"},s=n.caption&&(0,r.jsx)(o.E.figcaption,{layout:!!e.lightbox&&"position",className:g().caption,children:n.caption});return(0,r.jsxs)(o.E.div,{className:Z?g().singleImage:g().multiImage,layout:e.lightbox,children:[(0,r.jsxs)(o.E.div,{style:i,layout:e.lightbox,"data-orientation":F(n.width,n.height),onLayoutAnimationComplete:Z?void 0:L,onClick:H,children:[(0,r.jsx)(M,{lightbox:e.lightbox,width:n.width,height:n.height,orientation:Z?"vertical":"horizontal",selected:e.selected,type:n.type,src:n.src,border:n.border,onPlay:Z?void 0:L}),Z&&s]}),!Z&&s]},n.id)}return Z?(0,r.jsx)(o.E.div,{"data-custom-domain":!T.onMainDomain,layout:e.lightbox,className:g().gallery,"data-context":e.context,onMouseDown:e=>e.preventDefault(),"data-identifier":e.identifier,ref:v,children:K(z)}):(0,r.jsx)(o.E.div,{"data-custom-domain":!T.onMainDomain,layout:e.lightbox,className:g().gallery,"data-context":e.context,ref:m,onMouseDown:e=>e.preventDefault(),"data-identifier":e.identifier,children:(0,r.jsx)(o.E.div,{layout:e.lightbox,className:g().horizontalScroll,onLayoutMeasure:e=>{t?D(Math.abs(e.x.min-e.x.max)):I(Math.abs(e.x.min-e.x.max))},ref:v,children:e.galleryObject.images.map(K)})})},M=e=>{let t;let[n,a]=(0,i.useState)(!1),s=(0,i.useRef)(null);"vertical"===e.orientation&&(t={paddingBottom:e.height/e.width*100+"%"});let l=(0,T.Zw)(e.src,{mode:T.yX.Fit,width:2048,height:2048}),u=(0,T.LP)(e.src,T.UX.Best);return(0,i.useEffect)(()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.complete)&&a(!0)},[]),(0,r.jsx)(o.E.figure,{layout:e.lightbox,"data-loaded":n,"data-border":e.border,"data-selected":e.selected,style:t,className:g().imageWrap,children:"image"===(0,I.$)(e.type)?(0,r.jsx)("img",{src:l,draggable:!1,onLoad:()=>a(!0),ref:s}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:g().safariFix}),(0,r.jsx)("video",{src:u,onPlay:e.onPlay,autoPlay:!0,loop:!0,muted:!0,playsInline:!0})]})})},O=e=>{let t=(0,i.useRef)(null),[n,a]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{if(t.current){var e;let n=null===(e=t.current.closest(".".concat(p().pagesThumbnail)))||void 0===e?void 0:e.getBoundingClientRect(),r=t.current.getBoundingClientRect();n&&r.top<n.top+n.height&&a(!0)}},[]),1===e.galleryObject.images.length){let i=e.galleryObject.images[0];return(0,r.jsx)("div",{className:g().gallery,style:{width:"720px",margin:"24px 0"},ref:t,children:n?(0,r.jsx)("div",{className:g().miniSingleImage,style:{height:540*(i.height/i.width)+"px"},children:(0,r.jsx)("figure",{"data-border":i.border,style:{height:540*(i.height/i.width)+"px"},children:"image"===(0,I.$)(i.type)?(0,r.jsx)("img",{src:(0,T.Zw)(i.src,{mode:T.yX.Fill,width:50,height:50*(i.height/i.width)})}):(0,r.jsx)("video",{src:(0,T.LP)(i.src,T.UX.Thumbnail),autoPlay:!0,loop:!0,muted:!0,playsInline:!0})})}):null})}return(0,r.jsx)("div",{className:g().gallery,style:{width:"720px",height:"300px",margin:"24px 0"},ref:t,children:n?(0,r.jsxs)("div",{className:g().miniHScroll,children:[e.galleryObject.images.map((e,t)=>{if(t<3)return(0,r.jsx)("figure",{"data-border":e.border,style:{height:"300px",width:300*(e.width/e.height)+"px"},children:"image"===(0,I.$)(e.type)?(0,r.jsx)("img",{src:(0,T.Zw)(e.src,{mode:T.yX.Fill,width:50,height:50*(e.height/e.width)})}):(0,r.jsx)("video",{src:(0,T.LP)(e.src,T.UX.Thumbnail),autoPlay:!0,loop:!0,muted:!0,playsInline:!0})},e.src)}),";"]}):null})};var F=n(73732),U=n.n(F),V=n(38341);let B=e=>{let{textContent:t,selected:n}=e,i=JSON.parse(t),a=V.Hf.exec(i.url);if(!a)return null;let s=a[5],o=i.height/i.width*100;return(0,r.jsx)("div",{onMouseDown:e=>e.preventDefault(),className:d()(U().editor,U().embeddedYoutube),"data-selected":n,children:(0,r.jsx)("div",{className:U().wrap,style:{paddingBottom:o+"%",position:"relative"},children:(0,r.jsx)("iframe",{width:i.width,height:i.height,src:"https://www.youtube-nocookie.com/embed/".concat(s),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})})},q=e=>{let{textContent:t}=e,n=JSON.parse(t),i=V.Hf.exec(n.url);if(!i)return null;let a=i[5],s=n.height/n.width*100;return(0,r.jsx)(o.E.div,{layout:"position",onMouseDown:e=>e.preventDefault(),className:U().embeddedYoutube,children:(0,r.jsx)("div",{className:U().wrap,style:{paddingBottom:s+"%",position:"relative"},children:(0,r.jsx)("iframe",{width:n.width,height:n.height,src:"https://www.youtube-nocookie.com/embed/".concat(a),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})})})},Z={tweet:{editorComponent:a.Jo,rendererComponent:a.cS,thumbnailComponent:a.cS},vimeo:{editorComponent:v,rendererComponent:y,thumbnailComponent:_},figma:{editorComponent:w,rendererComponent:k,thumbnailComponent:E},gallery:{editorComponent:D,rendererComponent:P,thumbnailComponent:N},youtube:{editorComponent:B,rendererComponent:q,thumbnailComponent:_}},z=e=>{let t=e.textContent.indexOf("\n");-1===t&&(t=e.textContent.length);let n=e.textContent.substring(0,t),i=e.textContent.substring(t+1),a=Z[n];if(!a)return(0,r.jsxs)("div",{children:["No node view found for ",n,"!"]});if("editor"===e.type){let t=a.editorComponent;return(0,r.jsx)(t,{textContent:i,setTextContent:t=>e.setTextContent(n+"\n"+t),selected:e.selected,identifier:e.identifier})}if("renderer"===e.type){let e=a.rendererComponent;return(0,r.jsx)(e,{textContent:i})}{let e=a.thumbnailComponent;return(0,r.jsx)(e,{textContent:i})}}},67672:function(e,t,n){"use strict";n.d(t,{Jo:function(){return f},cS:function(){return p},yv:function(){return h}});var r=n(24246),i=n(27378),a=n(20233),s=n(6174),o=n(3420),l=n(64747),u=n.n(l),c=n(90005),d=n.n(c);function h(e){var t;return null===(t=e.match(/twitter\.com\/.*\/status(?:es)?\/([^\/\?]+)/))||void 0===t?void 0:t[1].trim()}let f=e=>{let{textContent:t,selected:n}=e,a=(0,i.useContext)(o.Z),l=h(t);return(0,r.jsx)("div",{onMouseDown:e=>e.preventDefault(),className:d()(u().editor,u().embeddedTweet),"data-selected":n,children:(0,r.jsx)(s.Z,{id:null!=l?l:"",options:{theme:a.name,dnt:!1}})})},p=e=>{let{textContent:t}=e,n=(0,i.useContext)(o.Z),l=h(t);return(0,r.jsx)(a.E.div,{layout:"position",onMouseDown:e=>e.preventDefault(),className:u().embeddedTweet,children:(0,r.jsx)(s.Z,{id:null!=l?l:"",options:{theme:n.name,dnt:!1}})})}},3932:function(e,t,n){"use strict";n.d(t,{j:function(){return _}});var r=n(24246),i=n(27378),a=n(3420);n(86992),n(23728),n(97018);var s=n(5678),o=n(9186),l=n(46605),u=n(20547),c=n.n(u),d=n(36495);n(86677);var h=n(3321);n(51056),n(9742);var f=n(73954),p=n(6015);n(92886),n(97944),n(22324),n(2354),n(62845),n(39245);var m=n(61),g=n(63623),v=n.n(g),y=n(31507);let _=e=>{let t,n,{cancel:u,referrals:g,modal:_,backButton:b,showBackButton:x}=e,w=(0,i.useContext)(h.vy),k=(0,i.useContext)(a.Z);if(!w)return null;t=0===g?"Invite your first friend!":1===g?"You've invited 1 friend!":"You've invited "+g+" friends!",x&&(n=b);let E=(0,r.jsxs)("div",{className:c().referralModal,"data-modal":_,children:[_?(0,r.jsx)(y.r,{children:t}):(0,r.jsxs)("div",{className:v().profileEditorHeader,children:[n,(0,r.jsx)("h2",{children:t})]}),(0,r.jsxs)("div",{className:c().referralModalBody,children:[(0,r.jsxs)("p",{children:["Use your referral link to help us grow the community and unlock spicy rewards. ",(0,r.jsx)(s.Z,{to:"https://read.cv/support/wGqYnUD7aAniiV1xhfNv",type:"external",children:"More info."})]}),(0,r.jsx)("div",{style:{marginBottom:16},children:(0,r.jsx)(f.Z,{user:w,style:"default"})}),(0,r.jsx)("div",{className:c().rewards,children:[{cost:10,reward:"Sticker pack",description:"Three mind expanding stickers, designed by Adam Eastburn.",link:"https://twitter.com/read_cv/status/1483853430959443969"},{cost:25,reward:"Tote bag",description:"Perfect for groceries or a picnic, designed by Adam Eastburn.",link:"https://twitter.com/read_cv/status/1473344236237979650"}].map((e,t)=>(0,r.jsxs)("div",{className:c().rewardRow,children:[(0,r.jsxs)("div",{className:c().stack,children:[(0,r.jsxs)("div",{className:c().cost,children:[e.cost," invites"]}),(0,r.jsxs)("div",{className:c().reward,children:[e.link?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{type:"external",className:c().rewardTitle,to:e.link,children:e.reward}),(0,r.jsxs)("span",{style:{marginLeft:2,whiteSpace:"nowrap"},children:["\uFEFF",(0,r.jsx)(p.Z,{fill:k.grey2})]})]}):(0,r.jsx)("div",{className:c().rewardTitle,children:e.reward}),(0,r.jsx)("div",{className:c().rewardDescription,children:e.description})]})]}),(0,r.jsx)("div",{className:c().check,children:g>=e.cost?(0,r.jsx)(d.Z,{}):null})]},e.reward))})]}),_?(0,r.jsx)(y.m,{children:(0,r.jsx)(l.Z,{onClick:u,label:"Done"})}):null]});return _?(0,r.jsx)(o.Z,{cancel:u,maxWidth:415,children:E}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.K,{hasOwnFooter:!1,children:E}),(0,r.jsx)(m.e,{children:(0,r.jsx)("div",{className:c().footer,children:(0,r.jsx)(l.Z,{label:"Done",onClick:u})})})]})}},39850:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(23728),s=n(20233),o=n(22119),l=n(86992),u=n(63018),c=n(9186),d=n(46605),h=n(5678);n(32345);var f=n(71946),p=n(46309),m=n.n(p),g=n(97018),v=n(94779),y=n(31507);let _=e=>{let t,n,a,{cancel:u,followDoc:h,currentUser:p,defaultTab:g,context:v}=e,[_,x]=(0,i.useState)(window.innerHeight-64),[w,k]=(0,i.useState)(null!=g?g:"followers"),[E,S]=(0,i.useState)(0),[C,T]=(0,i.useState)(0),I=(0,i.useRef)(null);return"followers"===w&&(t=(0,r.jsx)(b,{followDoc:h,currentUser:p,type:"followers",context:v},"followers")),"following"===w&&(n=(0,r.jsx)(b,{followDoc:h,currentUser:p,type:"following",context:v},"following")),I.current&&(a=(0,r.jsx)(s.E.div,{id:m().tabSelection,initial:{x:I.current.offsetLeft,width:I.current.offsetWidth},animate:{x:E,width:C},transition:l.O$})),(0,i.useEffect)(()=>{I.current&&(S(I.current.offsetLeft),T(I.current.offsetWidth))},[w]),(0,f.Z)("resize",()=>{x(window.innerHeight-64)}),(0,r.jsx)(c.Z,{cancel:u,clickToClose:!0,maxWidth:540,children:(0,r.jsxs)("div",{style:{height:_},id:m().followModal,children:[(0,r.jsxs)("div",{className:m().followModalTabs,children:[a,(0,r.jsx)("div",{ref:"following"===w?I:null,className:m().tab,"data-active":"following"===w,children:(0,r.jsx)(d.Z,{label:"Following",visualStyle:"light",onClick:()=>k("following")})}),(0,r.jsx)("div",{ref:"followers"===w?I:null,className:m().tab,"data-active":"followers"===w,children:(0,r.jsx)(d.Z,{label:"Followers",visualStyle:"light",onClick:()=>k("followers")})})]}),(0,r.jsx)("div",{className:m().scrollableList,children:(0,r.jsxs)(o.M,{exitBeforeEnter:!0,children:[t,n]})}),(0,r.jsx)(y.m,{context:"followModal",children:(0,r.jsx)(d.Z,{onClick:u,label:"Done"})})]})})},b=e=>{var t,n,a;let{followDoc:o,currentUser:u,type:c,context:d}=e,[f]=(0,i.useState)("following"===c?null!==(t=o.following)&&void 0!==t?t:[]:null!==(n=o.followers)&&void 0!==n?n:[]),p=(null!==(a=o.following)&&void 0!==a?a:[]).map(e=>e.uid);return f.length<1?(0,r.jsx)(s.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:l.D_,id:m().followModalBlankState,children:"following"===c?(0,r.jsxs)("div",{children:["People you follow will appear here. ",(0,r.jsx)(h.Z,{to:"https://read.cv/support/8UvMgLkEG7iBhSjoCJHj",type:"external",children:"Learn more"}),"."]}):(0,r.jsxs)("div",{children:["People who follow you will appear here. ",(0,r.jsx)(h.Z,{to:"https://read.cv/support/8UvMgLkEG7iBhSjoCJHj",type:"external",children:"Learn more"}),"."]})}):(0,r.jsx)(s.E.ul,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:l.D_,className:m().followList,children:f.slice(0).reverse().map(e=>{let t=p.includes(e.uid);return(0,r.jsx)(x,{uid:e.uid,following:t,context:d},e.uid)})})},x=e=>{var t,n;let{uid:s,following:o,context:l}=e,[c,d]=(0,i.useState)(!1),[f,p]=(0,i.useState)(o?(0,r.jsx)("span",{children:"Follow"}):(0,r.jsx)("span",{children:"Following"})),[y,_]=(0,i.useState)();return((0,i.useEffect)(()=>{(0,g.QT)((0,g.JU)(a.db,"users",s)).then(e=>{let t=e.data();t&&_(t)})},[]),(0,i.useEffect)(()=>{p(o?(0,r.jsx)("span",{children:"Follow"}):(0,r.jsx)("span",{children:"Following"})),d(!1)},[o]),o?(0,r.jsx)("span",{children:"Following"}):(0,r.jsx)("span",{children:"Follow"}),y)?(0,r.jsxs)("li",{children:[(0,r.jsx)(h.Z,{to:"/"+y.username,type:"external",hover:!1,children:(0,r.jsx)(u.Z,{size:48,showStatus:"posts"!==l,status:null===(t=y.statusEmoji)||void 0===t?void 0:t.emoji,statusLabel:null===(n=y.statusEmoji)||void 0===n?void 0:n.description,path:y.photoURL,name:y.displayName})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:m().displayName,children:(0,r.jsx)(h.Z,{to:"/"+y.username,type:"external",children:y.displayName})}),(0,r.jsx)("div",{className:m().username,children:(0,r.jsxs)(h.Z,{to:"/"+y.username,type:"external",children:["@",y.username]})})]}),(0,r.jsx)("div",{style:{marginLeft:"auto"},children:(0,r.jsx)(v.tQ,{context:"userRow",userID:"users/"+y.uid})})]}):(0,r.jsx)("li",{})};t.Z=_},99337:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(24246),i=n(27378),a=n(20233),s=n(22119),o=n(86992),l=n(32345),u=n(5121),c=n.n(u),d=n(27097),h=n.n(d),f=n(3420),p=n(11098);let m=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.764 17.94C5.258 18.957 4.5 20.136 4.5 21c0 .224.11.508.469.843.36.335.916.668 1.651.96 1.467.583 3.495.947 5.63.947s4.163-.364 5.63-.947c.736-.292 1.292-.625 1.651-.96.358-.335.469-.619.469-.843 0-.863-.758-2.042-2.264-3.06-1.46-.989-3.44-1.69-5.486-1.69-2.047 0-4.027.701-5.486 1.69m-.841-1.243c1.686-1.141 3.955-1.947 6.327-1.947s4.641.806 6.327 1.947c1.64 1.11 2.923 2.68 2.923 4.303 0 .776-.4 1.43-.945 1.939-.543.508-1.284.925-2.121 1.258-1.679.667-3.901 1.053-6.184 1.053s-4.505-.386-6.184-1.053c-.837-.333-1.577-.75-2.121-1.258C3.399 22.429 3 21.776 3 21c0-1.622 1.283-3.194 2.923-4.303M12 4.75a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7m-5 3.5a5 5 0 1 1 10 0 5 5 0 0 1-10 0",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},g=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.95 2.4a.75.75 0 01.15 1.05l-4.5 6a.75.75 0 01-1.176.03l-2.5-3a.75.75 0 111.152-.96L4.97 7.79 8.9 2.55a.75.75 0 011.05-.15z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},v=e=>{var t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75 3a.75.75 0 00-1.5 0v2.25H3a.75.75 0 000 1.5h2.25V9a.75.75 0 001.5 0V6.75H9a.75.75 0 000-1.5H6.75V3z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var y=n(71946),_=n(9575);let b=e=>{var t;let{uid:n}=e,[u,d]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),k=(0,i.useContext)(f.Z),E=(0,i.useContext)(p.Z),S=(null!==(t=null==E?void 0:E.following)&&void 0!==t?t:[]).map(e=>e.uid),C=S.includes(n),[T,I]=(0,i.useState)(C?"Follow":"Following"),[R,j]=(0,i.useState)(C?(0,r.jsx)(v,{fill:k.grey1}):(0,r.jsx)(g,{fill:k.grey1})),[A,D]=(0,i.useState)(0);(0,i.useEffect)(()=>{P()},[]);let P=()=>{D(window.innerWidth)};(0,y.Z)("resize",P);let N=()=>{w(!0),L(),(0,l.Bq)({action:C?"unfollow":"follow",uid:n}).then(e=>{})},L=()=>{C||d(!0)};(0,i.useEffect)(()=>{!0===u&&setTimeout(()=>{d(!1)},10)},[u]),(0,i.useEffect)(()=>{I(C?"Follow":"Following"),j(C?(0,r.jsx)(v,{fill:k.grey1}):(0,r.jsx)(g,{fill:k.grey1})),w(!1)},[C]);let M=C?"Following":"Follow",O=C?(0,r.jsx)(g,{fill:k.grey1}):(0,r.jsx)(v,{fill:k.grey1}),F=(0,r.jsxs)(a.E.button,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:o.O9,whileTap:{scale:.9},className:h().sidebarButton,id:c().followButton,onClick:b?()=>console.log(""):N,children:[(0,r.jsx)("span",{style:{color:k.grey1},children:b?T:M}),(0,r.jsxs)("div",{className:c().icon,children:[(0,r.jsx)("div",{className:c().smallIcon,children:b?R:O}),(0,r.jsx)(m,{fill:k.grey1})]})]});return E?(0,r.jsxs)("div",{className:c().followButtonWrap,children:[A<540?(0,r.jsx)(_.Z,{string:b?T:M,children:F}):F,(0,r.jsx)(s.M,{children:u?(0,r.jsx)("div",{style:{transform:"rotate(180deg)",transformOrigin:"center",position:"absolute",inset:0},children:x.map((e,t)=>(0,r.jsx)(a.E.div,{initial:{x:0,y:0,scale:e.scale/2,opacity:e.scale},exit:{x:e.x,y:e.y,scale:[e.scale/2,e.scale/2*1.2,0],opacity:[e.scale/2,e.scale/2*1.2,0]},transition:{duration:2*e.duration,ease:[.33,1,.68,1]},className:c().particle},t))}):null})]}):null},x=[{x:-20,y:100,duration:.2,scale:.5},{x:-35,y:50,duration:.4,scale:.4},{x:-45,y:75,duration:.1,scale:.6},{x:-62,y:150,duration:.5,scale:.8},{x:-75,y:65,duration:.25,scale:.7},{x:-95,y:35,duration:.15,scale:.9},{x:-100,y:20,duration:.2,scale:1},{x:-160,y:5,duration:.23,scale:.9},{x:-90,y:-15,duration:.13,scale:.5},{x:-60,y:-32,duration:.16,scale:.7},{x:-100,y:-46,duration:.32,scale:.6},{x:-15,y:-90,duration:.12,scale:.8},{x:-2,y:-40,duration:.05,scale:.9},{x:12,y:-30,duration:.08,scale:.8},{x:24,y:14,duration:.24,scale:.6},{x:44,y:60,duration:.15,scale:.5},{x:64,y:120,duration:.17,scale:.9},{x:80,y:32,duration:.16,scale:1},{x:140,y:12,duration:.42,scale:.9},{x:160,y:12,duration:.33,scale:.5}];var w=b},83007:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(20233),s=n(22119),o=n(86992),l=n(64295),u=n.n(l),c=n(27097),d=n.n(c),h=n(3420),f=n(3321),p=n(45777),m=n(94779),g=n(9575),v=n(49978),y=n(11098);n(2417);var _=n(73941);let b=n(89194),x=e=>{var t;let n,{messageFragment:l}=e,c=(0,_.useFragment)(b,l),x=(0,i.useContext)(y.Z),w=(0,i.useContext)(f.St),[k,E]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),T=(0,i.useContext)(h.Z),I=null!==(t=null==x?void 0:x.followers)&&void 0!==t?t:[],R=-1!==I.findIndex(e=>e.uid===c.uid),j=!c.canSee||"Following"===c.replyPrivacy&&!R||"Nobody"===c.replyPrivacy,A=()=>{let e=null==w?void 0:w.metadata.creationTime;if(!e)return 0;let t=new Date(e),n=Math.floor((Date.now()-t.getTime())/36e5);return n};return(k&&(n=(0,r.jsx)(m._q,{uid:c.uid,username:c.username,cancel:()=>E(!1)})),S&&(v.Z,A(),()=>C(!1)),!x||j)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{string:"Message",children:(0,r.jsx)(a.E.button,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:o.O9,whileTap:{scale:.9},className:d().sidebarButton,id:u().messageButton,onClick:()=>{24>A()?C(!0):E(!0)},children:(0,r.jsx)(p.Z,{fill:T.grey1})})}),(0,r.jsx)(s.M,{children:n})]})};t.Z=x},21152:function(e,t,n){"use strict";var r=n(24246),i=n(27378);class a extends i.Component{componentDidMount(){this.intersectionObserver=new IntersectionObserver(this.handleIntersectionObserver,{root:null,rootMargin:"0px",threshold:1}),this.markerRef.current&&this.intersectionObserver.observe(this.markerRef.current)}componentWillUnmount(){var e;null===(e=this.intersectionObserver)||void 0===e||e.disconnect()}componentDidUpdate(e,t){var n,r;let i=t.visible,a=null===(n=e.precondition)||void 0===n||n,s=this.state.visible,o=null===(r=this.props.precondition)||void 0===r||r;s&&o&&(i!==s||a!==o)&&this.props.onVisible()}render(){return(0,r.jsx)("div",{ref:this.markerRef})}constructor(e){super(e),this.handleIntersectionObserver=e=>{this.setState({visible:e[0].isIntersecting})},this.markerRef=i.createRef(),this.state={visible:!1}}}t.Z=a},73954:function(e,t,n){"use strict";var r=n(24246),i=n(54848),a=n.n(i),s=n(27378),o=n(20233),l=n(22119),u=n(46605),c=n(86992);let d=e=>{let t,n,i,{user:d,style:h,link:f}=e,[p,m]=(0,s.useState)(!1),g=(0,s.useRef)(null),v=(0,s.useRef)(null);(0,s.useEffect)(()=>{v.current&&v.current.select()},[]);let y=()=>{g.current&&(m(!0),setTimeout(()=>{m(!1)},2e3),g.current.select(),g.current.setSelectionRange(0,99999),document.execCommand("copy"))};return p&&(t=(0,r.jsx)(o.E.div,{initial:{x:"-50%",y:"calc(-100% + 16px)",opacity:0},animate:{x:"-50%",y:"-100%",opacity:1},exit:{x:"-50%",y:"calc(-100% - 16px)",opacity:0},transition:c.O$,className:a().tooltip,children:"Copied!"})),!d&&f?(n="https://"+f,i=f):(n="https://read.cv/join/"+(null==d?void 0:d.username),i="read.cv/join/"+(null==d?void 0:d.username)),(0,r.jsxs)("div",{className:a().url,"data-style":h,children:[(0,r.jsx)("input",{type:"text",value:n,ref:g,className:a().hiddenURL,readOnly:!0}),(0,r.jsx)("input",{type:"text",value:i,ref:v,className:a().urlDecoy,readOnly:!0}),(0,r.jsxs)("div",{className:a().buttonDecoy,children:[(0,r.jsx)(l.M,{children:t}),(0,r.jsx)(u.Z,{label:"Copy",onClick:()=>y(),visualStyle:"light"})]})]})};t.Z=d},88231:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(20233),a=n(86992),s=n(92116),o=n.n(s);let l=e=>{let t,{emoji:n}=e;return n&&(t=(0,r.jsx)("div",{className:o().reactionEmoji,children:n})),(0,r.jsxs)(i.E.div,{className:o().messageConfirmation,initial:{x:"-50%",y:100,opacity:0},animate:{x:"-50%",y:0,opacity:1},exit:{x:"-50%",y:-100,opacity:0},transition:a.O$,children:[t,"Sent"]})};t.Z=l},49978:function(e,t,n){"use strict";var r=n(24246);n(27378);var i=n(9186),a=n(46605),s=n(49455),o=n.n(s),l=n(31507);let u=e=>{let{requiredAge:t,currentAge:n,cancel:s}=e;return(0,r.jsx)(i.Z,{cancel:s,clickToClose:!0,children:(0,r.jsxs)("div",{className:o().profileAgeModal,children:[(0,r.jsxs)(l.r,{children:[Math.ceil(t-n)," ",Math.ceil(t-n)>1?"hours":"hour"," until you can reply ",(0,r.jsx)("span",{role:"img","aria-label":"hatching chick",children:"\uD83D\uDC23"})]}),(0,r.jsxs)("p",{children:["In order to help keep our community safe profiles must be over ",t," hours old to send new replies. You can still send messages to people who have sent you replies in the replies tab."]}),(0,r.jsx)(l.m,{children:(0,r.jsx)(a.Z,{onClick:s,label:"Got it"})})]})})};t.Z=u},2301:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(24246),i=n(27378),a=n(20233),s=n(22119),o=n(86992),l=n(71517),u=n(3420),c=n(13596),d=n(32345),h=n(46605),f=n(898),p=n(19002),m=n(87295),g=n(35043),v=n(37355),y=n(72796),_=n.n(y);let b=e=>{let{recipient:t,placeholder:n,onSend:s,onChange:y,onFocus:b,clearOnEnter:x,replyContent:w,focusOnMount:k,readOnly:E,typing:S,canSend:C,context:T}=e,[I,R]=(0,i.useState)(""),[j,A]=(0,i.useState)(!1),[D,P]=(0,i.useState)(0),N=(0,i.useRef)(null),L=(0,i.useContext)(u.Z),M=(0,i.useRef)({startPos:0,endPos:0});function O(e){(0,d.Kl)({recipient:t,message:{thread:"",idempotent:(0,c.Z)(),replyContent:w,text:e}})}(0,i.useEffect)(()=>{N.current&&k&&N.current.focus(),N.current&&P(document.body.offsetHeight-N.current.getBoundingClientRect().bottom)},[]),(0,i.useEffect)(()=>{y&&y(I)},[I]);let F=e=>{"Enter"===e.key&&(C&&O(I),x&&R(""),s&&s())},U=()=>{var e,t;if(!N.current)return;let n=null!==(e=N.current.selectionStart)&&void 0!==e?e:0,r=null!==(t=N.current.selectionEnd)&&void 0!==t?t:0;M.current={startPos:n,endPos:r}},V=e=>{if(A(!1),N.current){let{startPos:t,endPos:n}=M.current;R(I.substring(0,t).concat(e.emoji).concat(I.substring(n,I.length))),N.current.focus(),setTimeout(()=>{N.current&&N.current.setSelectionRange(t+e.emoji.length,t+e.emoji.length)},10)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Z,{context:T,ref:N,placeholder:n||"Send a reply",onChange:e=>R(e.target.value),onFocus:b,onBlur:U,onKeyDown:F,readOnly:E,value:I,visualStyle:"messageBubble"}),(0,v.Z)()?null:(0,r.jsx)("div",{className:_().repliesEmojiPicker,children:(0,r.jsx)(m.Z,{component:(0,r.jsx)(g.Z,{emojiCallback:V,columnCount:7,columnSize:36,fontSize:48}),width:260,height:319,alignment:"center",verticalAlignment:D<336?"top":"bottom",open:j,yOffset:D<336?-6:6,close:()=>A(!1),children:(0,r.jsx)(h.Z,{onClick:()=>{A(!0),N.current&&P(document.body.offsetHeight-N.current.getBoundingClientRect().bottom)},visualStyle:"light",icon:(0,r.jsx)(p.Z,{fill:L.grey3})})})}),(0,r.jsx)(a.E.div,{initial:{opacity:0,scale:0},animate:{opacity:S?1:0,scale:S?1:0},transition:o.O$,style:{pointerEvents:S?"all":"none"},className:_().sendButton,children:(0,r.jsx)(h.Z,{onClick:()=>{O(I),x&&R(""),s&&s()},visualStyle:"light",icon:(0,r.jsx)(f.Z,{fill:L.grey3})})})]})};var x=n(7498),w=n.n(x);let k=e=>{let{recipient:t,emoji:n,onSend:i,replyContent:a,canSend:s}=e;return(0,r.jsx)(h.Z,{className:w().reaction,label:(0,r.jsx)("div",{className:w().reactionEmoji,children:n}),visualStyle:"light",onClick:()=>{i(n),s&&(0,d.Kl)({recipient:t,message:{thread:"",idempotent:(0,c.Z)(),text:n,replyContent:a}}).then(e=>{})}})};var E=n(71946),S=n(11098),C=n(3321),T=n(67137),I=n(9742),R=n(49978),j=n(90005),A=n.n(j),D=n(7952);let P=e=>{var t;let n,l,u,{user:c,onSend:d,loggedOutAction:h,replyContent:f,clearOnEnter:p,focusOnMount:m,numberOfReactions:g,context:v,visualStyle:y}=e,[x,w]=(0,i.useState)(!1),[j,P]=(0,i.useState)(window.innerWidth),N=T.Z,[L,M]=(0,i.useState)(),[O,F]=(0,i.useState)(!1),[U,V]=(0,i.useState)(!1),B=(0,i.useContext)(S.Z),q=(0,i.useContext)(C.St),Z=(0,i.useContext)(D.Z),z=e=>{0===e.length?w(!1):w(!0)},H=()=>{let e=null==q?void 0:q.metadata.creationTime;if(!e)return 0;let t=new Date(e),n=Math.floor((Date.now()-t.getTime())/36e5);return n},K=()=>{null===q?F(!0):24>H()&&V(!0)},W=h||(()=>F(!0));q&&(W=H()>24?d:()=>V(!0)),(0,i.useEffect)(()=>{N&&("truncated"===g||j<436?M(N.slice(0,1)):M(N))},[g,N,j]);let $=()=>{P(window.innerWidth)};(0,E.Z)("resize",$),O&&(n=(0,r.jsx)(I.Z,{newProfile:!0,cancel:()=>F(!1)})),U&&(l=(0,r.jsx)(R.Z,{requiredAge:24,currentAge:H(),cancel:()=>V(!1)}));let G=null==B?void 0:null===(t=B.followers)||void 0===t?void 0:t.some(e=>e.uid.includes(c.uid));if("Nobody"===c.replyPrivacy||"Following"===c.replyPrivacy&&!G||q&&c.uid===q.uid||!1===Z.onMainDomain||!L)return null;"noPadding"===y&&(u=_().noPadding);let Y=null!==q&&H()>24;return(0,r.jsxs)("div",{className:A()(_().replyComposer,u),children:[(0,r.jsx)(a.E.div,{className:_().replyInput,initial:!1,animate:{width:x?"calc(100% - 46px)":"calc(100% - "+(36*L.length+10)+"px)"},transition:o.O$,children:(0,r.jsx)(b,{context:v,typing:x,recipient:c.uid,placeholder:"Reply directly...",canSend:Y,onSend:W,onChange:z,onFocus:K,readOnly:null===q||24>H(),replyContent:f,clearOnEnter:p,focusOnMount:m})}),(0,r.jsx)(a.E.div,{animate:{opacity:(L.length,x?0:1),x:L.length>1?x?20:0:1,scale:L.length>1?1:x?0:1},style:{pointerEvents:x?"none":"all"},transition:o.O$,className:_().reactions,children:L.map((e,t)=>(0,r.jsx)(k,{emoji:e,recipient:c.uid,onSend:W,canSend:Y,replyContent:f},t+e))}),(0,r.jsxs)(s.M,{children:[n,l]})]})};var N=P},7295:function(e,t,n){"use strict";n.d(t,{y:function(){return x}});var r=n(24246),i=n(27378),a=n(42137),s=n(88038),o=n.n(s),l=n(94779),u=n(3321),c=n(64485),d=n(48508),h=n(84983),f=n(44490),p=n.n(f),m=n(30155),g=n(5678),v=n(9186),y=n(51056),_=n(31507);let b=e=>{var t,n;let s,{}=e,f=(0,h.f)(),m=(0,i.useContext)(u.vy),{posts:g,loadMore:v,isLoading:y}=(0,l.YM)(null!==(t=null==m?void 0:m.username)&&void 0!==t?t:"",d.a0.Bookmarks,!1),_="Bookmarks",b="See your bookmarks on Posts, a community app by Read.cv",w=(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:_}),(0,r.jsx)("meta",{name:"description",content:b}),(0,r.jsx)("meta",{property:"og:title",content:_}),(0,r.jsx)("meta",{property:"og:description",content:b}),(0,r.jsx)("meta",{property:"og:site_name",content:"Posts by Read.cv"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:_}),(0,r.jsx)("meta",{name:"twitter:description",content:b})]});return s=f?(0,r.jsx)(c.X,{username:null!==(n=null==m?void 0:m.username)&&void 0!==n?n:"",posts:g,circumventBlock:!1,loadMore:v,isLoading:y}):(0,r.jsx)("div",{className:p().upsell,children:(0,r.jsx)("div",{className:p().upsellContent,children:(0,r.jsx)(x,{context:"inline"})})}),(0,r.jsxs)(r.Fragment,{children:[w,(0,r.jsxs)("div",{style:{minHeight:"100vh",position:"relative"},children:[(0,r.jsx)(a.Z,{title:"Bookmarks",topLevel:!0}),s]})]})},x=e=>{let{context:t,cancel:n}=e,i=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Z,{compress:!1,label:"supporter only"}),(0,r.jsx)("p",{children:"Bookmarks allow you to privately save posts for later. This feature is only available to supporters. Become a supporter to unlock this and more great features."})]});return"inline"===t?(0,r.jsxs)(r.Fragment,{children:[i,(0,r.jsx)(g.Z,{className:p().upsellCTA,to:"https://read.cv/about/supporters",hover:!1,type:"external",children:"Become a supporter"})]}):(0,r.jsx)(v.Z,{cancel:n,maxWidth:415,children:(0,r.jsxs)("div",{className:p().upsellModal,children:[i,(0,r.jsxs)(_.m,{children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",marginRight:12},children:(0,r.jsx)(y.Z,{label:"Cancel",onClick:e=>{n&&n(),e.stopPropagation()}})}),(0,r.jsx)(g.Z,{className:p().upsellCTA,stopPropagation:!0,to:"https://read.cv/about/supporters",hover:!1,type:"external",children:"Become a supporter"})]})]})})};t.Z=b},42137:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var r=n(24246),i=n(27378),a=n(74881),s=n.n(a),o=n(77210),l=n(46605),u=n(3420),c=n(26952),d=n(86677),h=n.n(d),f=n(5678);let p=e=>{let t,n,a,{title:d,secondaryText:p,action:m,profilePhoto:g,topLevel:v,link:y,hideShadow:_}=e,b=(0,i.useContext)(u.Z),x=(0,i.useContext)(c.f),[w,k]=(0,i.useState)(!1);x>1&&!v&&(t=(0,r.jsx)("div",{className:s().button,children:(0,r.jsx)(l.Z,{onClick:()=>h().back(),icon:(0,r.jsx)(o.Z,{fill:b.grey1}),visualStyle:"light"})})),p&&(n=(0,r.jsxs)("span",{className:s().secondaryText,children:["\xa0",p]})),m&&(a=(0,r.jsx)("div",{className:s().rightButton,children:m}));let E=()=>{0===document.body.scrollTop?k(!1):k(!0)};return(0,i.useEffect)(()=>(document.body.addEventListener("scroll",E),function(){window.removeEventListener("scroll",E)}),[]),(0,r.jsxs)("div",{"data-hide-shadow":_&&!w,className:s().header,children:[t,y?(0,r.jsx)(f.Z,{hover:!1,to:y,children:g}):g,(0,r.jsxs)("div",{className:s().title,"data-top-level":v,children:[y?(0,r.jsx)(f.Z,{to:y,children:d}):d,n]}),a]})},m=e=>{let{tabs:t,defaultTab:n,onUpdateTab:a,onReclickTab:o}=e;(0,i.useContext)(u.Z);let[l,c]=(0,i.useState)(null!=n?n:t[0].label);return(0,i.useEffect)(()=>{a(l)},[l]),(0,r.jsx)("div",{className:"".concat(s().header," ").concat(s().tabbed),children:t.map((e,t)=>(0,r.jsx)("div",{onClick:()=>{l===e.label?o&&o():c(e.label)},"data-active":e.label===l,className:s().tab,children:e.label},t))})};t.Z=p},49460:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(34955),s=n.n(a),o=n(99800),l=n(92401),u=n(46605),c=n(9186),d=n(22119),h=n(92886),f=n(18955),p=n(24263),m=n(76201),g=n(90005),v=n.n(g),y=n(31507);let _=e=>{let t,n,a,c,g,y,{photoURL:_,size:x,type:w,altText:k,animated:E,context:S,clear:C,link:T}=e,I=x.width/x.height,[R,j]=(0,i.useState)(!1),[A,D]=(0,i.useState)(!1),[P,N]=(0,i.useState)(!0),[L,M]=(0,i.useState)(!1),O=e=>e.mozHasAudio||Boolean(e.webkitAudioDecodedByteCount)||Boolean(e.audioTracks&&e.audioTracks.length);return(0,i.useEffect)(()=>{N(!0)},[A]),"image"===w?t=(0,r.jsx)("div",{onClick:e=>{"feed"===S?D(!0):"highlight"===S&&T&&window.open(T),e.stopPropagation()},className:s().image,children:(0,r.jsx)(o.Z,{alt:null!=k?k:"",sources:(0,l.NR)(_,{mode:l.yX.Fit,width:430,height:430/I})})}):"video"===w&&(t=(0,r.jsx)("video",{onClick:e=>{"feed"===S?D(!0):"highlight"===S&&T&&window.open(T),e.stopPropagation()},onLoadedData:e=>{M(O(e.currentTarget))},src:(0,l.LP)(_,l.UX.Posts),className:s().video,autoPlay:!0,loop:!0,muted:P,playsInline:!0})),k&&k.length>0&&(n=(0,r.jsx)(u.Z,{className:s().overlayButton,onClick:e=>{j(!0),e.stopPropagation()},icon:(0,r.jsx)("span",{className:s().altIcon,children:"alt"})})),R&&k&&k.length>0&&(a=(0,r.jsx)(b,{dismiss:()=>j(!1),altText:k})),"video"===w&&(c=(0,r.jsx)(u.Z,{className:v()(s().overlayButton,!L&&s().disabled),onClick:e=>{if(!L){e.stopPropagation();return}N(!P),e.stopPropagation()},icon:(0,r.jsx)("div",{style:{opacity:L?1:.7},children:P?(0,r.jsx)(m.Z,{fill:"#fff"}):(0,r.jsx)(p.Z,{fill:"#fff"})})})),A&&(g=(0,r.jsx)(f.e,{currentImage:0,images:[{type:"image"===w?"image/jpeg":"video/mp4",width:x.width,height:x.height,src:_}],close:()=>D(!1),context:"posts",muted:P,hasAudio:L})),C&&(y=(0,r.jsx)(u.Z,{className:"".concat(s().overlayButton," ").concat(s().clearButton),onClick:C,icon:(0,r.jsx)(h.Z,{fill:"#fff"})})),(0,r.jsxs)("div",{onClick:e=>{e.stopPropagation()},onMouseDown:e=>e.stopPropagation(),className:s().media,style:{paddingBottom:2/3>I?"150%":x.height/x.width*100+"%",marginTop:"composer"===S?0:void 0},children:[y,n,t,c,(0,r.jsxs)(d.M,{children:[a,g]})]})},b=e=>{let{altText:t,dismiss:n}=e;return(0,r.jsx)(c.Z,{cancel:n,clickToClose:!0,children:(0,r.jsxs)("div",{onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),className:s().altTextModal,children:[(0,r.jsx)(y.r,{children:"Alt text"}),(0,r.jsx)("p",{children:t}),(0,r.jsx)(y.m,{children:(0,r.jsx)(u.Z,{onClick:n,label:"Done"})})]})})};t.Z=_},79781:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(24246),i=n(27378),a=n(5678),s=n(36450),o=n.n(s),l=n(3420);let u=e=>{var t;return(0,r.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 24C48 10.745 37.255 0 24 0S0 10.745 0 24s10.745 24 24 24 24-10.745 24-24zM23.25 46.437V35.75h-8.155c.494 1.674 1.088 3.202 1.761 4.55 1.88 3.757 4.178 5.767 6.394 6.137zM14.69 34.25h8.56v-9.5h-9.744c.054 3.425.478 6.642 1.184 9.5zm-2.684-9.5c.052 3.39.455 6.604 1.14 9.5H3.965a22.382 22.382 0 01-2.453-9.5h10.494zm1.5-1.5h9.744v-9.5h-8.56c-.706 2.858-1.13 6.075-1.184 9.5zm-.36-9.5c-.685 2.896-1.088 6.11-1.14 9.5H1.512a22.382 22.382 0 012.453-9.5h9.181zm1.95-1.5h8.154V1.563c-2.216.37-4.515 2.38-6.394 6.137-.674 1.348-1.267 2.876-1.76 4.55zm-1.562 0H4.808c3.15-5.133 8.301-8.906 14.367-10.232-2.388 2.1-4.37 5.713-5.64 10.232zm-8.726 23.5h8.726c1.271 4.519 3.253 8.131 5.641 10.232C13.11 44.656 7.958 40.883 4.808 35.75zm26.336 4.55c-1.88 3.757-4.178 5.767-6.394 6.137V35.75h8.155c-.494 1.674-1.088 3.202-1.761 4.55zm2.166-6.05h-8.56v-9.5h9.744c-.054 3.425-.478 6.642-1.184 9.5zm1.156 1.5c-1.271 4.519-3.253 8.131-5.642 10.232 6.067-1.326 11.218-5.099 14.368-10.232h-8.726zm9.569-1.5h-9.181c.684-2.896 1.088-6.11 1.14-9.5h10.494a22.382 22.382 0 01-2.453 9.5zm2.453-11a22.382 22.382 0 00-2.453-9.5h-9.181c.684 2.896 1.088 6.11 1.14 9.5h10.494zm-11.994 0H24.75v-9.5h8.56c.706 2.858 1.13 6.075 1.184 9.5zm-1.59-11H24.75V1.563c2.216.37 4.515 2.38 6.394 6.137.674 1.348 1.267 2.876 1.76 4.55zm1.562 0h8.726c-3.15-5.133-8.301-8.906-14.367-10.232 2.388 2.1 4.37 5.713 5.64 10.232z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var c=n(99800),d=n(92401);let h=e=>{let{link:t,title:n,description:s,image:h,context:f,children:p,onLoadImage:m}=e,g=(0,i.useContext)(l.Z),[v,y]=(0,i.useState)();(0,i.useEffect)(()=>{"composer"===f&&h&&async function(){let e=await fetch(h),t=await e.blob();m&&m(t),y(URL.createObjectURL(t))}()},[]);let _=(0,r.jsx)("div",{className:o().noImage,children:(0,r.jsx)(u,{fill:"light"===g.name?g.primaryBorderColor:"#4E4E4E"})});return"composer"!==f?h&&(_=(0,r.jsx)("div",{className:o().ogImage,children:(0,r.jsx)(c.Z,{alt:"",sources:(0,d.NR)(h,{mode:d.yX.Fit,width:430,height:430})})})):v&&(_=(0,r.jsx)("div",{className:o().ogImage,children:(0,r.jsx)("img",{src:v})})),(0,r.jsx)(a.Z,{stopPropagation:!0,to:t,hover:!1,type:"external",children:(0,r.jsxs)("div",{className:o().linkPreview,"data-has-image":void 0!==h,style:{marginTop:"composer"===f?0:void 0},children:[_,(0,r.jsxs)("div",{className:o().linkInfo,children:[n&&n.length>0?(0,r.jsx)("div",{className:o().title,children:n}):null,s&&s.length>0?(0,r.jsx)("div",{className:o().description,children:s}):null,(0,r.jsx)("div",{className:o().link,children:t.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").replace(/^([^\/]+)\/(.*)$/,"$1")})]})]})})};var f=h},83181:function(e,t,n){"use strict";n.d(t,{dJ:function(){return z},W5:function(){return $},U7:function(){return K},Py:function(){return W},ZP:function(){return G}});var r=n(24246),i=n(27378),a=n(11538),s=n.n(a),o=n(20233),l=n(22119),u=n(63018),c=n(5678),d=n(3420);let h=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.358 19.073L12 18l.642 1.073a1.25 1.25 0 01-1.284 0zM12 18s6.75-4.04 6.75-8.25C18.75 7.625 17.125 6 15 6c-1.145 0-2.126.656-2.756 1.591a.3.3 0 01-.488 0C11.126 6.656 10.145 6 9 6 6.875 6 5.25 7.625 5.25 9.75 5.25 13.96 12 18 12 18zm0-12.035c-.781-.722-1.807-1.215-3-1.215-2.815 0-5 2.185-5 5 0 1.383.55 2.663 1.258 3.747.71 1.091 1.637 2.072 2.525 2.88a25.19 25.19 0 003.548 2.679l.018.011.006.004.003.002L12 18l.642 1.073.003-.002.006-.004.018-.011.065-.04a24.1 24.1 0 001.04-.69 25.192 25.192 0 002.443-1.948c.888-.81 1.814-1.79 2.526-2.88C19.448 12.412 20 11.132 20 9.75c0-2.815-2.185-5-5-5-1.193 0-2.219.493-3 1.215z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},f=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 5.625a6.352 6.352 0 00-4.462 1.821.625.625 0 01-.874-.892A7.626 7.626 0 0119.56 11H21a.5.5 0 01.4.8l-2 2.667a.5.5 0 01-.8 0l-2-2.667a.5.5 0 01.4-.8h1.297A6.377 6.377 0 0012 5.625zM3 13h1.44a7.627 7.627 0 0012.896 4.446.625.625 0 10-.874-.892A6.377 6.377 0 015.703 13H7a.5.5 0 00.4-.8l-2-2.667a.5.5 0 00-.8 0l-2 2.667a.5.5 0 00.4.8z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var p=n(48525),m=n(78511),g=n(71946);let v=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.642 19.073a1.25 1.25 0 01-1.284 0l-.003-.002-.006-.004-.018-.011a24.1 24.1 0 01-1.104-.73 25.19 25.19 0 01-2.444-1.948c-.888-.81-1.814-1.79-2.525-2.88C4.55 12.412 4 11.132 4 9.75c0-2.815 2.185-5 5-5 1.193 0 2.219.493 3 1.215.781-.722 1.807-1.215 3-1.215 2.815 0 5 2.185 5 5 0 1.383-.55 2.663-1.258 3.747-.71 1.091-1.637 2.072-2.526 2.88a25.192 25.192 0 01-3.547 2.679l-.018.011-.006.004-.003.002z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})};var y=n(87295),_=n(96976);n(2417);var b=n(90251),x=n(70502),w=n(1855),k=n(8910),E=n(66720),S=n(86677),C=n(79520),T=n(44228),I=n(63073),R=n(3321),j=n(97678),A=n(51056),D=n(84983),P=n(7295),N=n(300);let L=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.25 5.875a.375.375 0 0 0-.375.375v11.638l4.67-2.843c.28-.17.63-.17.91 0l4.67 2.843V6.25a.375.375 0 0 0-.375-.375zm-1.625.375c0-.897.728-1.625 1.625-1.625h9.5c.898 0 1.625.728 1.625 1.625v12.305a.875.875 0 0 1-1.33.748L12 16.232l-5.045 3.07a.875.875 0 0 1-1.33-.747z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},M=e=>{var t;return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 6.25c0-.897.728-1.625 1.625-1.625h9.5c.898 0 1.625.728 1.625 1.625v12.305a.875.875 0 0 1-1.33.748L12 16.232l-5.045 3.07a.875.875 0 0 1-1.33-.747z",fill:null!==(t=e.fill)&&void 0!==t?t:"#111"})})},O=(0,i.lazy)(()=>Promise.all([n.e(9774),n.e(7705),n.e(8642),n.e(1217),n.e(8946),n.e(2093),n.e(2668),n.e(3287),n.e(5498),n.e(6166),n.e(3660),n.e(8312),n.e(7825)]).then(n.bind(n,98312))),F=n(94799),U=n(15220),V=e=>{var t,n,a,h,f,g,v,w,V,B,Z,H;let $,G,Y,Q,{hasAReply:X,isAReply:J,highlightOnRender:ee,postContext:et,data:en,overrideBlock:er,context:ei,repostID:ea}=e,es=(0,i.useContext)(R.St),eo=(0,i.useContext)(d.Z),[el,eu]=(0,i.useState)(!1),ec=(0,b.Jc)(F,en),ed=(0,S.useRouter)(),eh=es&&es.uid===(null===(t=ec.poster)||void 0===t?void 0:t.id.split("/")[1]),ef=(0,i.useContext)(j.Z),ep=(null!==(V=null==ef?void 0:ef.blocked)&&void 0!==V?V:[]).some(e=>{var t;return e.uid===(null===(t=ec.poster)||void 0===t?void 0:t.id.split("/")[1])}),[em,eg]=(0,i.useState)(null!=er&&er),[ev]=(0,b.Db)(U),ey=(0,i.useRef)(null),[e_,eb]=(0,i.useState)(!1),[ex]=(0,i.useState)(ee),ew=(0,D.f)(),ek=(0,T.O)(),[eE,eS]=(0,i.useState)(!1),[eC,eT]=(0,i.useState)(!1),eI=()=>{ey.current&&(eb(!0),setTimeout(()=>{eu(!1)},600),ey.current.select(),ey.current.setSelectionRange(0,99999),document.execCommand("copy"))};(0,i.useEffect)(()=>{el&&eb(!1)},[el]),(X||J)&&($=(0,r.jsx)("div",{className:s().timeline,style:{top:J?et?-52:-20:0,bottom:X?-20:"100%"}}));let eR=ec.isBookmarked,ej="/"+(null===(n=ec.poster)||void 0===n?void 0:n.username),eA=ej+"/"+ec.id.split("/")[1];G=eh?[{label:e_?"Copied!":"Copy link to post",action:eI},{label:"Delete post",style:"warning",action:()=>{let e=ec.id.split("/")[1];e&&ev({variables:{postID:e},onCompleted:()=>{eu(!1)}})}}]:[{label:e_?"Copied!":"Copy link to post",action:eI},{label:"Report post",style:"warning",action:()=>{var e,t,n;window.open("mailto:support@read.cv?subject=Reporting content from "+(null===(e=ec.poster)||void 0===e?void 0:e.displayName)+"&body=Reported content:%0D%0A"+(null===(t=ec.poster)||void 0===t?void 0:t.displayName)+" — posts.cv/"+(null===(n=ec.poster)||void 0===n?void 0:n.username)+"/"+ec.id.split("/")[1]+"%0D%0A%0D%0ATell us about the offensive content you encountered:%0D%0A%0D%0AAttach a screenshot of the offensive content:%0D%0A%0D%0A---%0D%0A%0D%0AOn Mac use CMD Shift 3 to take a screenshot%0D%0AOn Windows use Print Screen to take a screenshot%0D%0A%0D%0AThank you for keeping the Read.cv community a safe place%0D%0AThe CV Team")}}];let eD=(0,I.y)("highlight");if(eD){let e=ec.id.split("/")[1];G.splice(G.length-1,0,{label:ec.highlighted?"Unhighlight post":"Highlight post",action:()=>{eu(!1),ec.highlighted?(0,C.WT)(ek,e):(0,C.kC)(ek,e)}},{label:"Highlight on read.cv",action:()=>{eu(!1),eT(!0)}})}if(eE&&(Y=(0,r.jsx)(P.y,{context:"modal",cancel:()=>{eS(!1)}})),eD&&eC){let e={type:"post",data:{docPath:null!==(Z=ec.id)&&void 0!==Z?Z:""}};Q=(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(r.Fragment,{}),children:(0,r.jsx)(O,{highlightContent:e,uid:null===(B=ec.poster)||void 0===B?void 0:B.id.split("/")[1],cancel:()=>eT(!1)})})}return(0,r.jsxs)(o.E.div,{initial:{backgroundColor:ex?"dark"===eo.name?"rgba(255, 255, 255, 0.05)":"rgba(7, 136, 245, 0.05)":void 0},animate:{backgroundColor:ex?"dark"===eo.name?"rgba(255, 255, 255, 0)":"rgba(7, 136, 245, 0)":void 0},transition:{delay:1,duration:1.5},style:{borderBottom:X?"none":"1px solid var(--secondaryBorderColor)",paddingTop:et?10:void 0},"data-inactive":ec.deleted||ep&&!em||!ec.canSee||ec.isMuted&&"profile"!==ei&&!em,onClick:e=>{!ec.deleted&&(!ep||em)&&ec.canSee&&(!ec.isMuted||"profile"===ei||em)&&(e.metaKey?window.open(eA):ed.push({pathname:eA}))},onMouseDown:e=>{1===e.button&&window.open(eA)},className:s().post,children:[et,(0,r.jsxs)("div",{className:s().postColumns,children:[(0,r.jsxs)("div",{className:s().gutter,children:[$,(0,r.jsx)("div",{style:{zIndex:1},children:ec.deleted||ep&&!em||!ec.canSee||ec.isMuted&&"profile"!==ei&&!em?(0,r.jsx)("div",{style:{width:48,height:48,borderRadius:"50%",backgroundColor:"var(--backgroundColor)",border:"1px solid var(--transparentBorder)",position:"relative"}}):(0,r.jsx)(c.Z,{stopPropagation:!0,to:ej,hover:!1,children:(0,r.jsx)(u.Z,{path:null===(a=ec.poster)||void 0===a?void 0:a.photoURL,name:null===(h=ec.poster)||void 0===h?void 0:h.displayName,size:48})})})]}),ec.deleted||ep&&!em||!ec.canSee||ec.isMuted&&"profile"!==ei&&!em?(0,r.jsx)("div",{style:{height:48,display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid var(--transparentBorder)",borderRadius:16,flex:1,color:"var(--grey3)"},children:ec.deleted&&ep||ec.deleted&&!ep||ec.deleted&&ec.canSee||ec.deleted&&!ec.canSee||ec.deleted&&ec.isMuted||ec.deleted&&!ec.isMuted?"This post has been deleted":ec.canSee?(0,r.jsxs)("div",{children:[ec.isMuted&&!ep?"Muted user":"Blocked user"," \xb7 ",(0,r.jsx)(A.Z,{onClick:()=>eg(!0),label:"View anyway"})]}):"This user has blocked you"}):(0,r.jsxs)("div",{className:s().postContent,children:[(0,r.jsxs)("div",{className:s().authorInfo,children:[(0,r.jsx)(N.Z,{className:s().displayName,to:ej,displayName:null!==(H=null===(f=ec.poster)||void 0===f?void 0:f.displayName)&&void 0!==H?H:"",showBadge:null!==(g=ec.poster)&&void 0!==g&&!!g.supporterInfo&&"supporter"===ec.poster.supporterInfo.tier}),(0,r.jsxs)("span",{className:s().username,children:["\xa0",(0,r.jsxs)(c.Z,{stopPropagation:!0,to:ej,children:["@",null===(v=ec.poster)||void 0===v?void 0:v.username]})]}),(0,r.jsxs)("span",{className:s().timestamp,children:["\xa0\xb7\xa0",(0,r.jsx)(c.Z,{stopPropagation:!0,to:eA,children:(0,x.w)(new Date(ec.timestamp),!0)})]})]}),(0,r.jsx)(q,{data:ec,context:ei}),(0,r.jsxs)("div",{className:s().postBody,children:[(0,r.jsx)(k.Z,{data:ec,context:"feed"}),(0,r.jsx)(E.Z,{data:ec,context:"feed"})]}),(0,r.jsxs)("div",{className:s().ufi,children:[(0,r.jsx)(W,{onClick:e=>{e.metaKey?window.open(eA):ed.push({pathname:eA}),e.stopPropagation()},disabled:!!es&&!ec.canReply,icon:(0,r.jsx)(p.Z,{fill:eo.grey3}),count:ec.replyCount}),(0,r.jsx)(K,{data:ec,repostID:ea}),(0,r.jsx)(z,{data:ec,repostID:ea}),(0,r.jsx)(W,{onClick:e=>{ew?eR?(0,C.K8)(ek,ec.id.split("/")[1]):(0,C.up)(ek,ec.id.split("/")[1]):eS(!0),e.stopPropagation()},activeColor:eo.blue,icon:eR?(0,r.jsx)(M,{fill:eo.blue}):(0,r.jsx)(L,{fill:eo.grey3})}),(0,r.jsx)("div",{style:{flex:1},children:(0,r.jsx)(W,{onClick:e=>{eu(!el),e.stopPropagation()},icon:(0,r.jsx)(y.Z,{open:el,verticalAlignment:"auto",close:()=>eu(!1),alignment:"right",component:(0,r.jsx)(_.Z,{items:G}),children:(0,r.jsx)(m.Z,{fill:eo.grey3})})})})]})]})]}),(0,r.jsx)("input",{type:"text",value:"https://posts.cv/"+(null===(w=ec.poster)||void 0===w?void 0:w.username)+"/"+ec.id.split("/")[1],ref:ey,className:s().hiddenURL,readOnly:!0}),(0,r.jsxs)(l.M,{children:[Y,Q]})]})},B=n(17375),q=e=>{var t;let{data:n,context:a}=e,o=(0,b.Jc)(B,n);if(!o.inReplyTo)return null;let l=o.inReplyTo.mentions.map(e=>e.username).filter(w.U),u=null===(t=o.inReplyTo.poster)||void 0===t?void 0:t.username;if(u&&!l.includes(u)&&l.unshift(u),"profile"!==a&&(l=l.filter(e=>{var t;return e!==(null===(t=o.poster)||void 0===t?void 0:t.username)})),0===l.length)return null;let d=l.map(e=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)(c.Z,{to:"/"+e,stopPropagation:!0,children:["@",e]})," "]},e));return d.length<4?(0,r.jsxs)("div",{className:s().replyingTo,children:["Replying to"," ",d]}):(0,r.jsxs)("div",{className:s().replyingTo,children:["Replying to"," ",d.slice(0,2),(0,r.jsxs)(c.Z,{to:"/",children:["+",d.length-2," others"]})]})},Z=n(53686),z=e=>{let{data:t,repostID:n}=e,a=(0,b.Jc)(Z,t),s=a.isLiked,o=(0,i.useContext)(d.Z),l=(0,T.O)(),u=(0,i.useContext)(R.St);return(0,r.jsx)(W,{onClick:e=>{u&&(s?(0,C.Z6)(l,a.id):(0,C.n9)(l,null!=n?n:a.id,a.id)),e.stopPropagation()},count:a.likeCount,active:s,activeColor:o.red,icon:s?(0,r.jsx)(v,{fill:o.red}):(0,r.jsx)(h,{fill:o.grey3})})},H=n(29579),K=e=>{let{data:t,repostID:n}=e,a=(0,b.Jc)(H,t),s=a.isReposted,o=(0,i.useContext)(d.Z),l=(0,T.O)(),u=(0,i.useContext)(R.St);return(0,r.jsx)(W,{onClick:e=>{u&&(s?(0,C.j8)(l,a.id):(0,C.wh)(l,null!=n?n:a.id,a.id)),e.stopPropagation()},count:a.repostCount,active:s,activeColor:o.green,icon:s?(0,r.jsx)(f,{fill:o.green}):(0,r.jsx)(f,{fill:o.grey3})})},W=e=>{let t,{icon:n,count:a,active:l,activeColor:u,onClick:c,disabled:d}=e,[h,f]=(0,i.useState)(!1);return(0,g.Z)("mouseup",()=>{f(!1)}),a&&a>0&&(t=(0,r.jsx)("div",{className:s().label,style:{color:l&&u?u:void 0},children:a})),(0,r.jsxs)("button",{"data-disabled":d,onClick:c,onMouseDown:e=>{f(!0),e.stopPropagation()},className:s().UFIButton,children:[(0,r.jsx)(o.E.div,{animate:{scale:h?.9:1},className:s().icon,children:n}),t]})},$=e=>{let{context:t,person:n}=e,a=(0,i.useContext)(d.Z),o="repost"===t?(0,r.jsx)(f,{fill:a.grey3}):(0,r.jsx)(p.Z,{fill:a.grey3});return(0,r.jsxs)("div",{className:s().postContext,children:[(0,r.jsx)("div",{className:s().postContextIcon,children:o}),(0,r.jsxs)("div",{children:[(0,r.jsx)(c.Z,{stopPropagation:!0,to:"/"+n.username,children:n.displayName})," ","repost"===t?"reposted":"replied"]})]})};var G=V},66720:function(e,t,n){"use strict";var r=n(24246);n(73941);var i=n(90251);n(27378);var a=n(79781),s=n(49460);let o=n(48365),l=e=>{let{data:t,context:n,link:l}=e,u=(0,i.Jc)(o,t);if(!u||!u.embeds||0===u.embeds.length)return null;let c=u.embeds[0];if("link"===c.type){var d;let e=c.payload;return(0,r.jsx)(a.Z,{context:"feed",link:e.url,title:e.title,description:e.description,image:null===(d=e.image)||void 0===d?void 0:d.url})}if("gallery"===c.type){let e=c.payload,t=e.media[0];return(0,r.jsx)(s.Z,{photoURL:t.url,size:{width:t.width,height:t.height},type:t.type,altText:t.altText,animated:t.animated,link:l,context:"highlight"===n?"highlight":"feed"})}return null};t.Z=l},8910:function(e,t,n){"use strict";var r=n(24246);n(73941);var i=n(90251),a=n(12532),s=n(5678),o=n(27378);let l=n(44626),u=e=>{var t,n,u,c;let{data:d,context:h}=e,f=(0,i.Jc)(l,d),p=[],m=null!==(t=null==f?void 0:f.content)&&void 0!==t?t:"",g=(null!==(n=null==f?void 0:f.links)&&void 0!==n?n:[]).slice().sort((e,t)=>e.start-t.start);p.push((0,r.jsx)(o.Fragment,{children:m.slice(0,g.length>0?g[0].start:void 0)},"start"));for(let e=0;e<g.length;e++){let t=g[e];if("user"===t.type){if((null===(u=t.attachment)||void 0===u?void 0:u.__typename)==="PostLinkUserAttachment"&&(null===(c=t.attachment.user)||void 0===c?void 0:c.username)){let n=t.attachment.user.username;p.push((0,r.jsxs)(s.Z,{stopPropagation:!0,to:"highlight"===h?"https://posts.cv/"+n:"/"+n,type:"highlight"===h?"external":void 0,children:["@",n]},e))}else p.push((0,r.jsx)(o.Fragment,{children:"@"+t.payload.username},e))}else"link"===t.type&&p.push((0,r.jsx)(s.Z,{stopPropagation:!0,to:t.payload.url,type:"external",children:(0,a.lm)(t.payload.text)},e));let n=t.start+t.length,i=m.slice(n,g.length>e+1&&g[e+1].start>=n?g[e+1].start:void 0);i.length>0&&p.push((0,r.jsx)(o.Fragment,{children:i},e+"end"))}return 0===m.length?null:(0,r.jsx)("p",{children:p})};t.Z=u},94779:function(e,t,n){"use strict";n.d(t,{_q:function(){return ev},tQ:function(){return eg},ZP:function(){return ey},a3:function(){return eu},YM:function(){return eh}});var r=n(24246),i=n(27378),a=n(60835),s=n.n(a),o=n(63018),l=n(5678),u=n(3420),c=n(46605),d=n(45777),h=n(14043),f=n(9575),p=n(42137),m=n(78511),g=n(87295),v=n(96976),y=n(2417),_=n(90251),b=n(12532),x=n(11098),w=n(25777),k=n(23728),E=n(32345),S=n(59983),C=n(61825),T=n(20233),I=n(22119),R=n(88038),j=n.n(R),A=n(53444),D=n(3321),P=n(37888),N=n(9186),L=n(71946),M=n(39850),O=n(9742),F=n(97678),U=n(51056),V=n(15703),B=n(13596),q=n(49978),Z=n(26952),z=n(44228),H=n(64485),K=n(1855),W=n(48508),$=n(30155),G=n(84530),Y=n.n(G),Q=n(86992),X=n(90005),J=n.n(X),ee=n(95773),et=n.n(ee);let en=n(61556);async function er(e,t){return new Promise((n,r)=>{(0,y.commitMutation)(e,{mutation:en,variables:{uid:t,action:"mute"},onCompleted:()=>{n()},onError:()=>{r()}})})}async function ei(e,t){return new Promise((n,r)=>{(0,y.commitMutation)(e,{mutation:en,variables:{uid:t,action:"unmute"},onCompleted:()=>{n()},onError:()=>{r()}})})}var ea=n(31507);let es=e=>{var t;let{cancel:n,currentUser:a,blockedUser:s}=e,[o,l]=(0,i.useState)(!1),u=(0,i.useContext)(F.Z),d=(null!==(t=null==u?void 0:u.muted)&&void 0!==t?t:[]).some(e=>e.uid==s.uid);console.log("blocked doc",u);let h=(0,z.O)(),f=()=>{a&&(l(!0),er(h,s.uid).then(()=>{l(!1),n()}))},p=()=>{a&&(l(!0),ei(h,s.uid).then(()=>{l(!1),n()}))};return(0,r.jsx)(N.Z,{cancel:n,clickToClose:!0,children:(0,r.jsxs)("div",{id:et().blockUserModal,children:[(0,r.jsxs)(ea.r,{children:[d?"Unmute":"Mute"," ",s.displayName,"?"]}),d?(0,r.jsxs)("p",{children:[s.displayName," will be shown in your feeds."]}):(0,r.jsxs)("p",{children:[s.displayName," will hidden from your feeds."]}),(0,r.jsxs)(ea.m,{children:[(0,r.jsx)("div",{className:et().cancelWrap,children:(0,r.jsx)(U.Z,{onClick:()=>n(),label:"Cancel"})}),(0,r.jsx)(c.Z,{loading:o,visualStyle:"warning",onClick:d?p:f,label:d?"Unmute":"Mute"})]})]})})};var eo=n(86677);let el=()=>null,eu=n(30075),ec=n(97171),ed=n(80754);function eh(e,t,n){var r,a,s,o,l;let{data:u,isLoading:c}=(0,_.aM)(eu,{username:e,feedType:t},{skip:n}),[d,h]=(0,i.useState)((null!==(l=null==u?void 0:null===(r=u.userByUsername)||void 0===r?void 0:null===(a=r.postsFeed)||void 0===a?void 0:a.edges)&&void 0!==l?l:[]).map(e=>null==e?void 0:e.node).filter(K.U)),[f,p]=(0,i.useState)(null==u?void 0:null===(s=u.userByUsername)||void 0===s?void 0:null===(o=s.postsFeed)||void 0===o?void 0:o.pageInfo.endCursor),[m,g]=(0,i.useState)(!1),v=(0,z.O)();(0,i.useEffect)(()=>{if(u){var e,t,n,r,i;h((null!==(i=null==u?void 0:null===(e=u.userByUsername)||void 0===e?void 0:null===(t=e.postsFeed)||void 0===t?void 0:t.edges)&&void 0!==i?i:[]).map(e=>null==e?void 0:e.node).filter(K.U)),p(null===(n=u.userByUsername)||void 0===n?void 0:null===(r=n.postsFeed)||void 0===r?void 0:r.pageInfo.endCursor)}},[u]);let b=()=>{f&&g(!0)};return(0,i.useEffect)(()=>{if(!m||!f)return;let n={username:e,cursor:(parseInt(f)-1).toString(),feedType:t};(0,y.fetchQuery)(v,ed,n,{networkCacheConfig:{force:!0}}).subscribe({next:e=>{var t,n,r,i,a,s,o,l,u;if(!e)return;let c=(null!==(u=null===(t=e.userByUsername)||void 0===t?void 0:null===(n=t.postsFeed)||void 0===n?void 0:n.edges)&&void 0!==u?u:[]).map(e=>null==e?void 0:e.node).filter(K.U);h(e=>e.concat(c)),p((null===(r=e.userByUsername)||void 0===r?void 0:null===(i=r.postsFeed)||void 0===i?void 0:i.pageInfo.hasNextPage)?null===(a=e.userByUsername)||void 0===a?void 0:null===(s=a.postsFeed)||void 0===s?void 0:s.pageInfo.endCursor:void 0),(null===(o=e.userByUsername)||void 0===o?void 0:null===(l=o.postsFeed)||void 0===l?void 0:l.pageInfo.hasNextPage)&&g(!1)}})},[m]),{data:u,posts:d,loadMore:b,isLoading:c}}let ef=n(50593),ep=["Posts","Replies","Media"],em=e=>{var t,a,E,R,N;let V,B,K,G,X,ee,et,en,er,ei,ea,{username:eu}=e,ed=(0,i.useContext)(u.Z),em=(0,i.useContext)(D.vy),ey=(0,i.useContext)(D.St),e_=(0,i.useContext)(x.Z),eb=null!==(t=null==e_?void 0:e_.followers)&&void 0!==t?t:[],ex=null!==(a=null==e_?void 0:e_.following)&&void 0!==a?a:[],[ew,ek]=(0,i.useState)(!1),[eE,eS]=(0,i.useState)("followers"),[eC,eT]=(0,i.useState)(!1),[eI,eR]=(0,i.useState)(!1),[ej,eA]=(0,i.useState)(!1),[eD,eP]=(0,i.useState)(!1),[eN,eL]=(0,i.useState)(!1),[eM,eO]=(0,i.useState)(!1),eF=(0,i.useContext)(F.Z),[eU,eV]=(0,i.useState)(!1),[eB,eq]=(0,i.useState)(!1),[eZ,ez]=(0,i.useState)("Edit profile"),[eH,eK]=(0,i.useState)("Posts"),eW=(0,i.useRef)(null),[e$,eG]=(0,i.useState)(!1),{data:eY,posts:eQ,loadMore:eX,isLoading:eJ}=function(e,t){let n=eh(e,W.a0.TopLevel,t!=W.a0.TopLevel),r=eh(e,W.a0.All,t!=W.a0.All),i=eh(e,W.a0.Media,t!=W.a0.Media);switch(t){case W.a0.TopLevel:return n;case W.a0.All:return r;case W.a0.Media:return i}}(eu,function(e){switch(e){case"Posts":case"Following":return W.a0.TopLevel;case"Replies":return W.a0.All;case"Media":return W.a0.Media}}(eH)),e0=null==eY?void 0:eY.userByUsername,e1=(0,_.Jc)(ec,null!=e0?e0:null),[e2,e3]=(0,i.useState)(e1),e5=-1!==eb.findIndex(e=>"users/".concat(e.uid)===(null==e2?void 0:e2.id)),e4=(null==e2?void 0:e2.id)==="users/".concat(null==em?void 0:em.uid),[e6,e7]=(0,i.useState)(0);(0,i.useEffect)(()=>{e1&&e3(e1)},[e1]);let e8=!(null==e2?void 0:e2.canSee)||(null==e2?void 0:e2.replyPrivacy)==="Following"&&!e5||(null==e2?void 0:e2.replyPrivacy)==="Nobody",e9=(0,i.useContext)(Z.f),te=(0,i.useContext)(D.I6),tt=(0,z.O)(),tn=(0,eo.useRouter)();if((0,i.useEffect)(()=>{te===D.IC.LoggedIn&&e9<=1&&(0,y.fetchQuery)(tt,ef,{username:eu},{fetchPolicy:"network-only"}).toPromise()},[te]),(0,i.useEffect)(()=>{var e;let t=null==e0?void 0:e0.id.split("/")[1];if(!t)return;let n=null==eF?void 0:null===(e=eF.blocked)||void 0===e?void 0:e.some(e=>e.uid.includes(t));n?eV(n):eV(!1)},[e0,eF]),(0,i.useEffect)(()=>{eW.current&&e7(eW.current.offsetLeft)},[]),(0,i.useEffect)(()=>{eW.current&&e7(eW.current.offsetLeft)},[eH]),(0,L.Z)("resize",()=>{eW.current&&e7(eW.current.offsetLeft)}),e2){let e;e="",e2.title&&(e+=e2.title),e2.location&&(e2.title&&(e+=" in "),e+=e2.location),e2.pronouns&&(e.length>0&&(e+=", "),e+=e2.pronouns),V=e}let tr=()=>{let e=null==ey?void 0:ey.metadata.creationTime;if(!e)return 0;let t=new Date(e),n=Math.floor((Date.now()-t.getTime())/36e5);return n},ti=()=>{(0,w.v0)(k.H).signOut().then(()=>{setTimeout(()=>{window.location.href=window.location.origin},10)})};eI&&(B=(0,r.jsx)(S.Z,{cancel:()=>eR(!1),currentUser:em,blockedUser:{uid:null==e2?void 0:e2.id.split("/")[1],displayName:null==e2?void 0:e2.displayName}})),ej&&(K=(0,r.jsx)(es,{cancel:()=>eA(!1),currentUser:em,blockedUser:{uid:null==e2?void 0:e2.id.split("/")[1],displayName:null==e2?void 0:e2.displayName}}));let ta=()=>{Promise.all([n.e(417),n.e(7291),n.e(6637),n.e(3510),n.e(6381),n.e(9236)]).then(n.bind(n,16759)).then(e=>{el=e.default,eP(!0)})};if(eD&&(G=(0,r.jsx)(el,{cancel:()=>eP(!1),defaultTab:eZ})),ew&&e_&&(X=(0,r.jsx)(M.Z,{context:"posts",defaultTab:eE,followDoc:e_,currentUser:ey,cancel:()=>ek(!1)})),eN&&(ee=(0,r.jsx)(O.Z,{newProfile:!1,cancel:()=>eL(!1),redirectURL:tn.asPath})),eM&&(et=(0,r.jsx)(ev,{cancel:()=>eO(!1),uid:null!==(E=null==e2?void 0:e2.id.split("/")[1])&&void 0!==E?E:"",username:null!==(R=null==e2?void 0:e2.username)&&void 0!==R?R:""})),e$&&(en=(0,r.jsx)(q.Z,{requiredAge:24,currentAge:tr(),cancel:()=>eG(!1)})),!e2)return null;let ts="https://read.cv/api/posts/profile/"+(null==e2?void 0:e2.username),to=(0,r.jsxs)(j(),{children:[(0,r.jsx)("title",{children:null==e2?void 0:e2.displayName},"title"),(0,r.jsx)("meta",{name:"description",content:V},"description"),(0,r.jsx)("meta",{property:"og:image",content:ts},"og:image"),(0,r.jsx)("meta",{property:"og:title",content:(null==e2?void 0:e2.displayName)?(null==e2?void 0:e2.displayName)+" on Posts":""},"og:title"),(0,r.jsx)("meta",{property:"og:description",content:V},"og:description"),(0,r.jsx)("meta",{property:"og:site_name",content:"Posts by Read.cv"},"og:site_name"),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,r.jsx)("meta",{name:"twitter:title",content:(null==e2?void 0:e2.displayName)?(null==e2?void 0:e2.displayName)+" on Posts":""},"twitter:title"),(0,r.jsx)("meta",{name:"twitter:description",content:V},"twitter:description"),(0,r.jsx)("meta",{name:"twitter:image",content:ts},"twitter:image")]});return("Posts"===eH||"Replies"===eH?er=(0,r.jsx)(H.X,{username:eu,posts:eQ,circumventBlock:eB,loadMore:eX,isLoading:eJ}):"Media"===eH&&(er=(0,r.jsx)(H._,{username:eu,posts:eQ,loadMore:eX,isLoading:eJ})),(null==e2?void 0:e2.website)&&(ei=(0,r.jsx)("div",{className:Y().link,children:(0,r.jsx)(l.Z,{to:(0,b.ZP)(null==e2?void 0:e2.website),hover:!1,type:"external",children:null==e2?void 0:e2.website.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").replace(/\/$/,"")})})),!e2.supporterInfo||"supporter"!==e2.supporterInfo.tier||(null==e2?void 0:e2.verified)?e2.verified&&(ea=(0,r.jsx)($.Z,{compress:null!==ei,type:"verified"})):ea=(0,r.jsx)($.Z,{compress:null!==ei,type:"supporter"}),e2)?(0,r.jsxs)(r.Fragment,{children:[to,(0,r.jsx)(p.Z,{hideShadow:!0,title:"@"+(null==e2?void 0:e2.username),secondaryText:e5&&!e4?"follows you":void 0,action:(0,r.jsx)(g.Z,{close:()=>eT(!1),open:eC,alignment:"right",component:e4?(0,r.jsx)(v.Z,{items:[{label:"Settings",action:()=>{ez("Account settings"),ta(),eT(!1)}},{label:"Log out",action:()=>{ti(),eT(!1)}}]}):(0,r.jsx)(C.Z,{blockedUser:{uid:e2.id.split("/")[1],displayName:e2.displayName,username:e2.username},mute:()=>{eT(!1),eA(!0)},block:()=>{eT(!1),eR(!0)},cancel:()=>{eT(!1)}}),children:(0,r.jsx)(c.Z,{onClick:()=>eT(!0),icon:(0,r.jsx)(m.Z,{fill:ed.grey1}),visualStyle:"light"})})}),(0,r.jsxs)("div",{className:s().profile,children:[(0,r.jsxs)("div",{className:s().profileHeader,children:[(0,r.jsx)("div",{className:s().profilePhoto,children:e4&&ey?(0,r.jsx)(A.Z,{currentUser:ey}):(0,r.jsx)(o.Z,{path:null==e2?void 0:e2.photoURL,name:"username",size:92})}),(0,r.jsxs)("div",{className:s().profileInfo,children:[(0,r.jsx)("div",{className:s().displayName,children:null==e2?void 0:e2.displayName}),(0,r.jsx)("div",{className:s().byline,children:V}),ei||ea?(0,r.jsxs)("div",{className:Y().badges,children:[ei,ea]}):null]})]}),(!eU||eB)&&e2.canSee?(0,r.jsxs)("div",{className:s().profileActions,children:[e4?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{onClick:()=>{eS("following"),ek(!0)},label:(0,r.jsx)("span",{className:s().truncatedText,children:ex.length.toLocaleString()+" following"}),className:"".concat(s().followButton," ").concat(s().light)}),(0,r.jsx)(c.Z,{onClick:()=>{eS("followers"),ek(!0)},label:(0,r.jsx)("span",{className:s().truncatedText,children:eb.length.toLocaleString()+" followers"}),className:"".concat(s().followButton," ").concat(s().light)})]}):ey?(0,r.jsx)(eg,{userID:null!==(N=e2.id)&&void 0!==N?N:""}):(0,r.jsx)(c.Z,{className:s().followButton,label:"Follow",visualStyle:"dark",onClick:()=>eL(!0)}),e4||e8?null:(0,r.jsx)(f.Z,{string:"Message",children:(0,r.jsx)(c.Z,{icon:(0,r.jsx)("div",{style:{transform:"translateX(-2px)"},children:(0,r.jsx)(d.Z,{fill:ed.grey1})}),className:s().iconButton,onClick:()=>{ey?24>tr()?eG(!0):eO(!0):eL(!0)}})}),(0,r.jsx)(f.Z,{string:"read.cv/"+(null==e2?void 0:e2.username),children:(0,r.jsx)(l.Z,{type:"external",to:"https://read.cv/"+e2.username,children:(0,r.jsx)("div",{className:J()(s().iconButton,s().cvLink),children:(0,r.jsx)(h.Z,{fill:ed.grey1})})})}),e4?(0,r.jsx)(f.Z,{string:"Edit profile",children:(0,r.jsx)(c.Z,{icon:(0,r.jsx)(P.Z,{fill:ed.grey1}),className:s().iconButton,onClick:()=>{ez("Edit profile"),ta()}})}):null]}):null,(0,r.jsxs)("div",{className:s().profileTabs,children:[(0,r.jsx)(T.E.div,{initial:{x:e6},animate:{x:e6},transition:Q.O$,className:s().activeTabIndicator}),ep.map((e,t)=>(0,r.jsx)("button",{ref:eH===e?eW:null,"data-selected":e===eH,onClick:()=>eK(e),className:s().profileTab,children:(0,r.jsx)(T.E.div,{animate:{color:eH===e?ed.grey1:ed.grey3},className:s().label,children:e})},t))]})]}),(!eU||eB)&&e2.canSee?er:(0,r.jsx)("div",{className:s().emptyProfile,children:e2.canSee?(0,r.jsxs)("div",{children:["You blocked @",null==e2?void 0:e2.username," \xb7 ",(0,r.jsx)(U.Z,{label:"View anyway",onClick:()=>eq(!0)})]}):(0,r.jsx)("div",{children:"This user has blocked you"})}),(0,r.jsxs)(I.M,{children:[B,K,G,X,ee,et,en]})]}):null},eg=e=>{var t,n;let{userID:a,context:o}=e;(0,i.useContext)(u.Z);let l=(0,i.useContext)(x.Z),d=-1!==(null!==(t=null==l?void 0:l.following)&&void 0!==t?t:[]).findIndex(e=>"users/".concat(e.uid)===a),h=-1!==(null!==(n=null==l?void 0:l.followers)&&void 0!==n?n:[]).findIndex(e=>"users/".concat(e.uid)===a),[f,p]=(0,i.useState)(d),[m,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(d?h?"Follow back":"Follow":"Following"),[_,b]=(0,i.useState)(d?"dark":void 0),w=(0,i.useContext)(D.St),k=a.substring(a.lastIndexOf("/")+1),S=()=>{g(!0),(0,E.Bq)({action:d?"unfollow":"follow",uid:k}).then(e=>{})};return(0,i.useEffect)(()=>{y(d?h?"Follow back":"Follow":"Following"),b(d?"dark":void 0),g(!1)},[d]),(0,r.jsx)(c.Z,{onClick:e=>{!m&&w&&(S(),e.stopPropagation())},onMouseDown:e=>{e.stopPropagation()},label:m?(0,r.jsx)("span",{children:v}):(0,r.jsx)("span",{children:d?"Following":h?"Follow back":"Follow"}),visualStyle:m?_:d?void 0:"dark",className:"userRow"===o?"".concat(s().followButton," ").concat(s().userRow):s().followButton})},ev=e=>{let{cancel:t,uid:n,username:a}=e,[s,o]=(0,i.useState)(""),[l,u]=(0,i.useState)(!1),d={type:"other",data:void 0};return(0,r.jsx)(N.Z,{cancel:t,children:(0,r.jsxs)("div",{style:{padding:24,paddingTop:20},children:[(0,r.jsx)(ea.r,{children:"New message"}),(0,r.jsx)("div",{style:{marginTop:12,marginBottom:16},children:(0,r.jsx)(V.Z,{value:s,onChange:e=>o(e.target.value),placeholder:"Message @"+a+"…",lines:3})}),(0,r.jsxs)(ea.m,{children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",marginRight:12},children:(0,r.jsx)(U.Z,{label:"Cancel",onClick:t})}),(0,r.jsx)(c.Z,{label:"Send",disabled:s.length<=0,onClick:()=>{u(!0),(0,E.Kl)({recipient:n,message:{thread:"",idempotent:(0,B.Z)(),replyContent:d,text:s}}).then(e=>{u(!1),t()})},loading:l})]})]})})};var ey=em},64485:function(e,t,n){"use strict";n.d(t,{X:function(){return _},_:function(){return b}});var r=n(24246),i=n(27378),a=n(2417),s=n(5678),o=n(45013),l=n.n(o),u=n(92401),c=n(99800),d=n(7272),h=n(21152),f=n(83181),p=n(60835),m=n.n(p),g=n(21460),v=n(3420);let y=n(87096),_=e=>{let{username:t,posts:n,circumventBlock:s,loadMore:o,isLoading:u}=e,c=(0,i.useMemo)(()=>n.map(e=>(0,a.readInlineData)(y,e)),[n]),p=(0,d.MG)({count:c.length,getScrollElement:()=>document.body,estimateSize:e=>150,overscan:5,getItemKey:e=>c[e].id}),_=p.getVirtualItems(),b=(0,i.useContext)(v.Z);return 0===c.length?u?(0,r.jsx)("div",{className:l().loadingIndicator,children:(0,r.jsx)(g.Z,{fill:b.grey1})}):(0,r.jsx)("div",{className:m().emptyProfile,children:"No posts yet \uD83C\uDF43"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{height:p.getTotalSize(),width:"100%",position:"relative"},children:(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:_.length>0?"translateY(".concat(_[0].start,"px)"):""},children:_.map(e=>{var t;let n=c[e.index],i=null!==(t=n.repostedPost)&&void 0!==t?t:n,a=n.repostedPost&&n.poster?(0,r.jsx)(f.W5,{context:"repost",person:n.poster}):void 0,o=(0,r.jsx)(f.ZP,{overrideBlock:s,data:i,postContext:a,repostID:n.repostedPost?n.id:void 0,context:"profile"},n.id);return(0,r.jsx)("div",{"data-index":e.index,ref:p.measureElement,children:o},e.key)})})}),(0,r.jsx)(h.Z,{onVisible:()=>o()})]})},b=e=>{let{username:t,posts:n,loadMore:s,isLoading:o}=e,u=(0,i.useMemo)(()=>n.map(e=>(0,a.readInlineData)(y,e)),[n]),c=(0,i.useRef)(null),f=(0,d.MG)({count:u.length,getScrollElement:()=>document.body,estimateSize:e=>150,overscan:5,lanes:2,getItemKey:e=>e}),p=f.getVirtualItems(),m=(0,i.useContext)(v.Z);return 0===n.length&&o?(0,r.jsx)("div",{className:l().loadingIndicator,children:(0,r.jsx)(g.Z,{fill:m.grey1})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:c,className:l().mediaTab,style:{marginTop:8,height:f.getTotalSize(),width:"calc(100% - 16px)",position:"relative"},children:p.map(e=>{let n=u[e.index],i=n.embedPayload.media[0];return(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0===e.lane?0:void 0,right:1===e.lane?0:void 0,width:"calc(50% - 4px)",height:"".concat(u[e.index],"px"),transform:"translateY(".concat(e.start,"px)"),paddingBottom:8},"data-index":e.index,ref:f.measureElement,children:(0,r.jsx)(x,{username:t,size:{width:i.width,height:i.height},type:i.type,url:i.url,id:n.id.split("/")[1]},n.id)},e.index)})}),(0,r.jsx)(h.Z,{onVisible:()=>s()})]})},x=e=>{let t,{type:n,size:i,url:a,altText:o,username:d,id:h}=e,f=i.width/i.height;return t="video"===n?(0,r.jsx)("video",{src:(0,u.LP)(a,u.UX.Posts),autoPlay:!0,muted:!0,playsInline:!0,loop:!0}):(0,r.jsx)(c.Z,{alt:null!=o?o:"",sources:(0,u.NR)(a,{mode:u.yX.Fit,width:430,height:430/f})}),(0,r.jsx)("div",{className:l().mediaTabItem,style:{paddingBottom:i.height/i.width*100+"%"},children:(0,r.jsx)(s.Z,{to:"/"+d+"/"+h,hover:!1,children:t})})}},39245:function(e,t,n){"use strict";var r=n(24246),i=n(27378),a=n(61615),s=n(26464),o=n(20233),l=n(22119),u=n(86992),c=n(9186),d=n(46605),h=n(71517),f=n(51056),p=n(79322),m=n.n(p),g=n(32345),v=n(21460),y=n(24550),_=n(2417),b=n(73941),x=n(1393),w=n(7067),k=n(34370),E=n(80121),S=n(1967),C=n(29107),T=n(3420),I=n(20988),R=n(31507);let j=n(39115),A=e=>{let t,{cancel:n}=e,[p,A]=(0,i.useState)(""),[D,P]=(0,i.useState)(""),[N,L]=(0,i.useState)(""),[M,O]=(0,i.useState)(!1),[F,U]=(0,i.useState)(!1),[V,B]=(0,i.useState)(!1),[q,Z]=(0,i.useState)(1),[z,H]=(0,i.useState)(),[K,W]=(0,i.useState)(""),[$,G]=(0,b.useMutation)(j),[Y,Q]=(0,i.useState)(!1),[X,J]=(0,i.useState)(),[ee,et]=(0,i.useState)(!1),en=(0,i.useContext)(T.Z);(0,i.useEffect)(()=>{B(!0),(0,a.Z)(D).then(e=>{O(e),B(!1)}),U((0,s.ZP)(D))},[D]),M?F||(t="Username is invalid"):t="Username is taken";let er=e=>{switch(e){case 1:return(0,r.jsxs)("div",{className:m().slide,children:[(0,r.jsx)(R.r,{children:"Create a Team Profile"}),(0,r.jsxs)("div",{className:m().illustration,children:[(0,r.jsx)("img",{src:"/assets/jazz-people.png"}),(0,r.jsx)(o.E.img,{initial:{x:5},animate:{rotate:[20,30,20]},transition:{duration:.6,repeat:1/0,ease:"linear"},style:{transformOrigin:"49% 15%"},src:"/assets/jazz-people-note-1.png"}),(0,r.jsx)(o.E.img,{initial:{x:-5},animate:{rotate:[15,5,15]},transition:{duration:.6,repeat:1/0,ease:"linear"},style:{transformOrigin:"42% 15%"},src:"/assets/jazz-people-note-2.png"})]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Empower anyone on your team to build and maintain a profile, without designers or developers."})}),(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Equip recruiters with a unique and compelling candidate outreach tool."})}),(0,r.jsx)("li",{children:(0,r.jsx)("p",{children:"Connect with community and create job listings on Read.cv."})})]}),(0,r.jsx)("div",{className:m().slideFooter,children:(0,r.jsxs)(R.m,{children:[(0,r.jsx)("div",{className:m().cancelWrap,children:(0,r.jsx)(f.Z,{onClick:()=>n(),label:"Cancel"})}),(0,r.jsx)(d.Z,{onClick:()=>Z(2),label:"Get started"})]})})]});case 2:return(0,r.jsxs)("div",{className:m().slide,children:[(0,r.jsx)(R.r,{children:"Let's set up the basics!"}),(0,r.jsxs)("div",{className:"".concat(m().row," ").concat(m().profilePhotoPicker),children:[(0,r.jsx)(y.Z,{onSelectFile:H},K),(0,r.jsx)(d.Z,{label:"Remove image",onClick:()=>{H(void 0),W(Date.now().toString())}})]}),(0,r.jsx)("div",{className:m().row,children:(0,r.jsx)(h.Z,{label:"Team username*",lowercase:!0,errorMessage:D.length>0?t:void 0,error:D.length>0&&!(F&&M),valid:D.length>0&&F&&M,value:D,onChange:e=>P(e.target.value),placeholder:"Your unique @username"})}),(0,r.jsx)("div",{className:m().row,children:(0,r.jsx)(h.Z,{label:"Team display name*",value:p,valid:p.length>0,characterLimit:48,onChange:e=>e.target.value.length<=48?A(e.target.value):null,placeholder:"The name of your team"})}),(0,r.jsx)("div",{className:m().row,children:(0,r.jsx)(h.Z,{label:"Team byline",value:N,characterLimit:96,onChange:e=>e.target.value.length<=96?L(e.target.value):null,placeholder:"A one-liner about your team"})}),(0,r.jsx)("div",{className:m().slideFooter,children:(0,r.jsxs)(R.m,{children:[(0,r.jsx)("div",{className:"".concat(m().cancelWrap," ").concat(m().back),children:(0,r.jsx)(f.Z,{onClick:()=>Z(1),label:"Back"})}),(0,r.jsx)(d.Z,{disabled:!(p.length>0)||!(F&&M)||V,onClick:()=>{let e={};z&&(e.file=z),$({variables:{input:{username:D,teamByline:N,teamName:p,updateProfilePicture:!!z}},uploadables:e,onCompleted:e=>{var t;(null===(t=e.createTeam)||void 0===t?void 0:t.query)&&(0,I.Cb)((0,_.readInlineData)(I.fS,e.createTeam.query).adminableTeams),Q(!1),J(e),setTimeout(()=>{Z(4)},1e3)}}),Q(!0),Z(3)},label:"Create Team"})]})})]});case 3:return(0,r.jsx)("div",{className:m().slide,children:(0,r.jsxs)("div",{className:m().loader,children:[(0,r.jsxs)("div",{className:m().loadingIllustration,children:[(0,r.jsx)(o.E.div,{animate:{y:[0,-20,0]},transition:{duration:2,repeat:1/0},className:m().star,children:(0,r.jsx)("img",{src:"/assets/volunteer.png"})}),(0,r.jsx)("div",{className:m().hand,children:(0,r.jsx)("img",{src:"/assets/volunteer.png"})})]}),(0,r.jsx)("div",{className:m().text,children:(0,r.jsx)(l.M,{exitBeforeEnter:!0,children:Y?(0,r.jsxs)(o.E.div,{initial:{opacity:1,scale:1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:u.O9,children:[(0,r.jsx)(v.Z,{}),(0,r.jsx)("span",{children:"Creating Team…"})]},"creating"):(0,r.jsx)(o.E.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:u.O9,children:(0,r.jsx)("span",{children:"Complete!"})},"success")})})]})});case 4:return(0,r.jsxs)("div",{className:m().slide,children:[(0,r.jsx)(R.r,{children:"Start building your Team"}),(0,r.jsxs)("div",{className:m().dashboardIcons,children:[(0,r.jsx)(x.Z,{fill:en.grey1}),(0,r.jsx)(k.Z,{fill:en.grey1}),(0,r.jsx)(w.Z,{fill:en.grey1}),(0,r.jsx)(E.Z,{fill:en.grey1}),(0,r.jsx)(S.Z,{fill:en.grey1})]}),(0,r.jsxs)("p",{children:["Visit your team dashboard to begin adding details to your Team profile. You can get back to your Team profile from the sidebar",(0,r.jsx)("span",{style:{position:"relative",display:"inline-block"},children:(0,r.jsx)("div",{className:m().menuButton,children:(0,r.jsx)(C.Z,{fill:en.grey1})})})]}),(0,r.jsx)("div",{className:m().slideFooter,style:{marginTop:"auto"},children:(0,r.jsxs)(R.m,{children:[(0,r.jsx)("div",{className:m().cancelWrap,children:(0,r.jsx)(f.Z,{onClick:()=>n(),label:"Done"})}),(0,r.jsx)(d.Z,{label:"Visit dashboard",loading:ee,onClick:()=>{et(!0),(0,g.I_)({teamUsername:D.toLowerCase()}).then(e=>{let{url:t}=e;et(!1),window.open(t,"_blank")||(window.location.href=t)})}})]})})]})}};return(0,r.jsx)(c.Z,{maxWidth:415,cancel:()=>n(),clickToClose:!1,children:(0,r.jsxs)(o.E.div,{animate:{x:-((q-1)*100)/4+"%"},transition:u.D_,className:m().carousel,children:[(0,r.jsx)("div",{className:m().slideWrap,children:er(1)}),(0,r.jsx)("div",{className:m().slideWrap,children:er(2)}),(0,r.jsx)("div",{className:m().slideWrap,children:er(3)}),(0,r.jsx)("div",{className:m().slideWrap,children:er(4)})]})})};t.Z=A},38341:function(e,t,n){"use strict";n.d(t,{A1:function(){return r},E6:function(){return a},Hf:function(){return s},LF:function(){return u},LN:function(){return i},Mf:function(){return o},_G:function(){return l}});let r="https://open.spotify.com/playlist/",i="https://open.spotify.com/embed/playlist/",a="https://www.loom.com/share/",s=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/,o=/(http|https)?:\/\/(www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|)(\d+)(?:|\/\?)/,l=/^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)$/,u="https://www.are.na/"},98799:function(){},78159:function(e){e.exports={button:"Button_button__AQ1KL",spinnerWrapper:"Button_spinnerWrapper__T9xPS",icon:"Button_icon___WOGE",chevron:"Button_chevron__SI1SM"}},29843:function(e){e.exports={buttonLink:"ButtonLink_buttonLink__m4_Jf",snippetbtn:"ButtonLink_snippetbtn__fvGZL",typeahead:"ButtonLink_typeahead__JCwYm",customize:"ButtonLink_customize__UOcEZ"}},61393:function(e){e.exports={select:"Select_select__xjTcB",label:"Select_label__hE5mx"}},46035:function(e){e.exports={spinner:"Spinner_spinner__c1O2v",img:"Spinner_img__6RSZa",spin:"Spinner_spin__BwtQG"}},85322:function(e){e.exports={emojiWrap:"EmojiStatus_emojiWrap__O9GFU",bannerContext:"EmojiStatus_bannerContext__F4UV_",profileContext:"EmojiStatus_profileContext__uduqk"}},71779:function(e){e.exports={loginModal:"LoginModal_loginModal__n2PL8",column:"LoginModal_column__iWQVT",authButtons:"LoginModal_authButtons__MXL9E",google:"LoginModal_google__EyBL7",confirmationFooter:"LoginModal_confirmationFooter__kEXRB",modalSpacer:"LoginModal_modalSpacer__DMYE6",special:"LoginModal_special__qNCXE",inputWrapper:"LoginModal_inputWrapper__mrDtE",cancelWrap:"LoginModal_cancelWrap__bW91_"}},52066:function(e){e.exports={menu:"Menu_menu__735kq",menuItem:"Menu_menuItem__qvXO4",sublabel:"Menu_sublabel__VHYjh",plusBadge:"Menu_plusBadge__xOaWu",heading:"Menu_heading__ldupT"}},60934:function(e){e.exports={backdrop:"Modal_backdrop___Id6O",padding:"Modal_padding__jfqyf",card:"Modal_card__0oSoE"}},34649:function(e){e.exports={modalTitle:"ModalHelpers_modalTitle__88RMc",modalFooter:"ModalHelpers_modalFooter__f0F4V"}},56745:function(e){e.exports={popoverWrap:"Popover_popoverWrap__WBCCw",popoverBackdrop:"Popover_popoverBackdrop__YD9iZ",popover:"Popover_popover__5YmAJ",popoverCard:"Popover_popoverCard___XMas"}},55826:function(e){e.exports={profilePhoto:"ProfilePhoto_profilePhoto__WTkVX",default:"ProfilePhoto_default__FBgsF",status:"ProfilePhoto_status__8BQhY"}},20956:function(e){e.exports={switch:"Switch_switch__y4T9r"}},11901:function(e){e.exports={input:"TextInput_input__Oo6rP",label:"TextInput_label__qXwoG",labelAction:"TextInput_labelAction__YCOQ0",error:"TextInput_error__vnRo9",characterLimit:"TextInput_characterLimit__SGUWj",inputWrap:"TextInput_inputWrap__QwmxR",checkmark:"TextInput_checkmark__i4aJw",spinnerWrapper:"TextInput_spinnerWrapper__4_8EG",icon:"TextInput_icon__1FSnb"}},96127:function(e){e.exports={tooltipWrap:"Tooltip_tooltipWrap__h6lT8",tooltip:"Tooltip_tooltip__Uk_I2"}},39885:function(e){e.exports={markdownContent:"MarkdownContent_markdownContent__5IwDa",editor:"MarkdownContent_editor__VkIF9"}},33619:function(e){e.exports={megalink:"MegaLink_megalink__u_TFB"}},83370:function(e){e.exports={profileButton:"ProfileButton_profileButton__ES5mg",icon:"ProfileButton_icon__TGNuz"}},53559:function(e){e.exports={profilePhotoPicker:"ProfilePhotoPicker_profilePhotoPicker__3G7an",cameraIcon:"ProfilePhotoPicker_cameraIcon__wMgrY",spinner:"ProfilePhotoPicker_spinner___CSB8"}},43407:function(e){e.exports={track:"Scrollbar_track__6yBv3",bar:"Scrollbar_bar__uvySG"}},6681:function(e){e.exports={snippet:"Snippet_snippet__6H4ZH",masher:"Snippet_masher__OH_Bj"}},95352:function(e){e.exports={statusBubble:"Status_statusBubble__f6KaO",inFeed:"Status_inFeed__4i_tS",inInbox:"Status_inInbox__iPRFZ",statusBody:"Status_statusBody___omIh",displayName:"Status_displayName__2Y5HB",statusFooter:"Status_statusFooter__DhkAK",time:"Status_time___3mUO",count:"Status_count__LdrYs",spacer:"Status_spacer__NNmKb",hideWhenPrinting:"Status_hideWhenPrinting__kt1Yo"}},93285:function(e){e.exports={freeBadge:"SupporterBadge_freeBadge__H_DBJ",supporterBadge:"SupporterBadge_supporterBadge__SvyrA",verifiedBadge:"SupporterBadge_verifiedBadge__3Kome",supporterIcon:"SupporterBadge_supporterIcon__1cogM",supporterLabel:"SupporterBadge_supporterLabel__1z9FK"}},18345:function(e){e.exports={textarea:"TextArea_textarea__silKv",label:"TextArea_label__QYiab",textareaWrap:"TextArea_textareaWrap__gzx83",hidden:"TextArea_hidden__Asx11"}},50842:function(e){e.exports={lock:"Lock20_lock__hC7ea",frames:"Lock20_frames__8_eO5"}},70137:function(e){e.exports={container:"__404_container__DyrEF",image:"__404_image__8bf6Y",emoji:"__404_emoji__ryq4J",positioner:"__404_positioner__WeQEE",innerEmoji:"__404_innerEmoji__k72Be"}},71942:function(e){e.exports={container:"AppWrapper_container__j_5Tm",content:"AppWrapper_content__s_sbE",sidebarHolder:"AppWrapper_sidebarHolder__On7Cv"}},31995:function(e){e.exports={badge:"BadgedDisplayName_badge___6xTy",small:"BadgedDisplayName_small__9cIhE"}},52612:function(e){e.exports={threadOptions:"BlockPopover_threadOptions__d9CSs",warning:"BlockPopover_warning__9bM_3"}},95773:function(e){e.exports={blockUserModal:"BlockUserModal_blockUserModal__19QM0",cancelWrap:"BlockUserModal_cancelWrap__qB83_"}},47047:function(e){e.exports={commandBar:"CommandBar_commandBar__T_ket",input:"CommandBar_input__faNlz",shadow:"CommandBar_shadow__DynT1",searchIcon:"CommandBar_searchIcon__7_jCF",shortcutHelper:"CommandBar_shortcutHelper__clc8_",scrollableArea:"CommandBar_scrollableArea__wOZOH",commandBarFooter:"CommandBar_commandBarFooter__epYfj",shortcut:"CommandBar_shortcut__cgiNQ",keycap:"CommandBar_keycap__Bhe63",filters:"CommandBar_filters__sRA4Y",filtersInner:"CommandBar_filtersInner__I227q",filter:"CommandBar_filter__L3sjA",filterBookend:"CommandBar_filterBookend__MYKBh",activeFilter:"CommandBar_activeFilter__Mxi7r",rows:"CommandBar_rows__AOBmA",row:"CommandBar_row__MMmAB",icon:"CommandBar_icon__Xrsb9",iconWrap:"CommandBar_iconWrap__lTOXb",divider:"CommandBar_divider__T7Ezv",userDetails:"CommandBar_userDetails__lKivu",newTabIcon:"CommandBar_newTabIcon__sKjl3",bio:"CommandBar_bio__1bpqW",displayName:"CommandBar_displayName__5GDOA",header:"CommandBar_header__QaJqW",rolesHeader:"CommandBar_rolesHeader__PmdGf",filterHeading:"CommandBar_filterHeading__JSnyQ",options:"CommandBar_options__6ofwt",popoverScrollableArea:"CommandBar_popoverScrollableArea__0N5Fp",optionsRow:"CommandBar_optionsRow__RAK9y",optionsHoveringRow:"CommandBar_optionsHoveringRow__vAw9j",selectedRoles:"CommandBar_selectedRoles__rX_ez",selectedRole:"CommandBar_selectedRole__5ZC_Z",yearsOfExperiencePopover:"CommandBar_yearsOfExperiencePopover__4Fb9W",label:"CommandBar_label__bpwC5",buttonWrap:"CommandBar_buttonWrap__wEl23",yearsOfExperienceRow:"CommandBar_yearsOfExperienceRow__71sYL",numberInput:"CommandBar_numberInput__tQ5Rc",yearsOfExperienceFooter:"CommandBar_yearsOfExperienceFooter__JzHIV"}},64687:function(e){e.exports={contact:"ContactItem_contact__9zpDH",insideForm:"ContactItem_insideForm__IfNrh",platform:"ContactItem_platform__6b5md",platformLink:"ContactItem_platformLink___dB19"}},56629:function(e){e.exports={displayNameComponent:"DisplayName_displayNameComponent__Uoa1v",badge:"DisplayName_badge__F0Oy7"}},47897:function(e){e.exports={emojiPicker:"EmojiPicker_emojiPicker__UA2vq",emojiPickerHeader:"EmojiPicker_emojiPickerHeader__37i6h",skinTone:"EmojiPicker_skinTone__vPG_O",emoji:"EmojiPicker_emoji__SNxej",emojiLoadingIndicator:"EmojiPicker_emojiLoadingIndicator__IcydK"}},72880:function(e){e.exports={lightbox:"Lightbox_lightbox__15e_X",inner:"Lightbox_inner__ipYP0",navButton:"Lightbox_navButton__FZjby",next:"Lightbox_next__Bb8DH",previous:"Lightbox_previous__WOujy",controls:"Lightbox_controls__eMtYj",closeButton:"Lightbox_closeButton__3BCAu",count:"Lightbox_count__q_SL4",images:"Lightbox_images__mxap9",mobileScrollView:"Lightbox_mobileScrollView__kQpX8",image:"Lightbox_image__XT63S",imgWrap:"Lightbox_imgWrap__hXbNj",backdrop:"Lightbox_backdrop__3pkt5"}},83896:function(e){e.exports={aboutFooter:"PageFooter_aboutFooter__rlqHL"}},20391:function(e){e.exports={buttons:"Print_buttons__uYVAC",tip:"Print_tip__Z_VFK",printSettings:"Print_printSettings__GuVMH",printOption:"Print_printOption__oFV0u",printBody:"Print_printBody__JOhtz",printFooter:"Print_printFooter__v3ukw"}},84530:function(e){e.exports={profileHeader:"Profile_profileHeader__KZGM6",profilePhotoWrap:"Profile_profilePhotoWrap__FpL2P",profileInfo:"Profile_profileInfo__to5I_",displayName:"Profile_displayName__uQDzB",link:"Profile_link__K5O7y",tooltipWrap:"Profile_tooltipWrap__CVo_L",statusButton:"Profile_statusButton__LxRc_",emptyProfilePhoto:"Profile_emptyProfilePhoto__NUMr9",emptyProfileStatus:"Profile_emptyProfileStatus__y81OV",blockedProfileStatus:"Profile_blockedProfileStatus___hp7Q",blockedInterstitial:"Profile_blockedInterstitial__rLAWT",aboutID:"Profile_aboutID__Z2GAs",editProfileButton:"Profile_editProfileButton__t1adz",blankState:"Profile_blankState__JFJ0I",printModal:"Profile_printModal__iBMw8",badges:"Profile_badges__uMcrx",tabs:"Profile_tabs__i_pTF",tab:"Profile_tab__Q6Wih",activeTabIndicator:"Profile_activeTabIndicator__1pTaP",profileActions:"Profile_profileActions__8HLmD",about:"Profile_about__Q_Z_r",breakInside:"Profile_breakInside__ZPmEM",ellipsis:"Profile_ellipsis__QVdLJ"}},63623:function(e){e.exports={profileEditor:"ProfileEditor_profileEditor__v4RMx",profileEditorMaster:"ProfileEditor_profileEditorMaster__CrLvy",profileEditorMasterTabs:"ProfileEditor_profileEditorMasterTabs__9ZAKP",masterTab:"ProfileEditor_masterTab__NsMAk",masterTabIcon:"ProfileEditor_masterTabIcon__z5oX9",profileIcon:"ProfileEditor_profileIcon__dfRCt",masterTabContentWrap:"ProfileEditor_masterTabContentWrap__yYw3w",masterContent:"ProfileEditor_masterContent__j2JW1",scrollableList:"ProfileEditor_scrollableList__Wo_Hr",dragHandle:"ProfileEditor_dragHandle__pKWZn",profileEditorDetail:"ProfileEditor_profileEditorDetail__DUrdk",profileEditorContent:"ProfileEditor_profileEditorContent__LN6g3",form:"ProfileEditor_form__A4Cei",editing:"ProfileEditor_editing__T159g",profileEditorHeader:"ProfileEditor_profileEditorHeader__nrZ5A",profileEditorBlankState:"ProfileEditor_profileEditorBlankState__4Q61Y",blankStateLink:"ProfileEditor_blankStateLink__PXT9X",blankStateIllustration:"ProfileEditor_blankStateIllustration__Kw55q",photoPickerWrap:"ProfileEditor_photoPickerWrap__iEC8x",profileEditorFooter:"ProfileEditor_profileEditorFooter__7jYOu",buttons:"ProfileEditor_buttons__ogmmF",backButtonWrap:"ProfileEditor_backButtonWrap___noNn",backButton:"ProfileEditor_backButton__UBUSp",pageEditorWrap:"ProfileEditor_pageEditorWrap__WvKzR",postsUpsell:"ProfileEditor_postsUpsell__TjjZx",writingToggle:"ProfileEditor_writingToggle__lSr6b",overflowButton:"ProfileEditor_overflowButton__UshhX",row:"ProfileEditor_row__1tWlf",singleItem:"ProfileEditor_singleItem__nPme0",textAreaWrapper:"ProfileEditor_textAreaWrapper__Sa5n4",formActions:"ProfileEditor_formActions__euU3k",supporterToggle:"ProfileEditor_supporterToggle__b1PFl",supporterLabel:"ProfileEditor_supporterLabel__kuVxv",supporterDescription:"ProfileEditor_supporterDescription__EgnTP",switch:"ProfileEditor_switch__yXFhJ"}},45080:function(e){e.exports={experience:"ProfileItem_experience__YXtvH",duration:"ProfileItem_duration__utkpJ",experienceContent:"ProfileItem_experienceContent__0E9pa",innerExperienceContent:"ProfileItem_innerExperienceContent__0mXGV",title:"ProfileItem_title__rsz3J",titleLink:"ProfileItem_titleLink__qXU7l",location:"ProfileItem_location__5TQPF",description:"ProfileItem_description__9_b0E",collaborators:"ProfileItem_collaborators__aSb2p",caseStudyLink:"ProfileItem_caseStudyLink__5j6oQ",pageIcon:"ProfileItem_pageIcon__tTKUf",label:"ProfileItem_label__HaBDd",images:"ProfileItem_images__Z9kAd",form:"ProfileItem_form__qIY_4",inInbox:"ProfileItem_inInbox__vs9bn",inFeed:"ProfileItem_inFeed__xbDu2",inForm:"ProfileItem_inForm__r6W2a"}},78339:function(e){e.exports={teams:"ProfileSectionTeams_teams__MYZKG"}},30420:function(e){e.exports={writingTab:"ProfileWritingTabContent_writingTab__jRAyV",yearSection:"ProfileWritingTabContent_yearSection__ahazB",dateMarker:"ProfileWritingTabContent_dateMarker__VtkM3",dateContainer:"ProfileWritingTabContent_dateContainer__hWY7c",pages:"ProfileWritingTabContent_pages__OjGhT",pageRow:"ProfileWritingTabContent_pageRow__n3WhE",pageInfo:"ProfileWritingTabContent_pageInfo____AWZ",snippet:"ProfileWritingTabContent_snippet__A4p2A",date:"ProfileWritingTabContent_date__1fhoG",title:"ProfileWritingTabContent_title__pJouF",thumbnailWrap:"ProfileWritingTabContent_thumbnailWrap__anQ0E",embeddedThumb:"ProfileWritingTabContent_embeddedThumb__DdpE4",mobileDate:"ProfileWritingTabContent_mobileDate__wvMVE",thumbnailLock:"ProfileWritingTabContent_thumbnailLock__wekCI",pwIndicator:"ProfileWritingTabContent_pwIndicator__83thu"}},13171:function(e){e.exports={profileItemGallery:"ScrollableProfileItemGallery_profileItemGallery__LUuSv",scrollableArea:"ScrollableProfileItemGallery_scrollableArea__lan_d",images:"ScrollableProfileItemGallery_images__PTluG",image:"ScrollableProfileItemGallery_image__SWLkR",safariFix:"ScrollableProfileItemGallery_safariFix__U1r4_",editorActions:"ScrollableProfileItemGallery_editorActions__kq9j1",overlayButton:"ScrollableProfileItemGallery_overlayButton__2U_K7",disabled:"ScrollableProfileItemGallery_disabled__hwoP6",moveButtons:"ScrollableProfileItemGallery_moveButtons___C78a"}},27097:function(e){e.exports={sidebar:"Sidebar_sidebar__w3ylg",panel:"Sidebar_panel__HrqEz",floatingButtons:"Sidebar_floatingButtons__zSFHY",defaultSidebar:"Sidebar_defaultSidebar__XFmRd",searchButton:"Sidebar_searchButton__3vHHx",sidebarHeader:"Sidebar_sidebarHeader__EPWu_",photoLink:"Sidebar_photoLink__cReZ9",logout:"Sidebar_logout__u3UZJ",profileLink:"Sidebar_profileLink__jCfHx",nav:"Sidebar_nav__hG4MC",login:"Sidebar_login__zBJBV",topButtons:"Sidebar_topButtons__UeIwX",sidebarToggleWrap:"Sidebar_sidebarToggleWrap__kMtAp",sidebarButton:"Sidebar_sidebarButton__SupyA",editButton:"Sidebar_editButton__Rpu1_",sidebarToggle:"Sidebar_sidebarToggle__puPt9",badge:"Sidebar_badge__83v1D",invite:"Sidebar_invite___kGap",primaryText:"Sidebar_primaryText__lrfpM",secondaryText:"Sidebar_secondaryText__ZJXii",compressedSidebar:"Sidebar_compressedSidebar__bpgcD",compressedSidebarNavButtons:"Sidebar_compressedSidebarNavButtons__ggJwb",backButton:"Sidebar_backButton__C2dLs",profileMenu:"Sidebar_profileMenu__lXxwE",postsLink:"Sidebar_postsLink__CczS_",profileMenuButton:"Sidebar_profileMenuButton__jqrQK",profilePopover:"Sidebar_profilePopover__Y8pb0",accountList:"Sidebar_accountList__OAVM7",unreadDot:"Sidebar_unreadDot__qE0mX",newFeature:"Sidebar_newFeature__2FQsH",settingsModal:"Sidebar_settingsModal__cgPl4",scrollableArea:"Sidebar_scrollableArea__Flgrx",posts:"Sidebar_posts__tN_ju"}},32946:function(e){e.exports={sidebarSettings:"SidebarSettings_sidebarSettings__UmS8d",profileEditorHeader:"SidebarSettings_profileEditorHeader__2MIKs",group:"SidebarSettings_group__jIAJG",setting:"SidebarSettings_setting__JUfFh",settingAction:"SidebarSettings_settingAction__1ub_N",settingPrimaryLabel:"SidebarSettings_settingPrimaryLabel__7IQH8",settingSecondaryLabel:"SidebarSettings_settingSecondaryLabel__laQku",unclamp:"SidebarSettings_unclamp__eerxF",switch:"SidebarSettings_switch__nvEby",tooltipWrap:"SidebarSettings_tooltipWrap__Uh2gf",form:"SidebarSettings_form__VR76I",row:"SidebarSettings_row__FbdAm",formFooter:"SidebarSettings_formFooter__1tnU7",blockedModal:"SidebarSettings_blockedModal__T_E35",blockedAccounts:"SidebarSettings_blockedAccounts__diO4n",unblockButton:"SidebarSettings_unblockButton__GZ0eS",displayName:"SidebarSettings_displayName__DYva0",footer:"SidebarSettings_footer__xa5vN"}},63695:function(e){e.exports={statusEditor:"StatusEditor_statusEditor__kTa8p",statusEditorFooter:"StatusEditor_statusEditorFooter__eTHmu",emojiButton:"StatusEditor_emojiButton__dDIeD",emojiLabel:"StatusEditor_emojiLabel__AEWSN",statusEditorBody:"StatusEditor_statusEditorBody__1hSua",statusEditorWrapper:"StatusEditor_statusEditorWrapper__QhWgN"}},52042:function(e){e.exports={pagesAttachment:"CaseStudyThumbnail_pagesAttachment__2VDLB",pagesThumbnail:"CaseStudyThumbnail_pagesThumbnail__Yv4QV",scaledContainer:"CaseStudyThumbnail_scaledContainer___xtuU",title:"CaseStudyThumbnail_title__WBT_I",lockContainer:"CaseStudyThumbnail_lockContainer__Rlaz6",pageInfo:"CaseStudyThumbnail_pageInfo__F92lt",pageTitle:"CaseStudyThumbnail_pageTitle__UoDoV",lock:"CaseStudyThumbnail_lock__wuRRY",draftLabel:"CaseStudyThumbnail_draftLabel__GJo3k",snippet:"CaseStudyThumbnail_snippet__Am4RL",updatedPagesAttachment:"CaseStudyThumbnail_updatedPagesAttachment__3mxlT",container:"CaseStudyThumbnail_container__ckIMm",editorWritingTab:"CaseStudyThumbnail_editorWritingTab__Ce55H",thumbnailWrap:"CaseStudyThumbnail_thumbnailWrap___5MRc",thumbnail:"CaseStudyThumbnail_thumbnail__PUPcR",thumbnailLock:"CaseStudyThumbnail_thumbnailLock___Nr2L"}},68961:function(e){e.exports={embeddedFigma:"FigmaNodeView_embeddedFigma__GFp_h",iframeWrap:"FigmaNodeView_iframeWrap__38pV0",editor:"FigmaNodeView_editor__fe4wB",gallery:"FigmaNodeView_gallery__JZUEI"}},53304:function(e){e.exports={gallery:"GalleryNodeView_gallery__YsQOa",singleImage:"GalleryNodeView_singleImage__ZFraS",caption:"GalleryNodeView_caption__YgoBt",horizontalScroll:"GalleryNodeView_horizontalScroll__hzCOT",multiImage:"GalleryNodeView_multiImage__2SFyL",imageWrap:"GalleryNodeView_imageWrap__9KS1p",safariFix:"GalleryNodeView_safariFix__pPYhF",miniHScroll:"GalleryNodeView_miniHScroll__MO1M0",miniSingleImage:"GalleryNodeView_miniSingleImage__F5d_x"}},64747:function(e){e.exports={embeddedTweet:"TweetNodeView_embeddedTweet__L3oqs",editor:"TweetNodeView_editor__RPQZ9"}},27250:function(e){e.exports={embeddedVimeo:"VimeoNodeView_embeddedVimeo__mcHvb",editor:"VimeoNodeView_editor__sH5UO"}},73732:function(e){e.exports={embeddedYoutube:"YouTubeNodeView_embeddedYoutube___76zy",wrap:"YouTubeNodeView_wrap__IkC8B",editor:"YouTubeNodeView_editor__iMFbO"}},20547:function(e){e.exports={referralNUX:"ReferralNUX_referralNUX__ZyPIx",header:"ReferralNUX_header__8M9dD",tile:"ReferralNUX_tile__sc_Ky",tile1:"ReferralNUX_tile1__WDKuW",tile2:"ReferralNUX_tile2__XuiVA",tile3:"ReferralNUX_tile3__bn8vW",tile4:"ReferralNUX_tile4__0cCVo",tile5:"ReferralNUX_tile5__BPUEb",tile6:"ReferralNUX_tile6__Q2Elk",Xout:"ReferralNUX_Xout__zJjvt",fakeInput:"ReferralNUX_fakeInput__2D8CK",body:"ReferralNUX_body__lCgQ2",seeMore:"ReferralNUX_seeMore__gHaX2",referralModal:"ReferralNUX_referralModal__zyvoT",referralModalBody:"ReferralNUX_referralModalBody__Fr1yn",rewards:"ReferralNUX_rewards__k3PxH",rewardRow:"ReferralNUX_rewardRow__Jrbyz",stack:"ReferralNUX_stack__prb4F",cost:"ReferralNUX_cost__8dxt0",reward:"ReferralNUX_reward__ZqNkH",rewardDescription:"ReferralNUX_rewardDescription__jPbFx",check:"ReferralNUX_check__OCegf",pill:"ReferralNUX_pill__UBn_A",green:"ReferralNUX_green__gnOEt",red:"ReferralNUX_red__u5q4q",darkBlue:"ReferralNUX_darkBlue__uFyZp",blue:"ReferralNUX_blue__J1Hlb",footer:"ReferralNUX_footer__tLtlk"}},46309:function(e){e.exports={followModal:"FollowModal_followModal__WBjUA",followModalTabs:"FollowModal_followModalTabs__iPn_j",tabSelection:"FollowModal_tabSelection__C0yZ0",tab:"FollowModal_tab__8OIgk",scrollableList:"FollowModal_scrollableList__sjSVi",followList:"FollowModal_followList__h4X4j",followButton:"FollowModal_followButton__Zti7l",displayName:"FollowModal_displayName__5n6Vb",username:"FollowModal_username__FWpkq",followModalBlankState:"FollowModal_followModalBlankState__6J58D"}},5121:function(e){e.exports={followButtonWrap:"ProfileFollowButton_followButtonWrap__O0JxK",followButton:"ProfileFollowButton_followButton__T1Hhi",particle:"ProfileFollowButton_particle__N_vZp",icon:"ProfileFollowButton_icon__YCSoD",smallIcon:"ProfileFollowButton_smallIcon__NsSbc"}},64295:function(e){e.exports={messageButton:"ProfileMessageButton_messageButton__w4Vg_"}},54848:function(e){e.exports={urlDecoy:"CopyReferralLink_urlDecoy__egMr3",tooltip:"CopyReferralLink_tooltip__AcPcz",url:"CopyReferralLink_url__W9TZk",hiddenURL:"CopyReferralLink_hiddenURL__OHh1N",buttonDecoy:"CopyReferralLink_buttonDecoy__9HkMG"}},92116:function(e){e.exports={messageConfirmation:"MessageConfirmation_messageConfirmation__c3D0O",reactionEmoji:"MessageConfirmation_reactionEmoji__kmwx6"}},49455:function(e){e.exports={profileAgeModal:"ProfileAgeModal_profileAgeModal__hj_mm"}},7498:function(e){e.exports={reaction:"Reaction_reaction__URsIr",reactionEmoji:"Reaction_reactionEmoji__b1lja"}},72796:function(e){e.exports={replyComposer:"ReplyComposer_replyComposer__z4IR8",noPadding:"ReplyComposer_noPadding___6OkD",replyInput:"ReplyComposer_replyInput__caghw",sendButton:"ReplyComposer_sendButton__RUhz3",repliesEmojiPicker:"ReplyComposer_repliesEmojiPicker__e28LJ",reactions:"ReplyComposer_reactions__56c2N"}},81344:function(e){e.exports={replyContainerWrap:"ReplyContainer_replyContainerWrap__eWAYB",replyContainer:"ReplyContainer_replyContainer__5_fvu",spacer:"ReplyContainer_spacer__vy902"}},44490:function(e){e.exports={upsell:"Bookmarks_upsell___ibGB",upsellContent:"Bookmarks_upsellContent__rRLnq",upsellModal:"Bookmarks_upsellModal__XT3Fb",upsellCTA:"Bookmarks_upsellCTA__5nYlW"}},74881:function(e){e.exports={header:"Header_header__gegJv",tabbed:"Header_tabbed__xj4oA",button:"Header_button__wSa2o",title:"Header_title__Pu3q1",secondaryText:"Header_secondaryText__xCAHf",rightButton:"Header_rightButton__AfQN4",tab:"Header_tab__X6Bhv"}},34955:function(e){e.exports={media:"LightboxImage_media__uLz9w",image:"LightboxImage_image__pfRjm",video:"LightboxImage_video__wUM__",overlayButton:"LightboxImage_overlayButton__LR8Yk",lightbox:"LightboxImage_lightbox__olgQF",disabled:"LightboxImage_disabled__4YTJq",clearButton:"LightboxImage_clearButton__Fdbfx",addAltTextButton:"LightboxImage_addAltTextButton__jl1Dg",altIcon:"LightboxImage_altIcon__IUcp1",altTextModal:"LightboxImage_altTextModal__G1XXE"}},36450:function(e){e.exports={linkPreview:"LinkPreview_linkPreview__bkKyc",linkInfo:"LinkPreview_linkInfo__BFDzy",title:"LinkPreview_title__UOVvN",description:"LinkPreview_description__B1H7l",link:"LinkPreview_link__UKWRc",ogImage:"LinkPreview_ogImage__mGokJ",noImage:"LinkPreview_noImage__bh05e"}},11538:function(e){e.exports={post:"Post_post__yJcST",postColumns:"Post_postColumns__lfOmQ",postContext:"Post_postContext__pVzmR",postContextIcon:"Post_postContextIcon__J6o4Q",gutter:"Post_gutter__AcX6y",postContent:"Post_postContent__OSxe2",displayName:"Post_displayName__cpxGc",username:"Post_username__eI9DD",timestamp:"Post_timestamp__dc0ec",replyingTo:"Post_replyingTo__V5HDb",postBody:"Post_postBody__MvoHZ",ufi:"Post_ufi__RTRor",UFIButton:"Post_UFIButton__y9IL_",icon:"Post_icon__2_uTl",label:"Post_label__s2Uzx",timeline:"Post_timeline__Iwgdx",hiddenURL:"Post_hiddenURL__u5tLf"}},41097:function(e){e.exports={container:"PostsPageWrapper_container__mp9re",wrapper:"PostsPageWrapper_wrapper___INUv"}},60835:function(e){e.exports={profile:"Profile_profile__O3cd_",profileHeader:"Profile_profileHeader__am5Pb",profilePhoto:"Profile_profilePhoto__sQU4S",profileInfo:"Profile_profileInfo__AgiQs",displayName:"Profile_displayName__jXQlL",byline:"Profile_byline__r6eOR",profileActions:"Profile_profileActions__TV9ax",followButton:"Profile_followButton__Rgkba",userRow:"Profile_userRow__hTPgm",light:"Profile_light__OVofs",truncatedText:"Profile_truncatedText__cel0f",iconButton:"Profile_iconButton__87ucH",cvLink:"Profile_cvLink__GQtiS",emptyProfile:"Profile_emptyProfile__Shn8b",settingsScrollArea:"Profile_settingsScrollArea__4I9x2",settingsFooter:"Profile_settingsFooter__tCmw0",profileTabs:"Profile_profileTabs__dipnf",profileTab:"Profile_profileTab___QVhv",label:"Profile_label__DcXIL",activeTabIndicator:"Profile_activeTabIndicator__I34EH"}},45013:function(e){e.exports={mediaTab:"ProfileTabsContent_mediaTab__fMQmp",mediaTabItem:"ProfileTabsContent_mediaTabItem__biKcx",loadingIndicator:"ProfileTabsContent_loadingIndicator__aTenL"}},79322:function(e){e.exports={carousel:"CreateTeamModal_carousel__ROdcf",slideWrap:"CreateTeamModal_slideWrap__y9j_9",slide:"CreateTeamModal_slide__c_fU3",illustration:"CreateTeamModal_illustration__ZVw9o",slideFooter:"CreateTeamModal_slideFooter__2BJFu",cancelWrap:"CreateTeamModal_cancelWrap__lFRrt",back:"CreateTeamModal_back__UxDsQ",stackedButtonGroup:"CreateTeamModal_stackedButtonGroup__VExd9",stackedButtonGroupLink:"CreateTeamModal_stackedButtonGroupLink__iYcQ1",row:"CreateTeamModal_row__7iFZo",profilePhotoPicker:"CreateTeamModal_profilePhotoPicker__ntTmW",newTeam:"CreateTeamModal_newTeam__0ed_I",profilePhotoUpload:"CreateTeamModal_profilePhotoUpload__4jrdh",loader:"CreateTeamModal_loader__Arl_K",loadingIllustration:"CreateTeamModal_loadingIllustration__Q6CQM",star:"CreateTeamModal_star__9Uc2U",hand:"CreateTeamModal_hand__hAR91",text:"CreateTeamModal_text__RryCU",dashboardIcons:"CreateTeamModal_dashboardIcons__faC7V",menuButton:"CreateTeamModal_menuButton__Lvqsw"}},23641:function(e){e.exports={code:"prism-material-dark_code__1xWUg"}},30449:function(e){e.exports={code:"prism-material-light_code__4OOz_"}},66118:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},s=!0;try{t[e](a,a.exports,r),s=!1}finally{s&&delete n[e]}return a.exports}r.ab="//";var i=r(229);e.exports=i}()},88038:function(e,t,n){e.exports=n(3833)},79894:function(e,t,n){e.exports=n(78385)},86677:function(e,t,n){e.exports=n(75949)},9867:function(e,t,n){"use strict";n.d(t,{j:function(){return _}});var r=n(85556),i=n(76065),a=n(29551);function s(e,t){return e*Math.sqrt(1-t*t)}var o=["duration","bounce"],l=["stiffness","damping","mass"];function u(e,t){return t.some(function(t){return void 0!==e[t]})}function c(e){var t=e.from,n=void 0===t?0:t,c=e.to,h=void 0===c?1:c,f=e.restSpeed,p=void 0===f?2:f,m=e.restDelta,g=(0,r._T)(e,["from","to","restSpeed","restDelta"]),v={done:!1,value:n},y=function(e){var t=(0,r.pi)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!u(e,l)&&u(e,o)){var n=function(e){var t,n,r=e.duration,o=void 0===r?800:r,l=e.bounce,u=e.velocity,c=void 0===u?0:u,d=e.mass,h=void 0===d?1:d;(0,i.K)(o<=1e4,"Spring duration must be 10 seconds or less");var f=1-(void 0===l?.25:l);f=(0,a.u)(.05,1,f),o=(0,a.u)(.01,10,o/1e3),f<1?(t=function(e){var t=e*f,n=t*o;return .001-(t-c)/s(e,f)*Math.exp(-n)},n=function(e){var n=e*f*o,r=Math.pow(f,2)*Math.pow(e,2)*o,i=s(Math.pow(e,2),f);return(-t(e)+.001>0?-1:1)*((n*c+c-r)*Math.exp(-n))/i}):(t=function(e){return -.001+Math.exp(-e*o)*((e-c)*o+1)},n=function(e){return Math.exp(-e*o)*((c-e)*(o*o))});var p=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:o};var m=Math.pow(p,2)*h;return{stiffness:m,damping:2*f*Math.sqrt(h*m),duration:o}}(e);(t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(g),_=y.stiffness,b=y.damping,x=y.mass,w=y.velocity,k=y.duration,E=y.isResolvedFromDuration,S=d,C=d;function T(){var e=w?-(w/1e3):0,t=h-n,r=b/(2*Math.sqrt(_*x)),i=Math.sqrt(_/x)/1e3;if(null!=m||(m=1>=Math.abs(h-n)?.01:.4),r<1){var a=s(i,r);S=function(n){return h-Math.exp(-r*i*n)*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},C=function(n){var s=Math.exp(-r*i*n);return r*i*s*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-s*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)S=function(n){return h-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var o=i*Math.sqrt(r*r-1);S=function(n){var a=Math.min(o*n,300);return h-Math.exp(-r*i*n)*((e+r*i*t)*Math.sinh(a)+o*t*Math.cosh(a))/o}}}return T(),{next:function(e){var t=S(e);if(E)v.done=e>=k;else{var n=1e3*C(e),r=Math.abs(h-t)<=m;v.done=Math.abs(n)<=p&&r}return v.value=v.done?h:t,v},flipTarget:function(){var e;w=-w,n=(e=[h,n])[0],h=e[1],T()}}}c.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var d=function(e){return 0},h=n(37351),f=n(27165);function p(e){var t,n=e.from,r=void 0===n?0:n,i=e.to,a=void 0===i?1:i,s=e.ease,o=e.offset,l=e.duration,u=void 0===l?300:l,c={done:!1,value:r},d=Array.isArray(a)?a:[r,a],p=(o&&o.length===d.length?o:(t=d.length,d.map(function(e,n){return 0!==n?n/(t-1):0}))).map(function(e){return e*u});function m(){return(0,h.s)(p,d,{ease:Array.isArray(s)?s:d.map(function(){return s||f.mZ}).splice(0,d.length-1)})}var g=m();return{next:function(e){return c.value=g(e),c.done=e>=u,c},flipTarget:function(){d.reverse(),g=m()}}}var m={keyframes:p,spring:c,decay:function(e){var t=e.velocity,n=e.from,r=void 0===n?0:n,i=e.power,a=e.timeConstant,s=void 0===a?350:a,o=e.restDelta,l=void 0===o?.5:o,u=e.modifyTarget,c={done:!1,value:r},d=(void 0===i?.8:i)*(void 0===t?0:t),h=r+d,f=void 0===u?h:u(h);return f!==h&&(d=f-r),{next:function(e){var t=-d*Math.exp(-e/s);return c.done=!(t>l||t<-l),c.value=c.done?f:f+t,c},flipTarget:function(){}}}},g=n(76614);function v(e,t,n){return void 0===n&&(n=0),e-t-n}var y=function(e){var t=function(t){return e(t.delta)};return{start:function(){return g.ZP.update(t,!0)},stop:function(){return g.qY.update(t)}}};function _(e){var t,n,i,a,s=e.from,o=e.autoplay,l=e.driver,u=e.elapsed,d=void 0===u?0:u,f=e.repeat,g=void 0===f?0:f,_=e.repeatType,b=void 0===_?"loop":_,x=e.repeatDelay,w=void 0===x?0:x,k=e.onPlay,E=e.onStop,S=e.onComplete,C=e.onRepeat,T=e.onUpdate,I=(0,r._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),R=I.to,j=0,A=I.duration,D=!1,P=!0,N=function(e){if(Array.isArray(e.to))return p;if(m[e.type])return m[e.type];var t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return c;return p}(I);(null===(t=N.needsInterpolation)||void 0===t?void 0:t.call(N,s,R))&&(a=(0,h.s)([0,100],[s,R],{clamp:!1}),s=0,R=100);var L=N((0,r.pi)((0,r.pi)({},I),{from:s,to:R}));return(void 0===o||o)&&(null==k||k(),(n=(void 0===l?y:l)(function(e){if(P||(e=-e),d+=e,!D){var t,r,s=L.next(Math.max(0,d));i=s.value,a&&(i=a(i)),D=P?s.done:d<=0}null==T||T(i),D&&((0===j&&(null!=A||(A=d)),j<g)?(t=d,r=A,(P?t>=r+w:t<=-w)&&function(){if(j++,"reverse"===b){var e,t,n,r;P=j%2==0,e=d,t=A,void 0===(n=w)&&(n=0),void 0===(r=P)&&(r=!0),d=r?v(t+-e,t,n):t-(e-t)+n}else d=v(d,A,w),"mirror"===b&&L.flipTarget();D=!1,C&&C()}()):(n.stop(),S&&S()))})).start()),{stop:function(){null==E||E(),n.stop()}}}},27165:function(e,t,n){"use strict";n.d(t,{LU:function(){return _},G2:function(){return g},XL:function(){return y},CG:function(){return v},h9:function(){return E},yD:function(){return S},gJ:function(){return k},Z7:function(){return f},X7:function(){return m},Bn:function(){return p},YQ:function(){return c},mZ:function(){return h},Vv:function(){return d},GE:function(){return u}});var r,i=function(e){return function(t){return 1-e(1-t)}},a=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},s=function(e){return function(t){return t*t*((e+1)*t-e)}},o=4/11,l=8/11,u=function(e){return e},c=function(e){return Math.pow(e,2)},d=i(c),h=a(c),f=function(e){return 1-Math.sin(Math.acos(e))},p=i(f),m=a(p),g=s(1.525),v=i(g),y=a(g),_=(r=s(1.525),function(e){return(e*=2)<1?.5*r(e):.5*(2-Math.pow(2,-10*(e-1)))}),b=4356/361,x=35442/1805,w=16061/1805,k=function(e){if(1===e||0===e)return e;var t=e*e;return e<o?7.5625*t:e<l?9.075*t-9.9*e+3.4:e<.9?b*t-x*e+w:10.8*e*e-20.52*e+10.72},E=i(k),S=function(e){return e<.5?.5*(1-k(1-2*e)):.5*k(2*e-1)+.5}},29551:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});var r=function(e,t,n){return Math.min(Math.max(n,e),t)}},39798:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},i=function(e){return r(e)&&e.hasOwnProperty("z")},a=n(40152),s=function(e,t){return Math.abs(e-t)};function o(e,t){return(0,a.e)(e)&&(0,a.e)(t)?s(e,t):r(e)&&r(t)?Math.sqrt(Math.pow(s(e.x,t.x),2)+Math.pow(s(e.y,t.y),2)+Math.pow(i(e)&&i(t)?s(e.z,t.z):0,2)):void 0}},40152:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r=function(e){return"number"==typeof e}},37351:function(e,t,n){"use strict";n.d(t,{s:function(){return _}});var r=n(35058),i=n(78590),a=n(14519),s=n(85556),o=n(56962),l=n(17497),u=n(40152),c=n(97781),d=n(76065);function h(e,t){return(0,u.e)(e)?function(n){return(0,i.C)(e,t,n)}:o.$.test(e)?(0,a.R)(e,t):g(e,t)}var f=function(e,t){var n=(0,s.ev)([],e),r=n.length,i=e.map(function(e,n){return h(e,t[n])});return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},p=function(e,t){var n=(0,s.pi)((0,s.pi)({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=h(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function m(e){for(var t=l.P.parse(e),n=t.length,r=0,i=0,a=0,s=0;s<n;s++)r||"number"==typeof t[s]?r++:void 0!==t[s].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var g=function(e,t){var n=l.P.createTransformer(t),r=m(e),i=m(t);return(0,d.k)(r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),(0,c.z)(f(r.parsed,i.parsed),n)},v=n(29551),y=function(e,t){return function(n){return(0,i.C)(e,t,n)}};function _(e,t,n){var i,s,l,u,h,m,_,b=void 0===n?{}:n,x=b.clamp,w=b.ease,k=b.mixer,E=e.length;(0,d.k)(E===t.length,"Both input and output ranges must be the same length"),(0,d.k)(!w||!Array.isArray(w)||w.length===E-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[E-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var S=function(e,t,n){for(var r,i=[],s=n||("number"==typeof(r=e[0])?y:"string"==typeof r?o.$.test(r)?a.R:g:Array.isArray(r)?f:"object"==typeof r?p:void 0),l=e.length-1,u=0;u<l;u++){var d=s(e[u],e[u+1]);if(t){var h=Array.isArray(t)?t[u]:t;d=(0,c.z)(h,d)}i.push(d)}return i}(t,w,k),C=2===E?(s=(i=e)[0],l=i[1],u=S[0],function(e){return u((0,r.Y)(s,l,e))}):(_=(m=(h=e).length)-1,function(e){var t=0,n=!1;if(e<=h[0]?n=!0:e>=h[_]&&(t=_-1,n=!0),!n){for(var i=1;i<m&&!(h[i]>e)&&i!==_;i++);t=i-1}var a=(0,r.Y)(h[t],h[t+1],e);return S[t](a)});return void 0===x||x?function(t){return C((0,v.u)(e[0],e[E-1],t))}:C}},14519:function(e,t,n){"use strict";n.d(t,{R:function(){return f}});var r=n(85556),i=n(78590),a=n(37921),s=n(91709),o=n(70499),l=n(76065),u=function(e,t,n){var r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},c=[a.$,s.m,o.J],d=function(e){return c.find(function(t){return t.test(e)})},h=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},f=function(e,t){var n=d(e),a=d(t);(0,l.k)(!!n,h(e)),(0,l.k)(!!a,h(t)),(0,l.k)(n.transform===a.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var s=n.parse(e),c=a.parse(t),f=(0,r.pi)({},s),p=n===o.J?i.C:u;return function(e){for(var t in f)"alpha"!==t&&(f[t]=p(s[t],c[t],e));return f.alpha=(0,i.C)(s.alpha,c.alpha,e),n.transform(f)}}},78590:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=function(e,t,n){return-n*e+n*t+e}},97781:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=function(e,t){return function(n){return t(e(n))}},i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(r)}},35058:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r}},75202:function(e,t,n){"use strict";function r(e,t){return t?e*(1e3/t):0}n.d(t,{R:function(){return r}})},28770:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return m},encode:function(){return g},toASCII:function(){return y},toUnicode:function(){return v},ucs2decode:function(){return d},ucs2encode:function(){return h}});let r=/^xn--/,i=/[^\0-\x7F]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},o=Math.floor,l=String.fromCharCode;function u(e){throw RangeError(s[e])}function c(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(a,".");let i=e.split("."),s=(function(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n})(i,t).join(".");return r+s}function d(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(64512&r)==56320?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}let h=e=>String.fromCodePoint(...e),f=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},p=function(e,t,n){let r=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;r+=36)e=o(e/35);return o(r+36*e/(e+38))},m=function(e){let t=[],n=e.length,r=0,i=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&u("not-basic"),t.push(e.charCodeAt(n));for(let c=s>0?s+1:0;c<n;){let s=r;for(let t=1,i=36;;i+=36){var l;c>=n&&u("invalid-input");let s=(l=e.charCodeAt(c++))>=48&&l<58?26+(l-48):l>=65&&l<91?l-65:l>=97&&l<123?l-97:36;s>=36&&u("invalid-input"),s>o((2147483647-r)/t)&&u("overflow"),r+=s*t;let d=i<=a?1:i>=a+26?26:i-a;if(s<d)break;let h=36-d;t>o(2147483647/h)&&u("overflow"),t*=h}let d=t.length+1;a=p(r-s,d,0==s),o(r/d)>2147483647-i&&u("overflow"),i+=o(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},g=function(e){let t=[];e=d(e);let n=e.length,r=128,i=0,a=72;for(let n of e)n<128&&t.push(l(n));let s=t.length,c=s;for(s&&t.push("-");c<n;){let n=2147483647;for(let t of e)t>=r&&t<n&&(n=t);let d=c+1;for(let h of(n-r>o((2147483647-i)/d)&&u("overflow"),i+=(n-r)*d,r=n,e))if(h<r&&++i>2147483647&&u("overflow"),h===r){let e=i;for(let n=36;;n+=36){let r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;let i=e-r,s=36-r;t.push(l(f(r+i%s,0))),e=o(i/s)}t.push(l(f(e,0))),a=p(i,d,c===s),i=0,++c}++i,++r}return t.join("")},v=function(e){return c(e,function(e){return r.test(e)?m(e.slice(4).toLowerCase()):e})},y=function(e){return c(e,function(e){return i.test(e)?"xn--"+g(e):e})};t.default={version:"2.3.1",ucs2:{decode:d,encode:h},decode:m,encode:g,toASCII:y,toUnicode:v}},6344:function(e){(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>i});var r=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t)}return e=[{key:"changeHeightWidth",value:function(e,t,n,r,i,a){return n>r&&(e=Math.round(e*r/n),n=r),e>t&&(n=Math.round(n*t/e),e=t),i&&n<i&&(e=Math.round(e*i/n),n=i),a&&e<a&&(n=Math.round(n*a/e),e=a),{height:e,width:n}}},{key:"resizeAndRotateImage",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"jpeg",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:100,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=document.createElement("canvas"),u=e.width,c=e.height,d=this.changeHeightWidth(c,n,u,t,r,i);o&&(90===o||270===o)?(l.width=d.height,l.height=d.width):(l.width=d.width,l.height=d.height),u=d.width,c=d.height;var h=l.getContext("2d");return h.fillStyle="rgba(0, 0, 0, 0)",h.fillRect(0,0,u,c),h.imageSmoothingEnabled&&h.imageSmoothingQuality&&(h.imageSmoothingQuality="high"),o&&(h.rotate(o*Math.PI/180),90===o?h.translate(0,-l.width):180===o?h.translate(-l.width,-l.height):270===o?h.translate(-l.height,0):0!==o&&360!==o||h.translate(0,0)),h.drawImage(e,0,0,u,c),l.toDataURL("image/".concat(a),s/100)}},{key:"b64toByteArrays",value:function(e,t){t=t||"image/jpeg";for(var n=atob(e.toString().replace(/^data:image\/(png|jpeg|jpg|webp);base64,/,"")),r=[],i=0;i<n.length;i+=512){for(var a=n.slice(i,i+512),s=Array(a.length),o=0;o<a.length;o++)s[o]=a.charCodeAt(o);var l=new Uint8Array(s);r.push(l)}return r}},{key:"b64toBlob",value:function(e,t){var n=this.b64toByteArrays(e,t);return new Blob(n,{type:t,lastModified:new Date})}},{key:"b64toFile",value:function(e,t,n){var r=this.b64toByteArrays(e,n);return new File(r,t,{type:n,lastModified:new Date})}},{key:"createResizedImage",value:function(e,n,r,i,a,s,o){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"base64",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,d=new FileReader;if(!e)throw Error("File Not Found!");if(e.type&&!e.type.includes("image"))throw Error("File Is NOT Image!");d.readAsDataURL(e),d.onload=function(){var h=new Image;h.src=d.result,h.onload=function(){var d=t.resizeAndRotateImage(h,n,r,u,c,i,a,s),f="image/".concat(i);switch(l){case"blob":o(t.b64toBlob(d,f));break;case"base64":default:o(d);break;case"file":var p=e.name.toString().replace(/(png|jpeg|jpg|webp)$/i,"").concat(i.toString());o(t.b64toFile(d,p,f))}}},d.onerror=function(e){throw Error(e)}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();let i={imageFileResizer:function(e,t,n,i,a,s,o,l,u,c){return r.createResizedImage(e,t,n,i,a,s,o,l,u,c)}};e.exports=n})()},19564:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){a[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(e){o=!0,r=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw r}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],s=t[1];a[n]=new i(n,1,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){a[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var s=/[\-\:]([a-z])/g,o=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=n(33814),u=l.CAMELCASE,c=l.SAME,d=l.possibleStandardNames,h=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(d).reduce(function(e,t){var n=d[t];return n===c?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=f},33814:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},73941:function(e,t,n){e.exports=n(77221)},59852:function(e,t,n){"use strict";var r=n(27378),i=n(2417).__internal.createRelayContext;e.exports=i(r)},77221:function(e,t,n){"use strict";var r=n(49402),i=n(76696),a=n(67825).loadQuery,s=n(90998),o=n(70616),l=n(41861),u=n(54739),c=n(32448),d=n(88301),h=n(72021),f=n(48974),p=n(40008),m=n(41932),g=n(89295),v=n(30273),y=n(44357),_=n(2417);e.exports={ConnectionHandler:_.ConnectionHandler,applyOptimisticMutation:_.applyOptimisticMutation,commitLocalUpdate:_.commitLocalUpdate,commitMutation:_.commitMutation,graphql:_.graphql,readInlineData:_.readInlineData,requestSubscription:_.requestSubscription,EntryPointContainer:r,RelayEnvironmentProvider:o,ProfilerContext:s,fetchQuery:_.fetchQuery,loadQuery:a,loadEntryPoint:i,useFragment:u,useLazyLoadQuery:c,useEntryPointLoader:l,useQueryLoader:p,useMutation:d,usePaginationFragment:h,usePreloadedQuery:f,useRefetchableFragment:m,useRelayEnvironment:g,useSubscribeToInvalidationState:v,useSubscription:y}},49402:function(e,t,n){"use strict";var r=n(90998),i=n(89295),a=n(27378),s=n(27378),o=s.useContext,l=s.useEffect;n(82264),e.exports=function(e){var t=e.entryPointReference,n=e.props,s=t.getComponent,u=t.queries,c=t.entryPoints,d=t.extraProps,h=t.rootModuleID,f=s(),p=o(r),m=i();return l(function(){m.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:h})},[m,p,h]),a.createElement(f,{entryPoints:c,extraProps:d,props:n,queries:u})}},17205:function(e,t,n){"use strict";n(82264);var r=null;e.exports={inject:function(e){r=e},get:function(){return r}}},23202:function(e,t,n){"use strict";var r=n(3996),i=function(){function e(e){this._capacity=e,this._capacity>0||r(!1),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var n=this._map.keys().next();n.done||this._map.delete(n.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},90998:function(e,t,n){"use strict";var r=n(27378).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=r},26882:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(80624)),a=r(n(93231)),s=n(23202),o=n(2500),l=n(3996),u=n(2417).isPromise;n(82264);var c="store-or-network",d="store-and-network",h="function"==typeof WeakMap;function f(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,n,r,i){var a=null!=n?n:f(t)?d:c,s=null!=r?r:e.UNSTABLE_getDefaultRenderPolicy(),o="".concat(a,"-").concat(s,"-").concat(t.request.identifier);return null!=i?"".concat(o,"-").concat(i):o}function m(e,t){var n={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var g=2e5;function v(e,t,n,r,i,a){var s=f(t),l=r,u=i,c=new o(function(e){var n=e.retain(t);return{dispose:function(){s&&null!=u&&u.unsubscribe(),n.dispose(),a(d)}}}),d={cacheIdentifier:e,id:g++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){s&&null!=u&&u.unsubscribe(),u=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return d}var y=function(){function e(e){var t=this;(0,a.default)(this,"_clearCacheEntry",function(e){t._cache.delete(e.cacheIdentifier)}),this._environment=e,this._cache=s.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,n,r,i,a,s){var o=p(this._environment,e,n,r,a);return this.prepareWithIdentifier(o,e,t,n,r,i,s)},t.prepareWithIdentifier=function(e,t,n,r,a,s,o){var l=this._environment,h=null!=r?r:f(t)?d:c,p=null!=a?a:l.UNSTABLE_getDefaultRenderPolicy(),m=this._cache.get(e),g=null,v=null!=m;null==m&&(m=this._fetchAndSaveQuery(e,t,n,h,p,o,(0,i.default)((0,i.default)({},s),{},{unsubscribe:function(e){null!=g&&g.dispose();var t=null==s?void 0:s.unsubscribe;t&&t(e)}}))),g=m.temporaryRetain(l);var y=m.getValue();if(u(y))throw l.__log({name:"suspense.query",fetchPolicy:h,isPromiseCached:v,operation:t,queryAvailability:m.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},t.retain=function(e,t){var n=this._environment,r=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(r,i,null,e,null),s=a.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:t,resourceID:a.id}),{dispose:function(){s.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,n,r){var i=p(this._environment,e,t,n,r);return this._cache.get(i)},t._getOrCreateCacheEntry=function(e,t,n,r,i){var a=this._cache.get(e);return null==a&&(a=v(e,t,n,r,i,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,n,r,a,s,o){var u=this,c=this._environment,d=c.check(t),h=d.status,p="available"===h,g=p||"partial"===a&&"stale"!==h,y=function(){};switch(r){case"store-only":x=!1,w=!0;break;case"store-or-network":x=!p,w=g;break;case"store-and-network":x=!0,w=g;break;default:x=!0,w=!1}if(w){var _=m(t,e),b=v(e,t,d,_,null,this._clearCacheEntry);this._cache.set(e,b)}if(x){var x,w,k,E=m(t,e);n.subscribe({start:function(n){k=n;var r=u._cache.get(e);r&&r.setNetworkSubscription(k);var a=null==o?void 0:o.start;a&&a((0,i.default)((0,i.default)({},n),{},{unsubscribe:function(){f(t)&&n.unsubscribe()}}))},next:function(){var n=u._getOrCreateCacheEntry(e,t,d,E,k);n.processedPayloadsCount+=1,n.setValue(E),y();var r=null==o?void 0:o.next;null!=r&&r(c.lookup(t.fragment))},error:function(n){var r=u._getOrCreateCacheEntry(e,t,d,n,k);0===r.processedPayloadsCount&&r.setValue(n),y(),k=null,r.setNetworkSubscription(null);var i=null==o?void 0:o.error;i&&i(n)},complete:function(){y(),k=null;var t=u._cache.get(e);t&&t.setNetworkSubscription(null);var n=null==o?void 0:o.complete;n&&n()},unsubscribe:null==o?void 0:o.unsubscribe});var S=this._cache.get(e);if(!S){var C=new Promise(function(e){y=e});C.displayName="Relay("+t.fragment.node.name+")",S=v(e,t,d,C,k,this._clearCacheEntry),this._cache.set(e,S)}}else{var T=null==o?void 0:o.complete;T&&T()}var I=this._cache.get(e);return null!=I||l(!1),c.__log({name:"queryresource.fetch",resourceID:I.id,operation:t,profilerContext:s,fetchPolicy:r,renderPolicy:a,queryAvailability:d,shouldFetch:x}),I},e}();function _(e){return new y(e)}var b=h?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var n=_(e);return b.set(e,n),n},getQueryCacheIdentifier:p}},70616:function(e,t,n){"use strict";var r=n(59852),i=n(27378),a=i.useMemo;e.exports=function(e){var t=e.children,n=e.environment,s=e.getEnvironmentForActor,o=a(function(){return{environment:n,getEnvironmentForActor:s}},[n,s]);return i.createElement(r.Provider,{value:o},t)}},2500:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(93231));n(82264);var i=function(){function e(e){var t=this;(0,r.default)(this,"_retainCount",0),(0,r.default)(this,"_retainDisposable",null),(0,r.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(n)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&null!=t._retainDisposable&&(t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,n=this;if(e.isServer())return{dispose:function(){}};var r=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,n._releaseTemporaryRetain=null,r.dispose()};return i=setTimeout(a,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},16626:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(80624)),a=r(n(93231)),s=r(n(9833)),o=n(23202),l=n(26882).getQueryResourceForEnvironment,u=n(2500),c=n(3996),d=n(2417),h=d.__internal,f=h.fetchQuery,p=h.getPromiseForActiveRequest,m=d.RelayFeatureFlags,g=d.createOperationDescriptor,v=d.getFragmentIdentifier,y=d.getPendingOperationsForFragment,_=d.getSelector,b=d.getVariablesFromFragment,x=d.handlePotentialSnapshotErrors,w=d.isPromise,k=d.recycleNodesInto,E="function"==typeof WeakMap,S=Object.freeze([]);function C(e){return Array.isArray(e)?e.some(function(e){return e.isMissingData}):e.isMissingData}function T(e){return Array.isArray(e)?e.map(function(e){return e.missingLiveResolverFields}).filter(Boolean).flat():e.missingLiveResolverFields}function I(e,t,n){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map(function(e){return e.data}),isMissingData:C(t),storeEpoch:n}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:C(t),storeEpoch:n}}var R=function(){function e(e){(0,a.default)(this,"_cache",new Map),(0,a.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,n;return null!==(t=null===(n=this._cache.get(e))||void 0===n?void 0:n[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var n=this,r=this._cache.get(e);if(r){var i=r[0],a=r[1];t.forEach(function(e){i.push(e)}),a.temporaryRetain(this._environment)}else{var s=new u(function(){return n._retain(e)});this._cache.set(e,[t,s]),s.temporaryRetain(this._environment)}},t._retain=function(e){var t,n=this,r=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,r),{dispose:function(){var t,r=(null!==(t=n._retainCounts.get(e))&&void 0!==t?t:0)-1;r>0?n._retainCounts.set(e,r):(n._retainCounts.delete(e),n._cache.delete(e))}}},e}(),j=function(){function e(e){this._environment=e,this._cache=o.create(1e6),m.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new R(e))}var t=e.prototype;return t.read=function(e,t,n,r){return this.readWithIdentifier(e,t,v(e,t),n,r)},t.readWithIdentifier=function(e,t,n,r,i){var a=this,o=this._environment;if(null==t)return{cacheKey:n,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var u=o.getStore().getEpoch();if((null==e?void 0:null===(L=e.metadata)||void 0===L?void 0:L.plural)===!0&&(Array.isArray(t)||c(!1),0===t.length))return{cacheKey:n,data:S,isMissingData:!1,snapshot:S,storeEpoch:u};var d=this._cache.get(n);if(null!=d){if("pending"===d.kind&&w(d.promise))throw o.__log({name:"suspense.fragment",data:d.result.data,fragment:e,isRelayHooks:!0,isMissingData:d.result.isMissingData,isPromiseCached:!0,pendingOperations:d.pendingOperations}),d.promise;if("done"===d.kind&&d.result.snapshot&&!(null!==(U=T(d.result.snapshot))&&void 0!==U&&U.length))return this._throwOrLogErrorsInSnapshot(d.result.snapshot),d.result.isMissingData&&o.__log({name:"fragmentresource.missing_data",data:d.result.data,fragment:e,isRelayHooks:!0,cached:!0}),d.result}var h=_(e,t);null!=h||c(!1);var f=null,g=null;if(m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=d&&"missing"===d.kind?(f=d.result,g=d.snapshot):f=I(n,g="PluralReaderSelector"===h.kind?h.selectors.map(function(e){return o.lookup(e)}):o.lookup(h),u),!f.isMissingData)return this._throwOrLogErrorsInSnapshot(g),this._cache.set(n,{kind:"done",result:f}),f;var v=null;if(m.ENABLE_CLIENT_EDGES&&(null===(M=e.metadata)||void 0===M?void 0:M.hasClientEdges)===!0&&(Array.isArray(y=g)?y.some(function(e){var t,n;return(null!==(t=null===(n=e.missingClientEdges)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0}):(null!==(b=null===(x=y.missingClientEdges)||void 0===x?void 0:x.length)&&void 0!==b?b:0)>0)){v=[];var y,b,x,k,E,C=l(this._environment),R=[];k=g,E=function(n){var r;null===(r=n.missingClientEdges)||void 0===r||r.forEach(function(n){var r,i=n.request,s=n.clientEdgeDestinationID,o=a._performClientEdgeQuery(C,e,t,i,s),l=o.queryResult,u=o.requestDescriptor;R.push(l),null===(r=v)||void 0===r||r.push(u)})},Array.isArray(k)?k.forEach(E):E(k),null!=this._clientEdgeQueryResultsCache||c(!1),this._clientEdgeQueryResultsCache.recordQueryResults(n,R)}var j=[];m.ENABLE_CLIENT_EDGES&&v&&(j=v.map(function(e){return p(a._environment,e)}).filter(Boolean));var A="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,D=this._getAndSavePromiseForFragmentRequestInFlight(n,e,A,f),P=null==D?void 0:D.promise,N=null!==(O=null===(F=T(g))||void 0===F?void 0:F.map(function(e){var t=e.liveStateID;return o.getStore().getLiveResolverPromise(t)}))&&void 0!==O?O:[];if(j.length||N.length||w(P)){o.__log({name:"suspense.fragment",data:f.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:f.isMissingData,pendingOperations:[].concat((0,s.default)(null!==(V=null==D?void 0:D.pendingOperations)&&void 0!==V?V:[]),(0,s.default)(null!==(B=v)&&void 0!==B?B:[]))});var L,M,O,F,U,V,B,q=[];if(j.length>0&&(q=q.concat(j)),N.length>0&&(q=q.concat(N)),q.length>0)throw P&&q.push(P),Promise.all(q);if(P)throw P}return m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&f.isMissingData&&this._cache.set(n,{kind:"done",result:f}),this._throwOrLogErrorsInSnapshot(g),o.__log({name:"fragmentresource.missing_data",data:f.data,fragment:e,isRelayHooks:!0,cached:!1}),I(n,g,u)},t._performClientEdgeQuery=function(e,t,n,r,a){var s=b(t,n),o=g(r,(0,i.default)((0,i.default)({},s),{},{id:a}),{}),l=f(this._environment,o),u=e.prepare(o,l);return{requestDescriptor:o.request,queryResult:u}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){x(t._environment,e.missingRequiredFields,e.relayResolverErrors,e.errorResponseFields)}):x(this._environment,e.missingRequiredFields,e.relayResolverErrors,e.errorResponseFields)},t.readSpec=function(e,t,n){var r={};for(var i in e)r[i]=this.read(e[i],t[i],n,i);return r},t.subscribe=function(e,t){var n=this,r=this._environment,i=e.cacheKey,a=e.snapshot;if(!a)return{dispose:function(){}};var s=this.checkMissedUpdates(e),o=s[0],u=s[1];o&&t();var d=[];if(Array.isArray(a)?(Array.isArray(u)||c(!1),u.forEach(function(e,a){d.push(r.subscribe(e,function(e){var s=r.getStore().getEpoch();n._updatePluralSnapshot(i,u,e,a,s),t()}))})):((null==u||Array.isArray(u))&&c(!1),d.push(r.subscribe(u,function(e){var a=r.getStore().getEpoch(),s=I(i,e,a);m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&s.isMissingData?n._cache.set(i,{kind:"missing",result:s,snapshot:e}):n._cache.set(i,{kind:"done",result:I(i,e,a)}),t()}))),m.ENABLE_CLIENT_EDGES){var h,f,p=null!==(h=null===(f=this._clientEdgeQueryResultsCache)||void 0===f?void 0:f.get(i))&&void 0!==h?h:void 0;if(null!=p&&p.length){var g=l(this._environment);p.forEach(function(e){d.push(g.retain(e))})}}return{dispose:function(){d.forEach(function(e){return e.dispose()}),n._cache.delete(i)}}},t.subscribeSpec=function(e,t){var n=this,r=Object.keys(e).map(function(r){return n.subscribe(e[r],t)});return{dispose:function(){r.forEach(function(e){e.dispose()})}}},t.checkMissedUpdates=function(e){var t=this._environment,n=e.snapshot;if(!n)return[!1,null];var r=null;if(r=t.getStore().getEpoch(),e.storeEpoch===r)return[!1,e.snapshot];var a=e.cacheKey;if(Array.isArray(n)){var s=!1,o=[];if(n.forEach(function(e,n){var r=t.lookup(e.selector),a=e.data,l=r.data,u=k(a,l);u!==a&&(r=(0,i.default)((0,i.default)({},r),{},{data:u}),s=!0),o[n]=r}),s){var l=I(a,o,r);m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&l.isMissingData?this._cache.set(a,{kind:"missing",result:l,snapshot:o}):this._cache.set(a,{kind:"done",result:l})}return[s,o]}var u=t.lookup(n.selector),c=n.data,d=k(c,u.data),h={data:d,isMissingData:u.isMissingData,missingClientEdges:u.missingClientEdges,missingLiveResolverFields:u.missingLiveResolverFields,seenRecords:u.seenRecords,selector:u.selector,missingRequiredFields:u.missingRequiredFields,relayResolverErrors:u.relayResolverErrors,errorResponseFields:u.errorResponseFields};if(d!==c){var f=I(a,h,r);m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&f.isMissingData?this._cache.set(a,{kind:"missing",result:f,snapshot:h}):this._cache.set(a,{kind:"done",result:f})}return[d!==c,h]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some(function(n){return t.checkMissedUpdates(e[n])[0]})},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,n,r){var i=this,a=y(this._environment,t,n);if(null==a)return null;var s=a.promise,o=a.pendingOperations,l=s.then(function(){i._cache.delete(e)}).catch(function(t){i._cache.delete(e)});return l.displayName=s.displayName,this._cache.set(e,{kind:"pending",pendingOperations:o,promise:l,result:r}),{promise:l,pendingOperations:o}},t._updatePluralSnapshot=function(e,t,n,r,i){var a,o,l,u=this._cache.get(e);if(w(u)){n.selector.node.name,c(!1);return}var d=null==u?void 0:null===(l=u.result)||void 0===l?void 0:l.snapshot;if(d&&!Array.isArray(d)){n.selector.node.name,c(!1);return}var h=d?(0,s.default)(d):(0,s.default)(t);h[r]=n;var f=I(e,h,i);m.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&f.isMissingData?this._cache.set(e,{kind:"missing",result:f,snapshot:h}):this._cache.set(e,{kind:"done",result:f})},e}();function A(e){return new j(e)}var D=E?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=D.get(e);if(t)return t;var n=A(e);return D.set(e,n),n}}},14480:function(e,t,n){"use strict";var r=n(89295),i=n(44949),a=n(16626).getFragmentResourceForEnvironment,s=n(27378),o=s.useEffect,l=s.useState,u=n(2417),c=u.RelayFeatureFlags,d=u.getFragmentIdentifier;n(82264),e.exports=function(e,t,n){var s=r(),u=a(s),h=i(!1),f=l(0)[1],p=d(e,t),m=u.readWithIdentifier(e,t,p,n),g=i(!0);function v(){!1!==h.current&&!1!==g.current&&f(function(e){return e+1})}return o(function(){h.current=!0;var e=u.subscribe(m,v);return function(){h.current=!1,e.dispose()}},[s,p]),c.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every(function(e){return void 0===e})),{data:m.data,disableStoreUpdates:function(){g.current=!1},enableStoreUpdates:function(){g.current=!0,u.checkMissedUpdates(m)[0]&&v()}}}},19193:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(90998),a=n(26882).getQueryResourceForEnvironment,s=n(43023),o=n(40008),l=n(89295),u=n(16626).getFragmentResourceForEnvironment,c=n(14480),d=n(3996),h=n(27378),f=h.useCallback,p=h.useContext,m=h.useReducer,g=n(2417),v=g.__internal.fetchQuery,y=g.createOperationDescriptor,_=g.getFragmentIdentifier,b=g.getRefetchMetadata,x=g.getSelector,w=g.getValueAtPath;function k(e,t){switch(t.type){case"refetch":var n;return(0,r.default)((0,r.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(n=t.refetchEnvironment)&&void 0!==n?n:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,Error("useRefetchableFragmentNode: Unexpected action type")}}n(82264),e.exports=function(e,t,n){var h,g,E,S=l(),C=b(e,n),T=C.refetchableRequest,I=C.fragmentRefPathInResponse,R=_(e,t),j=m(k,{fetchPolicy:void 0,mirroredEnvironment:S,mirroredFragmentIdentifier:R,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),A=j[0],D=j[1],P=A.fetchPolicy,N=A.mirroredEnvironment,L=A.mirroredFragmentIdentifier,M=A.onComplete,O=A.refetchEnvironment,F=A.refetchQuery,U=A.renderPolicy,V=null!=O?O:S,B=a(V),q=u(V),Z=p(i),z=o(T),H=z[0],K=z[1],W=z[2],$=t,G=b(e,n).identifierInfo;if(V!==N||R!==L)D({type:"reset",environment:V,fragmentIdentifier:R}),W();else if(null!=F&&null!=H){var Y=function(e){M&&M(null!=e?e:null)},Q=null!=H.source?H.source:v(V,F),X=Z.wrapPrepareQueryResource(function(){return B.prepare(F,Q,P,U,{error:Y,complete:function(){Y()}},H.fetchKey,Z)}),J=q.read(X.fragmentNode,X.fragmentRef,n).data;null!=J||d(!1),$=w(J,I)}var ee=c(e,$,n),et=ee.data,en=ee.disableStoreUpdates,er=ee.enableStoreUpdates,ei=(h=G,g=s(),f(function(n,i){if(!0!==g.current)return{dispose:function(){}};var a,s,o,l,u,c,d=null==i?void 0:i.__environment,f=null==i?void 0:i.fetchPolicy,p=null==i?void 0:i.UNSTABLE_renderPolicy,m=null==i?void 0:i.onComplete,v=x(e,t);null==v?(a={},s={}):"PluralReaderSelector"===v.kind?(a=null!==(o=null===(l=v.selectors[0])||void 0===l?void 0:l.owner.variables)&&void 0!==o?o:{},s=null!==(u=null===(c=v.selectors[0])||void 0===c?void 0:c.variables)&&void 0!==u?u:{}):(a=v.owner.variables,s=v.variables);var _=(0,r.default)((0,r.default)((0,r.default)({},a),s),n);null==h||n.hasOwnProperty(h.identifierQueryVariableName)||(_[h.identifierQueryVariableName]=E);var b=y(T,_,{force:!0});return K(b.request.variables,{fetchPolicy:f,__environment:d,__nameForWarning:"refetch"}),D({type:"refetch",fetchPolicy:f,onComplete:m,refetchEnvironment:d,refetchQuery:b,renderPolicy:p}),{dispose:W}},[R,D,W,E=(null==h?void 0:h.identifierField)!=null&&null!=et&&"object"==typeof et?et[h.identifierField]:null,K]));return{fragmentData:et,fragmentRef:$,refetch:ei,disableStoreUpdates:en,enableStoreUpdates:er}}},76696:function(e,t,n){"use strict";var r=n(67825).loadQuery;e.exports=function e(t,n,i){var a=null;null==n.root.getModuleIfRequired()&&(a=n.root.load());var s=n.getPreloadProps(i),o=s.queries,l=s.entryPoints,u=s.extraProps,c={},d={};null!=o&&Object.keys(o).forEach(function(e){var n=o[e],i=n.environmentProviderOptions,a=n.options,s=n.parameters,l=n.variables,u=t.getEnvironment(i);c[e]=r(u,s,l,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)}),null!=l&&Object.keys(l).forEach(function(n){var r=l[n];if(null!=r){var i=r.entryPoint,a=r.entryPointParams;d[n]=e(t,i,a)}});var h=!1;return{dispose:function(){h||(null!=c&&Object.values(c).forEach(function(e){(0,e.dispose)()}),null!=d&&Object.values(d).forEach(function(e){(0,e.dispose)()}),h=!0)},entryPoints:d,extraProps:null!=u?u:null,getComponent:function(){var e,t=n.root.getModuleIfRequired();if(null==t)throw a=null!==(e=a)&&void 0!==e?e:n.root.load();return null!=t.default?t.default:t},get isDisposed(){return h},queries:c,rootModuleID:n.root.getModuleId()}}},67825:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(3996),a=n(27378),s=n(2417),o=s.__internal.fetchQueryDeduped,l=s.Observable,u=s.PreloadableQueryRegistry,c=s.RelayFeatureFlags,d=s.ReplaySubject,h=s.createOperationDescriptor,f=s.getRequest,p=s.getRequestIdentifier;n(82264);var m=null,g=100001;e.exports={loadQuery:function(e,t,n,s,m){null===(v=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===v||null===(y=v.ReactCurrentDispatcher)||void 0===y||y.current,g++;var v,y,_,b,x,w,k,E,S,C=null!==(_=null==s?void 0:s.fetchPolicy)&&void 0!==_?_:"store-or-network",T=(0,r.default)((0,r.default)({},null==s?void 0:s.networkCacheConfig),{},{force:!0}),I=!1,R=function(t,n){return I=!0,e.executeWithSource({operation:t,source:n})},j=new d,A=l.create(function(e){return j.subscribe(e)}),D=null,P=!1,N=function(t){P=!0;var r=new d;return x=(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING?o(e,"raw-network-request-"+p(t,n),function(){return e.getNetwork().execute(t,n,T)}):e.getNetwork().execute(t,n,T)).subscribe({error:function(e){D=e,r.error(e)},next:function(e){r.next(e)},complete:function(){r.complete()}}).unsubscribe,l.create(function(e){var t=r.subscribe(e);return function(){t.unsubscribe(),x()}})},L=function(t,n){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(P=!0),w=o(e,t.request.identifier,n).subscribe({error:function(e){j.error(e)},next:function(e){j.next(e)},complete:function(){j.complete()}}).unsubscribe},M=function(t){var r=h(t,n,T);b=e.retain(r),"store-only"!==C&&("store-or-network"!==C||"available"!==e.check(r).status)&&L(r,function(){return R(r,N(t.params))})};if("PreloadableConcreteRequest"===t.kind){null!==(S=(k=t.params).id)||i(!1);var O=u.get(S);if(null!=O)M(O);else{var F="store-only"===C?null:N(k);E=u.onLoad(S,function(t){E();var r=h(t,n,T);b=e.retain(r),null!=F&&L(r,function(){return R(r,F)})}).dispose}}else{var U=f(t);S=null!=(k=U.params).cacheID?k.cacheID:k.id,M(U)}var V=!1,B=!1,q=!1,Z=function(){B||(b&&b.dispose(),B=!0)},z=function(){q||(I?w&&w():x&&x(),E&&E(),q=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:m,dispose:function(){V||(Z(),z(),V=!0)},releaseQuery:Z,cancelNetworkRequest:z,fetchKey:g,id:S,get isDisposed(){return V||B},get networkError(){return D},name:k.name,networkCacheConfig:T,fetchPolicy:C,source:P?A:void 0,variables:n}},useTrackLoadQueryInRender:function(){if(null===m){var e,t;m=null===(e=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e?void 0:null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current}}}},41861:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(76696),a=n(67825).useTrackLoadQueryInRender,s=n(43023),o=n(27378),l=o.useCallback,u=o.useEffect,c=o.useRef,d=o.useState,h={kind:"NullEntryPointReference"};e.exports=function(e,t,n){a();var o,f,p,m,g=null!==(o=null==n?void 0:null===(f=n.TEST_ONLY__initialEntryPointData)||void 0===f?void 0:f.entryPointReference)&&void 0!==o?o:h,v=null!==(p=null==n?void 0:null===(m=n.TEST_ONLY__initialEntryPointData)||void 0===m?void 0:m.entryPointParams)&&void 0!==p?p:null,y=s(),_=c(new Set([g])),b=d(g),x=b[0],w=b[1],k=d(v),E=k[0],S=k[1],C=l(function(){if(y.current){var e={kind:"NullEntryPointReference"};_.current.add(e),w(e)}},[w,y]),T=l(function(n){if(y.current){var r=i(e,t,n);_.current.add(r),w(r),S(n)}},[e,t,w,y]),I=c(!1);return u(function(){return function(){I.current=!0}},[]),u(function(){if(!0===I.current){I.current=!1,"NullEntryPointReference"!==x.kind&&null!=E&&T(E);return}var e=_.current;if(y.current){var t,n=(0,r.default)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i===x)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){n.e(e)}finally{n.f()}}},[x,E,T,y]),u(function(){return function(){var e,t=(0,r.default)(_.current);try{for(t.s();!(e=t.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){t.e(e)}finally{t.f()}}},[]),["NullEntryPointReference"===x.kind?null:x,T,C]}},32718:function(e,t,n){"use strict";var r=n(44949),i=n(27378),a=i.useCallback,s=i.useEffect;e.exports=function(){var e=r(null),t=r(!1),n=a(function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1},[]),i=a(function(n){e.current=n,t.current=!0},[]),o=a(function(){e.current=null,t.current=!1},[]);return s(function(){return n},[n]),{isFetchingRef:t,startFetch:i,disposeFetch:n,completeFetch:o}}},54739:function(e,t,n){"use strict";var r=n(17205),i=n(14480),a=n(67825).useTrackLoadQueryInRender,s=n(91694);n(27378).useDebugValue;var o=n(2417).getFragment;e.exports=function(e,t){var n,l=r.get();return l?l.useFragment(e,t):(a(),s(n=o(e),"first argument of useFragment()"),i(n,t,"useFragment()").data)}},43023:function(e,t,n){"use strict";var r=n(27378),i=r.useEffect,a=r.useRef;e.exports=function(){var e=a(!0);return i(function(){return e.current=!0,function(){e.current=!1}},[]),e}},14500:function(e,t,n){"use strict";var r=n(89295),i=n(3996),a=n(27378),s=n(2417),o=s.__internal.getObservableForActiveRequest,l=s.getSelector,u=a.useEffect,c=a.useState,d=a.useMemo;e.exports=function(e,t){var n=r(),a=d(function(){var r=l(e,t);return null==r?null:("SingularReaderSelector"!==r.kind&&i(!1),o(n,r.owner))},[n,e,t]),s=c(null!=a),h=s[0],f=s[1];return u(function(){var e;if(f(null!=a),null!=a){var t=function(){f(!1)};e=a.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}},[a]),h}},32448:function(e,t,n){"use strict";var r=n(67825).useTrackLoadQueryInRender,i=n(11498),a=n(33378),s=n(89295),o=n(2417).__internal.fetchQuery;e.exports=function(e,t,n){r();var l=s(),u=a(e,t,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:o(l,u),fetchPolicy:null==n?void 0:n.fetchPolicy,query:u,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},11498:function(e,t,n){"use strict";var r=n(17205),i=n(14480),a=n(90998),s=n(26882),o=s.getQueryCacheIdentifier,l=s.getQueryResourceForEnvironment,u=n(32718),c=n(89295),d=n(27378),h=d.useContext,f=d.useEffect,p=d.useState,m=d.useRef;e.exports=function(e){var t,n,s,d=e.query,g=e.componentDisplayName,v=e.fetchObservable,y=e.fetchPolicy,_=e.fetchKey,b=e.renderPolicy,x=c(),w=h(a),k=l(x),E=p(0),S=E[0],C=E[1],T=u(),I=T.startFetch,R=T.completeFetch,j=o(x,d,y,b,"".concat(S,"-").concat(null!=_?_:"")),A=w.wrapPrepareQueryResource(function(){return k.prepareWithIdentifier(j,d,v,y,b,{start:I,complete:R,error:R},w)}),D=m(!1);return f(function(){return function(){D.current=!0}},[]),f(function(){if(!0===D.current){D.current=!1,C(function(e){return e+1});return}var e=k.retain(A,w);return function(){e.dispose()}},[x,j]),f(function(){k.releaseTemporaryRetain(A)}),t=A.fragmentNode,n=A.fragmentRef,(s=r.get())&&s.useFragment__internal?s.useFragment__internal(t,n,g):i(t,n,g).data}},1364:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(32718),a=n(43023),s=n(14500),o=n(89295),l=n(3996),u=n(27378),c=u.useCallback,d=u.useEffect,h=u.useState,f=n(2417),p=f.__internal.fetchQuery,m=f.ConnectionInterface,g=f.createOperationDescriptor,v=f.getPaginationVariables,y=f.getRefetchMetadata,_=f.getSelector,b=f.getValueAtPath;n(82264),e.exports=function(e){var t=e.direction,n=e.fragmentNode,u=e.fragmentRef,f=e.fragmentIdentifier,x=e.fragmentData,w=e.connectionPathInFragmentData,k=e.paginationRequest,E=e.paginationMetadata,S=e.componentDisplayName,C=e.observer,T=e.onReset,I=o(),R=i(),j=R.isFetchingRef,A=R.startFetch,D=R.disposeFetch,P=R.completeFetch,N=y(n,S).identifierInfo,L=(null==N?void 0:N.identifierField)!=null&&null!=x&&"object"==typeof x?x[N.identifierField]:null,M=a(),O=h(I),F=O[0],U=O[1],V=h(f),B=V[0],q=V[1],Z=s(n,u);(I!==F||f!==B)&&(D(),T(),U(I),q(f));var z=function(e,t,n,r){var i,a,s,o=m.get(),u=o.EDGES,c=o.PAGE_INFO,d=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,f=o.END_CURSOR,p=o.START_CURSOR,g=b(n,r);if(null==g)return{cursor:null,hasMore:!1};"object"!=typeof g&&l(!1);var v=g[u],y=g[c];if(null==v||null==y)return{cursor:null,hasMore:!1};Array.isArray(v)||l(!1),"object"!=typeof y&&l(!1);var _="forward"===e?null!==(i=y[f])&&void 0!==i?i:null:null!==(a=y[p])&&void 0!==a?a:null;return null===_||"string"==typeof _||l(!1),s="forward"===e?null!=_&&!0===y[d]:null!=_&&!0===y[h],{cursor:_,hasMore:s}}(t,0,x,w),H=z.cursor,K=z.hasMore;return d(function(){return function(){D()}},[D]),[c(function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==M.current)return{dispose:function(){}};var s=_(n,u);if(!0===j.current||null==x||Z)return a&&a(null),{dispose:function(){}};null!=s&&"PluralReaderSelector"!==s.kind||l(!1);var o=s.owner.variables,c=s.variables,d=null==i?void 0:i.UNSTABLE_extraVariables,h=v(t,e,H,(0,r.default)((0,r.default)({},o),c),(0,r.default)({},d),E);return null!=N&&(h[N.identifierQueryVariableName]=L),p(I,g(k,h,{force:!0})).subscribe((0,r.default)((0,r.default)({},C),{},{start:function(e){A(e),C.start&&C.start(e)},complete:function(){P(),C.complete&&C.complete(),a&&a(null)},error:function(e){P(),C.error&&C.error(e),a&&a(e)}})),{dispose:D}},[I,L,t,H,A,D,P,j,Z,x,n.name,u,S]),K,D]}},33378:function(e,t,n){"use strict";var r=n(18945),i=n(27378),a=n(2417),s=a.createOperationDescriptor,o=a.getRequest,l=i.useMemo;e.exports=function(e,t,n){var i=r(t),a=r(n||{});return l(function(){return s(o(e),i,a)},[e,i,a])}},18945:function(e,t,n){"use strict";var r=n(2971),i=n(27378).useState;e.exports=function(e){var t=i(e),n=t[0],a=t[1];return r(e,n)?n:(a(e),e)}},88301:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(43023),a=n(89295),s=n(27378),o=n(2417).commitMutation,l=s.useState,u=s.useEffect,c=s.useRef,d=s.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=a(),s=i(),h=c(n),f=c(e),p=c(new Set),m=l(!1),g=m[0],v=m[1],y=d(function(t){h.current===n&&f.current===e&&(p.current.delete(t),s.current&&v(p.current.size>0))},[n,s,e]);return u(function(){(h.current!==n||f.current!==e)&&(p.current=new Set,s.current&&v(!1),h.current=n,f.current=e)},[n,s,e]),[d(function(i){s.current&&v(!0);var a=t(n,(0,r.default)((0,r.default)({},i),{},{mutation:e,onCompleted:function(e,t){var n;y(a),null===(n=i.onCompleted)||void 0===n||n.call(i,e,t)},onError:function(e){var t;y(a),null===(t=i.onError)||void 0===t||t.call(i,e)},onUnsubscribe:function(){var e;y(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return p.current.add(a),a},[y,t,n,s,e]),g]}},72021:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(17205),a=n(19193),s=n(1364),o=n(91694),l=n(27378),u=l.useCallback,c=(l.useDebugValue,l.useState),d=n(2417),h=d.getFragment,f=d.getFragmentIdentifier,p=d.getPaginationMetadata;function m(e){var t=c(!1),n=t[0],i=t[1],a=s((0,r.default)((0,r.default)({},e),{},{observer:{start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},onReset:function(){return i(!1)}}));return[a[0],a[1],n,a[2]]}e.exports=function(e,t){var n,s,l,c,d,g,v,y,_,b,x,w,k,E,S,C,T,I,R,j,A,D=i.get();return D?D.usePaginationFragment(e,t):(o(n=h(e),"first argument of usePaginationFragment()"),c=(l=p(n,s="usePaginationFragment()")).connectionPathInFragmentData,d=l.paginationRequest,g=l.paginationMetadata,y=(v=a(n,t,s)).fragmentData,_=v.fragmentRef,b=v.refetch,k=(w=m({componentDisplayName:s,connectionPathInFragmentData:c,direction:"backward",fragmentData:y,fragmentIdentifier:x=f(n,_),fragmentNode:n,fragmentRef:_,paginationMetadata:g,paginationRequest:d}))[0],E=w[1],S=w[2],C=w[3],I=(T=m({componentDisplayName:s,connectionPathInFragmentData:c,direction:"forward",fragmentData:y,fragmentIdentifier:x,fragmentNode:n,fragmentRef:_,paginationMetadata:g,paginationRequest:d}))[0],R=T[1],j=T[2],{data:y,loadNext:I,loadPrevious:k,hasNext:R,hasPrevious:E,isLoadingNext:j,isLoadingPrevious:S,refetch:u(function(e,t){return A(),C(),b(e,(0,r.default)((0,r.default)({},t),{},{__environment:void 0}))},[A=T[3],C,b])})}},48974:function(e,t,n){"use strict";var r=n(67825).useTrackLoadQueryInRender,i=n(11498),a=n(33378),s=n(89295),o=n(3996);n(27378).useDebugValue;var l=n(2417).__internal,u=l.fetchQueryDeduped,c=l.fetchQuery;n(82264),e.exports=function(e,t,n){r();var l=s(),d=t.fetchKey,h=t.fetchPolicy,f=t.source,p=a(e,t.variables,t.networkCacheConfig);if("PreloadedQuery_DEPRECATED"===t.kind)p.request.node.params.name!==t.name&&o(!1),m={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:u(l,p.request.identifier,function(){return l===t.environment&&null!=f?l.executeWithSource({operation:p,source:f}):l.execute({operation:p})}),fetchPolicy:h,query:p,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{var m,g,v=c(l,p);null!=f&&l===t.environment?g=f.ifEmpty(v):(t.environment,g=v),m={componentDisplayName:"usePreloadedQuery()",fetchObservable:g,fetchKey:d,fetchPolicy:h,query:p,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}return i(m)}},40008:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(67825),a=i.loadQuery,s=i.useTrackLoadQueryInRender,o=n(43023),l=n(89295),u=n(27378),c=u.useCallback,d=u.useEffect,h=u.useRef,f=u.useState,p=n(2417).getRequest,m={kind:"NullQueryReference"};function g(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var n=null!=t?t:m,i=l();s();var u=o(),p=h(new Set([n])),v=f(function(){return n}),y=v[0],_=v[1],b=f(function(){return n}),x=b[0],w=b[1];n!==x&&(p.current.add(n),w(n),_(n));var k=c(function(){u.current&&(p.current.add(m),_(m))},[u]),E=c(function(t,n){var r=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(u.current){var s,o=a(null!==(s=null==n?void 0:n.__environment)&&void 0!==s?s:i,e,t,r);p.current.add(o),_(o)}},[i,e,_,u]),S=h(!1);return d(function(){return function(){S.current=!0}},[]),d(function(){if(!0===S.current){S.current=!1,"NullQueryReference"!==y.kind&&E(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig});return}var t=p.current;if(u.current){var n,i=(0,r.default)(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a===y)break;t.delete(a),"NullQueryReference"!==a.kind&&(g(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}},[y,u,E,e]),d(function(){return function(){var t,n=(0,r.default)(p.current);try{for(n.s();!(t=n.n()).done;){var i=t.value;"NullQueryReference"!==i.kind&&(g(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}},[e]),["NullQueryReference"===y.kind?null:y,E,k]}},41932:function(e,t,n){"use strict";var r=n(17205),i=n(19193),a=n(91694);n(27378).useDebugValue;var s=n(2417).getFragment;e.exports=function(e,t){var n,o,l=r.get();return l?l.useRefetchableFragment(e,t):(a(n=s(e),"first argument of useRefetchableFragment()"),[(o=i(n,t,"useRefetchableFragment()")).fragmentData,o.refetch])}},89295:function(e,t,n){"use strict";var r=n(59852),i=n(3996),a=n(27378).useContext;e.exports=function(){var e=a(r);return null!=e||i(!1),e.environment}},91694:function(e,t,n){"use strict";n(44949),n(82264),e.exports=function(e,t){}},30273:function(e,t,n){"use strict";var r=n(89295),i=n(27378),a=i.useEffect,s=i.useRef;e.exports=function(e,t){var n=r(),i=s(null);return a(function(){var r=n.getStore(),a=r.lookupInvalidationState(e),s=r.subscribeToInvalidationState(a,t);return i.current=s,function(){return s.dispose()}},[Array.from(e).sort().join(""),t,n]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},44357:function(e,t,n){"use strict";var r=n(89295),i=n(27378).useEffect,a=n(2417).requestSubscription;e.exports=function(e,t){var n=null!=t?t:a,s=r();i(function(){return n(s,e).dispose},[s,e,n])}},44949:function(e,t,n){"use strict";var r=n(27378).useMemo;e.exports=function(e){return r(function(){return{current:e}},[])}},88675:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var r=n(27378);let i=e=>Math.max(e.offsetWidth,e.scrollWidth),a=e=>Math.max(e.offsetHeight,e.scrollHeight),s=(e,t,n)=>{let r=e.childNodes,i=document.createRange();for(let e=0;e<r.length;e++){let a=r[e];if(3!==a.nodeType)continue;i.selectNodeContents(a);let s=i.getBoundingClientRect();if(t>=s.left&&n>=s.top&&t<=s.right&&n<=s.bottom)return a}return!1},o=()=>{let e=window.getSelection?window.getSelection():document.selection;e&&(e.removeAllRanges?e.removeAllRanges():e.empty&&e.empty())};class l{constructor(e={}){let t={content:e.viewport.children[0],direction:"all",pointerMode:"all",scrollMode:void 0,bounce:!0,bounceForce:.1,friction:.05,textSelection:!1,inputsFocus:!0,emulateScroll:!1,preventDefaultOnEmulateScroll:!1,preventPointerMoveDefault:!0,lockScrollOnDragDirection:!1,pointerDownPreventDefault:!0,dragDirectionTolerance:40,onPointerDown(){},onPointerUp(){},onPointerMove(){},onClick(){},onUpdate(){},onWheel(){},shouldScroll:()=>!0};if(this.props={...t,...e},!this.props.viewport||!(this.props.viewport instanceof Element)){console.error('ScrollBooster init error: "viewport" config property must be present and must be Element');return}if(!this.props.content){console.error("ScrollBooster init error: Viewport does not have any content");return}this.isDragging=!1,this.isTargetScroll=!1,this.isScrolling=!1,this.isRunning=!1;let n={x:0,y:0};this.position={...n},this.velocity={...n},this.dragStartPosition={...n},this.dragOffset={...n},this.clientOffset={...n},this.dragPosition={...n},this.targetPosition={...n},this.scrollOffset={...n},this.rafID=null,this.events={},this.updateMetrics(),this.handleEvents()}updateOptions(e={}){this.props={...this.props,...e},this.props.onUpdate(this.getState()),this.startAnimationLoop()}updateMetrics(){this.viewport={width:this.props.viewport.clientWidth,height:this.props.viewport.clientHeight},this.content={width:i(this.props.content),height:a(this.props.content)},this.edgeX={from:Math.min(-this.content.width+this.viewport.width,0),to:0},this.edgeY={from:Math.min(-this.content.height+this.viewport.height,0),to:0},this.props.onUpdate(this.getState()),this.startAnimationLoop()}startAnimationLoop(){this.isRunning=!0,cancelAnimationFrame(this.rafID),this.rafID=requestAnimationFrame(()=>this.animate())}animate(){if(!this.isRunning)return;this.updateScrollPosition(),this.isMoving()||(this.isRunning=!1,this.isTargetScroll=!1);let e=this.getState();this.setContentPosition(e),this.props.onUpdate(e),this.rafID=requestAnimationFrame(()=>this.animate())}updateScrollPosition(){this.applyEdgeForce(),this.applyDragForce(),this.applyScrollForce(),this.applyTargetForce();let e=1-this.props.friction;this.velocity.x*=e,this.velocity.y*=e,"vertical"!==this.props.direction&&(this.position.x+=this.velocity.x),"horizontal"!==this.props.direction&&(this.position.y+=this.velocity.y),this.props.bounce&&!this.isScrolling||this.isTargetScroll||(this.position.x=Math.max(Math.min(this.position.x,this.edgeX.to),this.edgeX.from),this.position.y=Math.max(Math.min(this.position.y,this.edgeY.to),this.edgeY.from))}applyForce(e){this.velocity.x+=e.x,this.velocity.y+=e.y}applyEdgeForce(){if(!this.props.bounce||this.isDragging)return;let e=this.position.x<this.edgeX.from,t=this.position.x>this.edgeX.to,n=this.position.y<this.edgeY.from,r=this.position.y>this.edgeY.to,i=e||t,a=n||r;if(!i&&!a)return;let s={x:e?this.edgeX.from:this.edgeX.to,y:n?this.edgeY.from:this.edgeY.to},o={x:s.x-this.position.x,y:s.y-this.position.y},l={x:o.x*this.props.bounceForce,y:o.y*this.props.bounceForce},u={x:this.position.x+(this.velocity.x+l.x)/this.props.friction,y:this.position.y+(this.velocity.y+l.y)/this.props.friction};(e&&u.x>=this.edgeX.from||t&&u.x<=this.edgeX.to)&&(l.x=o.x*this.props.bounceForce-this.velocity.x),(n&&u.y>=this.edgeY.from||r&&u.y<=this.edgeY.to)&&(l.y=o.y*this.props.bounceForce-this.velocity.y),this.applyForce({x:i?l.x:0,y:a?l.y:0})}applyDragForce(){if(!this.isDragging)return;let e={x:this.dragPosition.x-this.position.x,y:this.dragPosition.y-this.position.y};this.applyForce({x:e.x-this.velocity.x,y:e.y-this.velocity.y})}applyScrollForce(){this.isScrolling&&(this.applyForce({x:this.scrollOffset.x-this.velocity.x,y:this.scrollOffset.y-this.velocity.y}),this.scrollOffset.x=0,this.scrollOffset.y=0)}applyTargetForce(){this.isTargetScroll&&this.applyForce({x:(this.targetPosition.x-this.position.x)*.08-this.velocity.x,y:(this.targetPosition.y-this.position.y)*.08-this.velocity.y})}isMoving(){return this.isDragging||this.isScrolling||Math.abs(this.velocity.x)>=.01||Math.abs(this.velocity.y)>=.01}scrollTo(e={}){this.isTargetScroll=!0,this.targetPosition.x=-e.x||0,this.targetPosition.y=-e.y||0,this.startAnimationLoop()}setPosition(e={}){this.velocity.x=0,this.velocity.y=0,this.position.x=-e.x||0,this.position.y=-e.y||0,this.startAnimationLoop()}getState(){return{isMoving:this.isMoving(),isDragging:!!(this.dragOffset.x||this.dragOffset.y),position:{x:-this.position.x,y:-this.position.y},dragOffset:this.dragOffset,dragAngle:this.getDragAngle(this.clientOffset.x,this.clientOffset.y),borderCollision:{left:this.position.x>=this.edgeX.to,right:this.position.x<=this.edgeX.from,top:this.position.y>=this.edgeY.to,bottom:this.position.y<=this.edgeY.from}}}getDragAngle(e,t){return Math.round(Math.atan2(e,t)*(180/Math.PI))}getDragDirection(e,t){return Math.abs(90-Math.abs(e))<=90-t?"horizontal":"vertical"}setContentPosition(e){"transform"===this.props.scrollMode&&(this.props.content.style.transform=`translate(${-e.position.x}px, ${-e.position.y}px)`),"native"===this.props.scrollMode&&(this.props.viewport.scrollTop=e.position.y,this.props.viewport.scrollLeft=e.position.x)}handleEvents(){let e={x:0,y:0},t={x:0,y:0},n=null,r=null,i=!1,a=r=>{if(!this.isDragging)return;let a=i?r.touches[0]:r,{pageX:s,pageY:o,clientX:l,clientY:u}=a;this.dragOffset.x=s-e.x,this.dragOffset.y=o-e.y,this.clientOffset.x=l-t.x,this.clientOffset.y=u-t.y,(Math.abs(this.clientOffset.x)>5&&!n||Math.abs(this.clientOffset.y)>5&&!n)&&(n=this.getDragDirection(this.getDragAngle(this.clientOffset.x,this.clientOffset.y),this.props.dragDirectionTolerance)),this.props.lockScrollOnDragDirection&&"all"!==this.props.lockScrollOnDragDirection?n===this.props.lockScrollOnDragDirection&&i?(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):i?(this.dragPosition.x=this.dragStartPosition.x,this.dragPosition.y=this.dragStartPosition.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y):(this.dragPosition.x=this.dragStartPosition.x+this.dragOffset.x,this.dragPosition.y=this.dragStartPosition.y+this.dragOffset.y)};this.events.pointerdown=n=>{i=!!(n.touches&&n.touches[0]),this.props.onPointerDown(this.getState(),n,i);let r=i?n.touches[0]:n,{pageX:l,pageY:u,clientX:c,clientY:d}=r,{viewport:h}=this.props,f=h.getBoundingClientRect();if(!(c-f.left>=h.clientLeft+h.clientWidth)&&!(d-f.top>=h.clientTop+h.clientHeight)&&this.props.shouldScroll(this.getState(),n)&&2!==n.button&&("mouse"!==this.props.pointerMode||!i)&&("touch"!==this.props.pointerMode||i)&&!(this.props.inputsFocus&&["input","textarea","button","select","label"].indexOf(n.target.nodeName.toLowerCase())>-1)){if(this.props.textSelection){let e=s(n.target,c,d);if(e)return;o()}this.isDragging=!0,e.x=l,e.y=u,t.x=c,t.y=d,this.dragStartPosition.x=this.position.x,this.dragStartPosition.y=this.position.y,a(n),this.startAnimationLoop(),!i&&this.props.pointerDownPreventDefault&&n.preventDefault()}},this.events.pointermove=e=>{e.cancelable&&("all"===this.props.lockScrollOnDragDirection||this.props.lockScrollOnDragDirection===n)&&e.preventDefault(),a(e),this.props.onPointerMove(this.getState(),e,i)},this.events.pointerup=e=>{this.isDragging=!1,n=null,this.props.onPointerUp(this.getState(),e,i)},this.events.wheel=e=>{let t=this.getState();this.props.emulateScroll&&(this.velocity.x=0,this.velocity.y=0,this.isScrolling=!0,this.scrollOffset.x=-e.deltaX,this.scrollOffset.y=-e.deltaY,this.props.onWheel(t,e),this.startAnimationLoop(),clearTimeout(r),r=setTimeout(()=>this.isScrolling=!1,80),this.props.preventDefaultOnEmulateScroll&&this.getDragDirection(this.getDragAngle(-e.deltaX,-e.deltaY),this.props.dragDirectionTolerance)===this.props.preventDefaultOnEmulateScroll&&e.preventDefault())},this.events.scroll=()=>{let{scrollLeft:e,scrollTop:t}=this.props.viewport;Math.abs(this.position.x+e)>3&&(this.position.x=-e,this.velocity.x=0),Math.abs(this.position.y+t)>3&&(this.position.y=-t,this.velocity.y=0)},this.events.click=e=>{let t=this.getState(),n="vertical"!==this.props.direction?t.dragOffset.x:0,r="horizontal"!==this.props.direction?t.dragOffset.y:0;Math.max(Math.abs(n),Math.abs(r))>5&&(e.preventDefault(),e.stopPropagation()),this.props.onClick(t,e,i)},this.events.contentLoad=()=>this.updateMetrics(),this.events.resize=()=>this.updateMetrics(),this.props.viewport.addEventListener("mousedown",this.events.pointerdown),this.props.viewport.addEventListener("touchstart",this.events.pointerdown,{passive:!1}),this.props.viewport.addEventListener("click",this.events.click),this.props.viewport.addEventListener("wheel",this.events.wheel,{passive:!1}),this.props.viewport.addEventListener("scroll",this.events.scroll),this.props.content.addEventListener("load",this.events.contentLoad,!0),window.addEventListener("mousemove",this.events.pointermove),window.addEventListener("touchmove",this.events.pointermove,{passive:!1}),window.addEventListener("mouseup",this.events.pointerup),window.addEventListener("touchend",this.events.pointerup),window.addEventListener("resize",this.events.resize)}destroy(){this.props.viewport.removeEventListener("mousedown",this.events.pointerdown),this.props.viewport.removeEventListener("touchstart",this.events.pointerdown),this.props.viewport.removeEventListener("click",this.events.click),this.props.viewport.removeEventListener("wheel",this.events.wheel),this.props.viewport.removeEventListener("scroll",this.events.scroll),this.props.content.removeEventListener("load",this.events.contentLoad),window.removeEventListener("mousemove",this.events.pointermove),window.removeEventListener("touchmove",this.events.pointermove),window.removeEventListener("mouseup",this.events.pointerup),window.removeEventListener("touchend",this.events.pointerup),window.removeEventListener("resize",this.events.resize)}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){void 0===e&&(e={});var t=(0,r.useRef)(null),n=(0,r.useState)(t.current),i=n[0],a=n[1],s=(0,r.useRef)(e),o=(0,r.useCallback)(function(e){var n=s.current,r=n.contentRef,i=u({viewport:e},function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(n,["contentRef","viewportRef"]));i.viewport=e,(null==r?void 0:r.current)&&(i.content=r.current),t.current=new l(i),a(t.current)},[]),c=(0,r.useCallback)(function(t){if(t){if(e.viewportRef){e.viewportRef.current=t;return}o(t)}},[o,e.viewportRef]);return(0,r.useEffect)(function(){var t;(null==(t=e.viewportRef)?void 0:t.current)&&o(e.viewportRef.current)},[o,e.viewportRef]),(0,r.useEffect)(function(){return function(){var e;return null==(e=t.current)?void 0:e.destroy()}},[]),[c,i]}},6174:function(e,t,n){"use strict";var r=n(27378);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var s=a(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case l:return e;default:return t}}case m:case p:case i:return t}}}function v(e){return g(e)===d}t.typeOf=g,t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=m,t.Memo=p,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h)},t.isAsyncMode=function(e){return v(e)||g(e)===c},t.isConcurrentMode=v,t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===h},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===p},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===o},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===f}});function o(){}function l(){}i(s),i(a(function(e,t){})),a(function(e){e.exports=s}),Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}(),Function.call.bind(Object.prototype.hasOwnProperty),l.resetWarningCache=o;var u=a(function(e){e.exports=function(){function e(e,t,n,r,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:o};return n.PropTypes=n,n}()}),c=[],d=function(e){function t(){e.apply(this,arguments),this.state={isLoading:!0}}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.loadTweetForProps=function(e){var t=this,n=function(){window.twttr.ready().then(function(n){var r=n.widgets;t._div&&(t._div.innerHTML="");var i=e.onTweetLoadSuccess,a=e.onTweetLoadError;r.createTweetEmbed(t.props.id,t._div,e.options).then(function(e){t.setState({isLoading:!1}),i&&i(e)}).catch(a)})},r=window.twttr;r&&r.ready?n():function(e,t){if(0===c.length){c.push(t);var n=document.createElement("script");n.setAttribute("src",e),n.onload=function(){return c.forEach(function(e){return e()})},document.body.appendChild(n)}else c.push(t)}((window.location.protocol.indexOf("file")>=0?this.props.protocol:"")+"//platform.twitter.com/widgets.js",n)},t.prototype.componentDidMount=function(){this.loadTweetForProps(this.props)},t.prototype.shouldComponentUpdate=function(e,t){return this.props.id!==e.id||this.props.className!==e.className},t.prototype.componentWillUpdate=function(e,t){this.props.id!==e.id&&this.loadTweetForProps(e)},t.prototype.render=function(){var e=this;return r.createElement("div",{className:this.props.className,ref:function(t){e._div=t}},this.state.isLoading&&this.props.placeholder)},t}(r.Component);d.propTypes={id:u.string,options:u.object,protocol:u.string,onTweetLoadSuccess:u.func,onTweetLoadError:u.func,className:u.string},d.defaultProps={protocol:"https:",options:{},className:null},t.Z=d},90251:function(e,t,n){"use strict";n.d(t,{Jc:function(){return A},Db:function(){return L},h0:function(){return M},aM:function(){return b}});var r=n(2417),i=n(27378),a=(0,r.__internal.createRelayContext)(i),s=n(2971),o=n.n(s),l="network-only",u="usePagination",c={force:!0};function d(e,t,n){return(0,r.createOperationDescriptor)((0,r.getRequest)(e),t,n)}var h=r.__internal.fetchQuery;function f(e){var t,n,r,i,a=e.doRetain,s=void 0===a||a,o=e.disposeTemporary,u=null,c=null,d=!1,f=null,p=function(e,t){void 0===t&&(t=null),d=e,f=t},m=function(e,t,n,r){if(n!==l){var i=e.check(t).status,a="available"===i;if(a||"partial"===r&&"stale"!==i)return{snapshot:e.lookup(t.fragment),full:a}}return{snapshot:null,full:!1}},g=function(){v(),c&&c.dispose(),_(),c=null,i=null,n=null},v=function(){clearTimeout(t),t=null},y=function(){t=setTimeout(function(){v(),g(),o&&o()},3e4)},_=function(){u&&u.unsubscribe(),f=null,d=!1};return{fetch:function(e,t,a,o,f,v,y){void 0===a&&(a="network-only"),void 0===o&&(o=function(e,t){});var b,x,w=!1;(i!=e||n.request.identifier!==t.request.identifier)&&(g(),s&&(c=e.retain(t))),i=e,n=t,_();var k=m(e,t,a,y),E=k.snapshot,S=k.full,C=(b=a)===l||"store-and-network"===b||"store-or-network"===b&&!S;if(null!=E){var T=!C;f(t,E,w&&!T),T&&o(null,w)}if(u&&u.unsubscribe(),C){var I=function(){},R=function(){u===x&&(u=null),d=!1,r=null},j=function(e){void 0===e&&(e=null),I(),p(!1,e),R(),o(e,w)};h(e,t).subscribe({unsubscribe:function(){R()},complete:j,error:function(e){return j(e)},next:function(n){var i=e.lookup(t.fragment);r=null;var a=Array.isArray(n)?n:[n],s=t.request.cacheConfig,o=!!s&&!!s.poll,l=a.some(function(e){return null!=e&&!0===e.hasNext});o&&p(!1),I(),v&&v(n),f(t,i,w&&(l||o))},start:function(e){u=x=e,p(!0)}}),E||(r=new Promise(function(e){I=e}))}return w=!0,{dispose:function(){x&&x.unsubscribe()}}},getData:function(){return{isLoading:d,error:f}},dispose:g,checkAndSuspense:function(e,t){v();var n=r||f;if(e&&n)throw r&&t&&y(),n;return n}}}var p=new Map,m=function(){},g=function(){function e(){var e=this;this.forceUpdate=m,this.result=null,this.retry=function(t,n){void 0===n&&(n={});var r=n.fetchPolicy,i=t?d(e.query.request.node,e.query.request.variables,t):e.query;e.fetch(i,void 0===r?"network-only":r,n),e.resolveResult(),e.forceUpdate()},this.result={retry:this.retry,error:null,data:null,isLoading:!1},this.fetcher=f({disposeTemporary:function(){e.dispose(),e.query&&p.delete(e.query.request.identifier)}})}return e.prototype.setQuery=function(e,t,n,r){this.gqlQuery=e,this.variables=t,this.query=r,this.cacheConfig=n},e.prototype.getForceUpdate=function(){return this.forceUpdate},e.prototype.setForceUpdate=function(e){this.forceUpdate=e},e.prototype.dispose=function(){this.fetcher.dispose(),this.disposeSnapshot()},e.prototype.disposeSnapshot=function(){this.snapshot=null,this.rootSubscription&&(this.rootSubscription.dispose(),this.rootSubscription=null)},e.prototype.fetch=function(e,t,n,r){var i=this;if(this.disposeSnapshot(),r){this.fetcher.dispose();return}var a=n.onComplete,s=n.onResponse,o=function(e){i.resolveResult(),e&&i.forceUpdate()};this.fetcher.fetch(this.environment,e,t,function(e,t){o(t),a&&a(e)},function(e,t,n){i.snapshot||(i.snapshot=t,i.subscribe(t),o(n))},s,n.UNSTABLE_renderPolicy)},e.prototype.getQuery=function(e,t,n){return e==this.gqlQuery&&n==this.cacheConfig&&t==this.variables&&o()(t,this.variables)?this.query:(this.variables=t,this.gqlQuery=e,this.cacheConfig=n,d(e,t,n))},e.prototype.resolveEnvironment=function(e){this.resolve(e,this.gqlQuery,this.variables,this.options)},e.prototype.resolve=function(e,t,n,r){var i=this.getQuery(t,n,r.networkCacheConfig),a=r.fetchPolicy,s=void 0===a?"store-or-network":a,o=r.fetchKey,l=r.skip;this.options=r,this.query&&i.request.identifier===this.query.request.identifier&&e===this.environment&&s===this.fetchPolicy&&o===this.fetchKey&&l===this.skip||(this.environment=e,this.query=i,this.skip=l,this.fetchPolicy=s,this.fetchKey=o,this.fetch(i,s,r,l),this.resolveResult())},e.prototype.checkAndSuspense=function(e,t){t&&(this.setForceUpdate(m),p.set(this.query.request.identifier,this));var n=this.fetcher.checkAndSuspense(e,t);return t&&p.delete(this.query.request.identifier),n},e.prototype.getData=function(){return this.result},e.prototype.resolveResult=function(){var e=this.fetcher.getData(),t=e.error,n=e.isLoading,i=this.snapshot;i&&i.missingRequiredFields&&(0,r.handlePotentialSnapshotErrors)(this.environment,i.missingRequiredFields,i.relayResolverErrors),this.result={retry:this.retry,error:t,data:i?i.data:null,isLoading:n}},e.prototype.subscribe=function(e){var t=this;this.rootSubscription&&this.rootSubscription.dispose(),this.rootSubscription=this.environment.subscribe(e,function(e){t.snapshot=e,t.resolveResult(),t.forceUpdate()})},e}();function v(){var e=(0,i.useState)([])[1],t=(0,i.useRef)({mounted:!1,pending:!1});return(0,i.useEffect)(function(){return t.current.mounted=!0,t.current.pending&&(t.current.pending=!1,e([])),function(){t.current={mounted:!1,pending:!1}}},[]),(0,i.useCallback)(function(){t.current.mounted?e([]):t.current.pending=!0},[e])}function y(){return i.useContext(a).environment}var _=function(e,t,n,r){var a,s,o,l=y(),u=v(),c=(0,i.useRef)(),h=(0,i.useRef)(!1);(null===c.current||void 0===c.current||!0==h.current)&&(c.current={queryFetcher:(s=d(e,t,a=n.networkCacheConfig),(o=r&&p.has(s.request.identifier)?p.get(s.request.identifier):new g).setQuery(e,t,a,s),o)},h.current=!1),(0,i.useEffect)(function(){return!0==h.current&&u(),function(){c.current.queryFetcher.dispose(),h.current=!0}},[]);var f=c.current.queryFetcher;return f.resolve(l,e,t,n),f.checkAndSuspense(r,r),f.setForceUpdate(u),f.getData()},b=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),_(e,t,n,!1)};n(82264);var x=n(87081),w=n.n(x);function k(e,t,n){if(null==n)return{cursor:null,hasMore:!1};var i,a,s,o=r.ConnectionInterface.get(),l=o.EDGES,u=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,d=o.HAS_PREV_PAGE,h=o.END_CURSOR,f=o.START_CURSOR;"object"!=typeof n&&w()(!1);var p=n[l],m=n[u];if(null==p||null==m)return{cursor:null,hasMore:!1};Array.isArray(p)||w()(!1),"object"!=typeof m&&w()(!1);var g="forward"===e?null!==(i=m[h])&&void 0!==i?i:null:null!==(a=m[f])&&void 0!==a?a:null;return null===g||"string"==typeof g||w()(!1),s="forward"===e?null!=g&&!0===m[c]:null!=g&&!0===m[d],{cursor:g,hasMore:s}}var E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},S=r.__internal.getPromiseForActiveRequest;function C(){}function T(e){var t=I(e);return Array.isArray(e)?{snapshot:e,data:e.map(function(e){return e.data}),isMissingData:t}:{snapshot:e,data:e.data,isMissingData:t}}function I(e){return Array.isArray(e)?e.some(function(e){return e.isMissingData}):e.isMissingData}var R=function(){function e(e){var t=this;this.unmounted=!1,this.refetchable=!1,this.pagination=!1,this.refetch=function(e,n){void 0===n&&(n={});var i,a,s,o,l,u,h=t.name;if(!0===t.unmounted)return{dispose:C};t._selector;var f=(0,r.getRefetchMetadata)(t._fragment,h),p=f.fragmentRefPathInResponse,m=f.identifierInfo,g=f.refetchableRequest,v=t.getData().data,y=(null==m?void 0:m.identifierField)!=null&&null!=v&&"object"==typeof v?v[m.identifierField]:null;null==t._selector?(l={},u={}):"PluralReaderSelector"===t._selector.kind?(l=null!==(a=null===(i=t._selector.selectors[0])||void 0===i?void 0:i.owner.variables)&&void 0!==a?a:{},u=null!==(o=null===(s=t._selector.selectors[0])||void 0===s?void 0:s.variables)&&void 0!==o?o:{}):(l=t._selector.owner.variables,u=t._selector.variables);var _=E(E(E({},l),u),e);null==m||e.hasOwnProperty(m.identifierQueryVariableName)||(_[m.identifierQueryVariableName]=y),t.pagination&&(t.fetcherNext.dispose(),t.fetcherPrevious.dispose());var b=d(g,_,c),x=t.fetcherRefecth.fetch(t._environment,b,n.fetchPolicy,function(e,r){r&&t.refreshHooks(),n.onComplete&&n.onComplete(e)},function(e,n,i){var a=(0,r.getValueAtPath)(n.data,p),s=t.isEqualsFragmentRef(t._fragmentRefRefetch||t._fragmentRef,a),o=I(n);(!s||o)&&(t._fragmentRefRefetch=a,t._idfragmentrefetch=(0,r.getFragmentIdentifier)(t._fragment,a),t.lookup(t._fragment,a),t.subscribe(),t.resolverData.isMissingData=o,t.resolverData.owner=e.request,i&&t.refreshHooks())},n.onResponse,n.UNSTABLE_renderPolicy);return t.refreshHooks(),x},this.loadPrevious=function(e,n){return t.loadMore("backward",e,n)},this.loadNext=function(e,n){return t.loadMore("forward",e,n)},this.loadMore=function(e,n,i){void 0===i&&(i={});var a,s=null!==(a=i.onComplete)&&void 0!==a?a:C,o=t.getData().data,l={dispose:C},u="backward"===e?t.fetcherPrevious:t.fetcherNext;if(!0===t.unmounted)return l;if(null==t._selector||t._environment.isRequestActive(t._selector.owner.identifier)||!0===u.getData().isLoading||null==o)return s(null),l;null!=t._selector&&"PluralReaderSelector"!==t._selector.kind||w()(!1);var h=(0,r.getPaginationMetadata)(t._fragment,t.name),f=h.paginationRequest,p=h.paginationMetadata,m=h.connectionPathInFragmentData,g=(0,r.getRefetchMetadata)(t._fragment,t._fragment.name).identifierInfo,v=null!=g&&null!=o&&"object"==typeof o?o[g.identifierField]:null,y=t._selector.owner.variables,_=t._selector.variables,b=i.UNSTABLE_extraVariables,x=E(E({},y),_),S=k(e,t._fragment,(0,r.getValueAtPath)(o,m)).cursor,T=(0,r.getPaginationVariables)(e,n,S,x,E({},b),p);null!=g&&(T[g.identifierQueryVariableName]=v);var I=d(f,T,c),R=u.fetch(t._environment,I,void 0,function(e,n){n&&t.refreshHooks(),s(e)},C,i.onResponse);return t.refreshHooks(),R},this.name=e,this.pagination=e===u,this.refetchable="useRefetchable"===e||this.pagination,this.refetchable&&(this.fetcherRefecth=f({doRetain:!0})),this.pagination&&(this.fetcherNext=f({}),this.fetcherPrevious=f({})),this.setForceUpdate(),this.refreshHooks=function(){t.resolveResult(),t.forceUpdate()}}return e.prototype.setForceUpdate=function(e){void 0===e&&(e=C),this.forceUpdate=e},e.prototype.subscribeResolve=function(e){this._subscribeResolve&&this._subscribeResolve!=e&&e(this.getData()),this._subscribeResolve=e},e.prototype.setUnmounted=function(){this.unmounted=!0},e.prototype.isEqualsFragmentRef=function(e,t){if(this._fragmentRef!==t){var n=(0,r.getDataIDsFromFragment)(this._fragment,e),i=(0,r.getDataIDsFromFragment)(this._fragment,t);if(!o()(n,i)||!o()(this.getFragmentVariables(t),this.getFragmentVariables(e)))return!1}return!0},e.prototype.dispose=function(){this.unsubscribe(),this.fetcherNext&&this.fetcherNext.dispose(),this.fetcherPrevious&&this.fetcherPrevious.dispose(),this._idfragmentrefetch=null,this._fragmentRefRefetch=null,this.fetcherRefecth&&this.fetcherRefecth.dispose()},e.prototype.getFragmentVariables=function(e){return void 0===e&&(e=this._fragmentRef),(0,r.getVariablesFromFragment)(this._fragment,e)},e.prototype.resolve=function(e,t,n,r){this.resolverData&&this._environment===e&&(t===this._idfragment||this._idfragmentrefetch&&(!this._idfragmentrefetch||t===this._idfragmentrefetch))||(this._fragment=n,this._fragmentRef=r,this._idfragment=t,this._selector=null,this.dispose(),this._environment=e,this.lookup(n,this._fragmentRef),this.resolveResult())},e.prototype.lookup=function(e,t){if(null==t){this.resolverData={data:null};return}if(e.metadata&&e.metadata.plural&&!0===e.metadata.plural&&0===t.length){this.resolverData={data:[]};return}this._selector=(0,r.getSelector)(e,t);var n,i,a=(n=this._environment,"PluralReaderSelector"===(i=this._selector).kind?i.selectors.map(function(e){return n.lookup(e)}):n.lookup(i));this.resolverData=T(a);var s=this._selector?"PluralReaderSelector"===this._selector.kind?this._selector.selectors[0].owner:this._selector.owner:null;this.resolverData.owner=s},e.prototype.checkAndSuspense=function(e){var t,n=this;if(e&&this.resolverData.isMissingData&&this.resolverData.owner){var r=this.resolverData.owner,i=function(e,t,n){var r,i,a,s=S(n,t);if(null!=s)a=t.node.params.name;else{var o=n.getOperationTracker().getPendingOperationsAffectingOwner(t),l=null==o?void 0:o.pendingOperations;s=null!==(r=null==o?void 0:o.promise)&&void 0!==r?r:null,a=null!==(i=null==l?void 0:l.map(function(e){return e.node.params.name}).join(","))&&void 0!==i?i:null}if(!s)return null;(null==a||0===a.length)&&(a="Unknown pending operation");var u=e.name,c=a===u?"Relay(".concat(a,")"):"Relay(".concat(a,":").concat(u,")");return s.displayName=c,s}(this._fragment,r,this._environment),a=null!==(t=r.node.params.name)&&void 0!==t?t:"Unknown Parent Query";if(null!=i){var s=i.then(function(){n._idfragmentrefetch?n.resolveResult():(n._idfragment=null,n.dispose())}).catch(function(e){n._idfragmentrefetch?n.resolveResult():(n._idfragment=null,n.dispose())});throw s.displayName="Relay("+a+")",this.unsubscribe(),this.refreshHooks=C,s}}this.fetcherRefecth&&this.fetcherRefecth.checkAndSuspense(e)},e.prototype.getData=function(){return this.result},e.prototype.resolveResult=function(){var e=this.resolverData.data;if(this.refetchable||this.pagination){var t=this.fetcherRefecth.getData(),n=t.isLoading,i=t.error,a=this.refetch;if(this.pagination){var s=(0,r.getPaginationMetadata)(this._fragment,this.name).connectionPathInFragmentData,o=(0,r.getValueAtPath)(e,s),l=k("forward",this._fragment,o).hasMore,u=k("backward",this._fragment,o).hasMore,c=this.fetcherNext.getData(),d=c.isLoading,h=c.error,f=this.fetcherPrevious.getData(),p=f.isLoading,m=f.error;this.result={data:e,hasNext:l,isLoadingNext:d,hasPrevious:u,isLoadingPrevious:p,isLoading:n,errorNext:h,errorPrevious:m,error:i,refetch:a,loadNext:this.loadNext,loadPrevious:this.loadPrevious}}else this.result={data:e,isLoading:n,error:i,refetch:a}}else this.result=e;var g=this.resolverData.snapshot;g&&this._throwOrLogErrorsInSnapshot(g),this._subscribeResolve&&this._subscribeResolve(this.result)},e.prototype.unsubscribe=function(){this._disposable&&this._disposable.dispose()},e.prototype.subscribe=function(){var e=this,t=this._environment,n=this.resolverData.snapshot;this.unsubscribe();var r=[];n&&(Array.isArray(n)?n.forEach(function(n,i){r.push(t.subscribe(n,function(t){e.resolverData.snapshot[i]=t,e.resolverData.data[i]=t.data,e.resolverData.isMissingData=I(e.resolverData.snapshot),e.refreshHooks()}))}):r.push(t.subscribe(n,function(t){e.resolverData=T(t),e.refreshHooks()}))),this._disposable={dispose:function(){r.map(function(e){return e.dispose()}),e._disposable=void 0}}},e.prototype._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){e.missingRequiredFields&&(0,r.handlePotentialSnapshotErrors)(t._environment,e.missingRequiredFields,e.relayResolverErrors)}):e.missingRequiredFields&&(0,r.handlePotentialSnapshotErrors)(this._environment,e.missingRequiredFields,e.relayResolverErrors)},e}();function j(e,t,n,a,s){var o=y(),l=v(),u=(0,i.useRef)(null),c=(0,i.useRef)(!1);(null===u.current||void 0===u.current||c.current)&&(u.current={resolver:new R(a)},c.current=!1);var d=u.current.resolver;(0,i.useEffect)(function(){return!0==c.current&&l(),function(){u.current.resolver.setUnmounted(),c.current=!0}},[]),(0,i.useEffect)(function(){return function(){d.dispose()}},[d]);var h=(0,i.useMemo)(function(){return(0,r.getFragment)(e)},[e]),f=(0,i.useMemo)(function(){return(0,r.getFragmentIdentifier)(h,t)},[h,t]);if((0,i.useEffect)(function(){return d.subscribe(),function(){d.unsubscribe()}},[d,f,o]),d.subscribeResolve(s),d.resolve(o,f,h,t),!s)return d.checkAndSuspense(n),d.setForceUpdate(l),[d.getData(),d]}function A(e,t){return j(e,t,!1,"useFragment")[0]}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},P=i.useCallback,N=i.useState;function L(e,t,n){void 0===t&&(t={});var a=N({loading:!1,data:null,error:null}),s=a[0],o=a[1],l=function(){let e=(0,i.useRef)(!0),t=(0,i.useRef)(()=>e.current);return(0,i.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}(),u=y(),c=n||u,d=t.configs,h=t.variables,f=t.uploadables,p=t.onCompleted,m=t.onError,g=t.optimisticUpdater,v=t.optimisticResponse,_=t.updater;return[P(function(t){var n=D({configs:d,variables:h,uploadables:f,onCompleted:p,onError:m,optimisticUpdater:g,optimisticResponse:v,updater:_},t);return n.variables||w()(!1),l()&&o({loading:!0,data:n.optimisticResponse,error:null}),new Promise(function(t,i){function a(e){l()&&o({loading:!1,data:null,error:e}),n.onError?(n.onError(e),t(null)):i(e)}(0,r.commitMutation)(c,D(D({},n),{mutation:e,variables:n.variables,onCompleted:function(e,r){if(r){a(r);return}l()&&o({loading:!1,data:e,error:null}),n.onCompleted&&n.onCompleted(e),t(e)},onError:a}))})},[c,d,e,h,f,p,m,g,v,_,l]),s]}function M(e,t){return j(e,t,!1,u)[0]}},2417:function(e,t,n){e.exports=n(94036)},32461:function(e,t,n){"use strict";var r=n(3726),i=n(13214),a=n(3996);e.exports=function(e){switch(e){case"connection":return r;case"deleteRecord":return i.DeleteRecordHandler;case"deleteEdge":return i.DeleteEdgeHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler;case"appendNode":return i.AppendNodeHandler;case"prependNode":return i.PrependNodeHandler}a(!1)}},3726:function(e,t,n){"use strict";var r=n(65346).generateClientID,i=n(61332).getStableStorageKey,a=n(61193),s=n(59712),o=n(3996);n(82264);var l="connection",u="__connection_next_edge_index";function c(e,t,n){if(null==n)return n;var i=s.get().EDGES,a=t.getValue(u);"number"!=typeof a&&o(!1);var l=r(t.getDataID(),i,a),c=e.create(l,n.getType());return c.copyFieldsFrom(n),null==c.getValue("cursor")&&c.setValue(null,"cursor"),t.setValue(a+1,u),c}function d(e,t,n){for(var r=s.get().NODE,i=0;i<e.length;i++){var a=e[i];if(a){var o=a.getLinkedRecord(r),l=o&&o.getDataID();if(l){if(n.has(l))continue;n.add(l)}t.push(a)}}}e.exports={buildConnectionEdge:c,createEdge:function(e,t,n,i){var a=s.get().NODE,o=r(t.getDataID(),n.getDataID()),l=e.get(o);return l||(l=e.create(o,i)),l.setLinkedRecord(n,a),null==l.getValue("cursor")&&l.setValue(null,"cursor"),l},deleteNode:function(e,t){var n,r=s.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var l=0;l<o.length;l++){var u=o[l],c=u&&u.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===n&&(n=o.slice(0,l)):void 0!==n&&n.push(u)}void 0!==n&&e.setLinkedRecords(n,i)}},getConnection:function(e,t,n){var r=a(l,t,null);return e.getLinkedRecord(r,n)},getConnectionID:function(e,t,n){return r(e,i(a(l,t,null),n))},insertEdgeAfter:function(e,t,n){var r,i=s.get(),a=i.CURSOR,o=i.EDGES,l=e.getLinkedRecords(o);if(!l){e.setLinkedRecords([t],o);return}if(null==n)r=l.concat(t);else{r=[];for(var u=!1,c=0;c<l.length;c++){var d=l[c];r.push(d),null!=d&&n===d.getValue(a)&&(r.push(t),u=!0)}u||r.push(t)}e.setLinkedRecords(r,o)},insertEdgeBefore:function(e,t,n){var r,i=s.get(),a=i.CURSOR,o=i.EDGES,l=e.getLinkedRecords(o);if(!l){e.setLinkedRecords([t],o);return}if(null==n)r=[t].concat(l);else{r=[];for(var u=!1,c=0;c<l.length;c++){var d=l[c];null!=d&&n===d.getValue(a)&&(r.push(t),u=!0),r.push(d)}u||r.unshift(t)}e.setLinkedRecords(r,o)},update:function(e,t){var n=e.get(t.dataID);if(n){var i=s.get(),a=i.EDGES,o=i.END_CURSOR,l=i.HAS_NEXT_PAGE,h=i.HAS_PREV_PAGE,f=i.PAGE_INFO,p=i.PAGE_INFO_TYPE,m=i.START_CURSOR,g=n.getLinkedRecord(t.fieldKey),v=g&&g.getLinkedRecord(f);if(!g){n.setValue(null,t.handleKey);return}var y=r(n.getDataID(),t.handleKey),_=n.getLinkedRecord(t.handleKey),b=null!=_?_:e.get(y),x=b&&b.getLinkedRecord(f);if(b){null==_&&n.setLinkedRecord(b,t.handleKey);var w=g.getLinkedRecords(a);w&&(w=w.map(function(t){return c(e,b,t)}));var k=b.getLinkedRecords(a),E=b.getLinkedRecord(f);b.copyFieldsFrom(g),k&&b.setLinkedRecords(k,a),E&&b.setLinkedRecord(E,f);var S=[],C=t.args;if(k&&w){if(null!=C.after){var T,I=null===(T=x)||void 0===T?void 0:T.getValue(o),R=null==v?void 0:v.getValue(o),j=x&&C.after===I,A=x&&I===R;if(!j&&!A)return;var D=new Set;d(k,S,D),d(w,S,D)}else if(null!=C.before){if(!x||C.before!==x.getValue(m))return;var P=new Set;d(w,S,P),d(k,S,P)}else S=w}else S=w||k;if(null!=S&&S!==k&&b.setLinkedRecords(S,a),x&&v){if(null==C.after&&null==C.before)x.copyFieldsFrom(v);else if(null!=C.before||null==C.after&&C.last){x.setValue(!!v.getValue(h),h);var N=v.getValue(m);"string"==typeof N&&x.setValue(N,m)}else if(null!=C.after||null==C.before&&C.first){x.setValue(!!v.getValue(l),l);var L=v.getValue(o);"string"==typeof L&&x.setValue(L,o)}}}else{var M=e.create(y,g.getType());M.setValue(0,u),M.copyFieldsFrom(g);var O=g.getLinkedRecords(a);O&&(O=O.map(function(t){return c(e,M,t)}),M.setLinkedRecords(O,a)),n.setLinkedRecord(M,t.handleKey),(x=e.create(r(M.getDataID(),f),p)).setValue(!1,l),x.setValue(!1,h),x.setValue(null,o),x.setValue(null,m),v&&x.copyFieldsFrom(v),M.setLinkedRecord(x,f)}}}}},59712:function(e){"use strict";var t={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},n={CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"};e.exports={inject:function(e){n=e},get:function(){return n},isConnectionCall:function(e){return t.hasOwnProperty(e.name)}}},13214:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(3726),a=n(59712),s=n(3996);n(82264);var o={update:d(i.insertEdgeAfter)},l={update:d(i.insertEdgeBefore)},u={update:h(i.insertEdgeAfter)},c={update:h(i.insertEdgeBefore)};function d(e){return function(t,n){var o=t.get(n.dataID);if(null!=o){var l=n.handleArgs.connections;null!=l||s(!1);try{c=o.getLinkedRecord(n.fieldKey)}catch(e){}if(!c)try{d=o.getLinkedRecords(n.fieldKey)}catch(e){}if(null!=c||null!=d){var u,c,d,h,f=a.get(),p=f.NODE,m=f.EDGES,g=null!==(u=d)&&void 0!==u?u:[c],v=(0,r.default)(g);try{for(v.s();!(h=v.n()).done;){var y,_=function(){var n=h.value;if(null==n)return"continue";var a=n.getLinkedRecord("node");if(!a)return"continue";var o,u=a.getDataID(),c=(0,r.default)(l);try{for(c.s();!(o=c.n()).done;){var d=o.value,f=t.get(d);if(!(null==f||(null===(y=f.getLinkedRecords(m))||void 0===y?void 0:y.some(function(e){var t;return(null==e?void 0:null===(t=e.getLinkedRecord(p))||void 0===t?void 0:t.getDataID())===u})))){var g=i.buildConnectionEdge(t,f,n);null!=g||s(!1),e(f,g)}}}catch(e){c.e(e)}finally{c.f()}}();if("continue"===_)continue}}catch(e){v.e(e)}finally{v.f()}}}}}function h(e){return function(t,n){var o=t.get(n.dataID);if(null!=o){var l=n.handleArgs,u=l.connections,c=l.edgeTypeName;null!=u||s(!1),null!=c||s(!1);try{h=o.getLinkedRecord(n.fieldKey)}catch(e){}if(!h)try{f=o.getLinkedRecords(n.fieldKey)}catch(e){}if(null!=h||null!=f){var d,h,f,p,m=a.get(),g=m.NODE,v=m.EDGES,y=null!==(d=f)&&void 0!==d?d:[h],_=(0,r.default)(y);try{for(_.s();!(p=_.n()).done;){var b,x=function(){var n=p.value;if(null==n)return"continue";var a,o=n.getDataID(),l=(0,r.default)(u);try{for(l.s();!(a=l.n()).done;){var d=a.value,h=t.get(d);if(!(null==h||(null===(b=h.getLinkedRecords(v))||void 0===b?void 0:b.some(function(e){var t;return(null==e?void 0:null===(t=e.getLinkedRecord(g))||void 0===t?void 0:t.getDataID())===o})))){var f=i.createEdge(t,h,n,c);null!=f||s(!1),e(h,f)}}}catch(e){l.e(e)}finally{l.f()}}();if("continue"===x)continue}}catch(e){_.e(e)}finally{_.f()}}}}}e.exports={AppendEdgeHandler:o,DeleteRecordHandler:{update:function(e,t){var n=e.get(t.dataID);if(null!=n){var r=n.getValue(t.fieldKey);"string"==typeof r?e.delete(r):Array.isArray(r)&&r.forEach(function(t){"string"==typeof t&&e.delete(t)})}}},PrependEdgeHandler:l,AppendNodeHandler:u,PrependNodeHandler:c,DeleteEdgeHandler:{update:function(e,t){var n=e.get(t.dataID);if(null!=n){var a=t.handleArgs.connections;null!=a||s(!1);var o=n.getValue(t.fieldKey);(Array.isArray(o)?o:[o]).forEach(function(t){if("string"==typeof t){var n,s=(0,r.default)(a);try{for(s.s();!(n=s.n()).done;){var o=n.value,l=e.get(o);null!=l&&i.deleteNode(l,t)}}catch(e){s.e(e)}finally{s.f()}}})}}}}},94036:function(e,t,n){"use strict";var r=n(3726),i=n(59712),a=n(13214),s=n(32461),o=n(62138),l=n(66807),u=n(99650),c=n(53573),d=n(51573),h=n(73058),f=n(83333),p=n(40506),m=n(68027),g=n(45432),v=n(45472),y=n(4107),_=n(65346),b=_.generateClientID,x=_.generateUniqueClientID,w=_.isClientID,k=n(74479),E=n(70719),S=n(26793),C=S.isSuspenseSentinel,T=S.suspenseSentinel,I=n(23165),R=n(71613),j=n(45255),A=n(48304),D=n(13487),P=n(73671),N=n(4584),L=n(20028),M=n(83554),O=n(72241),F=n(41608),U=n(61332),V=n(9739),B=n(48573),q=n(847),Z=n(46061),z=n(40787),H=n(68311),K=n(69978),W=n(90683),$=n(80357),G=n(39319),Y=n(61193),Q=n(13321),X=n(33199),J=n(20270),ee=n(36838),et=n(49461),en=n(23021),er=n(7109),ei=n(4514),ea=n(9468),es=n(17461),eo=n(87501),el=n(30087),eu=n(88672),ec=n(70509);e.exports={Environment:D,Network:d,Observable:h,QueryResponseCache:f,RecordSource:F,Record:N,ReplaySubject:el,Store:M,areEqualSelectors:L.areEqualSelectors,createFragmentSpecResolver:k,createNormalizationSelector:L.createNormalizationSelector,createOperationDescriptor:P.createOperationDescriptor,createReaderSelector:L.createReaderSelector,createRequestDescriptor:P.createRequestDescriptor,getArgumentValues:U.getArgumentValues,getDataIDsFromFragment:L.getDataIDsFromFragment,getDataIDsFromObject:L.getDataIDsFromObject,getNode:v.getNode,getFragment:v.getFragment,getInlineDataFragment:v.getInlineDataFragment,getModuleComponentKey:U.getModuleComponentKey,getModuleOperationKey:U.getModuleOperationKey,getPaginationFragment:v.getPaginationFragment,getPluralSelector:L.getPluralSelector,getRefetchableFragment:v.getRefetchableFragment,getRequest:v.getRequest,getRequestIdentifier:Q,getSelector:L.getSelector,getSelectorsFromObject:L.getSelectorsFromObject,getSingularSelector:L.getSingularSelector,getStorageKey:U.getStorageKey,getVariablesFromFragment:L.getVariablesFromFragment,getVariablesFromObject:L.getVariablesFromObject,getVariablesFromPluralFragment:L.getVariablesFromPluralFragment,getVariablesFromSingularFragment:L.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:J,graphql:v.graphql,isFragment:v.isFragment,isInlineDataFragment:v.isInlineDataFragment,isSuspenseSentinel:C,suspenseSentinel:T,isRequest:v.isRequest,readInlineData:j,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:s,ConnectionHandler:r,MutationHandlers:a,VIEWER_ID:B.VIEWER_ID,VIEWER_TYPE:B.VIEWER_TYPE,applyOptimisticMutation:o,commitLocalUpdate:l,commitMutation:u,fetchQuery:p,fetchQuery_DEPRECATED:m,isRelayModernEnvironment:I,requestSubscription:q,ConnectionInterface:i,PreloadableQueryRegistry:y,RelayProfiler:eo,createPayloadFor3DField:Z,RelayConcreteNode:er,RelayError:ea,RelayFeatureFlags:es,DEFAULT_HANDLE_KEY:ei.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:U.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:U.FRAGMENT_OWNER_KEY,ID_KEY:U.ID_KEY,REF_KEY:U.REF_KEY,REFS_KEY:U.REFS_KEY,ROOT_ID:U.ROOT_ID,ROOT_TYPE:U.ROOT_TYPE,TYPENAME_KEY:U.TYPENAME_KEY,deepFreeze:z,generateClientID:b,generateUniqueClientID:x,getRelayHandleKey:Y,isClientID:w,isPromise:ee,isScalarAndEqual:et,recycleNodesInto:en,stableCopy:eu,getFragmentIdentifier:H,getRefetchMetadata:G,getPaginationMetadata:K,getPaginationVariables:W,getPendingOperationsForFragment:$,getValueAtPath:X,__internal:{ResolverFragments:V,OperationTracker:O,createRelayContext:E,getOperationVariables:A.getOperationVariables,getLocalVariables:A.getLocalVariables,fetchQuery:g.fetchQuery,fetchQueryDeduped:g.fetchQueryDeduped,getPromiseForActiveRequest:g.getPromiseForActiveRequest,getObservableForActiveRequest:g.getObservableForActiveRequest,normalizeResponse:R,withProvidedVariables:ec}}},87285:function(e,t,n){"use strict";var r=n(3996),i="INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE";e.exports={assertInternalActorIdentifier:function(e){e!==i&&r(!1)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:i}},65608:function(e,t,n){"use strict";var r="actor_key",i=n(87285).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:r,getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e[r])return i(e[r])}}},53573:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(3726);n(82264);var a=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function o(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:a,RangeOperations:s,convert:function(e,t,n,a){var s=n?[n]:[],l=a?[a]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var n,a,u=(n=e.deletedIDFieldName,(a=o(t))?function(e,t){var r=e.getRootField(a);if(r){var i=r.getValue(n);(Array.isArray(i)?i:[i]).forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null);u&&(s.push(u),l.push(u));break;case"RANGE_ADD":var c=function(e,t){var n=e.parentID,a=e.connectionInfo,s=e.edgeName;if(!n)return null;var l=o(t);return a&&l?function(e,t){var o=e.get(n);if(o){var u=e.getRootField(l);if(u){var c,d=u.getLinkedRecord(s),h=(0,r.default)(a);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(d){var p=i.getConnection(o,f.key,f.filters);if(p){var m=i.buildConnectionEdge(e,p,d);if(m)switch(f.rangeBehavior){case"append":i.insertEdgeAfter(p,m);break;case"prepend":i.insertEdgeBefore(p,m)}}}}}catch(e){h.e(e)}finally{h.f()}}}}:null}(e,t);c&&(s.push(c),l.push(c));break;case"RANGE_DELETE":var d=function(e,t){var n=e.parentID,a=e.connectionKeys,s=e.pathToConnection,l=e.deletedIDFieldName;if(!n)return null;var u=o(t);return u?function(e,t){if(t){var o=[],c=t[u];if(c&&Array.isArray(l)){var d,h=(0,r.default)(l);try{for(h.s();!(d=h.n()).done;){var f=d.value;c&&"object"==typeof c&&(c=c[f])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(c)?c.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&o.push(e.id)}):c&&c.id&&"string"==typeof c.id&&o.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?o.push(c):Array.isArray(c)&&c.forEach(function(e){"string"==typeof e&&o.push(e)}));(function(e,t,n,a,s){var o=a.get(e);if(o&&!(n.length<2)){for(var l=o,u=1;u<n.length-1;u++)l&&(l=l.getLinkedRecord(n[u]));if(t&&l){var c,d=(0,r.default)(t);try{for(d.s();!(c=d.n()).done;)!function(){var e=c.value,t=i.getConnection(l,e.key,e.filters);t&&s.forEach(function(e){i.deleteNode(t,e)})}()}catch(e){d.e(e)}finally{d.f()}}}})(n,a,s,e,o)}}:null}(e,t);d&&(s.push(d),l.push(d))}}),{optimisticUpdater:function(e,t){s.forEach(function(n){n(e,t)})},updater:function(e,t){l.forEach(function(n){n(e,t)})}}}}},59377:function(e,t,n){"use strict";var r=n(65346).generateClientID,i=n(61332).getStableStorageKey,a=n(3996),s=function(){function e(e,t,n){this._dataID=n,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null!=e||a(!1),e},t.getValue=function(e,t){var n=i(e,t);return this._mutator.getValue(this._dataID,n)},t.setValue=function(e,t,n){return function e(t){return null==t||"object"!=typeof t||Array.isArray(t)&&t.every(e)}(e)||a(!1),this.setValue__UNSAFE(e,t,n)},t.setValue__UNSAFE=function(e,t,n){var r=i(t,n);return this._mutator.setValue(this._dataID,r,e),this},t.getLinkedRecord=function(e,t){var n=i(e,t),r=this._mutator.getLinkedRecordID(this._dataID,n);return null!=r?this._source.get(r):r},t.setLinkedRecord=function(t,n,r){t instanceof e||a(!1);var s=i(n,r),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,s,o),this},t.getOrCreateLinkedRecord=function(e,t,n){var a=this.getLinkedRecord(e,n);if(!a){var s,o=i(e,n),l=r(this.getDataID(),o);a=null!==(s=this._source.get(l))&&void 0!==s?s:this._source.create(l,t),this.setLinkedRecord(a,e,n)}return a},t.getLinkedRecords=function(e,t){var n=this,r=i(e,t),a=this._mutator.getLinkedRecordIDs(this._dataID,r);return null==a?a:a.map(function(e){return null!=e?n._source.get(e):e})},t.setLinkedRecords=function(e,t,n){Array.isArray(e)||a(!1);var r=i(t,n),s=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,r,s),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();e.exports=s},48322:function(e,t,n){"use strict";var r=n(4584),i=n(44456).EXISTENT,a=n(3996),s=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),n=this._sink.get(e);return void 0===n?null==t?t:r.clone(t):null===n?null:null!=t?r.update(t,n):r.clone(n)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var n=this._base.get(e);n||a(!1),t=r.create(e,r.getType(n)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var n=this._sink.get(e),i=this._base.get(e);n||i||a(!1);var s=this._getSinkRecord(t);i&&r.copyFields(i,s),n&&r.copyFields(n,s)},t.copyFieldsFromRecord=function(e,t){var n=this._getSinkRecord(t);r.copyFields(e,n)},t.create=function(e,t){this._base.getStatus(e)!==i&&this._sink.getStatus(e)!==i||a(!1);var n=r.create(e,t);this._sink.set(e,n)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var n=this.__sources[t].get(e);if(n)return r.getType(n);if(null===n)return null}},t.getValue=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var a=r.getValue(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setValue=function(e,t,n){var i=this._getSinkRecord(e);r.setValue(i,t,n)},t.getLinkedRecordID=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var a=r.getLinkedRecordID(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,n){var i=this._getSinkRecord(e);r.setLinkedRecordID(i,t,n)},t.getLinkedRecordIDs=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var a=r.getLinkedRecordIDs(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,n){var i=this._getSinkRecord(e);r.setLinkedRecordIDs(i,t,n)},e}();e.exports=s},64318:function(e,t,n){"use strict";var r=n(4584),i=n(44456),a=i.EXISTENT,s=i.NONEXISTENT,o=n(61332),l=o.ROOT_ID,u=o.ROOT_TYPE,c=n(7181).readUpdatableFragment,d=n(37183).readUpdatableQuery,h=n(59377),f=n(3996),p=function(){function e(e,t,n,r){this.__mutator=e,this._handlerProvider=n||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=r}var t=e.prototype;return t.publishSource=function(e,t){var n=this;e.getRecordIDs().forEach(function(t){var i=e.getStatus(t);if(i===a){var o=e.get(t);o&&(n.__mutator.getStatus(t)!==a&&n.create(t,r.getType(o)),n.__mutator.copyFieldsFromRecord(o,t))}else i===s&&n.delete(t)}),t&&t.length&&t.forEach(function(e){var t=n._handlerProvider&&n._handlerProvider(e.handle);t||f(!1),t.update(n,e)})},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var n=this.get(e);return n||f(!1),n},t.delete=function(e){e!==l||f(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);t===a?this._proxies[e]=new h(this,this.__mutator,e):this._proxies[e]=t===s?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(l);return e||(e=this.create(l,u)),e&&e.getType()===u||f(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery=function(e,t){return d(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return c(e,t,this,this._missingFieldHandlers)},e}();e.exports=p},87214:function(e,t,n){"use strict";var r=n(61332),i=r.ROOT_TYPE,a=r.getStorageKey,s=n(7181).readUpdatableFragment,o=n(37183).readUpdatableQuery,l=n(3996),u=function(){function e(e,t,n,r){this.__mutator=e,this.__recordSource=t,this._readSelector=n,this._missingFieldHandlers=r}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,i)),e},t._getRootField=function(e,t,n){var r=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t||"RequiredField"===e.kind&&e.field.name===t});return r&&"RequiredField"===r.kind&&(r=r.field),r&&"LinkedField"===r.kind||l(!1),r.plural!==n&&l(!1),r},t.getRootField=function(e){var t=a(this._getRootField(this._readSelector,e,!1),this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(t)},t.getPluralRootField=function(e){var t=a(this._getRootField(this._readSelector,e,!0),this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(t)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(e,t){return o(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return s(e,t,this,this._missingFieldHandlers)},e}();e.exports=u},62138:function(e,t,n){"use strict";var r=n(45472).getRequest,i=n(23165),a=n(73671).createOperationDescriptor,s=n(53573),o=n(3996);e.exports=function(e,t){i(e)||o(!1);var n=r(t.mutation);if("mutation"!==n.params.operationKind)throw Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=a(n,t.variables);return u&&(l=s.convert(u,n,l).optimisticUpdater),e.applyMutation({operation:d,response:c,updater:l})}},66807:function(e){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},99650:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(9833)),i=n(45472).getRequest,a=n(65346).generateUniqueClientID,s=n(23165),o=n(73671).createOperationDescriptor,l=n(53573);n(87601);var u=n(3996);n(82264),e.exports=function(e,t){s(e)||u(!1);var n=i(t.mutation);if("mutation"!==n.params.operationKind)throw Error("commitMutation: Expected mutation operation");if("Request"!==n.kind)throw Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,h=t.updater,f=t.configs,p=t.cacheConfig,m=t.onError,g=t.onUnsubscribe,v=t.variables,y=t.uploadables,_=o(n,v,p,a());if("function"==typeof c&&(c=c()),f){var b=l.convert(f,n,d,h);d=b.optimisticUpdater,h=b.updater}var x=[];return{dispose:e.executeMutation({operation:_,optimisticResponse:c,optimisticUpdater:d,updater:h,uploadables:y}).subscribe({next:function(e){var n;Array.isArray(e)?e.forEach(function(e){e.errors&&x.push.apply(x,(0,r.default)(e.errors))}):e.errors&&x.push.apply(x,(0,r.default)(e.errors)),null===(n=t.onNext)||void 0===n||n.call(t)},complete:function(){var n=t.onCompleted;n&&n(e.lookup(_.fragment).data,0!==x.length?x:null)},error:m,unsubscribe:g}).unsubscribe}}},88983:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(61332).getArgumentValues,a=n(7109),s=a.ACTOR_CHANGE,o=a.ALIASED_FRAGMENT_SPREAD,l=a.ALIASED_INLINE_FRAGMENT_SPREAD,u=a.CLIENT_EDGE_TO_CLIENT_OBJECT,c=a.CLIENT_EDGE_TO_SERVER_OBJECT,d=a.CLIENT_EXTENSION,h=a.CONDITION,f=a.DEFER,p=a.FRAGMENT_SPREAD,m=a.INLINE_DATA_FRAGMENT_SPREAD,g=a.INLINE_FRAGMENT,v=a.LINKED_FIELD,y=a.MODULE_IMPORT,_=a.RELAY_LIVE_RESOLVER,b=a.RELAY_RESOLVER,x=a.REQUIRED_FIELD,w=a.SCALAR_FIELD,k=a.STREAM,E=["id","__id","__typename","js"];e.exports={createUpdatableProxy:function(e,t,n,a,S){var C={};return function e(t,n,a,S,C,T){var I,R,j,A,D=(0,r.default)(S);try{for(D.s();!(A=D.n()).done;)!function(){var S=A.value;switch(S.kind){case v:S.plural?Object.defineProperty(t,null!==(I=S.alias)&&void 0!==I?I:S.name,{get:function(t,n,a,s,o){return function(){var l,u=i(null!==(l=t.args)&&void 0!==l?l:[],n),c=a.getLinkedRecords(t.name,u);return(void 0===c&&(c=function(e,t,n,i,a){var s,o=(0,r.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("pluralLinked"===l.kind){var u=l.handle(e,n,t,i);if(null!=u)return u.map(function(e){if(null!=e)return i.get(e)})}}}catch(e){o.e(e)}finally{o.f()}}(t,u,a,s,o)),null!=c)?c.map(function(r){if(null==r)return r;var i={};return e(i,r,n,t.selections,s,o),i}):c}}(S,a,n,C,T),set:function(e,t,n,r){return function(a){var s,o=i(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==a)throw Error("Do not assign null to plural linked fields; assign an empty array instead.");var l=a.map(function(e){if(null==e)throw Error("When assigning an array of items, none of the items should be null or undefined.");var t=e.__id;if(null==t)throw Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var n=r.get(t);if(null==n)throw Error("Did not find item with data id ".concat(t," in the store."));return n});n.setLinkedRecords(l,e.name,o)}}(S,a,n,C)}):Object.defineProperty(t,null!==(R=S.alias)&&void 0!==R?R:S.name,{get:function(t,n,a,s,o){return function(){var l,u=i(null!==(l=t.args)&&void 0!==l?l:[],n),c=a.getLinkedRecord(t.name,u);if(void 0===c&&(c=function(e,t,n,i,a){var s,o=(0,r.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("linked"===l.kind){var u=l.handle(e,n,t,i);if(null!=u)return i.get(u)}}}catch(e){o.e(e)}finally{o.f()}}(t,u,a,s,o)),null==c)return c;var d={};return e(d,c,n,t.selections,s,o),d}}(S,a,n,C,T),set:function(e,t,n,r){return function(a){var s,o=i(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==a)n.setValue(a,e.name,o);else{var l=a.__id;if(null==l)throw Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=r.get(l);if(null==u)throw Error("Did not find item with data id ".concat(l," in the store."));n.setLinkedRecord(u,e.name,o)}}}(S,a,n,C)});break;case w:var D=null!==(j=S.alias)&&void 0!==j?j:S.name;Object.defineProperty(t,D,{get:function(){var e,t=i(null!==(e=S.args)&&void 0!==e?e:[],a),s=n.getValue(S.name,t);return null==s&&(s=function(e,t,n,i,a){var s,o=(0,r.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("scalar"===l.kind){var u=l.handle(e,n,t,i);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}}(S,t,n,C,T)),s},set:E.includes(S.name)?void 0:function(e){var t,r=i(null!==(t=S.args)&&void 0!==t?t:[],a);n.setValue__UNSAFE(e,S.name,r)}});break;case g:n.getType()===S.type&&e(t,n,a,S.selections,C,T);break;case d:e(t,n,a,S.selections,C,T);break;case p:break;case h:case s:case o:case m:case l:case u:case c:case f:case y:case _:case x:case k:case b:throw Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw S.kind,Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}}()}catch(e){D.e(e)}finally{D.f()}}(C,e,t,n,a,S),C}}},7181:function(e,t,n){"use strict";var r=n(45472).getFragment,i=n(20028).getVariablesFromFragment,a=n(61332).ID_KEY,s=n(88983).createUpdatableProxy,o=n(3996);e.exports={readUpdatableFragment:function(e,t,n,l){var u=r(e),c=i(u,t),d=t[a],h=n.get(d);return null!=h||o(!1),{updatableData:s(h,c,u.selections,n,l)}}}},37183:function(e,t,n){"use strict";var r=n(45472).getUpdatableQuery,i=n(88983).createUpdatableProxy;e.exports={readUpdatableQuery:function(e,t,n,a){var s=r(e);return{updatableData:i(n.getRoot(),t,s.fragment.selections,n,a)}}}},87601:function(e,t,n){"use strict";(0,n(73203).default)(n(80624));var r=n(7109);r.ACTOR_CHANGE,r.CLIENT_COMPONENT,r.CLIENT_EDGE_TO_CLIENT_OBJECT,r.CLIENT_EXTENSION,r.CONDITION,r.DEFER,r.FRAGMENT_SPREAD,r.INLINE_FRAGMENT,r.LINKED_FIELD,r.LINKED_HANDLE,r.MODULE_IMPORT,r.RELAY_LIVE_RESOLVER,r.RELAY_RESOLVER,r.SCALAR_FIELD,r.SCALAR_HANDLE,r.STREAM,r.TYPE_DISCRIMINATOR,n(82264),Object.prototype.hasOwnProperty,e.exports=function(){}},52107:function(e,t,n){"use strict";var r=n(73058);e.exports={convertFetch:function(e){return function(t,n,i,a,s){var o=e(t,n,i,a,s);return o instanceof Error?r.create(function(e){return e.error(o)}):r.from(o)}}}},51573:function(e,t,n){"use strict";var r=n(70509),i=n(52107).convertFetch,a=n(3996);e.exports={create:function(e,t){var n=i(e);return{execute:function(e,i,s,o,l){var u=r(i,e.providedVariables);if("subscription"===e.operationKind)return t||a(!1),o&&a(!1),t(e,u,s);var c=s.poll;return null!=c?(o&&a(!1),n(e,u,{force:!0}).poll(c)):n(e,u,s,o,l)}}}}},73058:function(e,t,n){"use strict";var r=n(36838),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe?e instanceof a?e:a.create(function(t){return e.subscribe(t)}):r(e)?a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)}):a.create(function(t){t.next(e),t.complete()})};var t=e.prototype;return t.catch=function(t){var n=this;return e.create(function(e){var r;return n.subscribe({start:function(e){r=e},next:e.next,complete:e.complete,error:function(n){try{t(n).subscribe({start:function(e){r=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return r.unsubscribe()}})},t.concat=function(t){var n=this;return e.create(function(e){var r;return n.subscribe({start:function(e){r=e},next:e.next,error:e.error,complete:function(){r=t.subscribe(e)}}),function(){r&&r.unsubscribe()}})},t.do=function(t){var n=this;return e.create(function(e){var r=function(n){return function(){try{t[n]&&t[n].apply(t,arguments)}catch(e){i(e,!0)}e[n]&&e[n].apply(e,arguments)}};return n.subscribe({start:r("start"),next:r("next"),error:r("error"),complete:r("complete"),unsubscribe:r("unsubscribe")})})},t.finally=function(t){var n=this;return e.create(function(e){var r=n.subscribe(e);return function(){r.unsubscribe(),t()}})},t.ifEmpty=function(t){var n=this;return e.create(function(e){var r,i=!1;return r=n.subscribe({next:function(t){i=!0,e.next(t)},error:e.error,complete:function(){i?e.complete():r=t.subscribe(e)}}),function(){r&&r.unsubscribe()}})},t.subscribe=function(e){return function(e,t){var n,r=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return r}})};function s(){if(n){if(n.unsubscribe)n.unsubscribe();else try{n()}catch(e){i(e,!0)}n=void 0}}var o=a({unsubscribe:function(){if(!r){r=!0;try{t.unsubscribe&&t.unsubscribe(o)}catch(e){i(e,!0)}finally{s()}}}});try{t.start&&t.start(o)}catch(e){i(e,!0)}if(r)return o;var l=a({next:function(e){if(!r&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,n){if(r||!t.error)r=!0,i(e,n||!1),s();else{r=!0;try{t.error(e)}catch(e){i(e,!0)}finally{s()}}},complete:function(){if(!r){r=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{s()}}}});try{n=e(l)}catch(e){l.error(e,!0)}return r&&s(),o}(this._source,e)},t.map=function(t){var n=this;return e.create(function(e){var r=n.subscribe({complete:e.complete,error:e.error,next:function(n){try{var r=t(n);e.next(r)}catch(t){e.error(t,!0)}}});return function(){r.unsubscribe()}})},t.mergeMap=function(t){var n=this;return e.create(function(r){var i=[];function a(e){this._sub=e,i.push(e)}function s(){i.splice(i.indexOf(this._sub),1),0===i.length&&r.complete()}return n.subscribe({start:a,next:function(n){try{r.closed||e.from(t(n)).subscribe({start:a,next:r.next,error:r.error,complete:s})}catch(e){r.error(e,!0)}},error:r.error,complete:s}),function(){i.forEach(function(e){return e.unsubscribe()}),i.length=0}})},t.poll=function(t){var n=this;return e.create(function(e){var r,i;return function a(){r=n.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),r.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,n){var r=!1;e.subscribe({next:function(e){r||(r=!0,t(e))},error:n,complete:t})})},e}();e.exports=a},83333:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(88672),a=n(3996),s=function(){function e(e){var t=e.size,n=e.ttl;t>0||a(!1),n>0||a(!1),this._responses=new Map,this._size=t,this._ttl=n}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var n=this,i=o(e,t);this._responses.forEach(function(e,t){e.fetchTime+n._ttl>=Date.now()||n._responses.delete(t)});var a=this._responses.get(i);return null==a?null:Array.isArray(a.payload)?a.payload.map(function(e){return(0,r.default)((0,r.default)({},e),{},{extensions:(0,r.default)((0,r.default)({},e.extensions),{},{cacheTimestamp:a.fetchTime})})}):(0,r.default)((0,r.default)({},a.payload),{},{extensions:(0,r.default)((0,r.default)({},a.payload.extensions),{},{cacheTimestamp:a.fetchTime})})},t.set=function(e,t,n){var r=Date.now(),i=o(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:r,payload:n}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function o(e,t){return JSON.stringify(i({queryID:e,variables:t}))}e.exports=s},55734:function(e,t,n){"use strict";var r=n(61320);e.exports=function(e,t){return{execute:function(n,i,a,s){var o=r();return t.execute(n,i,a,s,function(t){e.__log({name:"network.info",networkRequestId:o,info:t})}).do({start:function(t){e.__log({name:"network.start",networkRequestId:o,params:n,variables:i,cacheConfig:a})},next:function(t){e.__log({name:"network.next",networkRequestId:o,response:t})},error:function(t){e.__log({name:"network.error",networkRequestId:o,error:t})},complete:function(){e.__log({name:"network.complete",networkRequestId:o})},unsubscribe:function(){e.__log({name:"network.unsubscribe",networkRequestId:o})}})}}}},45472:function(e,t,n){"use strict";var r=n(7109),i=n(3996);function a(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===r.FRAGMENT}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===r.REQUEST}function l(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===r.UPDATABLE_QUERY}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===r.INLINE_DATA_FRAGMENT}function c(e){var t=a(e);return s(t)||i(!1),t}n(82264),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var t,n=c(e),r=null===(t=n.metadata)||void 0===t?void 0:t.refetch,i=null==r?void 0:r.connection;return null===r||"object"!=typeof r||null===i||"object"!=typeof i?null:n},getRefetchableFragment:function(e){var t,n=c(e),r=null===(t=n.metadata)||void 0===t?void 0:t.refetch;return null===r||"object"!=typeof r?null:n},getRequest:function(e){var t=a(e);return o(t)||i(!1),t},getUpdatableQuery:function(e){var t=a(e);return l(t)||i(!1),t},getInlineDataFragment:function(e){var t=a(e);return u(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:s,isRequest:o,isUpdatableQuery:l,isInlineDataFragment:u}},4107:function(e){"use strict";var t=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var n=this._callbacks.get(e);null!=n&&n.forEach(function(e){try{e(t)}catch(e){setTimeout(function(){throw e},0)}})},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var n,r=null!==(n=this._callbacks.get(e))&&void 0!==n?n:new Set;return r.add(t),this._callbacks.set(e,r),{dispose:function(){r.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=t},40506:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(73058),a=n(73671).createOperationDescriptor,s=n(20270),o=n(45432),l=n(45472).getRequest,u=n(3996);function c(e,t){return o.fetchQuery(e,t).map(function(){return e.lookup(t.fragment)})}e.exports=function(e,t,n,o){var d,h=l(t);"query"!==h.params.operationKind&&u(!1);var f=a(h,n,(0,r.default)({force:!0},null==o?void 0:o.networkCacheConfig)),p=null!==(d=null==o?void 0:o.fetchPolicy)&&void 0!==d?d:"network-only";function m(t){return s(e,t.missingRequiredFields,t.relayResolverErrors,t.errorResponseFields),t.data}switch(p){case"network-only":return c(e,f).map(m);case"store-or-network":if("available"===e.check(f).status)return i.from(e.lookup(f.fragment)).map(m);return c(e,f).map(m);default:throw Error("fetchQuery: Invalid fetchPolicy "+p)}}},45432:function(e,t,n){"use strict";var r=n(73058),i=n(30087),a=n(3996),s="function"==typeof WeakMap?new WeakMap:new Map;function o(e,t,n){return r.create(function(s){var o,l=u(e),d=l.get(t);return d||n().finally(function(){return l.delete(t)}).subscribe({start:function(e){d={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},l.set(t,d)},next:function(e){var n=c(l,t);n.subject.next(e),n.subjectForInFlightStatus.next(e)},error:function(e){var n=c(l,t);n.subject.error(e),n.subjectForInFlightStatus.error(e)},complete:function(){var e=c(l,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var n=c(l,t);n.subject.unsubscribe(),n.subjectForInFlightStatus.unsubscribe()}}),null!=d||a(!1),(o=d,r.create(function(e){var t=o.subject.subscribe(e);return function(){t.unsubscribe();var e=l.get(o.identifier);if(e){var n=e.subscription;null!=n&&0===e.subject.getObserverCount()&&(n.unsubscribe(),l.delete(o.identifier))}}})).subscribe(s)})}function l(e,t,n){return r.create(function(t){var r=n.subjectForInFlightStatus.subscribe({error:t.error,next:function(r){if(!e.isRequestActive(n.identifier)){t.complete();return}t.next()},complete:t.complete,unsubscribe:t.complete});return function(){r.unsubscribe()}})}function u(e){var t=s.get(e);if(null!=t)return t;var n=new Map;return s.set(e,n),n}function c(e,t){var n=e.get(t);return null!=n||a(!1),n}e.exports={fetchQuery:function(e,t){return o(e,t.request.identifier,function(){return e.execute({operation:t})})},fetchQueryDeduped:o,getPromiseForActiveRequest:function(e,t){var n=u(e),r=n.get(t.identifier);return r&&e.isRequestActive(r.identifier)?new Promise(function(t,i){var a=!1;l(e,n,r).subscribe({complete:t,error:i,next:function(e){a&&t(e)}}),a=!0}):null},getObservableForActiveRequest:function(e,t){var n=u(e),r=n.get(t.identifier);return r&&e.isRequestActive(r.identifier)?l(e,n,r):null}}},68027:function(e,t,n){"use strict";var r=n(73671).createOperationDescriptor,i=n(45472).getRequest;e.exports=function(e,t,n,a){var s=i(t);if("query"!==s.params.operationKind)throw Error("fetchQuery: Expected query operation");var o=r(s,n,a);return e.execute({operation:o}).map(function(){return e.lookup(o.fragment).data}).toPromise()}},65346:function(e,t,n){"use strict";var r=n(17461),i=n(47222).intern,a="client:",s=0;e.exports={generateClientID:function(e,t,n){var s=(r.STRING_INTERN_LEVEL<=0?e:i(e,r.MAX_DATA_ID_LENGTH))+":"+t;return null!=n&&(s+=":"+n),0!==s.indexOf(a)&&(s=a+s),s},generateClientObjectClientID:function(e,t,n){var r="".concat(a).concat(e,":").concat(t);return null!=n&&(r+=":"+n),r},generateUniqueClientID:function(){return"".concat(a,"local:").concat(s++)},isClientID:function(e){return 0===e.indexOf(a)}}},72360:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(48322),a=n(64318),s=n(95001),o=n(7109),l=n(65346).isClientID,u=n(88240),c=n(91404),d=n(48304).getLocalVariables,h=n(4584),f=n(44456),p=f.EXISTENT,m=f.UNKNOWN,g=n(61332),v=n(35240),y=v.TYPE_SCHEMA_TYPE,_=v.generateTypeID,b=n(3996),x=o.ACTOR_CHANGE,w=o.CONDITION,k=o.CLIENT_COMPONENT,E=o.CLIENT_EXTENSION,S=o.CLIENT_EDGE_TO_CLIENT_OBJECT,C=o.DEFER,T=o.FRAGMENT_SPREAD,I=o.INLINE_FRAGMENT,R=o.LINKED_FIELD,j=o.LINKED_HANDLE,A=o.MODULE_IMPORT,D=o.RELAY_RESOLVER,P=o.RELAY_LIVE_RESOLVER,N=o.SCALAR_FIELD,L=o.SCALAR_HANDLE,M=o.STREAM,O=o.TYPE_DISCRIMINATOR,F=g.getModuleOperationKey,U=g.getStorageKey,V=g.getArgumentValues,B=function(){function e(e,t,n,r,i,a,s,o){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=s,this._source=e(n),this._mutatorRecordSourceProxyCache=new Map;var l=this._getMutatorAndRecordProxyForActor(n),u=l[0],c=l[1];this._mostRecentlyInvalidatedAt=null,this._handlers=i,this._mutator=u,this._operationLoader=null!=a?a:null,this._recordSourceProxy=c,this._recordWasMissing=!1,this._variables=r,this._shouldProcessClientComponents=o}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(e){var t=this._mutatorRecordSourceProxyCache.get(e);if(null==t){var n=this._getTargetForActor(e),r=new i(this._getSourceForActor(e),n),s=new a(r,this._getDataID,void 0,this._handlers);t=[r,s],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return this._assignClientAbstractTypes(e),this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||b(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(e,t){if(!("id"===e.name&&null==e.alias&&l(t))){var n,i=void 0!=e.args?V(e.args,this._variables):{},a=(0,r.default)(this._handlers);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("scalar"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==o)return o}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var n,i=void 0!=e.args?V(e.args,this._variables):{},a=(0,r.default)(this._handlers);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("linked"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==o&&(null===o||this._mutator.getStatus(o)===p))return o}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var n,i=this,a=void 0!=e.args?V(e.args,this._variables):{},s=(0,r.default)(this._handlers);try{for(s.s();!(n=s.n()).done;){var o=n.value;if("pluralLinked"===o.kind){var l=o.handle(e,this._recordSourceProxy.get(t),a,this._recordSourceProxy);if(null!=l){if(l.every(function(e){return null!=e&&i._mutator.getStatus(e)===p}))return l}else if(null===l)return null}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._traverse=function(e,t){var n=this._mutator.getStatus(t);if(n===m&&this._handleMissing(),n===p){var r=this._source.get(t),i=h.getInvalidationEpoch(r);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var n=this;e.forEach(function(r){switch(r.kind){case N:n._checkScalar(r,t);break;case R:r.plural?n._checkPluralLink(r,t):n._checkLink(r,t);break;case x:n._checkActorChange(r.linkedField,t);break;case w:Boolean(n._getVariableValue(r.condition))===r.passingValue&&n._traverseSelections(r.selections,t);break;case I:var i=r.abstractKey;if(null==i)n._mutator.getType(t)===r.type&&n._traverseSelections(r.selections,t);else{var a=n._mutator.getType(t);null!=a||b(!1);var s=_(a),o=n._mutator.getValue(s,i);!0===o?n._traverseSelections(r.selections,t):null==o&&n._handleMissing()}break;case j:var l=u(r,e,n._variables);l.plural?n._checkPluralLink(l,t):n._checkLink(l,t);break;case L:var h=c(r,e,n._variables);n._checkScalar(h,t);break;case A:n._checkModuleImport(r,t);break;case C:case M:n._traverseSelections(r.selections,t);break;case T:var f=n._variables;n._variables=d(n._variables,r.fragment.argumentDefinitions,r.args),n._traverseSelections(r.fragment.selections,t),n._variables=f;break;case E:var p=n._recordWasMissing;n._traverseSelections(r.selections,t),n._recordWasMissing=p;break;case O:var m=r.abstractKey,g=n._mutator.getType(t);null!=g||b(!1);var v=_(g);null==n._mutator.getValue(v,m)&&n._handleMissing();break;case k:if(!1===n._shouldProcessClientComponents)break;n._traverseSelections(r.fragment.selections,t);break;case D:case P:n._checkResolver(r,t);break;case S:n._checkResolver(r.backingField,t);break;default:b(!1)}})},t._checkResolver=function(e,t){e.fragment&&this._traverseSelections([e.fragment],t)},t._checkModuleImport=function(e,t){var n=this._operationLoader;null!==n||b(!1);var r=F(e.documentName),i=this._mutator.getValue(t,r);if(null==i){void 0===i&&this._handleMissing();return}var a=n.get(i);if(null!=a){var o=s(a),l=this._variables;this._variables=d(this._variables,o.argumentDefinitions,e.args),this._traverse(o,t),this._variables=l}else this._handleMissing()},t._checkScalar=function(e,t){var n=U(e,this._variables),r=this._mutator.getValue(t,n);void 0===r&&void 0!==(r=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,n,r)},t._checkLink=function(e,t){var n=U(e,this._variables),r=this._mutator.getLinkedRecordID(t,n);void 0===r&&(null!=(r=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,n,r):null===r&&this._mutator.setValue(t,n,null)),null!=r&&this._traverse(e,r)},t._checkPluralLink=function(e,t){var n=this,r=U(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,r);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,r,i):null===i&&this._mutator.setValue(t,r,null)),i&&i.forEach(function(t){null!=t&&n._traverse(e,t)})},t._checkActorChange=function(e,t){var n=U(e,this._variables),r=this._source.get(t),i=null!=r?h.getActorLinkedRecordID(r,n):r;if(null==i)void 0===i&&this._handleMissing();else{var a=i[0],s=i[1],o=this._source,l=this._mutator,u=this._recordSourceProxy,c=this._getMutatorAndRecordProxyForActor(a),d=c[0],f=c[1];this._source=this._getSourceForActor(a),this._mutator=d,this._recordSourceProxy=f,this._assignClientAbstractTypes(e),this._traverse(e,s),this._source=o,this._mutator=l,this._recordSourceProxy=u}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var n=0,i=Object.keys(t);n<i.length;n++){var a,s=i[n],o=(0,r.default)(t[s]);try{for(o.s();!(a=o.n()).done;){var l=a.value,u=_(l);null==this._source.get(u)&&this._mutator.create(u,y),null==this._mutator.getValue(u,s)&&this._mutator.setValue(u,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},e}();e.exports={check:function(e,t,n,r,i,a,s,o){var l=r.dataID,u=r.node,c=r.variables;return new B(e,t,n,c,i,a,s,o).check(u,l)}}},84474:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(68532)),a=r(n(9833)),s=n(73058),o=n(61320),l=n(95001),u=n(9468),c=n(17461),d=n(88672),h=n(62486),f=n(65346),p=f.generateClientID,m=f.generateUniqueClientID,g=n(48304).getLocalVariables,v=n(4584),y=n(20028),_=y.createNormalizationSelector,b=y.createReaderSelector,x=n(41608),w=n(61332),k=w.ROOT_TYPE,E=w.TYPENAME_KEY,S=w.getStorageKey,C=n(3996);n(82264);var T=function(){function e(e){var t=this,n=e.actorIdentifier,r=e.getDataID,i=e.getPublishQueue,a=e.getStore,s=e.isClientPayload,l=e.operation,u=e.operationExecutions,c=e.operationLoader,d=e.operationTracker,h=e.optimisticConfig,f=e.scheduler,p=e.shouldProcessClientComponents,m=e.sink,g=e.source,v=e.treatMissingFieldsAsNull,y=e.updater,_=e.log,b=e.normalizeResponse;this._actorIdentifier=n,this._getDataID=r,this._treatMissingFieldsAsNull=v,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._log=_,this._executeId=o(),this._nextSubscriptionId=0,this._operation=l,this._operationExecutions=u,this._operationLoader=c,this._operationTracker=d,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._getPublishQueue=i,this._scheduler=f,this._sink=m,this._source=new Map,this._state="started",this._getStore=a,this._subscriptions=new Map,this._updater=y,this._isClientPayload=!0===s,this._isSubscriptionOperation="subscription"===this._operation.request.node.params.operationKind,this._shouldProcessClientComponents=p,this._retainDisposables=new Map,this._seenActors=new Set,this._completeFns=[],this._normalizeResponse=b;var x=this._nextSubscriptionId++;g.subscribe({complete:function(){return t._complete(x)},error:function(e){return t._error(e)},next:function(e){try{t._next(x,e)}catch(e){m.error(e)}},start:function(e){var n;t._start(x,e),t._log({name:"execute.start",executeId:t._executeId,params:t._operation.request.node.params,variables:t._operation.request.variables,cacheConfig:null!==(n=t._operation.request.cacheConfig)&&void 0!==n?n:{}})}}),null!=h&&this._processOptimisticResponse(null!=h.response?{data:h.response}:null,h.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach(function(t){return e._getPublishQueueAndSaveActor().revertUpdate(t)}),this._runPublishQueue()),this._incrementalResults.clear(),null!=this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable.dispose(),this._asyncStoreUpdateDisposable=null),this._completeFns=[],this._completeOperationTracker(),this._disposeRetainedData()}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,C(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,n=this._scheduler;if(null!=n){var r=this._nextSubscriptionId++;s.create(function(t){var r=n.schedule(function(){try{e(),t.complete()}catch(e){t.error(e)}});return function(){return n.cancel(r)}}).subscribe({complete:function(){return t._complete(r)},error:function(e){return t._error(e)},start:function(e){return t._start(r,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete(),this._log({name:"execute.complete",executeId:this._executeId}))},t._error=function(e){this.cancel(),this._sink.error(e),this._log({name:"execute.error",executeId:this._executeId,error:e})},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var n=this;this._schedule(function(){var e=h(function(){n._handleNext(t),n._maybeCompleteSubscriptionOperationTracking()})[0];n._log({name:"execute.next",executeId:n._executeId,response:t,duration:e})})},t._handleErrorResponse=function(e){var t=this,n=[];return e.forEach(function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var r=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=r?r.map(function(e){return e.message}).join("\n"):"(No errors)",a=u.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:r,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}n.push(e)}}),n},t._handleOptimisticResponses=function(e){if(e.length>1)return e.some(function(e){var t;return(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)===!0})&&C(!1),!1;var t,n=e[0],r=(null===(t=n.extensions)||void 0===t?void 0:t.isOptimistic)===!0;return r&&"started"!==this._state&&C(!1),!!r&&(this._processOptimisticResponse(n,null,this._treatMissingFieldsAsNull),this._sink.next(n),!0)},t._handleNext=function(e){if("completed"!==this._state){this._seenActors.clear();var t=Array.isArray(e)?e:[e],n=this._handleErrorResponse(t);if(0===n.length){t.some(function(e){var t;return(null===(t=e.extensions)||void 0===t?void 0:t.is_final)===!0})&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),this._sink.next(e);return}if(!this._handleOptimisticResponses(n)){var r,i,a=(r=[],i=[],n.forEach(function(e){if(null!=e.path||null!=e.label){var t=e.label,n=e.path;(null==t||null==n)&&C(!1),i.push({label:t,path:n,response:e})}else r.push(e)}),[r,i]),s=a[0],o=a[1],l=s.length>0;if(l){if(this._isSubscriptionOperation){var u=m();this._operation={request:this._operation.request,fragment:b(this._operation.fragment.node,u,this._operation.fragment.variables,this._operation.fragment.owner),root:_(this._operation.root.node,u,this._operation.root.variables)}}var c=this._processResponses(s);this._processPayloadFollowups(c)}if(o.length>0){var d=this._processIncrementalResponses(o);this._processPayloadFollowups(d)}this._isSubscriptionOperation&&(null==n[0].extensions?n[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:n[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var h=this._runPublishQueue(l?this._operation:void 0);l&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(h),this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,n){var r=this;if(null!==this._optimisticUpdates&&C(!1),null!=e||null!=t){var i=[];if(e){var a=this._normalizeResponse(e,this._operation.root,k,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:n});I(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:x.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach(function(e){return r._getPublishQueueAndSaveActor().applyUpdate(e)});var s=this._runPublishQueue();c.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(s)}},t._processOptimisticFollowups=function(e,t){if(e.followupPayloads&&e.followupPayloads.length){var n,r=e.followupPayloads,s=(0,i.default)(r);try{for(s.s();!(n=s.n()).done;){var o=n.value;switch(o.kind){case"ModuleImportPayload":var l=this._expectOperationLoader().get(o.operationReference);if(null==l)this._processAsyncOptimisticModuleImport(o);else{var u=this._processOptimisticModuleImport(l,o);t.push.apply(t,(0,a.default)(u))}break;case"ActorPayload":break;default:C(!1)}}}catch(e){s.e(e)}finally{s.f()}}},t._normalizeFollowupPayload=function(e,t){n="SplitOperation"===t.kind&&"ModuleImportPayload"===e.kind?g(e.variables,t.argumentDefinitions,e.args):e.variables;var n,r=_(t,e.dataID,n);return this._normalizeResponse({data:e.data},r,e.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:e.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var n=l(e),r=[],i=this._normalizeFollowupPayload(t,n);return I(i),r.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,r),r},t._processAsyncOptimisticModuleImport=function(e){var t=this;this._expectOperationLoader().load(e.operationReference).then(function(n){if(null!=n&&"started"===t._state){var r,i=t._processOptimisticModuleImport(n,e);i.forEach(function(e){return t._getPublishQueueAndSaveActor().applyUpdate(e)}),null==t._optimisticUpdates||((r=t._optimisticUpdates).push.apply(r,(0,a.default)(i)),t._runPublishQueue())}})},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach(function(e){t._getPublishQueueAndSaveActor().revertUpdate(e)}),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map(function(e){var n=t._normalizeResponse(e,t._operation.root,k,{actorIdentifier:t._actorIdentifier,getDataID:t._getDataID,path:[],treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});return t._getPublishQueueAndSaveActor().commitPayload(t._operation,n,t._updater),n})},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach(function(e){var n=e.incrementalPlaceholders,r=e.followupPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),r&&0!==r.length&&r.forEach(function(e){var n,r=t._actorIdentifier;t._actorIdentifier=null!==(n=e.actorIdentifier)&&void 0!==n?n:t._actorIdentifier,t._processFollowupPayload(e),t._actorIdentifier=r}),n&&0!==n.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,n.forEach(function(n){var r,i=t._actorIdentifier;t._actorIdentifier=null!==(r=n.actorIdentifier)&&void 0!==r?r:t._actorIdentifier,t._processIncrementalPlaceholder(e,n),t._actorIdentifier=i}),t._isClientPayload||"loading_final"===t._state)){var a=[];n.forEach(function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))}),a.length>0&&t._processPayloadFollowups(a)}})},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processFollowupPayload=function(e){var t=this;switch(e.kind){case"ModuleImportPayload":var n=this._expectOperationLoader(),r=n.get(e.operationReference);if(null!=r)this._processFollowupPayloadWithNormalizationNode(e,l(r));else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){t._pendingModulePayloadsCount--,t._maybeCompleteSubscriptionOperationTracking()},o=s.from(new Promise(function(t,r){n.load(e.operationReference).then(t,r)}));s.create(function(n){var r,i=o.subscribe({next:function(i){if(null!=i){var a=function(){try{var r=l(i),a=c.BATCH_ASYNC_MODULE_UPDATES_FN,s=null!=a&&t._pendingModulePayloadsCount>1,o=h(function(){if(t._handleFollowupPayload(e,r),s)t._scheduleAsyncStoreUpdate(a,n.complete);else{var i=t._runPublishQueue();t._updateOperationTracker(i)}})[0];t._log({name:"execute.async.module",executeId:t._executeId,operationName:r.name,duration:o}),s||n.complete()}catch(e){n.error(e)}},s=t._scheduler;null==s?a():r=s.schedule(a)}else n.complete()},error:n.error});return function(){i.unsubscribe(),null!=t._scheduler&&null!=r&&t._scheduler.cancel(r)}}).subscribe({complete:function(){t._complete(i),a()},error:function(e){t._error(e),a()},start:function(e){return t._start(i,e)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(e,e.node);break;default:C(!1)}},t._processFollowupPayloadWithNormalizationNode=function(e,t){this._handleFollowupPayload(e,t),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(e,t){var n=this._normalizeFollowupPayload(e,t);this._getPublishQueueAndSaveActor().commitPayload(this._operation,n),this._processPayloadFollowups([n])},t._processIncrementalPlaceholder=function(e,t){var n,r,i,a,s=t.label,o=t.path.map(String).join("."),l=this._incrementalResults.get(s);null==l&&(l=new Map,this._incrementalResults.set(s,l));var u=l.get(o),c=null!=u&&"response"===u.kind?u.responses:null;l.set(o,{kind:"placeholder",placeholder:t}),"stream"===t.kind?r=t.parentID:"defer"===t.kind?r=t.selector.dataID:C(!1);var h=e.source.get(r),f=(null!==(n=e.fieldPayloads)&&void 0!==n?n:[]).filter(function(e){var t=p(e.dataID,e.fieldKey);return e.dataID===r||t===r});null!=h||C(!1);var m=this._source.get(r);if(null!=m){i=v.update(m.record,h);var g=new Map,y=function(e){var t,n=null!==(t=JSON.stringify(d(e)))&&void 0!==t?t:"";g.set(n,e)};m.fieldPayloads.forEach(y),f.forEach(y),a=Array.from(g.values())}else i=h,a=f;if(this._source.set(r,{record:i,fieldPayloads:a}),null!=c){var _=this._processIncrementalResponses(c);this._processPayloadFollowups(_)}},t._processIncrementalResponses=function(e){var t=this,n=[];return e.forEach(function(e){var r=e.label,i=e.path,a=e.response,s=t._incrementalResults.get(r);if(null==s&&(s=new Map,t._incrementalResults.set(r,s)),-1!==r.indexOf("$defer$")){var o=i.map(String).join("."),l=s.get(o);if(null==l){l={kind:"response",responses:[e]},s.set(o,l);return}if("response"===l.kind){l.responses.push(e);return}var u=l.placeholder;"defer"!==u.kind&&C(!1),n.push(t._processDeferResponse(r,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=s.get(c);if(null==d){d={kind:"response",responses:[e]},s.set(c,d);return}if("response"===d.kind){d.responses.push(e);return}var h=d.placeholder;"stream"!==h.kind&&C(!1),n.push(t._processStreamResponse(r,i,h,a))}}),n},t._processDeferResponse=function(e,t,n,r){var i=n.selector.dataID,a=this._actorIdentifier;this._actorIdentifier=null!==(u=n.actorIdentifier)&&void 0!==u?u:this._actorIdentifier;var s=this._normalizeResponse(r,n.selector,n.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:n.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,s);var o=this._source.get(i);null!=o||C(!1);var l=o.fieldPayloads;if(0!==l.length){var u,c,d={errors:null,fieldPayloads:l,incrementalPlaceholders:null,followupPayloads:null,source:x.create(),isFinal:(null===(c=r.extensions)||void 0===c?void 0:c.is_final)===!0};this._getPublishQueueAndSaveActor().commitPayload(this._operation,d)}return this._actorIdentifier=a,s},t._processStreamResponse=function(e,t,n,r){var i=n.parentID,s=n.node,o=n.variables,l=n.actorIdentifier,u=this._actorIdentifier;this._actorIdentifier=null!=l?l:this._actorIdentifier;var c=s.selections[0];null!=c&&"LinkedField"===c.kind&&!0===c.plural||C(!1);var d=this._normalizeStreamItem(r,i,c,o,t,n.path),h=d.fieldPayloads,f=d.itemID,p=d.itemIndex,m=d.prevIDs,g=d.relayPayload,v=d.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,g,function(e){var t=e.get(i);if(null!=t){var n=t.getLinkedRecords(v);if(!(null==n||n.length!==m.length||n.some(function(e,t){return m[t]!==(e&&e.getDataID())}))){var r=(0,a.default)(n);r[p]=e.get(f),t.setLinkedRecords(r,v)}}}),0!==h.length){var y={errors:null,fieldPayloads:h,incrementalPlaceholders:null,followupPayloads:null,source:x.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,y)}return this._actorIdentifier=u,g},t._normalizeStreamItem=function(e,t,n,r,i,s){var o,l,u,c,d=e.data;"object"!=typeof d&&C(!1);var h=null!==(o=n.alias)&&void 0!==o?o:n.name,f=S(n,r),m=this._source.get(t);null!=m||C(!1);var g=m.record,y=m.fieldPayloads,b=v.getLinkedRecordIDs(g,f);null!=b||C(!1);var x=i[i.length-1],w=parseInt(x,10);w===x&&w>=0||C(!1);var k=null!==(l=n.concreteType)&&void 0!==l?l:d[E];"string"!=typeof k&&C(!1);var T=null!==(u=null!==(c=this._getDataID(d,k))&&void 0!==c?c:null==b?void 0:b[w])&&void 0!==u?u:p(t,f,w);"string"!=typeof T&&C(!1);var I=_(n,T,r),R=v.clone(g),j=(0,a.default)(b);j[w]=T,v.setLinkedRecordIDs(R,f,j),this._source.set(t,{record:R,fieldPayloads:y});var A=this._normalizeResponse(e,I,k,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,a.default)(s),[h,String(w)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});return{fieldPayloads:y,itemID:T,itemIndex:w,prevIDs:b,relayPayload:A,storageKey:f}},t._scheduleAsyncStoreUpdate=function(e,t){var n=this;this._completeFns.push(t),null==this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable=e(function(){n._asyncStoreUpdateDisposable=null;var e=n._runPublishQueue();n._updateOperationTracker(e);var t,r=(0,i.default)(n._completeFns);try{for(r.s();!(t=r.n()).done;)(0,t.value)()}catch(e){r.e(e)}finally{r.f()}n._completeFns=[]}))},t._updateOperationTracker=function(e){null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return 0===this._seenActors.size?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(e){var t,n=new Set,r=(0,i.default)(this._getActorsToVisit());try{for(r.s();!(t=r.n()).done;){var a=t.value;this._getPublishQueue(a).run(e).forEach(function(e){return n.add(e)})}}catch(e){r.e(e)}finally{r.f()}return Array.from(n)},t._retainData=function(){var e,t=(0,i.default)(this._getActorsToVisit());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._retainDisposables.has(n)||this._retainDisposables.set(n,this._getStore(n).retain(this._operation))}}catch(e){t.e(e)}finally{t.f()}},t._disposeRetainedData=function(){var e,t=(0,i.default)(this._retainDisposables.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var e=this._operationLoader;return e||C(!1),e},e}();function I(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&C(!1)}e.exports={execute:function(e){return new T(e)}}},48304:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(61332).getArgumentValues,a=n(3996);e.exports={getLocalVariables:function(e,t,n){if(null==t)return e;var a=(0,r.default)({},e),s=n?i(n,e):{};return t.forEach(function(e){var t,n=null!==(t=s[e.name])&&void 0!==t?t:e.defaultValue;a[e.name]=n}),a},getFragmentVariables:function(e,t,n){var i;return null==e.argumentDefinitions?n:(e.argumentDefinitions.forEach(function(e){if(!n.hasOwnProperty(e.name))switch(i=i||(0,r.default)({},n),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=t[e.name];break;default:a(!1)}}),i||n)},getOperationVariables:function(e,t,n){var r={};return e.argumentDefinitions.forEach(function(e){var t=e.defaultValue;null!=n[e.name]&&(t=n[e.name]),r[e.name]=t}),null!=t&&Object.keys(t).forEach(function(e){r[e]=t[e].get()}),r}}},62242:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(80624)),a=r(n(22412)),s=r(n(68532)),o=r(n(25499)),l=r(n(19952)),u=r(n(9833)),c=["path","locations"],d=n(17461),h=Symbol("$SELF"),f=function(e){function t(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n=e.call(this,t)||this).name="RelayFieldError",n.message=t,n.errors=r,n}return(0,o.default)(t,e),t}((0,l.default)(Error));e.exports={SELF:h,buildErrorTrie:function(e){if(null==e||!d.ENABLE_FIELD_ERROR_HANDLING)return null;var t,n=new Map,r=(0,s.default)(e);try{r:for(r.s();!(t=r.n()).done;){var i=t.value,o=i.path,l=(i.locations,(0,a.default)(i,c));if(null!=o){var u=o.length;if(0!==u){for(var f=u-1,p=n,m=0;m<f;m++){var g=o[m],v=p.get(g);if(v instanceof Map){p=v;continue}var y=new Map;Array.isArray(v)&&y.set(h,v),p.set(g,y),p=y}var _=o[f],b=p.get(_);b instanceof Map&&(b=(p=b).get(_),_=h),Array.isArray(b)?b.push(l):p.set(_,[l])}}}}catch(e){r.e(e)}finally{r.f()}return n},getNestedErrorTrieByKey:function(e,t){var n=e.get(t);return n instanceof Map?n:null},getErrorsByKey:function(e,t){var n=e.get(t);if(null==n)return null;if(Array.isArray(n))return n;var r=[];return function e(t,n){var r,a=(0,s.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=o[0],c=o[1],d=n.length;if(Array.isArray(c)?n.push.apply(n,(0,u.default)(c)):e(c,n),l!==h)for(var f=n.length,p=d;p<f;p++){var m=n[p];null==m.path?n[p]=(0,i.default)((0,i.default)({},m),{},{path:[l]}):m.path.unshift(l)}}}catch(e){a.e(e)}finally{a.f()}}(n,r),r},RelayFieldError:f}},13487:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(32461),a=n(87285),s=a.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,o=a.assertInternalActorIdentifier,l=n(73058),u=n(55734),c=n(72241),d=n(8311),h=n(74759),f=n(85754),p=n(71613),m=n(84474),g=n(21338),v=n(41608);n(3996);var y=function(){function e(e){var t,n,r,a,s,o,l,m,v,y,b=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var x=e.operationLoader;this.__log=null!==(t=e.log)&&void 0!==t?t:_,this.relayFieldLogger=null!==(n=e.relayFieldLogger)&&void 0!==n?n:f,this._defaultRenderPolicy=null!==(r=e.UNSTABLE_defaultRenderPolicy)&&void 0!==r?r:"partial",this._operationLoader=x,this._operationExecutions=new Map,this._network=u(this,e.network),this._getDataID=null!==(a=e.getDataID)&&void 0!==a?a:h,this._missingFieldHandlers=null!==(s=e.missingFieldHandlers)&&void 0!==s?s:[],this._publishQueue=new g(e.store,null!==(o=e.handlerProvider)&&void 0!==o?o:i,this._getDataID,this._missingFieldHandlers),this._scheduler=null!==(l=e.scheduler)&&void 0!==l?l:null,this._store=e.store,this.options=e.options,this._isServer=null!==(m=e.isServer)&&void 0!==m&&m,this._normalizeResponse=null!==(v=e.normalizeResponse)&&void 0!==v?v:p,this.__setNet=function(e){return b._network=u(b,e)},this._operationTracker=null!==(y=e.operationTracker)&&void 0!==y?y:new c,this._shouldProcessClientComponents=e.shouldProcessClientComponents,d(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(e){var t=this;return this._scheduleUpdates(function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()}),{dispose:function(){t._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})}}},t.revertUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})},t.replaceUpdate=function(e,t){var n=this;this._scheduleUpdates(function(){n._publishQueue.revertUpdate(e),n._publishQueue.applyUpdate(t),n._publishQueue.run()})},t.applyMutation=function(e){var t=this._execute({createSource:function(){return l.create(function(e){})},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},t.check=function(e){return 0!==this._missingFieldHandlers.length||"Operation"===e.root.node.kind&&null!=e.root.node.clientAbstractTypes?this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers):this._store.check(e)},t.commitPayload=function(e,t){this._execute({createSource:function(){return l.from({data:t})},isClientPayload:!0,operation:e,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()})},t.lookup=function(e){return this._store.lookup(e)},t.subscribe=function(e,t){return this._store.subscribe(e,t)},t.retain=function(e){return this._store.retain(e)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(e,t){var n=this,r=v.create(),i=this._store.getSource(),a=this._store.check(e,{handlers:t,defaultActorIdentifier:s,getSourceForActor:function(e){return o(e),i},getTargetForActor:function(e){return o(e),r}});return r.size()>0&&this._scheduleUpdates(function(){n._publishQueue.commitSource(r),n._publishQueue.run()}),a},t._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},t.execute=function(e){var t=this,n=e.operation;return this._execute({createSource:function(){return t.getNetwork().execute(n.request.node.params,n.request.variables,n.request.cacheConfig||{},null)},isClientPayload:!1,operation:n,optimisticConfig:null,updater:null})},t.executeSubscription=function(e){var t=this,n=e.operation,r=e.updater;return this._execute({createSource:function(){return t.getNetwork().execute(n.request.node.params,n.request.variables,n.request.cacheConfig||{},null)},isClientPayload:!1,operation:n,optimisticConfig:null,updater:r})},t.executeMutation=function(e){var t,n=this,i=e.operation,a=e.optimisticResponse,s=e.optimisticUpdater,o=e.updater,l=e.uploadables;return(a||s)&&(t={operation:i,response:a,updater:s}),this._execute({createSource:function(){return n.getNetwork().execute(i.request.node.params,i.request.variables,(0,r.default)((0,r.default)({},i.request.cacheConfig),{},{force:!0}),l)},isClientPayload:!1,operation:i,optimisticConfig:t,updater:o})},t.executeWithSource=function(e){var t=e.operation,n=e.source;return this._execute({createSource:function(){return n},isClientPayload:!1,operation:t,optimisticConfig:null,updater:null})},t.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},t._execute=function(e){var t=this,n=e.createSource,r=e.isClientPayload,i=e.operation,a=e.optimisticConfig,u=e.updater,c=this._publishQueue,d=this._store;return l.create(function(e){var l=m.execute({actorIdentifier:s,getDataID:t._getDataID,isClientPayload:r,log:t.__log,operation:i,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:a,getPublishQueue:function(e){return o(e),c},scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:n(),getStore:function(e){return o(e),d},treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:u,normalizeResponse:t._normalizeResponse});return function(){return l.cancel()}})},e}();function _(){}y.prototype["@@RelayModernEnvironment"]=!0,e.exports=y},16010:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(80624)),a=r(n(93231)),s=n(80357),o=n(20270),l=n(49461),u=n(23021),c=n(17461),d=n(73671).createRequestDescriptor,h=n(20028),f=h.areEqualSelectors,p=h.createReaderSelector,m=h.getSelectorsFromObject,g=n(2971),v=n(3996);n(82264);var y=function(){function e(e,t,n,r,i){var s=this;(0,a.default)(this,"_onChange",function(){s._stale=!0,"function"==typeof s._callback&&s._callback()}),this._callback=r,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this._rootIsQueryRenderer=i,this.setProps(n)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&x(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var n in this._resolvers)if(this._resolvers.hasOwnProperty(n)){var r=this._resolvers[n],a=t[n];if(r){var s=r.resolve();(e||s!==a)&&((e=e||(0,i.default)({},t))[n]=s)}else{var o=this._props[n],u=void 0!==o?o:null;(e||!l(u,a))&&((e=e||(0,i.default)({},t))[n]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e,t){this._callback=t,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this.setProps(e)},t.setProps=function(e){this._props={};var t=m(this._fragments,e);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],i=this._resolvers[n];null==r?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===r.kind?null==i?i=new b(this._context.environment,this._rootIsQueryRenderer,r,null!=this._callback,this._onChange):(i instanceof b||v(!1),i.setSelector(r)):null==i?i=new _(this._context.environment,this._rootIsQueryRenderer,r,null!=this._callback,this._onChange):(i instanceof _||v(!1),i.setSelector(r)),this._props[n]=e[n],this._resolvers[n]=i}this._stale=!0},t.setVariables=function(e,t){for(var n in this._resolvers)if(this._resolvers.hasOwnProperty(n)){var r=this._resolvers[n];r&&r.setVariables(e,t)}this._stale=!0},e}(),_=function(){function e(e,t,n,r,i){var s=this;(0,a.default)(this,"_onChange",function(e){s._data=e.data,s._isMissingData=e.isMissingData,s._missingRequiredFields=e.missingRequiredFields,s._errorResponseFields=e.errorResponseFields,s._relayResolverErrors=e.relayResolverErrors,s._callback()});var o=e.lookup(n);this._callback=i,this._data=o.data,this._isMissingData=o.isMissingData,this._missingRequiredFields=o.missingRequiredFields,this._errorResponseFields=o.errorResponseFields,this._relayResolverErrors=o.relayResolverErrors,this._environment=e,this._rootIsQueryRenderer=t,this._selector=n,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?r&&(this._subscription=e.subscribe(o,this._onChange)):this._subscription=e.subscribe(o,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===this._isMissingData){var e=s(this._environment,this._selector.node,this._selector.owner),t=null==e?void 0:e.promise;if(null!=t){if(this._rootIsQueryRenderer);else{var n,r=null!==(n=null==e?void 0:e.pendingOperations)&&void 0!==n?n:[];throw this._environment.__log({name:"suspense.fragment",data:this._data,fragment:this._selector.node,isRelayHooks:!1,isMissingData:this._isMissingData,isPromiseCached:!1,pendingOperations:r}),t}}}return o(this._environment,this._missingRequiredFields,this._relayResolverErrors,this._errorResponseFields),this._data},t.setSelector=function(e){if(!(null!=this._subscription&&f(e,this._selector))){this.dispose();var t=this._environment.lookup(e);this._data=u(this._data,t.data),this._isMissingData=t.isMissingData,this._missingRequiredFields=t.missingRequiredFields,this._errorResponseFields=t.errorResponseFields,this._relayResolverErrors=t.relayResolverErrors,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!g(e,this._selector.variables)){var n=d(t,e),r=p(this._selector.node,this._selector.dataID,e,n);this.setSelector(r)}},e}(),b=function(){function e(e,t,n,r,i){var s=this;(0,a.default)(this,"_onChange",function(e){s._stale=!0,s._callback()}),this._callback=i,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this._rootIsQueryRenderer=t,this._subscribeOnConstruction=r,this.setSelector(n)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(x)},t.resolve=function(){if(this._stale){for(var e,t=this._data,n=0;n<this._resolvers.length;n++){var r=t[n],i=this._resolvers[n].resolve();(e||i!==r)&&(e=e||t.slice(0,n)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;)this._resolvers.pop().dispose();for(var n=0;n<t.length;n++)n<this._resolvers.length?this._resolvers[n].setSelector(t[n]):this._resolvers[n]=new _(this._environment,this._rootIsQueryRenderer,t[n],this._subscribeOnConstruction,this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach(function(n){return n.setVariables(e,t)}),this._stale=!0},e}();function x(e){e&&e.dispose()}e.exports=y},73671:function(e,t,n){"use strict";n(40787);var r=n(13321),i=n(48304).getOperationVariables,a=n(20028),s=a.createNormalizationSelector,o=a.createReaderSelector,l=n(61332).ROOT_ID;function u(e,t,n){return{identifier:r(e.params,t),node:e,variables:t,cacheConfig:n}}e.exports={createOperationDescriptor:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,a=e.operation,c=i(a,e.params.providedVariables,t),d=u(e,c,n);return{fragment:o(e.fragment,r,c,d),request:d,root:s(a,r,c)}},createRequestDescriptor:u}},4584:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(93231)),a=r(n(22412)),s=r(n(74040)),o=r(n(80624)),l=n(40787),u=n(65346),c=u.generateClientObjectClientID;u.isClientID;var d=n(26793).isSuspenseSentinel,h=n(61332),f=h.ACTOR_IDENTIFIER_KEY,p=h.ERRORS_KEY,m=h.ID_KEY,g=h.INVALIDATED_AT_KEY,v=h.REF_KEY,y=h.REFS_KEY,_=h.RELAY_RESOLVER_VALUE_KEY,b=(h.ROOT_ID,h.TYPENAME_KEY),x=n(2971),w=n(3996);function k(e,t){var n=e[t];return!n||"object"!=typeof n||(n.hasOwnProperty(v)||n.hasOwnProperty(y))&&w(!1),n}function E(e,t,n){var r=e[p];if(null!=n&&n.length>0)null==r?e[p]=(0,i.default)({},t,n):r[t]=n;else if(null!=r&&delete r[t]){for(var a in r)if(r.hasOwnProperty(a))return;delete e[p]}}n(82264),e.exports={clone:function(e){return(0,o.default)({},e)},copyFields:function(e,t){for(var n in e)e.hasOwnProperty(n)&&n!==m&&n!==b&&(t[n]=e[n])},create:function(e,t){var n={};return n[m]=e,n[b]=t,n},freeze:function(e){l(e)},fromObject:function(e){return e},getDataID:function(e){return e[m]},getErrors:function(e,t){var n;return null===(n=e[p])||void 0===n?void 0:n[t]},getFields:function(e){return p in e?Object.keys(e).filter(function(e){return e!==p}):Object.keys(e)},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[g];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&n&&"string"==typeof n[v]||w(!1),n[v])},getLinkedRecordIDs:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&Array.isArray(n[y])||w(!1),n[y])},getType:function(e){return e[b]},getValue:k,hasValue:function(e,t){return t in e},hasLinkedRecordID:function(e,t){var n=e[t];return null!=n&&"object"==typeof n&&n&&"string"==typeof n[v]},hasLinkedRecordIDs:function(e,t){var n=e[t];return null!=n&&"object"==typeof n&&Array.isArray(n[y])&&n[y].every(function(e){return"string"==typeof e})},merge:function(e,t){if(!(p in e)&&!(p in t))return(0,o.default)((0,o.default)({},e),t);var n=e[p],r=(0,a.default)(e,[p].map(s.default)),i=t[p],l=(0,a.default)(t,[p].map(s.default)),u=(0,o.default)((0,o.default)({},r),l);if(null==n&&null==i)return u;var c={};for(var d in n)l.hasOwnProperty(d)||(c[d]=n[d]);for(var h in i)c[h]=i[h];for(var f in c){u[p]=c;break}return u},setErrors:E,setValue:function(e,t,n){e[t]=n},setLinkedRecordID:function(e,t,n){var r={};r[v]=n,e[t]=r},setLinkedRecordIDs:function(e,t,n){var r={};r[y]=n,e[t]=r},update:function(e,t){var n,r,i=e[p],a=t[p],s=null;if(null==i&&null==a){for(var l in t)(s||!x(e[l],t[l]))&&((s=null!==s?s:(0,o.default)({},e))[l]=t[l]);return null!==(r=s)&&void 0!==r?r:e}for(var u in t)if(u!==p){var c=t[u],d=null==a?void 0:a[u];if(null==s){var h=e[u],f=null==i?void 0:i[u];if(x(h,c)&&x(f,d))continue;s=(0,o.default)({},e),null!=i&&(s[p]=(0,o.default)({},i))}s[u]=c,E(s,u,d)}return null!==(n=s)&&void 0!==n?n:e},getActorLinkedRecordID:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&"string"==typeof n[v]&&null!=n[f]||w(!1),[n[f],n[v]])},setActorLinkedRecordID:function(e,t,n,r){var i={};i[v]=r,i[f]=n,e[t]=i},getResolverLinkedRecordID:function(e,t){var n=k(e,_);return null==n||d(n)?null:("object"==typeof n&&(n=n.id),"string"!=typeof n&&w(!1),c(t,n))},getResolverLinkedRecordIDs:function(e,t){var n=k(e,_);return null==n||d(n)?null:(Array.isArray(n)||w(!1),n.map(function(e){return null==e?null:("object"==typeof e&&(e=e.id),"string"!=typeof e&&w(!1),c(t,e))}))},toJSON:function(e){return e}}},20028:function(e,t,n){"use strict";var r=n(17461),i=n(48304).getFragmentVariables,a=n(61332),s=a.CLIENT_EDGE_TRAVERSAL_PATH,o=a.FRAGMENT_OWNER_KEY,l=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,u=a.FRAGMENTS_KEY,c=a.ID_KEY,d=n(2971),h=n(3996);function f(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&h(!1);var n=t[c],r=t[u],a=t[o],d=t[s];if("string"==typeof n&&"object"==typeof r&&null!==r&&"object"==typeof r[e.name]&&null!==r[e.name]&&"object"==typeof a&&null!==a&&(null==d||Array.isArray(d))){var f=r[e.name],p=i(e,a.variables,f);return w(e,n,p,a,!0===f[l],d)}return null}function p(e,t){var n=null;return(t.forEach(function(t,r){var i=null!=t?f(e,t):null;null!=i&&(n=n||[]).push(i)}),null==n)?null:{kind:"PluralReaderSelector",selectors:n}}function m(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||h(!1),p(e,t)):(Array.isArray(t)&&h(!1),f(e,t))}function g(e,t){var n;return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||h(!1),n=null,t.forEach(function(t){var r=null!=t?v(e,t):null;null!=r&&(n=n||[]).push(r)}),n):(Array.isArray(t)&&h(!1),v(e,t))}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&h(!1);var n=t[c];return"string"==typeof n?n:null}function y(e,t){var n;return null==t?{}:(null===(n=e.metadata)||void 0===n?void 0:n.plural)===!0?(Array.isArray(t)||h(!1),b(e,t)):(Array.isArray(t)&&h(!1),_(e,t)||{})}function _(e,t){var n=f(e,t);return n?n.variables:null}function b(e,t){var n={};return t.forEach(function(t,r){if(null!=t){var i=_(e,t);null!=i&&Object.assign(n,i)}}),n}function x(e,t){var n,i;return e.dataID===t.dataID&&e.node===t.node&&d(e.variables,t.variables)&&((n=e.owner)===(i=t.owner)||n.identifier===i.identifier&&d(n.cacheConfig,i.cacheConfig))&&(!r.ENABLE_STRICT_EQUAL_SELECTORS||e.isWithinUnmatchedTypeRefinement===t.isWithinUnmatchedTypeRefinement&&function(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(var n=e.length;n--;){var r=e[n],i=t[n];if(r!==i&&(null==r||null==i||r.clientEdgeDestinationID!==i.clientEdgeDestinationID||r.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,t.clientEdgeTraversalPath))}function w(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,clientEdgeTraversalPath:null!=a?a:null,node:e,variables:n,owner:r}}n(82264),e.exports={areEqualSelectors:function(e,t){return e===t||(null==e?null==t:null==t?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===t.kind?x(e,t):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===t.kind&&e.selectors.length===t.selectors.length&&e.selectors.every(function(e,n){return x(e,t.selectors[n])}))},createReaderSelector:w,createNormalizationSelector:function(e,t,n){return{dataID:t,node:e,variables:n}},getDataIDsFromFragment:g,getDataIDsFromObject:function(e,t){var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=t[r];n[r]=g(i,a)}return n},getSingularSelector:f,getPluralSelector:p,getSelector:m,getSelectorsFromObject:function(e,t){var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=t[r];n[r]=m(i,a)}return n},getVariablesFromSingularFragment:_,getVariablesFromPluralFragment:b,getVariablesFromFragment:y,getVariablesFromObject:function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&Object.assign(n,y(e[r],t[r]));return n}}},83554:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(68532)),a=r(n(93231)),s=n(87285),o=s.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,l=s.assertInternalActorIdentifier;n(40787);var u=n(17461),c=n(87054),d=n(72360),h=n(74759),f=n(4584),p=n(10217),m=n(31731),g=n(44010),v=n(5731),y=n(61332),_=n(61332),b=_.ROOT_ID,x=_.ROOT_TYPE,w=n(76627).RecordResolverCache,k=n(3996),E=function(){function e(e,t){var n,r,i,s,o,l=this;(0,a.default)(this,"_gcStep",function(){l._gcRun&&(l._gcRun.next().done?l._gcRun=null:l._gcScheduler(l._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(n=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==n?n:10,this._gcRun=null,this._gcScheduler=null!==(r=null==t?void 0:t.gcScheduler)&&void 0!==r?r:c,this._getDataID=null!==(i=null==t?void 0:t.getDataID)&&void 0!==i?i:h,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(s=null==t?void 0:t.log)&&void 0!==s?s:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(o=null==t?void 0:t.operationLoader)&&void 0!==o?o:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new w(function(){return l._getMutableRecordSource()}),this._storeSubscriptions=new v(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null==t?void 0:t.shouldProcessClientComponents,function(e){if(!e.has(b)){var t=f.create(b,x);e.set(b,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var n,r,i,a,s,u,c,h,f,p=e.root,m=this._getMutableRecordSource(),g=this._globalInvalidationEpoch,v=this._roots.get(e.request.identifier),y=null!=v?v.epoch:null;if(null!=g&&(null==y||y<=g))return{status:"stale"};var _=null!==(u=null==t?void 0:t.handlers)&&void 0!==u?u:[],b=null!==(c=null==t?void 0:t.getSourceForActor)&&void 0!==c?c:function(e){return l(e),m},x=null!==(h=null==t?void 0:t.getTargetForActor)&&void 0!==h?h:function(e){return l(e),m};return n=d.check(b,x,null!==(f=null==t?void 0:t.defaultActorIdentifier)&&void 0!==f?f:o,p,_,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),r=null==v?void 0:v.fetchTime,i=this._queryCacheExpirationTime,a=n.mostRecentlyInvalidatedAt,s=n.status,"number"==typeof a&&(null==y||a>y)?{status:"stale"}:"missing"===s?{status:"missing"}:null!=r&&null!=i&&r<=Date.now()-i?{status:"stale"}:{status:"available",fetchTime:null!=r?r:null}},t.retain=function(e){var t=this,n=e.request.identifier,r=!1,i=this._roots.get(n);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter(function(e){return e!==n})),i.refCount+=1):this._roots.set(n,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!r){r=!0;var e=t._roots.get(n);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._roots.delete(n),t.scheduleGC();else if(t._releaseBuffer.push(n),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._roots.delete(a),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource();return m.read(t,e,this._resolverCache)},t.notify=function(e,t){var n=this,r=this.__log;null!=r&&r({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),u.ENABLE_RELAY_RESOLVERS&&this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var i=this.getSource(),a=[];if(this._storeSubscriptions.updateSubscriptions(i,this._updatedRecordIDs,a,e),this._invalidationSubscriptions.forEach(function(e){n._updateInvalidationSubscription(e,!0===t)}),null!=r&&r({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var s=e.request.identifier,o=this._roots.get(s);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,l)}}return a},t.publish=function(e,t){var n=this._getMutableRecordSource();(function(e,t,n,r,i,a){r&&r.forEach(function(r){var i,s=e.get(r),o=t.get(r);null!==o&&(i=null!=s?f.clone(s):null!=o?f.clone(o):null)&&(f.setValue(i,y.INVALIDATED_AT_KEY,n),a.add(r),e.set(r,i))});for(var s=t.getRecordIDs(),o=0;o<s.length;o++){var l=s[o],u=t.get(l),c=e.get(l);if(u&&c){var d=f.update(c,u);d!==c&&(i.add(l),e.set(l,d))}else null===u?(e.delete(l),null!==c&&i.add(l)):u&&(e.set(l,u),i.add(l))}})(n,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var r=this.__log;null!=r&&r({name:"store.publish",source:e,optimistic:n===this._optimisticSource})},t.subscribe=function(e,t){return this._storeSubscriptions.subscribe(e,t)},t.holdGC=function(){var e=this;return this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++,{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,n=new Map;return e.forEach(function(e){var r,i=t.getSource().get(e);n.set(e,null!==(r=f.getInvalidationEpoch(i))&&void 0!==r?r:null)}),n.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:n}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,n=e.invalidations;if(t.get("global")!==n.get("global"))return!0;var r,a=(0,i.default)(e.dataIDs);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(t.get(s)!==n.get(s))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var n=this,r={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(r),{dispose:function(){n._invalidationSubscriptions.delete(r)}}},t._updateInvalidationSubscription=function(e,t){var n=this,r=e.callback,i=e.invalidationState.dataIDs;(t||i.some(function(e){return n._invalidatedRecordIDs.has(e)}))&&r()},t.snapshot=function(){null!=this._optimisticSource&&k(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=p.create(this.getSource())},t.restore=function(){null!=this._optimisticSource||k(!1);var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){i:for(;;){var e,t=this._currentWriteEpoch,n=new Set,r=(0,i.default)(this._roots.values());try{for(r.s();!(e=r.n()).done;){var a=e.value.operation.root;if(g.mark(this._recordSource,a,n,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue i}}catch(e){r.e(e)}finally{r.f()}var s=this.__log;if(null!=s&&s({name:"store.gc",references:n}),0===n.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];n.has(u)||this._recordSource.remove(u)}return}},e}();e.exports=E},72241:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(3996),a=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPendingPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var n,i=e.identifier,a=new Set,s=(0,r.default)(t);try{for(s.s();!(n=s.n()).done;){var o=n.value.identifier,l=this._ownersToPendingOperations.get(o);null!=l?l.has(i)||(l.set(i,e),a.add(o)):(this._ownersToPendingOperations.set(o,new Map([[i,e]])),a.add(o))}}catch(e){s.e(e)}finally{s.f()}if(0!==a.size){var u,c=this._pendingOperationsToOwners.get(i)||new Set,d=(0,r.default)(a);try{for(d.s();!(u=d.n()).done;){var h=u.value;this._resolveOwnerResolvers(h),c.add(h)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwners.set(i,c)}}},t.complete=function(e){var t=e.identifier,n=this._pendingOperationsToOwners.get(t);if(null!=n){var i,a=new Set,s=new Set,o=(0,r.default)(n);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=this._ownersToPendingOperations.get(l);u&&(u.delete(t),u.size>0?s.add(l):a.add(l))}}catch(e){o.e(e)}finally{o.f()}var c,d=(0,r.default)(a);try{for(d.s();!(c=d.n()).done;){var h=c.value;this._resolveOwnerResolvers(h),this._ownersToPendingOperations.delete(h)}}catch(e){d.e(e)}finally{d.f()}var f,p=(0,r.default)(s);try{for(p.s();!(f=p.n()).done;){var m=f.value;this._resolveOwnerResolvers(m)}}catch(e){p.e(e)}finally{p.f()}this._pendingOperationsToOwners.delete(t)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPendingPromise.get(e);null!=t&&t.resolve(),this._ownersToPendingPromise.delete(e)},t.getPendingOperationsAffectingOwner=function(e){var t,n=e.identifier,r=this._ownersToPendingOperations.get(n);if(null==r||0===r.size)return null;var a=this._ownersToPendingPromise.get(n);if(null!=a)return{promise:a.promise,pendingOperations:a.pendingOperations};var s=new Promise(function(e){t=e});null!=t||i(!1);var o=Array.from(r.values());return this._ownersToPendingPromise.set(n,{promise:s,resolve:t,pendingOperations:o}),{promise:s,pendingOperations:o}},e}();e.exports=a},10217:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(4584),a=n(41608),s=n(3996),o=i.fromObject(Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0})),l=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(!this._sink.has(e))return this._base.get(e);var t=this._sink.get(e);if(t!==o)return t},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,r.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach(function(n){var r=e.get(n);void 0===r?delete t[n]:t[n]=i.toJSON(r)}),t},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();e.exports={create:function(e){return new l(e)},getOptimisticRecordIDs:function(e){return e instanceof l||s(!1),e.getOptimisticRecordIDs()}}},21338:function(e,t,n){"use strict";var r,i,a=n(48322),s=n(64318),o=n(87214),l=n(31731),u=n(41608),c=n(3996);n(82264);var d=void 0!==n.g?n.g:"undefined"!=typeof window?window:void 0,h=null!==(r=null==d?void 0:null===(i=d.ErrorUtils)||void 0===i?void 0:i.applyWithGuard)&&void 0!==r?r:function(e,t,n,r,i){return e.apply(t,n)},f=function(){function e(e,t,n,r){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=n,this._missingFieldHandlers=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&c(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,n){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:n})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){var t=0===this._appliedOptimisticUpdates&&!!this._gcHold;if(!this._pendingBackupRebase&&0===this._pendingOptimisticUpdates.size&&!t)return[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var n=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(e,n)},t._publishSourceFromPayload=function(e){var t=this,n=e.payload,r=e.operation,i=e.updater,l=n.source,u=n.fieldPayloads,d=new a(this._store.getSource(),l),h=new s(d,this._getDataID,this._handlerProvider,this._missingFieldHandlers);if(u&&u.length&&u.forEach(function(e){var n=t._handlerProvider&&t._handlerProvider(e.handle);n||c(!1),n.update(h,e)}),i){var f=r.fragment;null!=f||c(!1),i(new o(d,h,f,this._missingFieldHandlers),p(l,f))}var m=h.getIDsMarkedForInvalidation();return this._store.publish(l,m),h.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach(function(n){if("payload"===n.kind){var r=e._publishSourceFromPayload(n);t=t||r}else if("source"===n.kind){var i=n.source;e._store.publish(i)}else{var o=n.updater,l=u.create(),c=new a(e._store.getSource(),l),d=new s(c,e._getDataID,e._handlerProvider,e._missingFieldHandlers);h(o,null,[d],null,"RelayPublishQueue:commitData"),t=t||d.isStoreMarkedForInvalidation();var f=d.getIDsMarkedForInvalidation();e._store.publish(l,f)}}),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=u.create(),n=new a(this._store.getSource(),t),r=new s(n,this._getDataID,this._handlerProvider,this._missingFieldHandlers),i=function(t){if(t.storeUpdater)h(t.storeUpdater,null,[r],null,"RelayPublishQueue:applyUpdates");else{var i,a=t.operation,s=t.payload,l=t.updater,u=s.source,c=s.fieldPayloads;u&&r.publishSource(u,c),l&&(u&&(i=p(u,a.fragment)),h(l,null,[new o(n,r,a.fragment,e._missingFieldHandlers),i],null,"RelayPublishQueue:applyUpdates"))}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(i),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){i(t),e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function p(e,t){return l.read(e,t).data}e.exports=f},31731:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(93231)),a=r(n(68532)),s=r(n(9833)),o=n(7109),l=o.ACTOR_CHANGE,u=o.ALIASED_FRAGMENT_SPREAD,c=o.ALIASED_INLINE_FRAGMENT_SPREAD,d=o.CLIENT_EDGE_TO_CLIENT_OBJECT,h=o.CLIENT_EDGE_TO_SERVER_OBJECT,f=o.CLIENT_EXTENSION,p=o.CONDITION,m=o.DEFER,g=o.FRAGMENT_SPREAD,v=o.INLINE_DATA_FRAGMENT_SPREAD,y=o.INLINE_FRAGMENT,_=o.LINKED_FIELD,b=o.MODULE_IMPORT,x=o.RELAY_LIVE_RESOLVER,w=o.RELAY_RESOLVER,k=o.REQUIRED_FIELD,E=o.SCALAR_FIELD,S=o.STREAM,C=n(17461),T=n(26793).isSuspenseSentinel,I=n(48304),R=n(4584),j=n(61332),A=j.CLIENT_EDGE_TRAVERSAL_PATH,D=j.FRAGMENT_OWNER_KEY,P=j.FRAGMENT_PROP_NAME_KEY,N=j.FRAGMENTS_KEY,L=j.ID_KEY,M=j.MODULE_COMPONENT_KEY,O=j.ROOT_ID,F=j.getArgumentValues,U=j.getModuleComponentKey,V=j.getStorageKey,B=n(76627).NoopResolverCache,q=n(9739),Z=q.RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL,z=q.withResolverContext,H=n(35240).generateTypeID,K=n(3996);function W(e,t,n){return new $(e,t,null!=n?n:new B).read()}var $=function(){function e(e,t,n){var r;this._clientEdgeTraversalPath=C.ENABLE_CLIENT_EDGES&&null!==(r=t.clientEdgeTraversalPath)&&void 0!==r&&r.length?(0,s.default)(t.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._errorResponseFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=n,this._resolverErrors=[],this._fragmentName=t.node.name,this._updatedDataIDs=new Set}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,n=e.dataID,r=e.isWithinUnmatchedTypeRefinement,i=t.abstractKey,a=this._recordSource.get(n),s=!r;if(s&&null==i&&null!=a&&R.getType(a)!==t.type&&n!==O&&(s=!1),s&&null!=i&&null!=a){var o=this._implementsInterface(a,i);!1===o?s=!1:null==o&&(this._isMissingData=!0)}this._isWithinUnmatchedTypeRefinement=!s;var l=this._traverse(t,n,null);return this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:l,isMissingData:this._isMissingData&&s,missingClientEdges:C.ENABLE_CLIENT_EDGES&&this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields,relayResolverErrors:this._resolverErrors,errorResponseFields:this._errorResponseFields}},t._maybeAddErrorResponseFields=function(e,t){if(C.ENABLE_FIELD_ERROR_HANDLING){var n=R.getErrors(e,t);if(null!=n){var r=this._fragmentName;null==this._errorResponseFields&&(this._errorResponseFields=[]);var i,s=(0,a.default)(n);try{for(s.s();!(i=s.n()).done;){var o,l=i.value;this._errorResponseFields.push({owner:r,path:(null!==(o=l.path)&&void 0!==o?o:[]).join("."),error:l})}}catch(e){s.e(e)}finally{s.f()}}}},t._markDataAsMissing=function(){if(this._isMissingData=!0,C.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length){var e=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];null!==e&&this._missingClientEdges.push({request:e.readerClientEdge.operation,clientEdgeDestinationID:e.clientEdgeDestinationID})}},t._traverse=function(e,t,n){var r=this._recordSource.get(t);if(this._seenRecords.add(t),null==r)return void 0===r&&this._markDataAsMissing(),r;var i=n||{};return this._traverseSelections(e.selections,r,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||K(!1),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t){if((null===(n=this._missingRequiredFields)||void 0===n?void 0:n.action)!=="THROW"){var n,r=this._fragmentName;switch(t){case"THROW":this._missingRequiredFields={action:t,field:{path:e,owner:r}};return;case"LOG":null==this._missingRequiredFields?this._missingRequiredFields={action:t,fields:[{path:e,owner:r}]}:this._missingRequiredFields={action:t,fields:[].concat((0,s.default)(this._missingRequiredFields.fields),[{path:e,owner:r}])};return}}},t._traverseSelections=function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];switch(i.kind){case k:if(null==this._readRequiredField(i,t,n)){var a=i.action;return"NONE"!==a&&this._maybeReportUnexpectedNull(i.path,a),!1}break;case E:this._readScalar(i,t,n);break;case _:i.plural?this._readPluralLink(i,t,n):this._readLink(i,t,n);break;case p:if(Boolean(this._getVariableValue(i.condition))===i.passingValue&&!this._traverseSelections(i.selections,t,n))return!1;break;case y:if(!1===this._readInlineFragment(i,t,n))return!1;break;case x:case w:if(!C.ENABLE_RELAY_RESOLVERS)throw Error("Relay Resolver fields are not yet supported.");this._readResolverField(i,t,n);break;case g:this._createFragmentPointer(i,t,n);break;case u:n[i.name]=this._createAliasedFragmentSpread(i,t);break;case c:var s=this._readInlineFragment(i.fragment,t,{});!1===s&&(s=null),n[i.name]=s;break;case b:this._readModuleImport(i,t,n);break;case v:this._createInlineDataOrResolverFragmentPointer(i,t,n);break;case m:case f:var o=this._isMissingData,T=this._missingClientEdges.length;C.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.push(null);var I=this._traverseSelections(i.selections,t,n);if(this._isMissingData=o||this._missingClientEdges.length>T||this._missingLiveResolverFields.length>0,C.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.pop(),!I)return!1;break;case S:if(!this._traverseSelections(i.selections,t,n))return!1;break;case l:this._readActorChange(i,t,n);break;case d:case h:if(C.ENABLE_CLIENT_EDGES)this._readClientEdge(i,t,n);else throw Error("Client edges are not yet supported.");break;default:K(!1)}}return!0},t._readRequiredField=function(e,t,n){switch(e.field.kind){case E:return this._readScalar(e.field,t,n);case _:if(e.field.plural)return this._readPluralLink(e.field,t,n);return this._readLink(e.field,t,n);case w:case x:if(!C.ENABLE_RELAY_RESOLVERS)throw Error("Relay Resolver fields are not yet supported.");return this._readResolverField(e.field,t,n);case d:case h:if(!C.ENABLE_RELAY_RESOLVERS)throw Error("Relay Resolver fields are not yet supported.");return this._readClientEdge(e.field,t,n);default:e.field.kind,K(!1)}},t._readResolverField=function(e,t,n){var r,i=R.getDataID(t),a=this._readResolverFieldImpl(e,i);return n[null!==(r=e.alias)&&void 0!==r?r:e.name]=a,a},t._readResolverFieldImpl=function(e,t){var n,r=this,a=e.fragment,s=function(e){return null!=n?{data:n.data,isMissingData:n.isMissingData}:{data:(n=W(r._recordSource,e,r._resolverCache)).data,isMissingData:n.isMissingData}},o=this._resolverCache.readFromCacheOrEvaluate(t,e,this._variables,function(){if(null!=a){var o={__id:t,__fragmentOwner:r._owner,__fragments:(0,i.default)({},a.name,a.args?F(a.args,r._variables):{})};return z({getDataForResolverFragment:s},function(){var t=G(e,r._variables,o);return{resolverResult:t[0],snapshot:n,error:t[1]}})}var l=G(e,r._variables,null);return{resolverResult:l[0],snapshot:void 0,error:l[1]}},s),l=o[0],u=o[1],c=o[2],d=o[3],h=o[4],f=o[5];return this._propogateResolverMetadata(e.path,d,c,u,h,f),l},t._propogateResolverMetadata=function(e,t,n,r,i,s){if(null!=t){if(null!=t.missingRequiredFields&&this._addMissingRequiredFields(t.missingRequiredFields),null!=t.missingClientEdges){var o,l=(0,a.default)(t.missingClientEdges);try{for(l.s();!(o=l.n()).done;){var u=o.value;this._missingClientEdges.push(u)}}catch(e){l.e(e)}finally{l.f()}}if(null!=t.missingLiveResolverFields){this._isMissingData=this._isMissingData||t.missingLiveResolverFields.length>0;var c,d=(0,a.default)(t.missingLiveResolverFields);try{for(d.s();!(c=d.n()).done;){var h=c.value;this._missingLiveResolverFields.push(h)}}catch(e){d.e(e)}finally{d.f()}}var f,p=(0,a.default)(t.relayResolverErrors);try{for(p.s();!(f=p.n()).done;){var m=f.value;this._resolverErrors.push(m)}}catch(e){p.e(e)}finally{p.f()}this._isMissingData=this._isMissingData||t.isMissingData}if(n&&this._resolverErrors.push({field:{path:e,owner:this._fragmentName},error:n}),null!=r&&this._seenRecords.add(r),null!=i&&(this._isMissingData=!0,this._missingLiveResolverFields.push({path:"".concat(this._fragmentName,".").concat(e),liveStateID:i})),null!=s){var g,v=(0,a.default)(s);try{for(v.s();!(g=v.n()).done;){var y=g.value;this._updatedDataIDs.add(y)}}catch(e){v.e(e)}finally{v.f()}}},t._readClientEdge=function(e,t,n){var r,i=this,a=e.backingField;"ClientExtension"!==a.kind||K(!1);var s=null!==(r=a.alias)&&void 0!==r?r:a.name,o={};this._traverseSelections([a],t,o);var l=o[s];if(null==l||T(l))return n[s]=l,l;var u=e.linkedField.plural?(Array.isArray(l)||K(!1),{kind:"PluralConcrete",ids:l.map(function(e){return Y(e,"Expected this plural Client Edge Relay Resolver to return an array containing IDs or objects with shape {id}.")})}):{kind:"SingularConcrete",id:Y(l,"Expected this Client Edge Relay Resolver to return an ID of type `string` or an object with shape {id}.")};switch(u.kind){case"PluralConcrete":var c=function(e,t,n){if(e.kind===d){if(null!=e.backingField.normalizationInfo)return t;var r=e.concreteType;return null!=r||K(!1),t.map(function(e){return n.ensureClientRecord(e,r)})}K(!1)}(e,u.ids,this._resolverCache),h=c;if(null!=e.modelResolver){var f=e.modelResolver;h=c.map(function(e){return null!=i._readResolverFieldImpl(f,e)?e:null})}this._clientEdgeTraversalPath.push(null);var p=this._readLinkedIds(e.linkedField,h,t,n);return this._clientEdgeTraversalPath.pop(),n[s]=p,p;case"SingularConcrete":var m=function(e,t,n){if(e.kind!==d)return[t,{readerClientEdge:e,clientEdgeDestinationID:t}];if(null!=e.backingField.normalizationInfo)return[t,null];var r=e.concreteType;return null!=r||K(!1),[n.ensureClientRecord(t,r),null]}(e,u.id,this._resolverCache),g=m[0],v=m[1];if(null!=e.modelResolver&&null==this._readResolverFieldImpl(e.modelResolver,g))return n[s]=null,null;this._clientEdgeTraversalPath.push(v);var y=n[s];null==y||"object"==typeof y||K(!1);var _=this._traverse(e.linkedField,g,y);return this._clientEdgeTraversalPath.pop(),n[s]=_,_;default:u.kind}},t._readScalar=function(e,t,n){var r,i=null!==(r=e.alias)&&void 0!==r?r:e.name,a=V(e,this._variables),s=R.getValue(t,a);return null===s?this._maybeAddErrorResponseFields(t,a):void 0===s&&this._markDataAsMissing(),n[i]=s,s},t._readLink=function(e,t,n){var r,i=null!==(r=e.alias)&&void 0!==r?r:e.name,a=V(e,this._variables),s=R.getLinkedRecordID(t,a);if(null==s)return n[i]=s,null===s?this._maybeAddErrorResponseFields(t,a):void 0===s&&this._markDataAsMissing(),s;var o=n[i];null==o||"object"==typeof o||K(!1);var l=this._traverse(e,s,o);return n[i]=l,l},t._readActorChange=function(e,t,n){var r,i=null!==(r=e.alias)&&void 0!==r?r:e.name,a=V(e,this._variables),s=R.getActorLinkedRecordID(t,a);if(null==s)return n[i]=s,void 0===s?this._markDataAsMissing():null===s&&this._maybeAddErrorResponseFields(t,a),n[i];var o=s[0],l=s[1],u={};return this._createFragmentPointer(e.fragmentSpread,R.fromObject({__id:l}),u),n[i]={__fragmentRef:u,__viewer:o},n[i]},t._readPluralLink=function(e,t,n){var r=V(e,this._variables),i=R.getLinkedRecordIDs(t,r);return null===i&&this._maybeAddErrorResponseFields(t,r),this._readLinkedIds(e,i,t,n)},t._readLinkedIds=function(e,t,n,r){var i,a=this,s=null!==(i=e.alias)&&void 0!==i?i:e.name;if(null==t)return r[s]=t,void 0===t&&this._markDataAsMissing(),t;var o=r[s];null==o||Array.isArray(o)||K(!1);var l=o||[];return t.forEach(function(t,n){if(null==t){void 0===t&&a._markDataAsMissing(),l[n]=t;return}var r=l[n];null==r||"object"==typeof r||K(!1),l[n]=a._traverse(e,t,r)}),r[s]=l,l},t._readModuleImport=function(e,t,n){var r=U(e.documentName),i=R.getValue(t,r);if(null==i){void 0===i&&this._markDataAsMissing();return}this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,n),n[P]=e.fragmentPropName,n[M]=i},t._createAliasedFragmentSpread=function(e,t){var n=e.abstractKey;if(null==n){var r=R.getType(t);if(null==r||r!==e.type)return null}else{var i=this._implementsInterface(t,n);if(!1===i)return null;if(null==i){this._markDataAsMissing();return}}var a={};return this._createFragmentPointer(e.fragment,t,a),R.fromObject(a)},t._readInlineFragment=function(e,t,n){var r=e.abstractKey;if(null==r){var i=R.getType(t);if(null==i||i!==e.type)return null;if(!this._traverseSelections(e.selections,t,n))return!1}else{var a=this._implementsInterface(t,r),s=this._isMissingData,o=this._isWithinUnmatchedTypeRefinement;if(this._isWithinUnmatchedTypeRefinement=o||!1===a,this._traverseSelections(e.selections,t,n),this._isWithinUnmatchedTypeRefinement=o,!1===a){this._isMissingData=s;return}if(null==a)return this._markDataAsMissing(),null}return n},t._createFragmentPointer=function(e,t,n){var r=n[N];null==r&&(r=n[N]={}),"object"==typeof r&&null!=r||K(!1),null==n[L]&&(n[L]=R.getDataID(t)),r[e.name]=F(e.args,this._variables,this._isWithinUnmatchedTypeRefinement),n[D]=this._owner,C.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length>0&&null!==this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]&&(n[A]=(0,s.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(e,t,n){var r=n[N];null==r&&(r=n[N]={}),"object"==typeof r&&null!=r||K(!1),null==n[L]&&(n[L]=R.getDataID(t));var i={},a=this._fragmentName;this._fragmentName=e.name;var s=this._variables,o=e.args?F(e.args,this._variables):{};this._variables=I.getFragmentVariables(e,this._owner.variables,o),this._traverseSelections(e.selections,t,i),this._variables=s,this._fragmentName=a,r[e.name]=i},t._addMissingRequiredFields=function(e){if(null==this._missingRequiredFields){this._missingRequiredFields=e;return}if("THROW"!==this._missingRequiredFields.action){if("THROW"===e.action){this._missingRequiredFields=e;return}this._missingRequiredFields={action:"LOG",fields:[].concat((0,s.default)(this._missingRequiredFields.fields),(0,s.default)(e.fields))}}},t._implementsInterface=function(e,t){var n=R.getType(e),r=this._recordSource.get(H(n));return null!=r?R.getValue(r,t):null},e}();function G(e,t,n){var r="function"==typeof e.resolverModule?e.resolverModule:e.resolverModule.default,i=null,a=null;try{var s=[];null!=e.fragment&&s.push(n);var o=e.args?F(e.args,t):void 0;s.push(o),i=r.apply(null,s)}catch(e){e===Z?i=void 0:a=e}return[i,a]}function Y(e,t){return"string"==typeof e?e:"object"==typeof e&&null!=e&&"string"==typeof e.id?e.id:void K(!1)}e.exports={read:W}},41608:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(4584),a=n(44456),s=a.EXISTENT,o=a.NONEXISTENT,l=a.UNKNOWN,u=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach(function(n){var r=e[n],a=i.fromObject(r);t._records.set(n,a)})}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?o:s:l},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},n=(0,r.default)(this._records);try{for(n.s();!(e=n.n()).done;){var a=e.value,s=a[0],o=a[1];t[s]=i.toJSON(o)}}catch(e){n.e(e)}finally{n.f()}return t},e}();e.exports=u},44456:function(e){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},44010:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(95001),a=n(7109),s=n(88240),o=n(10486),l=n(48304).getLocalVariables,u=n(4584),c=n(61332),d=n(35240).generateTypeID,h=n(3996),f=a.ACTOR_CHANGE,p=a.CONDITION,m=a.CLIENT_COMPONENT,g=a.CLIENT_EXTENSION,v=a.DEFER,y=a.FRAGMENT_SPREAD,_=a.INLINE_FRAGMENT,b=a.LINKED_FIELD,x=a.MODULE_IMPORT,w=a.LINKED_HANDLE,k=a.SCALAR_FIELD,E=a.SCALAR_HANDLE,S=a.STREAM,C=a.TYPE_DISCRIMINATOR,T=a.RELAY_RESOLVER,I=a.RELAY_LIVE_RESOLVER,R=a.CLIENT_EDGE_TO_CLIENT_OBJECT,j=c.getStorageKey,A=c.getModuleOperationKey,D=function(){function e(e,t,n,r,i){this._operationLoader=null!=r?r:null,this._operationName=null,this._recordSource=e,this._references=n,this._variables=t,this._shouldProcessClientComponents=i}var t=e.prototype;return t.mark=function(e,t){("Operation"===e.kind||"SplitOperation"===e.kind)&&(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var n=this._recordSource.get(t);null!=n&&this._traverseSelections(e.selections,n)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||h(!1),this._variables[e]},t._traverseSelections=function(e,t){var n=this;e.forEach(function(r){switch(r.kind){case f:n._traverseLink(r.linkedField,t);break;case b:r.plural?n._traversePluralLink(r,t):n._traverseLink(r,t);break;case p:Boolean(n._getVariableValue(r.condition))===r.passingValue&&n._traverseSelections(r.selections,t);break;case _:if(null==r.abstractKey){var i=u.getType(t);(null!=i&&i===r.type||i===c.ROOT_TYPE)&&n._traverseSelections(r.selections,t)}else{var a=d(u.getType(t));n._references.add(a),n._traverseSelections(r.selections,t)}break;case y:var o=n._variables;n._variables=l(n._variables,r.fragment.argumentDefinitions,r.args),n._traverseSelections(r.fragment.selections,t),n._variables=o;break;case w:var j=s(r,e,n._variables);j.plural?n._traversePluralLink(j,t):n._traverseLink(j,t);break;case v:case S:n._traverseSelections(r.selections,t);break;case k:case E:break;case C:var A=d(u.getType(t));n._references.add(A);break;case x:n._traverseModuleImport(r,t);break;case g:n._traverseSelections(r.selections,t);break;case m:if(!1===n._shouldProcessClientComponents)break;n._traverseSelections(r.fragment.selections,t);break;case T:case I:n._traverseResolverField(r,t);break;case R:n._traverseClientEdgeToClientObject(r,t);break;default:h(!1)}})},t._traverseClientEdgeToClientObject=function(e,t){var n=this._traverseResolverField(e.backingField,t);if(null!=n){var i=this._recordSource.get(n);if(null!=i){if(e.backingField.isOutputType){var a=o(i);if(null!=a){var s,l=(0,r.default)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;this._references.add(c)}}catch(e){l.e(e)}finally{l.f()}}}else{var d=e.linkedField,h=d.concreteType;if(null==h)return;if(d.plural){var f=u.getResolverLinkedRecordIDs(i,h);if(null!=f){var p,m=(0,r.default)(f);try{for(m.s();!(p=m.n()).done;){var g=p.value;null!=g&&this._traverse(d,g)}}catch(e){m.e(e)}finally{m.f()}}}else{var v=u.getResolverLinkedRecordID(i,h);null!=v&&this._traverse(d,v)}}}}},t._traverseResolverField=function(e,t){var n=j(e,this._variables),r=u.getLinkedRecordID(t,n);null!=r&&this._references.add(r);var i=e.fragment;return null!=i&&this._traverseSelections([i],t),r},t._traverseModuleImport=function(e,t){var n=this._operationLoader;null!==n||h(!1);var r=A(e.documentName),a=u.getValue(t,r);if(null!=a){var s=n.get(a);if(null!=s){var o=i(s),c=this._variables;this._variables=l(this._variables,o.argumentDefinitions,e.args),this._traverseSelections(o.selections,t),this._variables=c}}},t._traverseLink=function(e,t){var n=j(e,this._variables),r=u.getLinkedRecordID(t,n);null!=r&&this._traverse(e,r)},t._traversePluralLink=function(e,t){var n=this,r=j(e,this._variables),i=u.getLinkedRecordIDs(t,r);null!=i&&i.forEach(function(t){null!=t&&n._traverse(e,t)})},e}();e.exports={mark:function(e,t,n,r,i){var a=t.dataID,s=t.node,o=t.variables;new D(e,o,n,r,i).mark(s,a)}}},14183:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(68532)),a=r(n(9833)),s=n(65608),o=(s.ACTOR_IDENTIFIER_FIELD_NAME,s.getActorIdentifierFromPayload),l=n(7109),u=l.ACTOR_CHANGE,c=l.CLIENT_COMPONENT,d=l.CLIENT_EDGE_TO_CLIENT_OBJECT,h=l.CLIENT_EXTENSION,f=l.CONDITION,p=l.DEFER,m=l.FRAGMENT_SPREAD,g=l.INLINE_FRAGMENT,v=l.LINKED_FIELD,y=l.LINKED_HANDLE,_=l.MODULE_IMPORT,b=l.RELAY_LIVE_RESOLVER,x=l.RELAY_RESOLVER,w=l.SCALAR_FIELD,k=l.SCALAR_HANDLE,E=l.STREAM,S=l.TYPE_DISCRIMINATOR,C=n(65346),T=C.generateClientID;C.isClientID;var I=n(48304).getLocalVariables,R=n(62242),j=R.buildErrorTrie,A=R.getErrorsByKey,D=R.getNestedErrorTrieByKey,P=n(4584),N=n(20028).createNormalizationSelector,L=n(61332),M=(L.ROOT_ID,L.TYPENAME_KEY),O=L.getArgumentValues,F=L.getHandleStorageKey,U=L.getModuleComponentKey,V=L.getModuleOperationKey,B=L.getStorageKey,q=n(35240),Z=q.TYPE_SCHEMA_TYPE,z=q.generateTypeID;n(2971);var H=n(3996);n(82264);var K=function(){function e(e,t,n){this._actorIdentifier=n.actorIdentifier,this._getDataId=n.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=n.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=n.path?(0,a.default)(n.path):[],this._recordSource=e,this._variables=t,this._shouldProcessClientComponents=n.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,n,r){var i=this._recordSource.get(t);return i||H(!1),this._assignClientAbstractTypes(e),this._errorTrie=j(r),this._traverseSelections(e,i,n),{errors:r,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var n=0,r=Object.keys(t);n<r.length;n++){var a,s=r[n],o=(0,i.default)(t[s]);try{for(o.s();!(a=o.n()).done;){var l=a.value,u=z(l),c=this._recordSource.get(u);null==c&&(c=P.create(u,Z),this._recordSource.set(u,c)),P.setValue(c,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||H(!1),this._variables[e]},t._getRecordType=function(e){var t=e[M];return null!=t||H(!1),t},t._traverseSelections=function(e,t,n){for(var r=0;r<e.selections.length;r++){var i=e.selections[r];switch(i.kind){case w:case v:this._normalizeField(i,t,n);break;case f:Boolean(this._getVariableValue(i.condition))===i.passingValue&&this._traverseSelections(i,t,n);break;case m:var a=this._variables;this._variables=I(this._variables,i.fragment.argumentDefinitions,i.args),this._traverseSelections(i.fragment,t,n),this._variables=a;break;case g:var s=i.abstractKey;if(null==s)P.getType(t)===i.type&&this._traverseSelections(i,t,n);else{var o=n.hasOwnProperty(s),l=z(P.getType(t)),C=this._recordSource.get(l);null==C&&(C=P.create(l,Z),this._recordSource.set(l,C)),P.setValue(C,s,o),o&&this._traverseSelections(i,t,n)}break;case S:var T=i.abstractKey,R=n.hasOwnProperty(T),j=z(P.getType(t)),A=this._recordSource.get(j);null==A&&(A=P.create(j,Z),this._recordSource.set(j,A)),P.setValue(A,T,R);break;case y:case k:var D=i.args?O(i.args,this._variables):{},N=B(i,this._variables),L=F(i,this._variables);this._handleFieldPayloads.push({args:D,dataID:P.getDataID(t),fieldKey:N,handle:i.handle,handleKey:L,handleArgs:i.handleArgs?O(i.handleArgs,this._variables):{}});break;case _:this._normalizeModuleImport(i,t,n);break;case p:this._normalizeDefer(i,t,n);break;case E:this._normalizeStream(i,t,n);break;case h:var M=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,n),this._isClientExtension=M;break;case c:if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(i.fragment,t,n);break;case u:this._normalizeActorChange(i,t,n);break;case x:case b:this._normalizeResolver(i,t,n);break;case d:this._normalizeResolver(i.backingField,t,n);break;default:H(!1)}}},t._normalizeResolver=function(e,t,n){null!=e.fragment&&this._traverseSelections(e.fragment,t,n)},t._normalizeDefer=function(e,t,n){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,n):this._incrementalPlaceholders.push({kind:"defer",data:n,label:e.label,path:(0,a.default)(this._path),selector:N(e,P.getDataID(t),this._variables),typeName:P.getType(t),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(e,t,n){this._traverseSelections(e,t,n),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,a.default)(this._path),parentID:P.getDataID(t),node:e,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(e,t,n){"object"==typeof n&&n||H(!1);var r=P.getType(t),i=U(e.documentName),s=e.componentModuleProvider||n[i];P.setValue(t,i,null!=s?s:null);var o=V(e.documentName),l=e.operationModuleProvider||n[o];P.setValue(t,o,null!=l?l:null),null!=l&&this._followupPayloads.push({kind:"ModuleImportPayload",args:e.args,data:n,dataID:P.getDataID(t),operationReference:l,path:(0,a.default)(this._path),typeName:r,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(e,t,n){"object"==typeof n&&n||H(!1);var r=e.alias||e.name,i=B(e,this._variables),a=n[r];if(null==a){if(void 0===a&&(this._isClientExtension||this._isUnmatchedAbstractType||!this._treatMissingFieldsAsNull))return;P.setValue(t,i,null);var s=this._errorTrie;if(null!=s){var o=A(s,r);null!=o&&P.setErrors(t,i,o)}return}if(e.kind===w)P.setValue(t,i,a);else if(e.kind===v){this._path.push(r);var l=this._errorTrie;this._errorTrie=null==l?null:D(l,r),e.plural?this._normalizePluralLink(e,t,i,a):this._normalizeLink(e,t,i,a),this._errorTrie=l,this._path.pop()}else H(!1)},t._normalizeActorChange=function(e,t,n){var r,i=e.linkedField;"object"==typeof n&&n||H(!1);var s=i.alias||i.name,l=B(i,this._variables),u=n[s];if(null==u){if(void 0===u&&(this._isClientExtension||this._isUnmatchedAbstractType||!this._treatMissingFieldsAsNull))return;P.setValue(t,l,null);return}var c=o(u);if(null==c){P.setValue(t,l,null);return}var d=null!==(r=i.concreteType)&&void 0!==r?r:this._getRecordType(u),h=this._getDataId(u,d)||P.getLinkedRecordID(t,l)||T(P.getDataID(t),l);"string"!=typeof h&&H(!1),P.setActorLinkedRecordID(t,l,c,h),this._followupPayloads.push({kind:"ActorPayload",data:u,dataID:h,path:[].concat((0,a.default)(this._path),[s]),typeName:d,variables:this._variables,node:i,actorIdentifier:c})},t._normalizeLink=function(e,t,n,r){"object"==typeof r&&r||H(!1);var i,a=this._getDataId(r,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(r))||P.getLinkedRecordID(t,n)||T(P.getDataID(t),n);"string"!=typeof a&&H(!1),P.setLinkedRecordID(t,n,a);var s=this._recordSource.get(a);if(s);else{var o=e.concreteType||this._getRecordType(r);s=P.create(a,o),this._recordSource.set(a,s)}this._traverseSelections(e,s,r)},t._normalizePluralLink=function(e,t,n,r){var i=this;Array.isArray(r)||H(!1);var a=P.getLinkedRecordIDs(t,n),s=[];r.forEach(function(r,o){if(null==r){s.push(r);return}i._path.push(String(o));var l,u=i._errorTrie;i._errorTrie=null==u?null:D(u,o),"object"!=typeof r&&H(!1);var c=i._getDataId(r,null!==(l=e.concreteType)&&void 0!==l?l:i._getRecordType(r))||a&&a[o]||T(P.getDataID(t),n,o);"string"!=typeof c&&H(!1),s.push(c);var d=i._recordSource.get(c);if(d);else{var h=e.concreteType||i._getRecordType(r);d=P.create(c,h),i._recordSource.set(c,d)}i._traverseSelections(e,d,r),i._errorTrie=u,i._path.pop()}),P.setLinkedRecordIDs(t,n,s)},t._validateRecordType=function(e,t,n){var r;null!==(r=t.concreteType)&&void 0!==r||this._getRecordType(n),P.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,n){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,n){},e}();e.exports={normalize:function(e,t,n,r,i){var a=t.dataID,s=t.node,o=t.variables;return new K(e,o,r).normalizeResponse(s,a,n,i)}}},5731:function(e,t,n){"use strict";n(40787);var r=n(23021),i=n(17461),a=n(66559),s=n(4201),o=n(31731),l=function(){function e(e,t){this._subscriptions=new Set,this.__log=e,this._resolverCache=t}var t=e.prototype;return t.subscribe=function(e,t){var n=this,r={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(r),{dispose:function(){n._subscriptions.delete(r)}}},t.snapshotSubscriptions=function(e){var t=this;this._subscriptions.forEach(function(n){if(!n.stale){n.backup=n.snapshot;return}var i=n.snapshot,a=o.read(e,i.selector,t._resolverCache),s=r(i.data,a.data);a.data=s,n.backup=a})},t.restoreSubscriptions=function(){this._subscriptions.forEach(function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields}):e.stale=!0})},t.updateSubscriptions=function(e,t,n,r){var i=this,a=0!==t.size;this._subscriptions.forEach(function(s){var o=i._updateSubscription(e,s,t,a,r);null!=o&&n.push(o)})},t._updateSubscription=function(e,t,n,l,u){var c=t.backup,d=t.callback,h=t.snapshot,f=t.stale,p=l&&a(h.seenRecords,n);if(f||p){var m=p||!c?o.read(e,h.selector,this._resolverCache):c;return(m={data:r(h.data,m.data),isMissingData:m.isMissingData,missingClientEdges:m.missingClientEdges,missingLiveResolverFields:m.missingLiveResolverFields,seenRecords:m.seenRecords,selector:m.selector,missingRequiredFields:m.missingRequiredFields,relayResolverErrors:m.relayResolverErrors,errorResponseFields:m.errorResponseFields},t.snapshot=m,t.stale=!1,m.data!==h.data)?(this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:h,nextSnapshot:m}),d(m),h.selector.owner):i.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION&&(f||s(h.seenRecords,n))?h.selector.owner:void 0}},e}();e.exports=l},61332:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(9833)),i=n(61193),a=n(7109),s=n(88672),o=n(3996),l=a.VARIABLE,u=a.LITERAL,c=a.OBJECT_VALUE,d=a.LIST_VALUE;function h(e,t){if(e.kind===l){var n;return n=e.variableName,t.hasOwnProperty(n)||o(!1),s(t[n])}if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach(function(e){r[e.name]=h(e,t)}),r}if(e.kind===d){var i=[];return e.items.forEach(function(e){null!=e&&i.push(h(e,t))}),i}}function f(e,t,n){var r={};return n&&(r[m.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach(function(e){r[e.name]=h(e,t)}),r}function p(e,t){if(!t)return e;var n=[];for(var r in t)if(t.hasOwnProperty(r)){var i,a=t[r];null!=a&&n.push(r+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===n.length?e:e+"(".concat(n.join(","),")")}var m={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:p,getArgumentValue:h,getArgumentValues:f,getHandleStorageKey:function(e,t){var n=e.dynamicKey,a=e.handle,s=e.key,o=e.name,l=e.args,u=e.filters,c=i(a,s,o),d=null;return(l&&u&&0!==l.length&&0!==u.length&&(d=l.filter(function(e){return u.indexOf(e.name)>-1})),n&&(d=null!=d?[n].concat((0,r.default)(d)):[n]),null===d)?c:p(c,f(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var n=function(e){if("RelayResolver"===e.kind||"RelayLiveResolver"===e.kind){var t,n;return null==e.args?null===(n=e.fragment)||void 0===n?void 0:n.args:(null===(t=e.fragment)||void 0===t?void 0:t.args)==null?e.args:e.args.concat(e.fragment.args)}return void 0===e.args?void 0:e.args}(e),r=e.name;return n&&0!==n.length?p(r,f(n,t)):r},getStableStorageKey:function(e,t){return p(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=m},76627:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(23021),a=n(7109).RELAY_LIVE_RESOLVER,s=n(17461),o=n(61691),l=n(65346).generateClientID,u=n(4584),c=n(61332),d=c.RELAY_RESOLVER_ERROR_KEY,h=c.RELAY_RESOLVER_INVALIDATION_KEY,f=c.RELAY_RESOLVER_SNAPSHOT_KEY,p=c.RELAY_RESOLVER_VALUE_KEY,m=c.getStorageKey,g=n(3996);n(82264);var v=new Set,y=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,n,r,i){t.kind!==a||g(!1);var s=r(),o=s.resolverResult,l=s.snapshot;return[o,void 0,s.error,l,void 0,void 0]},t.invalidateDataIDs=function(e){},t.ensureClientRecord=function(e,t){g(!1)},t.notifyUpdatedSubscribers=function(e){},e}();function _(e,t,n){var r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}var b=function(){function e(e){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,n,i,a){var c=this._getRecordSource(),h=c.get(e);null!=h||g(!1);var v=m(t,n),y=u.getLinkedRecordID(h,v),b=null==y?null:c.get(y);if(null==b||this._isInvalid(b,a)){y=null!==(C=y)&&void 0!==C?C:l(e,v),b=u.create(y,"__RELAY_RESOLVER__");var x=i();s.ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES&&o(x.resolverResult),u.setValue(b,p,x.resolverResult),u.setValue(b,f,x.snapshot),u.setValue(b,d,x.error),c.set(y,b);var w=c.get(e);null!=w||g(!1);var k=u.clone(w);if(u.setLinkedRecordID(k,v,y),c.set(e,k),null!=t.fragment){var E=l(e,m(t.fragment,n));_(this._resolverIDToRecordIDs,E,y),_(this._recordIDToResolverIDs,e,E);var S=null===(T=x.snapshot)||void 0===T?void 0:T.seenRecords;if(null!=S){var C,T,I,R=(0,r.default)(S);try{for(R.s();!(I=R.n()).done;){var j=I.value;_(this._recordIDToResolverIDs,j,E)}}catch(e){R.e(e)}finally{R.f()}}}}var A=u.getValue(b,p),D=u.getValue(b,f),P=u.getValue(b,d);return[A,y,P,D,void 0,void 0]},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),n=new Set,i=Array.from(e);i.length;){var a=i.pop();e.add(a);var s,o=(0,r.default)(null!==(u=this._recordIDToResolverIDs.get(a))&&void 0!==u?u:v);try{for(o.s();!(s=o.n()).done;){var l=s.value;if(!n.has(l)){var u,c,d=(0,r.default)(null!==(h=this._resolverIDToRecordIDs.get(l))&&void 0!==h?h:v);try{for(d.s();!(c=d.n()).done;){var h,f=c.value;this._markInvalidatedResolverRecord(f,t,e),n.has(f)||i.push(f)}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){o.e(e)}finally{o.f()}}},t._markInvalidatedResolverRecord=function(e,t,n){var r=t.get(e);if(r){var i=u.clone(r);u.setValue(i,h,!0),t.set(e,i)}},t._isInvalid=function(e,t){if(!u.getValue(e,h))return!1;var n=u.getValue(e,f),r=null==n?void 0:n.data,a=null==n?void 0:n.selector;return null==r||null==a||i(r,t(a).data)!==r},t.ensureClientRecord=function(e,t){g(!1)},t.notifyUpdatedSubscribers=function(e){g(!1)},e}();e.exports={NoopResolverCache:y,RecordResolverCache:b}},9739:function(e,t,n){"use strict";var r=n(45472).getFragment,i=n(20028).getSelector,a=n(3996),s=[],o={};e.exports={readFragment:function(e,t){if(!s.length)throw Error("readFragment should be called only from within a Relay Resolver function.");var n=s[s.length-1],l=i(r(e),t);null!=l||a(!1),"SingularReaderSelector"!==l.kind&&a(!1);var u=n.getDataForResolverFragment(l,t),c=u.data;if(u.isMissingData)throw o;return c},withResolverContext:function(e,t){s.push(e);try{return t()}finally{s.pop()}},RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL:o}},35240:function(e){"use strict";var t="client:__type:";e.exports={generateTypeID:function(e){return t+e},isTypeID:function(e){return 0===e.indexOf(t)},TYPE_SCHEMA_TYPE:"__TypeSchema"}},48573:function(e,t,n){"use strict";var r=(0,n(65346).generateClientID)(n(61332).ROOT_ID,"viewer");e.exports={VIEWER_ID:r,VIEWER_TYPE:"Viewer"}},88240:function(e,t,n){"use strict";var r=n(7109).LINKED_FIELD,i=n(61332).getHandleStorageKey,a=n(2971),s=n(3996);e.exports=function(e,t,n){var o=t.find(function(t){return t.kind===r&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)});o&&o.kind===r||s(!1);var l=i(e,n);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},91404:function(e,t,n){"use strict";var r=n(7109).SCALAR_FIELD,i=n(61332).getHandleStorageKey,a=n(2971),s=n(3996);e.exports=function(e,t,n){var o=t.find(function(t){return t.kind===r&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)});o&&o.kind===r||s(!1);var l=i(e,n);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},74479:function(e,t,n){"use strict";var r=n(16010);n(82264),e.exports=function(e,t,n,i,a,s){return new r(e,n,i,s,a)}},70719:function(e,t,n){"use strict";var r,i,a=n(3996);e.exports=function(e){return r||(r=e.createContext(null),i=e),e!==i&&a(!1),r}},74759:function(e,t,n){"use strict";var r=n(48573),i=r.VIEWER_ID,a=r.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},85754:function(e){"use strict";e.exports=function(e){}},26793:function(e){"use strict";var t=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});e.exports={isSuspenseSentinel:function(e){return e===t},suspenseSentinel:function(){return t}}},10486:function(e,t,n){"use strict";var r=n(4584),i=n(61332).RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,a=n(3996);e.exports=function(e){var t=r.getValue(e,i);return null==t?null:(t instanceof Set||a(!1),t)}},66559:function(e){"use strict";var t=Symbol.iterator;e.exports=function(e,n){for(var r=e[t](),i=r.next();!i.done;){var a=i.value;if(n.has(a))return!0;i=r.next()}return!1}},4201:function(e,t,n){"use strict";var r=n(61332).ROOT_ID,i=n(48573).VIEWER_ID,a=Symbol.iterator;e.exports=function(e,t){for(var n=e[a](),s=n.next();!s.done;){var o=s.value;if(t.has(o)&&o!==r&&o!==i)return!0;s=n.next()}return!1}},23165:function(e){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},71613:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(80624)),a=r(n(4584)),s=r(n(41608)),o=r(n(14183));e.exports=function(e,t,n,r){var l,u=e.data,c=e.errors,d=s.default.create(),h=a.default.create(t.dataID,n);d.set(t.dataID,h);var f=o.default.normalize(d,t,u,r,c);return(0,i.default)((0,i.default)({},f),{},{isFinal:(null===(l=e.extensions)||void 0===l?void 0:l.is_final)===!0})}},45255:function(e,t,n){"use strict";var r=n(45472).getInlineDataFragment,i=n(61332).FRAGMENTS_KEY,a=n(3996);e.exports=function(e,t){var n,s=r(e);if(null==t)return t;"object"!=typeof t&&a(!1);var o=null===(n=t[i])||void 0===n?void 0:n[s.name];return null!=o||a(!1),o}},847:function(e,t,n){"use strict";var r=n(53573),i=n(45472).getRequest,a=n(73671).createOperationDescriptor,s=n(20028).createReaderSelector;n(82264),e.exports=function(e,t){var n=i(t.subscription);if("subscription"!==n.params.operationKind)throw Error("requestSubscription: Must use Subscription operation");var o=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=a(n,t.variables,t.cacheConfig),h=(o?r.convert(o,n,null,t.updater):t).updater;return{dispose:e.executeSubscription({operation:d,updater:h}).subscribe({next:function(t){if(null!=c){var n,r,i,a,o=d.fragment;"string"==typeof(n=Array.isArray(t)?null===(r=t[0])||void 0===r?void 0:null===(i=r.extensions)||void 0===i?void 0:i.__relay_subscription_root_id:null===(a=t.extensions)||void 0===a?void 0:a.__relay_subscription_root_id)&&(o=s(o.node,n,o.variables,o.owner)),c(e.lookup(o).data)}},error:u,complete:l}).unsubscribe}}},7109:function(e){"use strict";e.exports={ACTOR_CHANGE:"ActorChange",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},4514:function(e){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},9468:function(e){"use strict";function t(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var s=0,o=Object.assign(Error(n.replace(/%s/g,function(){return String(i[s++])})),{name:t,messageFormat:n,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===o.stack)try{throw o}catch(e){}return o}e.exports={create:function(e,n){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return t.apply(void 0,["error",e,n].concat(i))},createWarning:function(e,n){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return t.apply(void 0,["warn",e,n].concat(i))}}},17461:function(e){"use strict";e.exports={ENABLE_CLIENT_EDGES:!1,ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,ENABLE_FIELD_ERROR_HANDLING_CATCH_DIRECTIVE:!1,ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES:!0,ENABLE_STRICT_EQUAL_SELECTORS:!1}},87501:function(e){"use strict";var t={},n={stop:function(){}};e.exports={profile:function(e,r){var i=t[e];if(i&&i.length>0){for(var a=[],s=i.length-1;s>=0;s--){var o=i[s](e,r);a.unshift(o)}return{stop:function(e){a.forEach(function(t){return t(e)})}}}return n},attachProfileHandler:function(e,n){t.hasOwnProperty(e)||(t[e]=[]),t[e].push(n)},detachProfileHandler:function(e,n){var r,i;t.hasOwnProperty(e)&&-1!==(i=(r=t[e]).indexOf(n))&&r.splice(i,1)}}},30087:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(68532)),a=r(n(93231)),s=n(73058),o=n(3996),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=s.create(function(t){e._sinks.add(t);for(var n=e._events,r=0;r<n.length&&!t.closed;r++){var i=n[r];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,o(!1)}}return function(){e._sinks.delete(t)}})}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach(function(e){return e.complete()}))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach(function(t){return t.error(e)}))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach(function(t){return t.next(e)}))},t.subscribe=function(e){var t=this._observable.subscribe(e);return this._subscription.push(t),t},t.unsubscribe=function(){var e,t=(0,i.default)(this._subscription);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}this._subscription=[]},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},47222:function(e){"use strict";var t=new Map,n=1,r=function(){for(var e=new Set,t=0;t<10;++t)e.add(t.toString());return e}();e.exports={intern:function(e,i){if(null==i||e.length<i)return"	"===e[0]&&r.has(e[1])||"\v"===e[0]?"\v"+e:e;var a=t.get(e);return null!=a||(a="	"+n++,t.set(e,a)),a}}},46061:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(80624)),i=n(61332),a=i.getModuleComponentKey,s=i.getModuleOperationKey;e.exports=function(e,t,n,i){var o=(0,r.default)({},i);return o[a(e)]=n,o[s(e)]=t,o}},40787:function(e){"use strict";e.exports=function e(t){return null!=t&&(Array.isArray(t)||"object"==typeof t&&t.constructor===Object)&&(Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];r&&"object"==typeof r&&!Object.isFrozen(r)&&e(r)})),t}},61320:function(e){"use strict";var t=1e5;e.exports=function(){return t++}},68311:function(e,t,n){"use strict";var r=n(20028),i=r.getDataIDsFromFragment,a=r.getSelector,s=r.getVariablesFromFragment,o=n(80935),l=n(17461),u=n(88672),c=n(47222).intern;e.exports=function(e,t){var n=a(e,t),r=null==n?"null":"SingularReaderSelector"===n.kind?n.owner.identifier:"["+n.selectors.map(function(e){return e.owner.identifier}).join(",")+"]",d=s(e,t),h=i(e,t);if(l.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION){var f=void 0===h?"missing":null==h?"null":Array.isArray(h)?"["+h.join(",")+"]":h;return f=l.STRING_INTERN_LEVEL<=1?f:c(f,l.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+(null==d||o(d)?"{}":JSON.stringify(u(d)))+"/"+f}var p,m=null!==(p=JSON.stringify(h))&&void 0!==p?p:"missing";return m=l.STRING_INTERN_LEVEL<=1?m:c(m,l.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+JSON.stringify(u(d))+"/"+m}},95001:function(e,t,n){"use strict";var r=n(7109),i=r.REQUEST;r.SPLIT_OPERATION,e.exports=function(e){return e.kind===i?e.operation:e}},69978:function(e,t,n){"use strict";var r=n(39319),i=n(3996);e.exports=function(e,t){var n,a,s=r(e,t),o=s.refetchableRequest,l=s.refetchMetadata,u=l.connection;null!=u||i(!1);var c=u.path,d=(null!==(n=null===(a=e.metadata)||void 0===a?void 0:a.connection)&&void 0!==n?n:[])[0];null!=d||i(!1);var h=l.identifierInfo;return(null==h?void 0:h.identifierField)==null||"string"==typeof h.identifierField||i(!1),{connectionPathInFragmentData:c,identifierField:null==h?void 0:h.identifierField,paginationRequest:o,paginationMetadata:u,stream:!0===d.stream}}},90683:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(93231)),a=r(n(80624)),s=n(3996);n(82264),e.exports=function(e,t,n,r,o,l){var u=l.backward,c=l.forward;if("backward"===e){null!=u&&null!=u.count&&null!=u.cursor||s(!1);var d,h,f=(0,a.default)((0,a.default)((0,a.default)({},r),o),{},(h={},(0,i.default)(h,u.cursor,n),(0,i.default)(h,u.count,t),h));return c&&c.cursor&&(f[c.cursor]=null),c&&c.count&&(f[c.count]=null),f}null!=c&&null!=c.count&&null!=c.cursor||s(!1);var p=(0,a.default)((0,a.default)((0,a.default)({},r),o),{},(d={},(0,i.default)(d,c.cursor,n),(0,i.default)(d,c.count,t),d));return u&&u.cursor&&(p[u.cursor]=null),u&&u.count&&(p[u.count]=null),p}},80357:function(e,t,n){"use strict";var r=n(45432).getPromiseForActiveRequest;e.exports=function(e,t,n){var i=[],a=r(e,n);if(null!=a)i=[n];else{var s,o,l,u,c=e.getOperationTracker().getPendingOperationsAffectingOwner(n);i=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],a=null!==(u=null==c?void 0:c.promise)&&void 0!==u?u:null}if(!a)return null;var d=null!==(s=null===(o=i)||void 0===o?void 0:o.map(function(e){return e.node.params.name}).join(","))&&void 0!==s?s:null;(null==d||0===d.length)&&(d="Unknown pending operation");var h=t.name,f=d===h?"Relay(".concat(d,")"):"Relay(".concat(d,":").concat(h,")");return a.displayName=f,e.__log({name:"pendingoperation.found",fragment:t,fragmentOwner:n,pendingOperations:i}),{promise:a,pendingOperations:i}}},39319:function(e,t,n){"use strict";var r=n(3996);e.exports=function(e,t){(null===(n=e.metadata)||void 0===n?void 0:n.plural)!==!0||r(!1);var n,i,a=null===(i=e.metadata)||void 0===i?void 0:i.refetch;null!=a||r(!1);var s=a.operation.default?a.operation.default:a.operation,o=a.fragmentPathInResult;"string"!=typeof s||r(!1);var l=a.identifierInfo;return null!=l&&(null==l.identifierField||"string"==typeof l.identifierField||r(!1),null==l.identifierQueryVariableName||"string"==typeof l.identifierQueryVariableName||r(!1)),{fragmentRefPathInResponse:o,identifierInfo:l,refetchableRequest:s,refetchMetadata:a}}},61193:function(e,t,n){"use strict";var r=n(4514).DEFAULT_HANDLE_KEY,i=n(3996);e.exports=function(e,t,n){return t&&t!==r?"__".concat(t,"_").concat(e):(null!=n||i(!1),"__".concat(n,"_").concat(e))}},13321:function(e,t,n){"use strict";var r=n(88672),i=n(3996);e.exports=function(e,t){var n=null!=e.cacheID?e.cacheID:e.id;return null!=n||i(!1),n+JSON.stringify(r(t))}},33199:function(e,t,n){"use strict";var r=(0,n(73203).default)(n(68532)),i=n(3996);e.exports=function(e,t){var n,a=e,s=(0,r.default)(t);try{for(s.s();!(n=s.n()).done;){var o=n.value;if(null==a)return null;"number"==typeof o?(Array.isArray(a)||i(!1),a=a[o]):(("object"!=typeof a||Array.isArray(a))&&i(!1),a=a[o])}}catch(e){s.e(e)}finally{s.f()}return a}},20270:function(e,t,n){"use strict";var r=n(73203).default,i=r(n(68532)),a=n(62242),s=r(n(17461));e.exports=function(e,t,n,r){var o,l=(0,i.default)(n);try{for(l.s();!(o=l.n()).done;){var u=o.value;e.relayFieldLogger({kind:"relay_resolver.error",owner:u.field.owner,fieldPath:u.field.path,error:u.error})}}catch(e){l.e(e)}finally{l.f()}if(s.default.ENABLE_FIELD_ERROR_HANDLING&&null!=r){if(null!=r){var c,d=(0,i.default)(r);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.path,p=h.owner,m=h.error;e.relayFieldLogger({kind:"relay_field_payload.error",owner:p,fieldPath:f,error:m})}}catch(e){d.e(e)}finally{d.f()}}if(s.default.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT)throw new a.RelayFieldError("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map(function(e){return e.path,e.owner,e.error}))}if(null!=t)switch(t.action){case"THROW":var g=t.field,v=g.path,y=g.owner;throw e.relayFieldLogger({kind:"missing_field.throw",owner:y,fieldPath:v}),Error("Relay: Missing @required value at path '".concat(v,"' in '").concat(y,"'."));case"LOG":t.fields.forEach(function(t){var n=t.path,r=t.owner;e.relayFieldLogger({kind:"missing_field.log",owner:r,fieldPath:n})});break;default:t.action}}},80935:function(e){"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e){for(var n in e)if(t.call(e,n))return!1;return!0}},36838:function(e){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},49461:function(e){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},23021:function(e){"use strict";e.exports=function(e,t){return function e(t,n,r){if(t===n||"object"!=typeof t||!t||t.constructor!==Object&&!Array.isArray(t)||"object"!=typeof n||!n||n.constructor!==Object&&!Array.isArray(n))return n;var i=!1,a=Array.isArray(t)?t:null,s=Array.isArray(n)?n:null;if(a&&s){var o=r&&!Object.isFrozen(s);i=s.reduce(function(t,n,r){var i=e(a[r],n,o);return i!==s[r]&&o&&(s[r]=i),t&&i===a[r]},!0)&&a.length===s.length}else if(!a&&!s){var l=n,u=Object.keys(t),c=Object.keys(l),d=r&&!Object.isFrozen(l);i=c.reduce(function(n,r){var i=e(t[r],l[r],d);return i!==l[r]&&d&&(l[r]=i),n&&i===t[r]},!0)&&u.length===c.length}return i?t:n}(e,t,!0)}},8311:function(e,t,n){"use strict";e.exports=function(e){var t=void 0!==n.g?n.g:"undefined"!=typeof window?window:void 0,r=t&&t.__RELAY_DEVTOOLS_HOOK__;r&&r.registerEnvironment(e)}},87054:function(e){"use strict";var t=Promise.resolve();function n(e){setTimeout(function(){throw e},0)}e.exports=function(e){t.then(e).catch(n)}},61691:function(e){"use strict";e.exports=function(e){"object"==typeof e&&null!=e&&(Array.isArray(e)||e.constructor===Object)&&Object.freeze(e)}},88672:function(e){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var n=Object.keys(t).sort(),r={},i=0;i<n.length;i++)r[n[i]]=e(t[n[i]]);return r}},62486:function(e){"use strict";var t,n,r="undefined"!=typeof window&&"function"==typeof(null===(t=window)||void 0===t?void 0:null===(n=t.performance)||void 0===n?void 0:n.now);function i(){return r?window.performance.now():Date.now()}e.exports=function(e){var t=i(),n=e();return[i()-t,n]}},70509:function(e,t,n){"use strict";n(2971),n(82264);var r="function"==typeof WeakMap?new WeakMap:new Map;function i(e,t){if(null==t)return e;var n={};return Object.assign(n,e),Object.keys(t).forEach(function(e){var i=t[e].get,a=i();if(r.has(i)){var s=r.get(i);n[e]=s}else r.set(i,a),n[e]=a}),n}i.tests_only_resetDebugCache=void 0,e.exports=i},35623:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(55862)),a=n(39874);t.default=function(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}},39874:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))}},55862:function(e,t,n){var r=n(3812);e.exports=function(e,t){var n,i,a,s=null;if(!e||"string"!=typeof e)return s;for(var o=r(e),l="function"==typeof t,u=0,c=o.length;u<c;u++)i=(n=o[u]).property,a=n.value,l?t(i,a,n):a&&(s||(s={}),s[i]=a);return s}},37921:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(91709),i={test:(0,n(25338).i)("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.m.transform}},70499:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(25525),i=n(26115),a=n(79392),s=n(25338),o={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,s=e.lightness,o=e.alpha;return"hsla("+Math.round(t)+", "+i.aQ.transform((0,a.Nw)(n))+", "+i.aQ.transform((0,a.Nw)(s))+", "+(0,a.Nw)(r.Fq.transform(void 0===o?1:o))+")"}}},56962:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(79392),i=n(37921),a=n(70499),s=n(91709),o={test:function(e){return s.m.test(e)||i.$.test(e)||a.J.test(e)},parse:function(e){return s.m.test(e)?s.m.parse(e):a.J.test(e)?a.J.parse(e):i.$.parse(e)},transform:function(e){return(0,r.HD)(e)?e:e.hasOwnProperty("red")?s.m.transform(e):a.J.transform(e)}}},91709:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(85556),i=n(25525),a=n(79392),s=n(25338),o=(0,a.uZ)(0,255),l=(0,r.pi)((0,r.pi)({},i.Rx),{transform:function(e){return Math.round(o(e))}}),u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,s=e.alpha;return"rgba("+l.transform(t)+", "+l.transform(n)+", "+l.transform(r)+", "+(0,a.Nw)(i.Fq.transform(void 0===s?1:s))+")"}}},25338:function(e,t,n){"use strict";n.d(t,{d:function(){return a},i:function(){return i}});var r=n(79392),i=function(e,t){return function(n){return Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},a=function(e,t,n){return function(i){if(!(0,r.HD)(i))return i;var a,s=i.match(r.KP),o=s[0],l=s[1],u=s[2],c=s[3];return(a={})[e]=parseFloat(o),a[t]=parseFloat(l),a[n]=parseFloat(u),a.alpha=void 0!==c?parseFloat(c):1,a}}},13802:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(85556),i=n(17497),a=n(79392),s=new Set(["brightness","contrast","saturate","opacity"]);function o(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=(r.match(a.KP)||[])[0];if(!i)return e;var o=r.replace(i,""),l=s.has(n)?1:0;return i!==r&&(l*=100),n+"("+l+o+")"}var l=/([a-z-]*)\(.*?\)/g,u=(0,r.pi)((0,r.pi)({},i.P),{getAnimatableNone:function(e){var t=e.match(l);return t?t.map(o).join(" "):e}})},17497:function(e,t,n){"use strict";n.d(t,{P:function(){return h}});var r=n(56962),i=n(25525),a=n(79392),s="${c}",o="${n}";function l(e){var t=[],n=0,l=e.match(a.dA);l&&(n=l.length,e=e.replace(a.dA,s),t.push.apply(t,l.map(r.$.parse)));var u=e.match(a.KP);return u&&(e=e.replace(a.KP,o),t.push.apply(t,u.map(i.Rx.parse))),{values:t,numColors:n,tokenised:e}}function u(e){return l(e).values}function c(e){var t=l(e),n=t.values,i=t.numColors,u=t.tokenised,c=n.length;return function(e){for(var t=u,n=0;n<c;n++)t=t.replace(n<i?s:o,n<i?r.$.transform(e[n]):(0,a.Nw)(e[n]));return t}}var d=function(e){return"number"==typeof e?0:e},h={test:function(e){var t,n,r,i;return isNaN(e)&&(0,a.HD)(e)&&(null!==(n=null===(t=e.match(a.KP))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(a.dA))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(e){var t=u(e);return c(e)(t.map(d))}}},25525:function(e,t,n){"use strict";n.d(t,{Fq:function(){return s},Rx:function(){return a},bA:function(){return o}});var r=n(85556),i=n(79392),a={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},s=(0,r.pi)((0,r.pi)({},a),{transform:(0,i.uZ)(0,1)}),o=(0,r.pi)((0,r.pi)({},a),{default:1})},26115:function(e,t,n){"use strict";n.d(t,{$C:function(){return d},RW:function(){return s},aQ:function(){return o},px:function(){return l},vh:function(){return u},vw:function(){return c}});var r=n(85556),i=n(79392),a=function(e){return{test:function(t){return(0,i.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},s=a("deg"),o=a("%"),l=a("px"),u=a("vh"),c=a("vw"),d=(0,r.pi)((0,r.pi)({},o),{parse:function(e){return o.parse(e)/100},transform:function(e){return o.transform(100*e)}})},79392:function(e,t,n){"use strict";n.d(t,{HD:function(){return l},KP:function(){return a},Nw:function(){return i},dA:function(){return s},mj:function(){return o},uZ:function(){return r}});var r=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},i=function(e){return e%1?Number(e.toFixed(5)):e},a=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,o=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function l(e){return"string"==typeof e}},50699:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},38254:function(e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},16924:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},19338:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},26499:function(e,t,n){"use strict";t.Any=n(98287),t.Cc=n(50699),t.Cf=n(38254),t.P=n(16924),t.Z=n(19338)},98287:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},75276:function(e,t,n){"use strict";var r=n(27378);t.Z=function(e){void 0===e&&(e={});var t,n,i,a,s,o,l=e.onResize,u=(0,r.useRef)(void 0);u.current=l;var c=(0,r.useRef)(),d=(0,r.useState)({width:void 0,height:void 0}),h=d[0],f=d[1],p=(0,r.useRef)(!1);(0,r.useEffect)(function(){return function(){p.current=!0}},[]);var m=(0,r.useRef)({width:void 0,height:void 0}),g=(t=e.ref,n=(0,r.useRef)(null),i=(0,r.useCallback)(function(e){n.current=e,o()},[]),a=(0,r.useRef)(null),s=(0,r.useRef)(),o=function(){var e,r=null;n.current?r=n.current:t&&(r=t instanceof HTMLElement?t:t.current),a.current!==r&&(s.current&&(s.current(),s.current=null),a.current=r,r&&(s.current=(e=r,c.current||(c.current=new ResizeObserver(function(e){if(Array.isArray(e)){var t=e[0],n=Math.round(t.contentRect.width),r=Math.round(t.contentRect.height);if(m.current.width!==n||m.current.height!==r){var i={width:n,height:r};u.current?u.current(i):(m.current.width=n,m.current.height=r,p.current||f(i))}}})),c.current.observe(e),function(){c.current&&c.current.unobserve(e)})))},(0,r.useEffect)(function(){o()},[t]),i);return(0,r.useMemo)(function(){return{ref:g,width:h.width,height:h.height}},[g,h?h.width:null,h?h.height:null])}},13596:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,o=[],l=0;l<256;++l)o.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!("string"==typeof n&&s.test(n)))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return u(r)}},98106:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},34102:function(e,t,n){var r=n(98106);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},76824:function(e,t,n){var r=n(96196),i=n(14161);function a(t,n,s){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},68532:function(e,t,n){var r=n(35068);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw s}}}},e.exports.__esModule=!0,e.exports.default=e.exports},93231:function(e,t,n){var r=n(74040);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},74910:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},25499:function(e,t,n){var r=n(96196);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},73203:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},94346:function(e){e.exports=function(e){return -1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},14161:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},68:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},91282:function(e){e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},80624:function(e,t,n){var r=n(93231);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},22412:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},96196:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},9833:function(e,t,n){var r=n(34102),i=n(68),a=n(35068),s=n(91282);e.exports=function(e){return r(e)||i(e)||a(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},56027:function(e,t,n){var r=n(7501).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:function(e,t,n){var r=n(7501).default,i=n(56027);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},35068:function(e,t,n){var r=n(98106);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports},19952:function(e,t,n){var r=n(74910),i=n(96196),a=n(94346),s=n(76824);function o(t){var n="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},90005:function(e,t){var n;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}(n)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(n=(function(){return i}).apply(t,[]))&&(e.exports=n)}()},93859:function(e,t,n){"use strict";n.d(t,{Jn:function(){return _},KN:function(){return w},Mq:function(){return x},Xd:function(){return m},ZF:function(){return b},qX:function(){return g}});var r=n(57087),i=n(84959),a=n(29901),s=n(21069);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class o{constructor(e){this.container=e}getPlatformInfoString(){let e=this.container.getProviders();return e.map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let l="@firebase/app",u="0.7.31",c=new i.Yd("@firebase/app"),d="[DEFAULT]",h={[l]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},f=new Map,p=new Map;function m(e){let t=e.name;if(p.has(t))return c.debug(`There were multiple attempts to register component ${t}.`),!1;for(let n of(p.set(t,e),f.values()))!function(e,t){try{e.container.addComponent(t)}catch(n){c.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}(n,e);return!0}function g(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}let v=new a.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class y{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw v.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let _="9.9.3";function b(e,t={}){if("object"!=typeof t){let e=t;t={name:e}}let n=Object.assign({name:d,automaticDataCollectionEnabled:!1},t),i=n.name;if("string"!=typeof i||!i)throw v.create("bad-app-name",{appName:String(i)});let s=f.get(i);if(s){if((0,a.vZ)(e,s.options)&&(0,a.vZ)(n,s.config))return s;throw v.create("duplicate-app",{appName:i})}let o=new r.H0(i);for(let e of p.values())o.addComponent(e);let l=new y(e,n,o);return f.set(i,l),l}function x(e=d){let t=f.get(e);if(!t)throw v.create("no-app",{appName:e});return t}function w(e,t,n){var i;let a=null!==(i=h[e])&&void 0!==i?i:e;n&&(a+=`-${n}`);let s=a.match(/\s|\//),o=t.match(/\s|\//);if(s||o){let e=[`Unable to register library "${a}" with version "${t}":`];s&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),s&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),c.warn(e.join(" "));return}m(new r.wA(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}let k="firebase-heartbeat-store",E=null;function S(){return E||(E=(0,s.X3)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(k)}}).catch(e=>{throw v.create("idb-open",{originalErrorMessage:e.message})})),E}async function C(e){try{let t=await S();return t.transaction(k).objectStore(k).get(I(e))}catch(e){if(e instanceof a.ZR)c.warn(e.message);else{let t=v.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});c.warn(t.message)}}}async function T(e,t){try{let n=await S(),r=n.transaction(k,"readwrite"),i=r.objectStore(k);return await i.put(t,I(e)),r.done}catch(e){if(e instanceof a.ZR)c.warn(e.message);else{let t=v.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});c.warn(t.message)}}}function I(e){return`${e.name}!${e.options.appId}`}class R{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new A(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){let e=this.container.getProvider("platform-logger").getImmediate(),t=e.getPlatformInfoString(),n=j();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))?void 0:(this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf(),n=Date.now();return n-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let e=j(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),D(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),D(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=(0,a.L)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function j(){let e=new Date;return e.toISOString().substring(0,10)}class A{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.hl)()&&(0,a.eu)().then(()=>!0).catch(()=>!1)}async read(){let e=await this._canUseIndexedDBPromise;if(!e)return{heartbeats:[]};{let e=await C(this.app);return e||{heartbeats:[]}}}async overwrite(e){var t;let n=await this._canUseIndexedDBPromise;if(n){let n=await this.read();return T(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;let n=await this._canUseIndexedDBPromise;if(n){let n=await this.read();return T(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function D(e){return(0,a.L)(JSON.stringify({version:2,heartbeats:e})).length}m(new r.wA("platform-logger",e=>new o(e),"PRIVATE")),m(new r.wA("heartbeat",e=>new R(e),"PRIVATE")),w(l,u,""),w(l,u,"esm2017"),w("fire-js","")},57087:function(e,t,n){"use strict";n.d(t,{H0:function(){return o},wA:function(){return i}});var r=n(29901);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let a="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new r.BH;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:a})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=a){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=a){return this.instances.has(e)}getOptions(e=a){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(e);n===i&&t.resolve(r)}return r}onInit(e,t){var n;let r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);let a=this.instances.get(r);return a&&e(a,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:e===a?void 0:e,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}return n||null}normalizeInstanceIdentifier(e=a){return this.component?this.component.multipleInstances?e:a:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class o{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){let t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},84959:function(e,t,n){"use strict";var r,i;n.d(t,{Yd:function(){return c},in:function(){return r}});/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let a=[];(i=r||(r={}))[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT";let s={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},o=r.INFO,l={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},u=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=l[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class c{constructor(e){this.name=e,this._logLevel=o,this._logHandler=u,this._userLogHandler=null,a.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,r.DEBUG,...e),this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e),this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e),this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e),this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e),this._logHandler(this,r.ERROR,...e)}}},7272:function(e,t,n){"use strict";/**
 * react-virtual
 *
 * Copyright (c) TanStack
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{MG:function(){return v}});var i=n(27378);/**
 * virtual-core
 *
 * Copyright (c) TanStack
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}/**
 * virtual-core
 *
 * Copyright (c) TanStack
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function s(e,t,n){var r,i,a=null!=(r=n.initialDeps)?r:[];return function(){n.key&&null!=n.debug&&n.debug()&&(r=Date.now());var r,s,o=e();if(!(o.length!==a.length||o.some(function(e,t){return a[t]!==e})))return i;if(a=o,n.key&&null!=n.debug&&n.debug()&&(s=Date.now()),i=t.apply(void 0,o),n.key&&null!=n.debug&&n.debug()){var l=Math.round((Date.now()-r)*100)/100,u=Math.round((Date.now()-s)*100)/100,c=function(e,t){for(e=String(e);e.length<t;)e=" "+e;return e};console.info("%c⏱ "+c(u,5)+" /"+c(l,5)+" ms","\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl("+Math.max(0,Math.min(120-120*(u/16),120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(i),i}}function o(e,t){if(void 0!==e)return e;throw Error("Unexpected undefined"+(t?": "+t:""))}/**
 * virtual-core
 *
 * Copyright (c) TanStack
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var l=function(e){return e},u=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[],i=t;i<=n;i++)r.push(i);return r},c=function(e,t){var n=e.scrollElement;if(n){var r=function(e){t({width:Math.round(e.width),height:Math.round(e.height)})};r(n.getBoundingClientRect());var i=new ResizeObserver(function(e){var t=e[0];if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0];if(i){r({width:i.inlineSize,height:i.blockSize});return}}r(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),function(){i.unobserve(n)}}},d=function(e,t){var n=e.scrollElement;if(n){var r=function(){t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return r(),n.addEventListener("scroll",r,{passive:!0}),function(){n.removeEventListener("scroll",r)}}},h=function(e,t,n){if(null!=t&&t.borderBoxSize){var r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},f=function(e,t,n){var r,i,a=t.adjustments,s=t.behavior;null==(r=n.scrollElement)||null==r.scrollTo||r.scrollTo(((i={})[n.options.horizontal?"left":"top"]=e+(void 0===a?0:a),i.behavior=s,i))},p=function(e){var t,n,r=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(t=null,n=function(){return t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver(function(e){e.forEach(function(e){r._measureElement(e.target,e)})}):null)},{disconnect:function(){var e;return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=n())?void 0:t.unobserve(e)}}),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach(function(t){var n=t[0];void 0===t[1]&&delete e[n]}),r.options=a({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:l,rangeExtractor:u,onChange:function(){},measureElement:h,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(){null==r.options.onChange||r.options.onChange(r)},this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(e){return e()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var e=r.options.getScrollElement();r.scrollElement!==e&&(r.cleanup(),r.scrollElement=e,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(e){var t=r.scrollRect;r.scrollRect=e,(r.options.horizontal?e.width!==t.width:e.height!==t.height)&&r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(e){r.scrollAdjustments=0,r.scrollOffset!==e&&(null!==r.isScrollingTimeoutId&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset<e?"forward":"backward",r.scrollOffset=e,r.maybeNotify(),r.isScrollingTimeoutId=setTimeout(function(){r.isScrollingTimeoutId=null,r.isScrolling=!1,r.scrollDirection=null,r.maybeNotify()},r.options.scrollingDelay))})))},this.getSize=function(){return r.scrollRect[r.options.horizontal?"width":"height"]},this.memoOptions=s(function(){return[r.options.count,r.options.paddingStart,r.options.scrollMargin,r.options.getItemKey]},function(e,t,n,i){return r.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i}},{key:!1}),this.getFurthestMeasurement=function(e,t){for(var n=new Map,i=new Map,a=t-1;a>=0;a--){var s=e[a];if(!n.has(s.lane)){var o=i.get(s.lane);if(null==o||s.end>o.end?i.set(s.lane,s):s.end<o.end&&n.set(s.lane,!0),n.size===r.options.lanes)break}}return i.size===r.options.lanes?Array.from(i.values()).sort(function(e,t){return e.end-t.end})[0]:void 0},this.getMeasurements=s(function(){return[r.memoOptions(),r.itemSizeCache]},function(e,t){var n=e.count,i=e.paddingStart,a=e.scrollMargin,s=e.getItemKey,o=r.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var l=r.measurementsCache.slice(0,o),u=o;u<n;u++){var c=s(u),d=1===r.options.lanes?l[u-1]:r.getFurthestMeasurement(l,u),h=d?d.end:i+a,f=t.get(c),p="number"==typeof f?f:r.options.estimateSize(u),m=h+p,g=d?d.lane:u%r.options.lanes;l[u]={index:u,start:h,size:p,end:m,key:c,lane:g}}return r.measurementsCache=l,l},{key:!1,debug:function(){return r.options.debug}}),this.calculateRange=s(function(){return[r.getMeasurements(),r.getSize(),r.scrollOffset]},function(e,t,n){return r.range=function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,a=m(0,i,function(e){return t[e].start},r),s=a;s<i&&t[s].end<r+n;)s++;return{startIndex:a,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n})},{key:!1,debug:function(){return r.options.debug}}),this.maybeNotify=s(function(){var e=r.calculateRange();return[e.startIndex,e.endIndex,r.isScrolling]},function(){r.notify()},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=s(function(){return[r.options.rangeExtractor,r.calculateRange(),r.options.overscan,r.options.count]},function(e,t,n,r){return e(a({},t,{overscan:n,count:r}))},{key:!1,debug:function(){return r.options.debug}}),this.indexFromElement=function(e){var t=r.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn("Missing attribute name '"+t+"={index}' on measured element."),-1)},this._measureElement=function(e,t){var n,i=r.indexFromElement(e),a=r.measurementsCache[i];if(a){var s=r.measureElementCache.get(a.key);if(!e.isConnected){r.observer.unobserve(e),e===s&&r.measureElementCache.delete(a.key);return}s!==e&&(s&&r.observer.unobserve(s),r.observer.observe(e),r.measureElementCache.set(a.key,e));var o=r.options.measureElement(e,t,r),l=null!=(n=r.itemSizeCache.get(a.key))?n:a.size,u=o-l;0!==u&&(a.start<r.scrollOffset&&r._scrollToOffset(r.scrollOffset,{adjustments:r.scrollAdjustments+=u,behavior:void 0}),r.pendingMeasuredCacheIndexes.push(i),r.itemSizeCache=new Map(r.itemSizeCache.set(a.key,o)),r.notify())}},this.measureElement=function(e){e&&r._measureElement(e,void 0)},this.getVirtualItems=s(function(){return[r.getIndexes(),r.getMeasurements()]},function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=t[e[r]];n.push(a)}return n},{key:!1,debug:function(){return r.options.debug}}),this.getVirtualItemForOffset=function(e){var t=r.getMeasurements();return o(t[m(0,t.length-1,function(e){return o(t[e]).start},e)])},this.getOffsetForAlignment=function(e,t){var n=r.getSize();"auto"===t&&(t=e<=r.scrollOffset?"start":e>=r.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));var i=r.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[i]:r.scrollElement[i]:0)-r.getSize(),e),0)},this.getOffsetForIndex=function(e,t){void 0===t&&(t="auto"),e=Math.max(0,Math.min(e,r.options.count-1));var n=o(r.getMeasurements()[e]);if("auto"===t){if(n.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r.scrollOffset+r.options.scrollPaddingStart))return[r.scrollOffset,t];t="start"}}var i="end"===t?n.end+r.options.scrollPaddingEnd:n.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(i,t),t]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==r.scrollToIndexTimeoutId&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,t){var n=void 0===t?{}:t,i=n.align,a=n.behavior;r.cancelScrollToIndex(),"smooth"===a&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(e,void 0===i?"start":i),{adjustments:void 0,behavior:a})},this.scrollToIndex=function(e,t){var n=void 0===t?{}:t,i=n.align,a=n.behavior;e=Math.max(0,Math.min(e,r.options.count-1)),r.cancelScrollToIndex(),"smooth"===a&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var s=r.getOffsetForIndex(e,void 0===i?"auto":i),o=s[0],l=s[1];r._scrollToOffset(o,{adjustments:void 0,behavior:a}),"smooth"!==a&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){r.scrollToIndexTimeoutId=null,r.measureElementCache.has(r.options.getItemKey(e))&&1>Math.abs(r.getOffsetForIndex(e,l)[0]-r.scrollOffset)||r.scrollToIndex(e,{align:l,behavior:a})}))},this.scrollBy=function(e,t){var n=(void 0===t?{}:t).behavior;r.cancelScrollToIndex(),"smooth"===n&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+e,{adjustments:void 0,behavior:n})},this.getTotalSize=function(){var e;return((null==(e=r.getMeasurements()[r.options.count-1])?void 0:e.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(e,t){var n=t.adjustments,i=t.behavior;r.options.scrollToFn(e,{behavior:i,adjustments:n},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify()},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(e){r.itemSizeCache.set(e.key,e.size)}),this.maybeNotify()},m=function(e,t,n,r){for(;e<=t;){var i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else{if(!(a>r))return i;t=i-1}}return e>0?e-1:0},g="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function v(e){var t,n,a,s;return t=r({observeElementRect:c,observeElementOffset:d,scrollToFn:f},e),n=i.useReducer(function(){return{}},{})[1],a=r({},t,{onChange:function(e){n(),null==t.onChange||t.onChange(e)}}),(s=i.useState(function(){return new p(a)})[0]).setOptions(a),i.useEffect(function(){return s._didMount()},[]),g(function(){return s._willUpdate()}),s}},21069:function(e,t,n){"use strict";var r;let i,a;n.d(t,{X3:function(){return m}});let s=(e,t)=>t.some(t=>e instanceof t),o=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,h={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return f(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(f(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)});return t.then(t=>{t instanceof IDBCursor&&o.set(t,e)}).catch(()=>{}),d.set(t,e),t}(e);if(c.has(e))return c.get(e);let n="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(a||(a=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(p(this),e),f(o.get(this))}:function(...e){return f(t.apply(p(this),e))}:function(e,...n){let r=t.call(p(this),e,...n);return u.set(r,e.sort?e.sort():[e]),f(r)}:(t instanceof IDBTransaction&&function(e){if(l.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});l.set(e,t)}(t),s(t,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,h):t;return n!==e&&(c.set(e,n),d.set(n,e)),n}let p=e=>d.get(e);function m(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let s=indexedDB.open(e,t),o=f(s);return r&&s.addEventListener("upgradeneeded",e=>{r(f(s.result),e.oldVersion,e.newVersion,f(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),o.then(e=>{a&&e.addEventListener("close",()=>a()),i&&e.addEventListener("versionchange",()=>i())}).catch(()=>{}),o}let g=["get","getKey","getAll","getAllKeys","count"],v=["put","add","delete","clear"],y=new Map;function _(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(y.get(t))return y.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=v.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||g.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?"readwrite":"readonly"),s=a.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&a.done]))[0]};return y.set(t,a),a}h={...r=h,get:(e,t,n)=>_(e,t)||r.get(e,t,n),has:(e,t)=>!!_(e,t)||r.has(e,t)}},85556:function(e,t,n){"use strict";n.d(t,{CR:function(){return o},ZT:function(){return i},_T:function(){return s},ev:function(){return l},pi:function(){return a}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},32315:function(e,t,n){"use strict";n.d(t,{S1:function(){return s},Yz:function(){return a}});var r=n(27378);n(33198);var i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function a(e,t){let n=(0,r.useRef)(e);i(()=>{n.current=e},[e]),(0,r.useEffect)(()=>{if(null===t)return;let e=setInterval(()=>{n.current()},t);return()=>{clearInterval(e)}},[t])}function s(e,t){var n;let i="current"in e,a=i?t:e,{threshold:s=0,root:o=null,rootMargin:l="0%",freezeOnceVisible:u=!1,initialIsIntersecting:c=!1}=a??{},[d,h]=(0,r.useState)(null),f=i?e.current:d,[p,m]=(0,r.useState)(()=>({isIntersecting:c,entry:void 0})),g=(0,r.useRef)();g.current=null==a?void 0:a.onChange;let v=(null==(n=p.entry)?void 0:n.isIntersecting)&&u;(0,r.useEffect)(()=>{let e;if(!f||!("IntersectionObserver"in window)||v)return;let t=new IntersectionObserver(n=>{let r=Array.isArray(t.thresholds)?t.thresholds:[t.thresholds];n.forEach(t=>{let n=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);m({isIntersecting:n,entry:t}),g.current&&g.current(n,t),n&&u&&e&&(e(),e=void 0)})},{threshold:s,root:o,rootMargin:l});return t.observe(f),()=>{t.disconnect()}},[f,JSON.stringify(s),o,l,v,u]);let y=(0,r.useRef)(null);if((0,r.useEffect)(()=>{var e;f||null==(e=p.entry)||!e.target||u||v||y.current===p.entry.target||(y.current=p.entry.target,m({isIntersecting:c,entry:void 0}))},[f,p.entry,u,v,c]),i)return p.entry;let _=[h,!!p.isIntersecting,p.entry];return _.ref=_[0],_.isIntersecting=_[1],_.entry=_[2],_}},52834:function(e){"use strict";e.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"А","acy":"а","AElig":"\xc6","aelig":"\xe6","af":"⁡","Afr":"\uD835\uDD04","afr":"\uD835\uDD1E","Agrave":"\xc0","agrave":"\xe0","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"\xc5","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"\uD835\uDD38","aopf":"\uD835\uDD52","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"\xc5","aring":"\xe5","Ascr":"\uD835\uDC9C","ascr":"\uD835\uDCB6","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"\uD835\uDD05","bfr":"\uD835\uDD1F","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"\uD835\uDD39","bopf":"\uD835\uDD53","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"\xa6","bscr":"\uD835\uDCB7","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"⦲","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\uD835\uDD20","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"\xae","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"\uD835\uDD54","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"\xa9","COPY":"\xa9","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"\uD835\uDC9E","cscr":"\uD835\uDCB8","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"\xa4","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"\xb0","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"\uD835\uDD07","dfr":"\uD835\uDD21","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"\xb4","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"\xa8","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"\xf7","divide":"\xf7","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"\uD835\uDD3B","dopf":"\uD835\uDD55","Dot":"\xa8","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"\xa8","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"\uD835\uDC9F","dscr":"\uD835\uDCB9","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"\xc9","eacute":"\xe9","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"\xca","ecirc":"\xea","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"\uD835\uDD08","efr":"\uD835\uDD22","eg":"⪚","Egrave":"\xc8","egrave":"\xe8","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"\uD835\uDD3C","eopf":"\uD835\uDD56","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"\uD835\uDD09","ffr":"\uD835\uDD23","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","fltns":"▱","fnof":"ƒ","Fopf":"\uD835\uDD3D","fopf":"\uD835\uDD57","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"\xbd","frac13":"⅓","frac14":"\xbc","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"\xbe","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"\uD835\uDCBB","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"\uD835\uDD0A","gfr":"\uD835\uDD24","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"\uD835\uDD3E","gopf":"\uD835\uDD58","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"\uD835\uDCA2","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"\xbd","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"\uD835\uDD25","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"\uD835\uDD59","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"\uD835\uDCBD","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"\xcd","iacute":"\xed","ic":"⁣","Icirc":"\xce","icirc":"\xee","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"\xa1","iff":"⇔","ifr":"\uD835\uDD26","Ifr":"ℑ","Igrave":"\xcc","igrave":"\xec","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"Ĳ","ijlig":"ĳ","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"\uD835\uDD40","iopf":"\uD835\uDD5A","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"\xbf","iscr":"\uD835\uDCBE","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"\xcf","iuml":"\xef","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"\uD835\uDD0D","jfr":"\uD835\uDD27","jmath":"ȷ","Jopf":"\uD835\uDD41","jopf":"\uD835\uDD5B","Jscr":"\uD835\uDCA5","jscr":"\uD835\uDCBF","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"\uD835\uDD0E","kfr":"\uD835\uDD28","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"\uD835\uDD42","kopf":"\uD835\uDD5C","Kscr":"\uD835\uDCA6","kscr":"\uD835\uDCC0","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"\xab","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"\uD835\uDD0F","lfr":"\uD835\uDD29","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"\uD835\uDD43","lopf":"\uD835\uDD5D","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"\uD835\uDCC1","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"\xaf","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"\uD835\uDD10","mfr":"\uD835\uDD2A","mho":"℧","micro":"\xb5","midast":"*","midcir":"⫰","mid":"∣","middot":"\xb7","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"\uD835\uDD44","mopf":"\uD835\uDD5E","mp":"∓","mscr":"\uD835\uDCC2","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ŉ","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":"\xa0","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"\uD835\uDD11","nfr":"\uD835\uDD2B","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":"\xa0","nopf":"\uD835\uDD5F","Nopf":"ℕ","Not":"⫬","not":"\xac","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"\uD835\uDCA9","nscr":"\uD835\uDCC3","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"\xd3","oacute":"\xf3","oast":"⊛","Ocirc":"\xd4","ocirc":"\xf4","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"\uD835\uDD12","ofr":"\uD835\uDD2C","ogon":"˛","Ograve":"\xd2","ograve":"\xf2","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"\uD835\uDD46","oopf":"\uD835\uDD60","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"\xaa","ordm":"\xba","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"\uD835\uDCAA","oscr":"ℴ","Oslash":"\xd8","oslash":"\xf8","osol":"⊘","Otilde":"\xd5","otilde":"\xf5","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"\xd6","ouml":"\xf6","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"\xb6","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"\uD835\uDD13","pfr":"\uD835\uDD2D","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"⨦","plustwo":"⨧","pm":"\xb1","Poincareplane":"ℌ","pointint":"⨕","popf":"\uD835\uDD61","Popf":"ℙ","pound":"\xa3","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"\uD835\uDCAB","pscr":"\uD835\uDCC5","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"\uD835\uDD14","qfr":"\uD835\uDD2E","qint":"⨌","qopf":"\uD835\uDD62","Qopf":"ℚ","qprime":"⁗","Qscr":"\uD835\uDCAC","qscr":"\uD835\uDCC6","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"\xbb","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"\xae","REG":"\xae","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"\uD835\uDD2F","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"\uD835\uDD63","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"\uD835\uDCC7","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"\xa7","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"\uD835\uDD16","sfr":"\uD835\uDD30","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"\xad","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"\uD835\uDD4A","sopf":"\uD835\uDD64","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"\uD835\uDCAE","sscr":"\uD835\uDCC8","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"\xaf","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"\xdf","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"\uD835\uDD17","tfr":"\uD835\uDD31","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"\xde","thorn":"\xfe","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"\xd7","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"\uD835\uDD4B","topf":"\uD835\uDD65","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"\uD835\uDCAF","tscr":"\uD835\uDCC9","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"\xda","uacute":"\xfa","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"\uD835\uDD18","ufr":"\uD835\uDD32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"\xa8","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"\uD835\uDD4C","uopf":"\uD835\uDD66","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"\uD835\uDCB0","uscr":"\uD835\uDCCA","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"\xdc","uuml":"\xfc","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"\uD835\uDD19","vfr":"\uD835\uDD33","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"\uD835\uDD4D","vopf":"\uD835\uDD67","vprop":"∝","vrtri":"⊳","Vscr":"\uD835\uDCB1","vscr":"\uD835\uDCCB","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"\uD835\uDD1A","wfr":"\uD835\uDD34","Wopf":"\uD835\uDD4E","wopf":"\uD835\uDD68","wp":"℘","wr":"≀","wreath":"≀","Wscr":"\uD835\uDCB2","wscr":"\uD835\uDCCC","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"\uD835\uDD1B","xfr":"\uD835\uDD35","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"\uD835\uDD4F","xopf":"\uD835\uDD69","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"\uD835\uDCB3","xscr":"\uD835\uDCCD","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"\xdd","yacute":"\xfd","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"\xa5","Yfr":"\uD835\uDD1C","yfr":"\uD835\uDD36","YIcy":"Ї","yicy":"ї","Yopf":"\uD835\uDD50","yopf":"\uD835\uDD6A","Yscr":"\uD835\uDCB4","yscr":"\uD835\uDCCE","YUcy":"Ю","yucy":"ю","yuml":"\xff","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"\uD835\uDD37","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"\uD835\uDD6B","Zopf":"ℤ","Zscr":"\uD835\uDCB5","zscr":"\uD835\uDCCF","zwj":"‍","zwnj":"‌"}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(95081),t(36321),t(75949)}),_N_E=e.O()}]);