PageSourceSearch

https://pku-quantum-2024.vercel.app/_next/static/chunks/pages/_app-8fbbe855e8239e49.js

js pku-quantum-2024.vercel.app collected 2026-10-03 07:29:46 UTC 111,669 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{6729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],p=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,s),!0}for(u=1,c=new Array(p-1);u<p;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),p){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(t){i(t)}}function a(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(r(3931));function s(e,t="maxAge"){let r,o,s;const a=()=>n(this,void 0,void 0,(function*(){if(void 0!==r)return;const a=a=>n(this,void 0,void 0,(function*(){s=i.default();const n=a[1][t]-Date.now();return n<=0?(e.delete(a[0]),void s.resolve()):(r=a[0],o=setTimeout((()=>{e.delete(a[0]),s&&s.resolve()}),n),"function"===typeof o.unref&&o.unref(),s.promise)}));try{for(const t of e)yield a(t)}catch(c){}r=void 0})),c=e.set.bind(e);return e.set=(t,n)=>{e.has(t)&&e.delete(t);const i=c(t,n);return r&&r===t&&(r=void 0,void 0!==o&&(clearTimeout(o),o=void 0),void 0!==s&&(s.reject(void 0),s=void 0)),a(),i},a(),e}t.default=s,e.exports=s,e.exports.default=s},3454:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"===typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(7663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1529)}])},90:function(e,t,r){"use strict";r.d(t,{hi:function(){return B},v:function(){return y},yN:function(){return I},Wx:function(){return C},SH:function(){return E},WL:function(){return w},GH:function(){return H},gr:function(){return L},bW:function(){return k},ho:function(){return U},IT:function(){return F},JN:function(){return g},r8:function(){return v},eF:function(){return A},sk:function(){return M},kG:function(){return O},tg:function(){return $},wW:function(){return T},NN:function(){return x},kX:function(){return Q},px:function(){return W},km:function(){return b},ZB:function(){return S},mo:function(){return P}});var n,o=r(4924),i=r(6042),s=r(9396),a=r(6861),c={rootNotionPageId:"a4caff3b59cc41dab7b4c63b1f10f4ca",rootNotionSpaceId:"e57fa69576c34239932f087196971d29",name:"Quantum Computing 2024",domain:"https://quantum-computing-2024.vercel.app",author:"Fernand",description:"Quark Lab",defaultPageIcon:null,defaultPageCover:null,defaultPageCoverPosition:.5,isPreviewImageSupportEnabled:!0,isRedisEnabled:!1,pageUrlOverrides:null,navigationStyle:"custom",n
1avigationLinks:[{title:"Contact",url:"https://fernand.tech"}]},u=r(3454);if(!c)throw new Error("Config error: invalid site.config.ts");try{u.env.NEXT_PUBLIC_SITE_CONFIG&&(n=JSON.parse(u.env.NEXT_PUBLIC_SITE_CONFIG))}catch(G){throw console.error('Invalid config "NEXT_PUBLIC_SITE_CONFIG" failed to parse'),G}var l=(0,i.Z)({},c,n);function p(e,t){var r=l[e];if(void 0!==r)return r;if(void 0!==t)return t;throw new Error('Config error: missing required site config value "'.concat(e,'"'))}function d(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.env,n=r[e];if(void 0!==n)return n;if(void 0!==t)return t;throw new Error('Config error: missing required env variable "'.concat(e,'"'))}var f=r(3454),h=(0,a.q5)(p("rootNotionPageId"),{uuid:!1});if(!h)throw new Error('Config error invalid "rootNotionPageId"');(0,a.q5)(p("rootNotionSpaceId",null),{uuid:!0});var _=z(p("pageUrlOverrides",{})||{},{label:"pageUrlOverrides"}),g=(z(p("pageUrlAdditions",{})||{},{label:"pageUrlAdditions"}),function(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return(0,s.Z)((0,i.Z)({},t),(0,o.Z)({},n,r))}),{})}(_)),v=!1,y=(p("name"),p("author")),m=p("domain"),w=p("description","Notion Blog"),b=(p("language","en"),p("twitter",null)),k=p("github",null),S=p("youtube",null),O=p("linkedin",null),x=p("newsletter",null),P=p("zhihu",null),E=p("defaultPageIcon",null),I=p("defaultPageCover",null),C=p("defaultPageCoverPosition",.5),F=(p("isPreviewImageSupportEnabled",!1),p("includeNotionIdInUrls",!!v)),T=p("navigationStyle","default"),$=p("navigationLinks",null),A=p("isSearchEnabled",!0),j=(p("isRedisEnabled",!1)||d("REDIS_ENABLED",null),d("REDIS_HOST",null)),D=d("REDIS_PASSWORD",null),R=d("REDIS_USER","default"),M=(d("REDIS_URL","redis://".concat(R,":").concat(D,"@").concat(j)),d("REDIS_NAMESPACE","preview-images"),!1),N=d("PORT","3000"),U=v?"http://localhost:".concat(N):"https://".concat(m),q="/api",B={searchNotion:"".concat(q,"/search-notion"),getSocialImage:"".concat(q,"/social-image")},L=v?null:f.env.NEXT_PUBLIC_FATHOM_ID,H=L?{excludedDomains:["localhost","localhost:3000"]}:void 0,W=f.env.NEXT_PUBLIC_POSTHOG_ID,Q={api_host:"https://app.posthog.com"};function z(e,t){var r=t.label;return Object.keys(e).reduce((function(t,n){var c=e[n],u=(0,a.q5)(c,{uuid:!1});if(!u)throw new Error("Invalid ".concat(r,' page id "').concat(c,'"'));if(!n)throw new Error("Missing ".concat(r,' value for page "').concat(c,'"'));if(!n.startsWith("/"))throw new Error("Invalid ".concat(r,' value for page "').concat(c,'": value "').concat(n,'" should be a relative URI that starts with "/"'));var l=n.slice(1);return(0,s.Z)((0,i.Z)({},t),(0,o.Z)({},l,u))}),{})}},1529:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return cr}});var n=r(6042),o=r(5893),i=(r(7284),r(5560),r(7604),r(1804),r(4722),r(6766),r(7294)),s=function(e){window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},a=function(){window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach((function(e){switch(e.type){case"trackPageview":return void u(e.opts);case"trackGoal":return void l(e.code,e.cents);case"enableTrackingForMe":return void d();case"blockTrackingForMe":return void p();case"setSite":return void f(e.id)}})),window.__fathomClientQueue=[]},c=function(e){var t=/(https?)(?=:|\/|$)/;e.forEach((function(e){null!==t.exec(e)&&console.warn("The include domain ".concat(e," might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string."))}))},u=function(e){window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():s({type:"trackPageview",opts:e})},l=function(e,t){window.fathom?window.fathom.trackGoal(e,t):s({type:"trackGoal",code:e,cents:t})},p=function(){window.fathom?window.fathom.blockTrackingForMe():s({type:"blockTrackingForMe"})},d=function(){window.fathom?window.fathom.enableTrackingForMe():s({type:"enableTrackingForMe"})},f=function(e){window.fathom?window.fathom.setSite(e):s({type:"setSite",id:e})},h=r(1163);function _(e){return _="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)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?w(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function x(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||I(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){if(e){if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=I(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}var T=String.fromCharCode,$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",j={};function D(e,t){if(!j[e]){j[e]={};for(var r=0;r<e.length;r++)j[e][e.charAt(r)]=r}return j[e][t]}var R={compressToBase64:function(e){if(null==e)return"";var t=R._compress(e,6,(function(e){return $.charAt(e)}));switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:R._decompress(e.length,32,(function(t){return D($,e.charAt(t))}))},compressToUTF16:function(e){return null==e?"":R._compress(e,15,(function(e){return T(e+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:R._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=R.compress(e),r=new Uint8Array(2*t.length),n=0,o=t.length;n<o;n++){var i=t.charCodeAt(n);r[2*n]=i>>>8,r[2*n+1]=i%256}return r},decompressFromUint8Array:function(e){if(null===e||void 0===e)return R.decompress(e);for(var t=new Array(e.length/2),r=0,n=t.length;r<n;r++)t[r]=256*e[2*r]+e[2*r+1];var o=[];return t.forEach((function(e){o.push(T(e))})),R.decompress(o.join(""))}
1,compressToEncodedURIComponent:function(e){return null==e?"":R._compress(e,6,(function(e){return A.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),R._decompress(e.length,32,(function(t){return D(A,e.charAt(t))})))},compress:function(e){return R._compress(e,16,(function(e){return T(e)}))},_compress:function(e,t,r){if(null==e)return"";var n,o,i,s={},a={},c="",u="",l="",p=2,d=3,f=2,h=[],_=0,g=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(s,c)||(s[c]=d++,a[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(s,u))l=u;else{if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(n=0;n<f;n++)_<<=1,g==t-1?(g=0,h.push(r(_)),_=0):g++;for(o=l.charCodeAt(0),n=0;n<8;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1}else{for(o=1,n=0;n<f;n++)_=_<<1|o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o=0;for(o=l.charCodeAt(0),n=0;n<16;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1}0==--p&&(p=Math.pow(2,f),f++),delete a[l]}else for(o=s[l],n=0;n<f;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1;0==--p&&(p=Math.pow(2,f),f++),s[u]=d++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(n=0;n<f;n++)_<<=1,g==t-1?(g=0,h.push(r(_)),_=0):g++;for(o=l.charCodeAt(0),n=0;n<8;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1}else{for(o=1,n=0;n<f;n++)_=_<<1|o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o=0;for(o=l.charCodeAt(0),n=0;n<16;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1}0==--p&&(p=Math.pow(2,f),f++),delete a[l]}else for(o=s[l],n=0;n<f;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1;0==--p&&(p=Math.pow(2,f),f++)}for(o=2,n=0;n<f;n++)_=_<<1|1&o,g==t-1?(g=0,h.push(r(_)),_=0):g++,o>>=1;for(;;){if(_<<=1,g==t-1){h.push(r(_));break}g++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:R._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(e,t,r){var n,o,i,s,a,c,u,l=[],p=4,d=4,f=3,h="",_=[],g={val:r(0),position:t,index:1};for(n=0;n<3;n+=1)l[n]=n;for(i=0,a=Math.pow(2,2),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;switch(i){case 0:for(i=0,a=Math.pow(2,8),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;u=T(i);break;case 1:for(i=0,a=Math.pow(2,16),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;u=T(i);break;case 2:return""}for(l[3]=u,o=u,_.push(u);;){if(g.index>e)return"";for(i=0,a=Math.pow(2,f),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;switch(u=i){case 0:for(i=0,a=Math.pow(2,8),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;l[d++]=T(i),u=d-1,p--;break;case 1:for(i=0,a=Math.pow(2,16),c=1;c!=a;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=t,g.val=r(g.index++)),i|=(s>0?1:0)*c,c<<=1;l[d++]=T(i),u=d-1,p--;break;case 2:return _.join("")}if(0==p&&(p=Math.pow(2,f),f++),l[u])h=l[u];else{if(u!==d)return null;h=o+o.charAt(0)}_.push(h),l[d++]=o+h.charAt(0),o=h,0==--p&&(p=Math.pow(2,f),f++)}}},M={DEBUG:!1,LIB_VERSION:"1.20.2"},N=Array.prototype,U=Function.prototype,q=Object.prototype,B=N.slice,L=q.toString,H=q.hasOwnProperty,W="undefined"!==typeof window?window:{},Q=W.navigator||{userAgent:""},z=W.document||{},G=Q.userAgent,V=U.bind,J=N.forEach,Z=N.indexOf,X=Array.isArray,Y={},K={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ee=function(){if(M.DEBUG&&!K.isUndefined(window.console)&&window.console){var e=window.console.log.__rrweb_original__?window.console.log.__rrweb_original__:window.console.log;try{e.apply(window.console,arguments)}catch(t){K.each(arguments,(function(t){e(t)}))}}},te=function(){if(M.DEBUG&&!K.isUndefined(window.console)&&window.console){var e=["PostHog error:"].concat(Array.prototype.slice.call(arguments)),t=window.console.error.__rrweb_original__?window.console.error.__rrweb_original__:window.console.error;try{t.apply(window.console,e)}catch(r){K.each(e,(function(e){t(e)}))}}},re=function(){if(!K.isUndefined(window.console)&&window.console){var e=["PostHog error:"].concat(Array.prototype.slice.call(arguments)),t=window.console.error.__rrweb_original__?window.console.error.__rrweb_original__:window.console.error;try{t.apply(window.console,e)}catch(r){K.each(e,(function(e){t(e)}))}}};K.bind=function(e,t){var r,n;
1if(V&&e.bind===V)return V.apply(e,B.call(arguments,1));if(!K.isFunction(e))throw new TypeError;return r=B.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(B.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,r.concat(B.call(arguments)));return Object(s)===s?s:i},n},K.bind_instance_methods=function(e){for(var t in e)"function"===typeof e[t]&&(e[t]=K.bind(e[t],e))},K.each=function(e,t,r){if(null!==e&&void 0!==e)if(J&&e.forEach===J)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===Y)return}else for(var i in e)if(H.call(e,i)&&t.call(r,e[i],i,e)===Y)return},K.extend=function(e){return K.each(B.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},K.isArray=X||function(e){return"[object Array]"===L.call(e)},K.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(vt){return!1}},K.include=function(e,t){var r=!1;return null===e?r:Z&&e.indexOf===Z?-1!=e.indexOf(t):(K.each(e,(function(e){if(r||(r=e===t))return Y})),r)},K.includes=function(e,t){return-1!==e.indexOf(t)},K.isObject=function(e){return e===Object(e)&&!K.isArray(e)},K.isEmptyObject=function(e){if(K.isObject(e)){for(var t in e)if(H.call(e,t))return!1;return!0}return!1},K.isUndefined=function(e){return void 0===e},K.isString=function(e){return"[object String]"==L.call(e)},K.isDate=function(e){return"[object Date]"==L.call(e)},K.isNumber=function(e){return"[object Number]"==L.call(e)},K.encodeDates=function(e){return K.each(e,(function(t,r){K.isDate(t)?e[r]=K.formatDate(t):K.isObject(t)&&(e[r]=K.encodeDates(t))})),e},K.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},K.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},K.safewrap=function(e){return function(){try{return e.apply(this,arguments)}catch(t){re("Implementation error. Please turn on debug and contact [email protected]."),M.DEBUG&&re(t)}}},K.safewrap_class=function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=K.safewrap(e.prototype[t[r]])},K.safewrap_instance_methods=function(e){for(var t in e)"function"===typeof e[t]&&(e[t]=K.safewrap(e[t]))},K.strip_empty_properties=function(e){var t={};return K.each(e,(function(e,r){K.isString(e)&&e.length>0&&(t[r]=e)})),t};var ne="undefined"!==typeof Symbol?Symbol("__deepCircularCopyInProgress__"):"__deepCircularCopyInProgress__";function oe(e,t,r){return e!==Object(e)?t?t(e,r):e:e[ne]?void 0:(e[ne]=!0,K.isArray(e)?(n=[],K.each(e,(function(e){n.push(oe(e,t))}))):(n={},K.each(e,(function(e,r){r!==ne&&(n[r]=oe(e,t,r))}))),delete e[ne],n);var n}var ie=["$performance_raw"];function se(e){switch(_(e.className)){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function ae(e){var t="";return de(e)&&!fe(e)&&e.childNodes&&e.childNodes.length&&K.each(e.childNodes,(function(e){le(e)&&e.textContent&&(t+=K.trim(e.textContent).split(/(\s+)/).filter(he).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),K.trim(t)}function ce(e){return e&&1===e.nodeType}function ue(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function le(e){return e&&3===e.nodeType}K.copyAndTruncateStrings=function(e,t){return oe(e,(function(e,r){return r&&ie.indexOf(r)>-1||"string"===typeof e&&null!==t&&(e=e.slice(0,t)),e}))},K.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=K.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},K.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var s=e.charCodeAt(o),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i}
1,K.UUID=function(){var e=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)};return function(){var t=(window.screen.height*window.screen.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=G,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+t+"-"+e()}}(),K.isBlockedUA=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot)/i.test(e)},K.HTTPBuildQuery=function(e,t){var r,n,o=[];return K.isUndefined(t)&&(t="&"),K.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},K.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!==typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(o){te("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},K.getHashParam=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},K.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){return function(o){if(o=o||e(window.event)){var i,s,a=!0;return K.isFunction(n)&&(i=n(o)),s=r.call(t,o),!1!==i&&!1!==s||(a=!1),a}}}(t,n,a)}else te("No valid element provided to register_event")}}(),K.info={campaignParams:function(){var e="utm_source utm_medium utm_campaign utm_content utm_term gclid".split(" "),t="",r={};return K.each(e,(function(e){(t=K.getQueryParam(z.URL,e)).length&&(r[e]=t)})),r},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=K.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=K.getQueryParam(e,r);o.length&&(n.ph_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||K.includes(e," OPR/")?K.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":K.includes(e,"IEMobile")||K.includes(e,"WPDesktop")?"Internet Explorer Mobile":K.includes(e,"SamsungBrowser/")?"Samsung Internet":K.includes(e,"Edge")||K.includes(e,"Edg/")?"Microsoft Edge":K.includes(e,"FBIOS")?"Facebook Mobile":K.includes(e,"Chrome")?"Chrome":K.includes(e,"CriOS")?"Chrome iOS":K.includes(e,"UCWEB")||K.includes(e,"UCBrowser")?"UC Browser":K.includes(e,"FxiOS")?"Firefox iOS":K.includes(t,"Apple")?K.includes(e,"Mobile")?"Mobile Safari":"Safari":K.includes(e,"Android")?"Android Mobile":K.includes(e,"Konqueror")?"Konqueror":K.includes(e,"Firefox")?"Firefox":K.includes(e,"MSIE")||K.includes(e,"Trident/")?"Internet Explorer":K.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[K.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=G;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return"iPad"===t||"Android Tablet"===t?"Tablet":t?"Mobile":"Desktop"},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return K.extend(K.strip_empty_properties({$os:K.info.os(),$browser:K.info.browser(G,Q.vendor,window.opera),$device:K.info.device(G),$device_type:K.info.deviceType(G)}),{$current_url:window.location.href,$host:window.location.host,$pathname:window.location.pathname,$browser_version:K.info.browserVersion(G,Q.vendor,window.opera),$screen_height:window.screen.height,$screen_width:window.screen.width,$viewport_height:window.innerHeight,$viewport_width:window.innerWidth,$lib:"web",$lib_version:M.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:K.timestamp()/1e3})},people_properties:function(){return K.extend(K.strip_empty_properties({$os:K.info.os(),$browser:K.info.browser(G,Q.vendor,window.opera)}),{$browser_version:K.info.browserVersion(G,Q.vendor,window.opera)})}},K.isObject=K.isObject,K.isBlockedUA=K.isBlockedUA,K.isEmptyObject=K.isEmptyObject,K.info=K.info,K.info.device=K.info.device,K.info.browser=K.info.browser,K.info.browserVersion=K.info.browserVersion,K.info.properties=K.info.properties;var pe=["a","button","form","input","select","textarea","label"];function de(e){for(var t=e;t.parentNode&&!ue(t,"body");t=t.parentNode){var r=se(t).split(" ");if(K.includes(r,"ph-sensitive")||K.includes(r,"ph-no-capture"))return!1}if(K.includes(se(e).split(" "),"ph-include"))return!0;var n=e.type||"";if("string"===typeof n)switch(n.toLowerCase()){case"hidden":case"password":return!1}
1var o=e.name||e.id||"";if("string"===typeof o){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function fe(e){return!!(ue(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ue(e,"select")||ue(e,"textarea")||"true"===e.getAttribute("contenteditable"))}function he(e){if(null===e||K.isUndefined(e))return!1;if("string"===typeof e){e=K.trim(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function _e(e,t){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=t;var n=document.getElementsByTagName("script");n.length>0?n[0].parentNode.insertBefore(r,n[0]):document.body.appendChild(r)}var ge=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.get_config("rageclick");g(this,e),this.clicks=[],this.instance=t,this.enabled=r}return y(e,[{key:"click",value:function(e,t,r){if(this.enabled){var n=this.clicks[this.clicks.length-1];n&&Math.abs(e-n.x)+Math.abs(t-n.y)<30&&r-n.timestamp<1e3?(this.clicks.push({x:e,y:t,timestamp:r}),3===this.clicks.length&&this.instance.capture("$rageclick")):this.clicks=[{x:e,y:t,timestamp:r}]}}}]),e}(),ve={_initializedTokens:[],_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!ce(e));return e},_getPropertiesFromElement:function(e,t,r){var n=e.tagName.toLowerCase(),o={tag_name:n};pe.indexOf(n)>-1&&!r&&(o.$el_text=ae(e));var i=se(e);i.length>0&&(o.classes=i.split(" ").filter((function(e){return""!==e}))),K.each(e.attributes,(function(r){var n;fe(e)&&-1===["name","id","class"].indexOf(r.name)||!t&&he(r.value)&&("string"!==typeof(n=r.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))&&(o["attr__"+r.name]=r.value)}));for(var s=1,a=1,c=e;c=this._previousElementSibling(c);)s++,c.tagName===e.tagName&&a++;return o.nth_child=s,o.nth_of_type=a,o},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return K.each(document.querySelectorAll(e.css_selector),(function(e){var r;["input","select"].indexOf(e.tagName.toLowerCase())>-1?r=e.value:e.textContent&&(r=e.textContent),he(r)&&t.push(r)})),t.join(", ")},_getCustomProperties:function(e){var t={};return K.each(this._customProperties,(function(r){K.each(r.event_selectors,(function(n){var o=document.querySelectorAll(n);K.each(o,(function(n){K.includes(e,n)&&de(n)&&(t[r.name]=this._extractCustomPropertyValue(r))}),this)}),this)}),this),t},_getEventTarget:function(e){return"undefined"===typeof e.target?e.srcElement:e.target.shadowRoot?e.composedPath()[0]:e.target},_captureEvent:function(e,t){var r=this._getEventTarget(e);if(le(r)&&(r=r.parentNode),"click"===e.type&&this.rageclicks.click(e.clientX,e.clientY,(new Date).getTime()),function(e,t){if(!e||ue(e,"html")||!ce(e))return!1;for(var r=!1,n=[e],o=!0,i=e;i.parentNode&&!ue(i,"body");)if(11!==i.parentNode.nodeType){if(!(o=i.parentNode))break;if(pe.indexOf(o.tagName.toLowerCase())>-1)r=!0;else{var s=window.getComputedStyle(o);s&&"pointer"===s.getPropertyValue("cursor")&&(r=!0)}n.push(o),i=o}else n.push(i.parentNode.host),i=i.parentNode.host;var a=window.getComputedStyle(e);if(a&&"pointer"===a.getPropertyValue("cursor")&&"click"===t.type)return!0;var c=e.tagName.toLowerCase();switch(c){case"html":return!1;case"form":return"submit"===t.type;case"input":case"select":case"textarea":return"change"===t.type||"click"===t.type;default:return r?"click"===t.type:"click"===t.type&&(pe.indexOf(c)>-1||"true"===e.getAttribute("contenteditable"))}}(r,e)){for(var n=[r],o=r;o.parentNode&&!ue(o,"body");)11!==o.parentNode.nodeType?(n.push(o.parentNode),o=o.parentNode):(n.push(o.parentNode.host),o=o.parentNode.host);var i,s=[],a=!1;if(K.each(n,(function(e){var r=de(e);"a"===e.tagName.toLowerCase()&&(i=e.getAttribute("href"),i=r&&he(i)&&i);var n=se(e).split(" ");K.includes(n,"ph-no-capture")&&(a=!0),s.push(this._getPropertiesFromElement(e,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")))}),this),t.get_config("mask_all_text")||(s[0].$el_text=ae(r)),i&&(s[0].attr__href=i),a)return!1;var c=K.extend(this._getDefaultProperties(e.type),{$elements:s},this._getCustomProperties(n));return t.capture("$autocapture",c),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=K.bind((function(t){t=t||window.event,this._captureEvent(t,e)}),this);K.register_event(document,"submit",t,!1,!0),K.register_event(document,"change",t,!1,!0),K.register_event(document,"click",t,!1,!0)},_customProperties:{},init:function(e){this.rageclicks=new ge(e)},afterDecideResponse:function(e,t){var r=t.get_config("token");this._initializedTokens.indexOf(r)>-1?ee('autocapture already initialized for token "'+r+'"'):(this._initializedTokens.push(r),e&&e.config&&!0===e.config.enable_collect_everything&&t.get_config("autocapture")?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture_enabled=!1)},enabledForProject:function(e,t,r){t=K.isUndefined(t)?10:t,r=K.isUndefined(r)?10:r;for(var n=0,o=0;o<e.length;o++)n+=e.charCodeAt(o);return n%t<r},isBrowserSupported:function(){return K.isFunction(document.querySelectorAll)}};K.bind_instance_methods(ve),K.safewrap_instance_methods(ve);var ye=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,me={get:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}}catch(i){}return null},parse:function(e){var t;try{t=JSON.parse(me.get(e))||{}}catch(r){}return t},set:function(e,t,r,n,o){try{var i="",s="",a="";if(n){var c=document.location.hostname.match(ye),u=c?c[0]:"";i=u?"; domain=."+u:""}if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),s="; expires="+l.toGMTString()}o&&(a="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; path=/"+i+a;return document.cookie=p,p}catch(d){return}},remove:function(e,t){try{me.set(e,"",-1,t)}catch(r){return}}},we=null,be={is_supported:function(){if(null!==we)return we;var e=!0;
1if(window)try{var t="__mplssupport__";be.set(t,"xyz"),'"xyz"'!==be.get(t)&&(e=!1),be.remove(t)}catch(r){e=!1}else e=!1;return e||te("localStorage unsupported; falling back to cookie store"),we=e,e},error:function(e){te("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){be.error(t)}return null},parse:function(e){try{return JSON.parse(be.get(e))||{}}catch(t){}return null},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(r){be.error(r)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){be.error(t)}}},ke=b(b({},be),{},{parse:function(e){try{var t={};try{(t=me.parse(e)||{}).distinct_id&&me.set(e,{distinct_id:t.distinct_id})}catch(n){}var r=K.extend(t,JSON.parse(be.get(e)||"{}"));return be.set(e,r),r}catch(n){}return null},set:function(e,t){try{be.set(e,t),t.distinct_id&&me.set(e,{distinct_id:t.distinct_id})}catch(r){be.error(r)}},remove:function(e){try{window.localStorage.removeItem(e),me.remove(e)}catch(t){be.error(t)}}}),Se={},Oe={is_supported:function(){return!0},error:function(e){te("memoryStorage error: "+e)},parse:function(e){return Se[e]||null},set:function(e,t){Se[e]=t},remove:function(e){delete Se[e]}},xe={sessionStorageSupported:null,is_supported:function(){if(null!==xe.sessionStorageSupported)return xe.sessionStorageSupported;if(xe.sessionStorageSupported=!0,window)try{var e="__support__";xe.set(e,"xyz"),'"xyz"'!==xe.get(e)&&(xe.sessionStorageSupported=!1),xe.remove(e)}catch(t){xe.sessionStorageSupported=!1}else xe.sessionStorageSupported=!1;return xe.sessionStorageSupported},error:function(e){Config.DEBUG&&te("sessionStorage error: ",e)},get:function(e){try{return window.sessionStorage.getItem(e)}catch(t){xe.error(t)}return null},parse:function(e){try{return JSON.parse(xe.get(e))||null}catch(t){}return null},set:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(r){xe.error(r)}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(t){xe.error(t)}}};function Pe(e,t){De(!0,e,t)}function Ee(e,t){De(!1,e,t)}function Ie(e,t){return"1"===je(e,t)}function Ce(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||W,r=t.navigator||{},n=!1;return K.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){K.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}return!1}(t)||"0"===je(e,t)}function Fe(e,t){return Re(e,(function(e){return this._get_config(e)}),t)}function Te(e,t){$e(t=t||{}).remove(Ae(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function $e(e){return"localStorage"===(e=e||{}).persistenceType?be:"localStorage+cookie"===e.persistenceType?ke:me}function Ae(e,t){return((t=t||{}).persistencePrefix||"__ph_opt_in_out_")+e}function je(e,t){return $e(t).get(Ae(e,t))}function De(e,t,r){K.isString(t)&&t.length?($e(r=r||{}).set(Ae(t,r),e?1:0,K.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.capture&&e&&r.capture(r.captureEventName||"$opt_in",r.captureProperties,{send_immediately:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Re(e,t,r){return function(){var n=!1;try{var o=t.call(this,"token"),i=t.call(this,"respect_dnt"),s=t.call(this,"opt_out_capturing_persistence_type"),a=t.call(this,"opt_out_capturing_cookie_prefix"),c=t.call(this,"window");o&&(n=Ce(o,{respectDnt:i,persistenceType:s,persistencePrefix:a,window:c}))}catch(l){r||console.error("Unexpected error when checking capturing opt-out status: "+l)}if(!n)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"===typeof u&&u(0)}}var Me="$set",Ne={set_action:function(e,t){return this.apiActionParser(Me,e,t)},set_once_action:function(e,t){return this.apiActionParser("$set_once",e,t)},apiActionParser:function(e,t,r){var n={},o={};return K.isObject(t)?K.each(t,(function(e,t){this._is_reserved_property(t)||(o[t]=e)}),this):o[t]=r,n[e]=o,n}},Ue=function(){};K.extend(Ue.prototype,Ne),Ue.prototype._init=function(e){this._posthog=e},Ue.prototype.set=Fe((function(e,t,r){var n=this.set_action(e,t);return K.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._posthog.persistence.update_referrer_info(document.referrer),n.$set=K.extend({},K.info.people_properties(),this._posthog.persistence.get_referrer_info(),n.$set),this._send_request(n,r)})),Ue.prototype.set_once=Fe((function(e,t,r){var n=this.set_once_action(e,t);return K.isObject(e)&&(r=t),this._send_request(n,r)})),Ue.prototype.toString=function(){return this._posthog.toString()+".people"},Ue.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._posthog.get_distinct_id();var r=this._posthog.get_property("$device_id"),n=this._posthog.get_property("$user_id"),o=this._posthog.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=K.encodeDates(e),s=K.copyAndTruncateStrings(i,this._get_config("properties_string_max_length")),a=JSON.stringify(i),c=K.base64Encode(a);return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:c},{},this._posthog._prepare_callback(t,s)),s},Ue.prototype._get_config=function(e){return this._posthog.get_config(e)},Ue.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Ue.prototype.set=Ue.prototype.set,Ue.prototype.set_once=Ue.prototype.set_once,Ue.prototype.toString=Ue.prototype.toString;var qe=function(){function e(t){g(this,e),this.instance=t,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return y(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property("$enabled_feature_flags"),t=this.instance.get_property("$override_feature_flags");if(!t)return e||{};for(var r=K.extend({},e),n=Object.keys(t),o=0;o<n.length;o++)!1===t[n[o]]?delete r[n[o]]:r[n[o]]=t[n[o]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this._override_warning=!0),r}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout((function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())}),5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var t=this.instance.get_config("token"),r=JSON.stringify({token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups()}),n=K.base64Encode(r);this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=2",{data:n},{method:"POST"},this.instance._prepare_callback((function(t){e.receivedFeatureFlags(t),e.setReloadingPaused(!1),e._startReloadTimer()})))}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time."),
1!1;var r=this.getFlagVariants()[e];return!t.send_event&&"send_event"in t||this.flagCallReported[e]||(this.flagCallReported[e]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r})),r}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(e,t):(console.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time."),!1)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"receivedFeatureFlags",value:function(e){!function(e,t){var r=e.featureFlags;if(r)if(Array.isArray(r)){var n={};if(r)for(var o=0;o<r.length;o++)n[r[o]]=!0;t&&t.register({$active_feature_flags:r,$enabled_feature_flags:n})}else t&&t.register({$active_feature_flags:Object.keys(r||{}),$enabled_feature_flags:r||{}});else t&&(t.unregister("$active_feature_flags"),t.unregister("$enabled_feature_flags"))}(e,this.instance.persistence);var t=this.getFlags(),r=this.getFlagVariants();this.featureFlagEventHandlers.forEach((function(e){return e(t,r)}))}},{key:"override",value:function(e){if(this._override_warning=!1,!1===e)this.instance.persistence.unregister("$override_feature_flags");else if(Array.isArray(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;this.instance.persistence.register({$override_feature_flags:t})}else this.instance.persistence.register({$override_feature_flags:e})}},{key:"onFeatureFlags",value:function(e){(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit)&&e(this.getFlags(),this.getFlagVariants())}}]),e}
1(),Be="$people_distinct_id",Le="__alias",He="__timers",We="$session_recording_enabled_server_side",Qe="$sesid",ze="$enabled_feature_flags",Ge=["__mps","__mpso","__mpus","__mpa","__mpap","__mpr","__mpu",Be,Le,"__cmpns",He,We,Qe,ze],Ve=function(e){var t="";e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+t+"_posthog";var r=e.persistence;"cookie"!==r&&-1===r.indexOf("localStorage")&&"memory"!==r&&(re("Unknown persistence type "+r+"; falling back to cookie"),r=e.persistence="cookie"),"localStorage"===r&&be.is_supported()?this.storage=be:"localStorage+cookie"===r&&ke.is_supported()?this.storage=ke:this.storage="memory"===r?Oe:me,this.load(),this.update_config(e),this.save()};Ve.prototype.properties=function(){var e={};return K.each(this.props,(function(t,r){if(r===ze&&"object"===_(t))for(var n=Object.keys(t),o=0;o<n.length;o++)e["$feature/".concat(n[o])]=t[n[o]];else K.include(Ge,r)||(e[r]=t)})),e},Ve.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=K.extend({},e))}},Ve.prototype.save=function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)},Ve.prototype.remove=function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)},Ve.prototype.clear=function(){this.remove(),this.props={}},Ve.prototype.register_once=function(e,t,r){return!!K.isObject(e)&&("undefined"===typeof t&&(t="None"),this.expire_days="undefined"===typeof r?this.default_expiry:r,K.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Ve.prototype.register=function(e,t){return!!K.isObject(e)&&(this.expire_days="undefined"===typeof t?this.default_expiry:t,K.extend(this.props,e),this.save(),!0)},Ve.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},Ve.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register(K.info.campaignParams()),this.campaign_params_saved=!0)},Ve.prototype.update_search_keyword=function(e){this.register(K.info.searchInfo(e))},Ve.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:K.info.referringDomain(e)||"$direct"},""),this.register({$referrer:e||this.props.$referrer||"$direct",$referring_domain:K.info.referringDomain(e)||this.props.$referring_domain||"$direct"})},Ve.prototype.get_referrer_info=function(){return K.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ve.prototype.safe_merge=function(e){return K.each(this.props,(function(t,r){r in e||(e[r]=t)})),e},Ve.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Ve.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ve.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ve.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ve.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ve.prototype.set_event_timer=function(e,t){var r=this.props.__timers||{};r[e]=t,this.props.__timers=r,this.save()},Ve.prototype.remove_event_timer=function(e){var t=(this.props.__timers||{})[e];return K.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var Je=2,Ze=4,Xe=6,Ye=function(){function e(t){g(this,e),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint="/e/",this.stopRrweb=null,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return y(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=null,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(We),t=!this.instance.get_config("disable_session_recording");return e&&t}},{key:"afterDecideResponse",value:function(e){var t,r;(this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register(m({},We,!!e.sessionRecording)),null!==(t=e.sessionRecording)&&void 0!==t&&t.endpoint)&&(this.endpoint=null===(r=e.sessionRecording)||void 0===r?void 0:r.endpoint);this.startRecordingIfEnabled()}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;
1this.receivedDecide&&(this.emit=!0,this.snapshots.forEach((function(t){return e._captureSnapshot(t)}))),this._startCapture()}},{key:"_startCapture",value:function(){"undefined"!==typeof Object.assign&&(this.captureStarted||this.instance.get_config("disable_session_recording")||(this.captureStarted=!0,_e(this.instance.get_config("api_host")+"/static/recorder.js?v="+M.LIB_VERSION,K.bind(this._onScriptLoaded,this))))}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.instance.sessionManager.getSessionAndWindowId(e.timestamp||(new Date).getTime(),e),r=t.windowId,n=t.sessionId;this.windowId===r&&this.sessionId===n||-1!==[Je,Ze].indexOf(e.type)||this.rrwebRecord.takeFullSnapshot(),this.windowId=r,this.sessionId=n}},{key:"_onScriptLoaded",value:function(){var e=this,t={blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!1,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var r=this.instance.get_config("session_recording"),n=0,o=Object.entries(r||{});n<o.length;n++){var i=E(o[n],2),s=i[0],a=i[1];s in t&&(t[s]=a)}this.stopRrweb=this.rrwebRecord(b({emit:function(t){t=function(e){if(e&&"object"===_(e)&&e.type===Xe&&"object"===_(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var t=[],r=0;r<e.data.payload.payload.length;r++)e.data.payload.payload[r].length>2e3?t.push(e.data.payload.payload[r].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[r]);return e.data.payload.payload=t,e}return e}(function(e){if(e&&"object"===_(e)){var t=JSON.stringify(e);if(t.length>5e6){var r,n=F(t.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(n.s();!(r=n.n()).done;){var o=r.value;t="image/"===o[1].toLocaleLowerCase().slice(0,6)?t.replace(o[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):t.replace(o[0],"")}}catch(i){n.e(i)}finally{n.f()}}return JSON.parse(t)}return e}(t)),e._updateWindowAndSessionIds(t);var r={$snapshot_data:t,$session_id:e.sessionId,$window_id:e.windowId};e.instance._captureMetrics.incr("rrweb-record"),e.instance._captureMetrics.incr("rrweb-record-".concat(t.type)),e.emit?e._captureSnapshot(r):e.snapshots.push(r)},plugins:window.rrwebConsoleRecord&&this.instance.get_config("enable_recording_console_log")?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},t)),this.instance._addCaptureHook((function(t){"$pageview"===t&&e.rrwebRecord.addCustomEvent("$pageview",{href:window.location.href})}))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_forceCompression:!0,_noTruncate:!0,_batchKey:"sessionRecording",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===Je}})}}]),e}(),Ke=function(){function e(t){g(this,e),this.instance=t,this.instance.decideEndpointWasHit=!1}return y(e,[{key:"call",value:function(){var e=this,t=JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups()}),r=K.base64Encode(t);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=2"),{data:r,verbose:!0},{method:"POST"},(function(t){return e.parseDecideResponse(t)}))}},{key:"parseDecideResponse",value:function(e){var t=this;if(0!==(null===e||void 0===e?void 0:e.status)){if(this.instance.decideEndpointWasHit=!0,!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((function(){t.parseDecideResponse(e)}),500);if(this.instance.toolbar.afterDecideResponse(e),this.instance.sessionRecording.afterDecideResponse(e),ve.afterDecideResponse(e,this.instance),this.instance.featureFlags.receivedFeatureFlags(e),e.supportedCompression){var r,n={},o=F(e.supportedCompression);try{for(o.s();!(r=o.n()).done;){n[r.value]=!0}}catch(i){o.e(i)}finally{o.f()}this.instance.compression=n}else this.instance.compression={}}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),et=function(){function e(t){g(this,e),this.instance=t}return y(e,[{key:"afterDecideResponse",value:function(e){var t=e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&t.toolbarVersion&&0===t.toolbarVersion.indexOf("toolbar")&&this._loadEditor(b(b({},t),{},{apiURL:this.instance.get_config("api_host")}))}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.history;try{if(!t){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(error){return!1}t=window.localStorage}var n,o=K.getHashParam(e.hash,"__posthog")||K.getHashParam(e.hash,"state"),i=o?JSON.parse(decodeURIComponent(o)):null,
1s=i&&("mpeditor"===i.action||"ph_authorize"===i.action);return s?(n=i)&&Object.keys(n).length>0&&(t.setItem("_postHogEditorParams",JSON.stringify(n)),i.desiredHash?e.hash=i.desiredHash:r?r.replaceState("",document.title,e.pathname+e.search):e.hash=""):delete(n=JSON.parse(t.getItem("_postHogEditorParams")||"{}")).userIntent,n.apiURL=this.instance.get_config("api_host"),!(!n.token||this.instance.get_config("token")!==n.token)&&(this._loadEditor(n),!0)}catch(a){return!1}}},{key:"_loadEditor",value:function(e){var t=this;if(!window._postHogToolbarLoaded){window._postHogToolbarLoaded=!0;var r=e.jsURL||e.apiURL||this.instance.get_config("api_host"),n=r+(r.endsWith("/")?"":"/")+"static/toolbar.js?_ts="+(new Date).getTime(),o="https://app.posthog.com"!==this.instance.get_config("api_host")&&this.instance.get_config("advanced_disable_toolbar_metrics");return e=b(b({},e),o?{instrument:!1}:{}),_e(n,(function(){window.ph_load_editor(e,t.instance)})),K.register_event(window,"turbolinks:load",(function(){window._postHogToolbarLoaded=!1,t._loadEditor(e)})),!0}return!1}}]),e}(),tt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;g(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=function(){},this._pollInterval=t}return y(e,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"enqueue",value:function(){}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return(new Date).getTime()}}]),e}(),rt=function(e){k(r,e);var t=P(r);function r(e,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;return g(this,r),(o=t.call(this,i)).handlePollRequest=n,o.captureMetrics=e,o}return y(r,[{key:"enqueue",value:function(e,t,r){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:e,data:t,options:r}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;clearTimeout(this._poller),this._poller=setTimeout((function(){if(e._event_queue.length>0){var t=e.formatQueue(),r=function(r){var n=t[r],o=n.url,i=n.data,s=n.options;K.each(i,(function(t,r){i[r].offset=Math.abs(i[r].timestamp-e.getTime()),delete i[r].timestamp})),e.handlePollRequest(o,i,s),e.captureMetrics.incr("batch-requests"),e.captureMetrics.incr("batch-requests-".concat(o.slice(o.length-2))),e.captureMetrics.incr("batch-handle",i.length),e.captureMetrics.incr("batch-handle-".concat(o.slice(o.length-2)),i.length)};for(var n in t)r(n);e._event_queue.length=0,e._empty_queue_count=0}else e._empty_queue_count++;e._empty_queue_count>4&&(e.isPolling=!1,e._empty_queue_count=0),e.isPolling&&e.poll()}),this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var e=this.formatQueue();for(var t in e){var r=e[t],n=r.url,o=r.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(n.slice(n.length-2))),this.captureMetrics.incr("batch-unload",o.length),this.captureMetrics.incr("batch-unload-".concat(n.slice(n.length-2)),o.length)}}},{key:"unload",value:function(){clearTimeout(this._poller);var e=this._event_queue.length>0?this.formatQueue():{};for(var t in this._event_queue.length=0,e){var r=e[t],n=r.url,o=r.data,i=r.options;this.handlePollRequest(n,o,b(b({},i),{},{transport:"sendbeacon"}))}}},{key:"formatQueue",value:function(){var e={};return K.each(this._event_queue,(function(t){var r=t.url,n=t.data,o=t.options,i=(o?o._batchKey:null)||r;void 0===e[i]&&(e[i]={data:[],url:r,options:o}),o&&e[i].options&&e[i].options._metrics&&!e[i].options._metrics.rrweb_full_snapshot&&(e[i].options._metrics.rrweb_full_snapshot=o._metrics.rrweb_full_snapshot),e[i].data.push(n)})),e}}]),r}(tt),nt=function(){function e(t){g(this,e),this.enabled=t,this.metrics={}}return y(e,[{key:"incr",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)+t)}},{key:"decr",value:function(e){this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)-1)}}]),e}(),ot=Uint8Array,it=Uint16Array,st=Uint32Array,at=new ot([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ct=new ot([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ut=new ot([
vendor: 4,554 bytes, line 1
116,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lt=function(e,t){for(var r=new it(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var o=new st(r[30]);for(n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return[r,o]},pt=lt(at,2),dt=pt[0],ft=pt[1];dt[28]=258,ft[258]=28;for(var ht=lt(ct,0)[1],_t=new it(32768),gt=0;gt<32768;++gt){var vt=(43690&gt)>>>1|(21845&gt)<<1;vt=(61680&(vt=(52428&vt)>>>2|(13107&vt)<<2))>>>4|(3855&vt)<<4,_t[gt]=((65280&vt)>>>8|(255&vt)<<8)>>>1}var yt=function(e,t,r){for(var n=e.length,o=0,i=new it(t);o<n;++o)++i[e[o]-1];var s,a=new it(t);for(o=0;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;if(r){s=new it(1<<t);var c=15-t;for(o=0;o<n;++o)if(e[o])for(var u=o<<4|e[o],l=t-e[o],p=a[e[o]-1]++<<l,d=p|(1<<l)-1;p<=d;++p)s[_t[p]>>>c]=u}else for(s=new it(n),o=0;o<n;++o)s[o]=_t[a[e[o]-1]++]>>>15-e[o];return s},mt=new ot(288);for(gt=0;gt<144;++gt)mt[gt]=8;for(gt=144;gt<256;++gt)mt[gt]=9;for(gt=256;gt<280;++gt)mt[gt]=7;for(gt=280;gt<288;++gt)mt[gt]=8;var wt=new ot(32);for(gt=0;gt<32;++gt)wt[gt]=5;var bt=yt(mt,9,0),kt=yt(wt,5,0),St=function(e){return(e/8>>0)+(7&e&&1)},Ot=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof it?it:e instanceof st?st:ot)(r-t);return n.set(e.subarray(t,r)),n},xt=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},Pt=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},Et=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return[new ot(0),0];if(1==o){var s=new ot(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var a=r[0],c=r[1],u=0,l=1,p=2;for(r[0]={s:-1,f:a.f+c.f,l:a,r:c};l!=o-1;)a=r[r[u].f<r[p].f?u++:p++],c=r[u!=l&&r[u].f<r[p].f?u++:p++],r[l++]={s:-1,f:a.f+c.f,l:a,r:c};var d=i[0].s;for(n=1;n<o;++n)i[n].s>d&&(d=i[n].s);var f=new it(d+1),h=It(r[l-1],f,0);if(h>t){n=0;var _=0,g=h-t,v=1<<g;for(i.sort((function(e,t){return f[t.s]-f[e.s]||e.f-t.f}));n<o;++n){var y=i[n].s;if(!(f[y]>t))break;_+=v-(1<<h-f[y]),f[y]=t}for(_>>>=g;_>0;){var m=i[n].s;f[m]<t?_-=1<<t-f[m]++-1:++n}for(;n>=0&&_;--n){var w=i[n].s;f[w]==t&&(--f[w],++_)}h=t}return[new ot(f),h]},It=function e(t,r,n){return-1==t.s?Math.max(e(t.l,r,n+1),e(t.r,r,n+1)):r[t.s]=n},Ct=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new it(++t),n=0,o=e[0],i=1,s=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==o&&a!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=e[a]}return[r.subarray(0,n),t]},Ft=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Tt=function(e,t,r){var n=r.length,o=St(t+2);e[o]=255&n,e[o+1]=n>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<n;++i)e[o+i+4]=r[i];return 8*(o+4+n)},$t=function(e,t,r,n,o,i,s,a,c,u,l){xt(t,l++,r),++o[256];for(var p=Et(o,15),d=p[0],f=p[1],h=Et(i,15),_=h[0],g=h[1],v=Ct(d),y=v[0],m=v[1],w=Ct(_),b=w[0],k=w[1],S=new it(19),O=0;O<y.length;++O)S[31&y[O]]++;for(O=0;O<b.length;++O)S[31&b[O]]++;for(var x=Et(S,7),P=x[0],E=x[1],I=19;I>4&&!P[ut[I-1]];--I);var C,F,T,$,A=u+5<<3,j=Ft(o,mt)+Ft(i,wt)+s,D=Ft(o,d)+Ft(i,_)+s+14+3*I+Ft(S,P)+(2*S[16]+3*S[17]+7*S[18]);if(A<=j&&A<=D)return Tt(t,l,e.subarray(c,c+u));if(xt(t,l,1+(D<j)),l+=2,D<j){C=yt(d,f,0),F=d,T=yt(_,g,0),$=_;var R=yt(P,E,0);xt(t,l,m-257),xt(t,l+5,k-1),xt(t,l+10,I-4),l+=14;for(O=0;O<I;++O)xt(t,l+3*O,P[ut[O]]);l+=3*I;for(var M=[y,b],N=0;N<2;++N){var U=M[N];for(O=0;O<U.length;++O){var q=31&U[O];xt(t,l,R[q]),l+=P[q],q>15&&(xt(t,l,U[O]>>>5&127),l+=U[O]>>>12)}}}else C=bt,F=mt,T=kt,$=wt;for(O=0;O<a;++O)if(n[O]>255){q=n[O]>>>18&31;Pt(t,l,C[q+257]),l+=F[q+257],q>7&&(xt(t,l,n[O]>>>23&31),l+=at[q]);var B=31&n[O];Pt(t,l,T[B]),l+=$[B],B>3&&(Pt(t,l,n[O]>>>5&8191),l+=ct[B])}else Pt(t,l,C[n[O]]),l+=F[n[O]];return Pt(t,l,C[256]),l+F[256]},At=new st([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jt=new ot(0),Dt=function(){for(var e=new st(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),Rt=function(e,t,r,n,o){return function(e,t,r,n,o,i){var s=e.length,a=new ot(n+s+5*(1+Math.floor(s/7e3))+o),c=a.subarray(n,a.length-o),u=0;if(!t||s<8)for(var l=0;l<=s;l+=65535){var p=l+65535;p<s?u=Tt(c,u,e.subarray(l,p)):(c[l]=i,u=Tt(c,u,e.subarray(l,s)))}else{for(var d=At[t-1],f=d>>>13,h=8191&d,_=(1<<r)-1,g=new it(32768),v=new it(_+1),y=Math.ceil(r/3),m=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<m)&_},b=new st(25e3),k=new it(288),S=new it(32),O=0,x=0,P=(l=0,0),E=0,I=0;l<s;
1++l){var C=w(l),F=32767&l,T=v[C];if(g[F]=T,v[C]=F,E<=l){var $=s-l;if((O>7e3||P>24576)&&$>423){u=$t(e,c,0,b,k,S,x,P,I,l-I,u),P=O=x=0,I=l;for(var A=0;A<286;++A)k[A]=0;for(A=0;A<30;++A)S[A]=0}var j=2,D=0,R=h,M=F-T&32767;if($>2&&C==w(l-M))for(var N=Math.min(f,$)-1,U=Math.min(32767,l),q=Math.min(258,$);M<=U&&--R&&F!=T;){if(e[l+j]==e[l+j-M]){for(var B=0;B<q&&e[l+B]==e[l+B-M];++B);if(B>j){if(j=B,D=M,B>N)break;var L=Math.min(M,B-2),H=0;for(A=0;A<L;++A){var W=l-M+A+32768&32767,Q=W-g[W]+32768&32767;Q>H&&(H=Q,T=W)}}}M+=(F=T)-(T=g[F])+32768&32767}if(D){b[P++]=268435456|ft[j]<<18|ht[D];var z=31&ft[j],G=31&ht[D];x+=at[z]+ct[G],++k[257+z],++S[G],E=l+j,++O}else b[P++]=e[l],++k[e[l]]}}u=$t(e,c,i,b,k,S,x,P,I,l-I,u),i||(u=Tt(c,u,jt))}return Ot(a,0,n+St(u)+o)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!o)},Mt=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function Nt(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=Dt[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var o,i=Rt(e,t,10+((o=t).filename&&o.filename.length+1||0),8),s=i.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&Mt(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(i,t),Mt(i,s-8,r.d()),Mt(i,s-4,n),i}function Ut(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new ot(e.length+(e.length>>>1)),o=0,i=function(e){n[o++]=e},s=0;s<r;++s){if(o+5>n.length){var a=new ot(o+8+(r-s<<1));a.set(n),n=a}var c=e.charCodeAt(s);c<128||t?i(c):c<2048?(i(192|c>>>6),i(128|63&c)):c>55295&&c<57344?(i(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>>18),i(128|c>>>12&63),i(128|c>>>6&63),i(128|63&c)):(i(224|c>>>12),i(128|c>>>6&63),i(128|63&c))}return Ot(n,0,o)}var qt,Bt,Lt=function(e,t,r){var n=t||{};n.ip=r.ip?1:0,n._=(new Date).getTime().toString(),n.ver=M.LIB_VERSION;var o=e.split("?");if(o.length>1){var i,s=F(o[1].split("&"));try{for(s.s();!(i=s.n()).done;){var a=i.value.split("=")[0];n[a]&&delete n[a]}}catch(u){s.e(u)}finally{s.f()}}var c=e.indexOf("?")>-1?"&":"?";return e+c+K.HTTPBuildQuery(n)},Ht=function e(t,r){if(r.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var n=e(t,{method:"POST"});return new Blob([n],{type:"application/x-www-form-urlencoded"})}if("POST"!==r.method)return null;var o,i;return o=Array.isArray(t)||(i=t,"[object Uint8Array]"===Object.prototype.toString.call(i))?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),t.compression&&(o+="&compression="+t.compression),o},Wt=function(e){var t=e.url,r=e.data,n=e.headers,o=e.options,i=e.captureMetrics,s=e.callback,a=e.retriesPerformedSoFar,c=e.retryQueue,u=e.onXHRError,l=new XMLHttpRequest;l.open(o.method,t,!0);var p=Ht(r,o);i.incr("_send_request"),i.incr("_send_request_inflight"),K.each(n,(function(e,t){l.setRequestHeader(t,e)})),"POST"!==o.method||o.blob||l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.withCredentials=!0,l.onreadystatechange=function(){if(4===l.readyState)if(i.incr("xhr-response"),i.incr("xhr-response-".concat(l.status)),i.decr("_send_request_inflight"),200===l.status){if(s){var e;try{e=JSON.parse(l.responseText)}catch(p){return void te(p)}s(e)}}else"function"===typeof u&&u(l),[401,403,404,500].indexOf(l.status)<0&&c.enqueue({url:t,data:r,options:o,headers:n,retriesPerformedSoFar:(a||0)+1,callback:s}),s&&(o.verbose?s({status:0,error:error}):s(0))},l.send(p)},Qt=function(e){k(r,e);var t=P(r);function r(e,n){var o;return g(this,r),(o=t.call(this)).captureMetrics=e,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=n,"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",(function(){o._handleWeAreNowOnline()})),window.addEventListener("offline",(function(){o.areWeOnline=!1}))),o}return y(r,[{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;if(!(t>=10)){var r=3e3*Math.pow(2,t),n=new Date(Date.now()+r);console.warn("Enqueued failed request for retry in ".concat(r)),this.queue.push({retryAt:n,requestData:e}),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var e=this;clearTimeout(this._poller),this._poller=setTimeout((function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()}),this._pollInterval)}},{key:"flush",value:function(){var e=new Date(Date.now()),t=this.queue.filter((function(t){return t.retryAt<e}));if(t.length>0){this.queue=this.queue.filter((function(t){return t.retryAt>=e}));var r,n=F(t);try{for(n.s();!(r=n.n()).done;){var o=r.value.requestData;this._executeXhrRequest(o)}}catch(i){n.e(i)}finally{n.f()}}}},{key:"unload",value:function(){clearTimeout(this._poller);var e,t=F(this.queue);try{for(t.s();!(e=t.n()).done;){var r=e.value.requestData,n=r.url,o=r.data,i=r.options;try{window.navigator.sendBeacon(n,Ht(o,b(b({},i),{},{sendBeacon:!0})))}catch(s){this.get_config("debug")&&console.error(s)}}}catch(a){t.e(a)}finally{t.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(e){var t=e.url,r=e.data,n=e.options,o=e.headers,i=e.callback,s=e.retriesPerformedSoFar;Wt({url:t,data:r||{},options:n||{},headers:o||{},retriesPerformedSoFar:s||0,callback:i,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(tt),zt=18e5,Gt=function(){function e(t,r){g(this,e),this.persistence=r,t.persistence_name?this.window_id_storage_key="ph_"+t.persistence_name+"_window_id":this.window_id_storage_key="ph_"+t.token+"_window_id"}return y(e,[{key:"_setWindowId",value:function(e){e!==this.windowId&&(this.windowId=e,!this.persistence.disabled&&xe.is_supported()&&xe.set(this.window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this.windowId?this.windowId:!this.persistence.disabled&&xe.is_supported()?xe.parse(this.window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t){e===this.sessionId&&t===this.timestamp||(this.timestamp=t,this.sessionId=e,this.persistence.register(m({},Qe,[t,e])))}},{key:"_getSessionId",value:function(){return this.sessionId&&this.timestamp?[this.timestamp,this.sessionId]:this.persistence.props.$sesid||[0,null]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null)}},{key:"getSessionAndWindowId",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(r&&3===r.type&&3===(null===(e=r.data)||void 0===e?void 0:e.source));t=t||(new Date).getTime();var o=this._getSessionId(),i=E(o,2),s=i[0],a=i[1],c=this._getWindowId();!a||n&&Math.abs(t-s)>zt?(a=K.UUID(),c=K.UUID()):c||(c=K.UUID());var u=0===s||n?t:s;return this._setWindowId(c),this._setSessionId(a,u),{sessionId:a,windowId:c}}}]),e}();function Vt(e){return e.forEach((function(t,r){for(var n in t)o=t[n],Number(o)===o&&o%1!==0&&t[n].toString().match(/^\d+\.\d{4,}
1$/)&&(e[r][n]=Number(t[n].toFixed(3))),["serverTiming","workerTiming"].includes(n)&&0===t[n].length&&delete e[r][n],"entryType"===n&&"resource"===t[n]&&delete e[r][n],"nextHopProtocol"===n&&delete e[r][n],0===t[n]&&delete e[r][n];var o})),function(e){if(0===e.length)return[];var t=Object.keys(e[0]);return[t,e.map((function(e){return t.map((function(t){return e[t]}))}))]}(e)}function Jt(e){try{return Vt(JSON.parse(JSON.stringify(W.performance.getEntriesByType(e))))}catch(t){return M.DEBUG&&console.warn("not able to capture performance data ("+e+") - "+t),[]}}var Zt,Xt=function(){},Yt={},Kt="posthog",er=W.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,tr=!er&&-1===G.indexOf("MSIE")&&-1===G.indexOf("Mozilla"),rr=function(){},nr=function(e,t,r){var n,o=r===Kt?Bt:Bt[r];if(o&&0===qt)n=o;else{if(o&&!K.isArray(o))return void console.error("You have already initialized "+r);n=new rr}if(n._init(e,t,r),n.people=new Ue,n.people._init(n),n.featureFlags=new qe(n),n.feature_flags=n.featureFlags,n.toolbar=new et(n),n.toolbar.maybeLoadEditor(),n.sessionRecording=new Ye(n),n.sessionRecording.startRecordingIfEnabled(),n.__autocapture_enabled=n.get_config("autocapture"),n.get_config("autocapture")){ve.enabledForProject(n.get_config("token"),100,100)?ve.isBrowserSupported()?ve.init(n):(n.__autocapture_enabled=!1,ee("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture_enabled=!1,ee("Not in active bucket: disabling Automatic Event Collection."))}return M.DEBUG=M.DEBUG||n.get_config("debug"),!K.isUndefined(o)&&K.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};rr.prototype.init=function(e,t,r){if(K.isUndefined(r))console.error("You must name your new library: init(token, config, name)");else{if(r!==Kt){var n=nr(e,t,r);return Bt[r]=n,n._loaded(),n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}},rr.prototype._init=function(e,t,r){this.__loaded=!0,this.config={},this._triggered_notifs=[],this.compression={},this.set_config(K.extend({},{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",autocapture:!0,rageclick:!1,cross_subdomain_cookie:-1===z.location.hostname.indexOf("herokuapp.com"),persistence:"cookie",persistence_name:"",cookie_name:"",loaded:function(){},store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,capture_pageview:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:!1,secure_cookie:"https:"===W.location.protocol,ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,property_blacklist:[],sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!1,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(e){var t="Bad HTTP status: "+e.status+" "+e.statusText;console.error(t)},_onCapture:function(){},_capture_metrics:!1,_capture_performance:!1},t,{name:r,token:e,callback_fn:(r===Kt?r:"posthog."+r)+"._jsc"})),this._jsc=function(){},this._captureMetrics=new nt(this.get_config("_capture_metrics")),this._requestQueue=new rt(this._captureMetrics,K.bind(this._handle_queued_event,this)),this._retryQueue=new Qt(this._captureMetrics,this.get_config("on_xhr_error")),this.__captureHooks=[],this.__request_queue=[],this.persistence=new Ve(this.config),this.sessionManager=new Gt(this.config,this.persistence),this._gdpr_init();var n=K.UUID();this.get_distinct_id()||this.register_once({distinct_id:n,$device_id:n},""),W.addEventListener&&W.addEventListener("unload",this._handle_unload.bind(this))},rr.prototype._loaded=function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{},{send_instantly:!0}
1),this.get_config("advanced_disable_decide")||new Ke(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)},rr.prototype._start_queue_if_opted_in=function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()},rr.prototype._dom_loaded=function(){this.has_opted_out_capturing()||K.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__request_queue,this._start_queue_if_opted_in()},rr.prototype._prepare_callback=function(e,t){if(K.isUndefined(e))return null;if(er){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},rr.prototype._handle_unload=function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.capture("$pageleave",null,{transport:"sendbeacon"})},rr.prototype._handle_queued_event=function(e,t,r){var n=JSON.stringify(t);this.__compress_and_send_json_request(e,n,r||Yt,Xt)},rr.prototype.__compress_and_send_json_request=function(e,t,r,n){var o,i=function(e,t,r){return"lz64"===e?[{data:R.compressToBase64(t),compression:"lz64"},r]:"gzip-js"===e?[Nt(Ut(t),{mtime:0}),b(b({},r),{},{blob:!0,urlQueryArgs:{compression:"gzip-js"}})]:[{data:K.base64Encode(t)},r]}((o=this.compression)["gzip-js"]?"gzip-js":o.lz64?"lz64":"base64",t,r),s=E(i,2),a=s[0],c=s[1];this._send_request(e,a,c,n)},rr.prototype._send_request=function(e,t,r,n){if(tr)this.__request_queue.push(arguments);else{var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=K.extend(o,r||{}),er||(r.method="GET");var i=W.navigator.sendBeacon&&"sendbeacon"===r.transport.toLowerCase();if(e=Lt(e,r.urlQueryArgs,{ip:this.get_config("ip")}),K.isObject(t)&&this.get_config("img")){var s=z.createElement("img");s.src=e,z.body.appendChild(s)}else if(i)try{W.navigator.sendBeacon(e,Ht(t,b(b({},r),{},{sendBeacon:!0})))}catch(u){this.get_config("debug")&&console.error(u)}else if(er)try{Wt({url:e,data:t,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error")})}catch(u){console.error(u)}else{var a=z.createElement("script");a.type="text/javascript",a.async=!0,a.defer=!0,a.src=e;var c=z.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c)}}},rr.prototype._execute_array=function(e){var t,r=[],n=[],o=[];K.each(e,(function(e){e&&(t=e[0],K.isArray(t)?o.push(e):"function"===typeof e?e.call(this):K.isArray(e)&&"alias"===t?r.push(e):K.isArray(e)&&-1!==t.indexOf("capture")&&"function"===typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){K.each(e,(function(e){if(K.isArray(e[0])){var r=t;K.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},rr.prototype.push=function(e){this._execute_array([e])},rr.prototype.capture=Re((function(e,t,r){if(this.__loaded){this._captureMetrics.incr("capture"),"$snapshot"===e&&this._captureMetrics.incr("snapshot");var n=(r=r||Yt).transport;if(n&&(r.transport=n),K.isUndefined(e)||"string"!==typeof e)console.error("No event name provided to posthog.capture");else if(!K.isBlockedUA(G)){var o=this.persistence.remove_event_timer(e);this.persistence.update_search_keyword(z.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(z.referrer);var i={event:e,properties:this._calculate_event_properties(e,t,o)};"$identify"===e&&r.$set&&(i.$set=r.$set),i=K.copyAndTruncateStrings(i,r._noTruncate?null:this.get_config("properties_string_max_length")),this.get_config("debug")&&ee("PostHog.js send",i);var s=JSON.stringify(i),a=this.get_config("api_host")+(r.endpoint||"/e/"),c=r!==Yt;return!this.get_config("request_batching")||c&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(a,s,r):(i.timestamp=new Date,this._requestQueue.enqueue(a,i,r)),this._invokeCaptureHooks(e,i),i}}}),(function(e){return this.get_config(e)}),Zt),rr.prototype._addCaptureHook=function(e){this.__captureHooks.push(e)},rr.prototype._invokeCaptureHooks=function(e,t){this.config._onCapture(e,t),K.each(this.__captureHooks,(function(t){return t(e)}))},rr.prototype._calculate_event_properties=function(e,t,r){var n=b({},t);if(n.token=this.get_config("token"),"$snapshot"===e){var o=this.persistence.properties();return n.distinct_id=o.distinct_id,n}if(!K.isUndefined(r)){var i=(new Date).getTime()-r;n.$duration=parseFloat((i/1e3).toFixed(3))}if(this.sessionManager){var s=this.sessionManager.getSessionAndWindowId(),a=s.sessionId,c=s.windowId;n.$session_id=a,n.$window_id=c}n=K.extend({},K.info.properties(),this.persistence.properties(),n),"$pageview"===e&&this.get_config("_capture_performance")&&(n=K.extend(n,function(){var e={navigation:Jt("navigation"),paint:Jt("paint"),resource:Jt("resource")};void 0!==_(W)&&W.performance&&W.performance.clearResourceTimings&&W.performance.clearResourceTimings();var t={},r=function(e){var t=e.navigation&&e.navigation[0],r=e.navigation&&e.navigation[1]&&e.navigation[1][0],n=t&&t.indexOf("duration");if(n>-1)return r[n];var o=t&&t.indexOf("loadEventEnd"),i=t&&t.indexOf("startTime");return o>-1?(r&&r[o])-(r&&r[i]||0):void 0}(e);return r&&(t.$performance_page_loaded=r),t.$performance_raw=JSON.stringify(e),t}()));var u=this.get_config("property_blacklist");K.isArray(u)?K.each(u,(function(e){delete n[e]})):console.error("Invalid value for property_blacklist config: "+u);var l=this.get_config("sanitize_properties");return l&&(n=l(n,e)),n},rr.prototype.register=function(e,t){this.persistence.register(e,t)},rr.prototype.register_once=function(e,t,r){this.persistence.register_once(e,t,r)},rr.prototype.unregister=function(e){this.persistence.unregister(e)},rr.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},rr.prototype.getFeatureFlag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.featureFlags.getFeatureFlag(e,t)},rr.prototype.isFeatureEnabled=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.featureFlags.isFeatureEnabled(e,t)},rr.prototype.reloadFeatureFlags=function(){return this.featureFlags.reloadFeatureFlags()},rr.prototype.onFeatureFlags=function(e){this.featureFlags.onFeatureFlags(e)},rr.prototype.identify=function(e,t,r){if(e){this._captureMetrics.incr("identify");var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var o=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:o},"")}e!==n&&e!==this.get_property(Le)&&(this.unregister(Le),this.register({distinct_id:e})),e===n||this.get_property("$device_id")&&n!==this.get_property("$device_id")?(t&&this.people.set(t),r&&this.people.set_once(r)):this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{}},{$set_once:r||{}}),e!==n&&this.reloadFeatureFlags()}else console.error("Unique user id has not been set in posthog.identify")},rr.prototype.group=function(e,t,r){if(e&&t){this._captureMetrics.incr("group");var n=this.getGroups();this.register({$groups:b(b({},n),{},m({},e,t))}),r&&this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),n[e]!==t&&this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")},rr.prototype.reset=function(e){var t=this.get_property("$device_id");this.persistence.clear();var r=K.UUID();this.register_once({distinct_id:r,$device_id:e?r:t},"")},rr.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},rr.prototype.getGroups=function(){return this.get_property("$groups")||{}},rr.prototype.alias=function(e,t){if(e===this.get_property(Be))return console.critical("Attempting to create alias for existing People user - aborting."),-2;var r=this;return K.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Le,e),this.capture("$create_alias",{alias:e,distinct_id:t},(function(){r.identify(e)}))):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},rr.prototype.set_config=function(e){var t=b({},this.config);K.isObject(e)&&(K.extend(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),be.is_supported()&&"true"===be.get("ph_debug")&&(this.config.debug=!0),M.DEBUG=M.DEBUG||this.get_config("debug"),this.sessionRecording&&"undefined"!==typeof e.disable_session_recording&&t.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))},rr.prototype.startSessionRecording=function(){this.set_config({disable_session_recording:!1})},rr.prototype.stopSessionRecording=function(){this.set_config({disable_session_recording:!0})},rr.prototype.sessionRecordingStarted=function(){return this.sessionRecording.started()},rr.prototype.get_config=function(e){return this.config[e]},rr.prototype.get_property=function(e){return this.persistence.props[e]},rr.prototype.toString=function(){var e=this.get_config("name");return e!==Kt&&(e="posthog."+e),e},rr.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_capturing_persistence_type")&&be.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!me.get("ph_optout")||(me.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},rr.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t)},rr.prototype._gdpr_call_func=function(e,t){return t=K.extend({capture:K.bind(this.capture,this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},t),be.is_supported()||"localStorage"!==t.persistence_type||(t.persistence_type="cookie"),e(this.get_config("token"),{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})},rr.prototype.opt_in_capturing=function(e){e=K.extend({enable_persistence:!0},e),this._gdpr_call_func(Pe,e),this._gdpr_update_persistence(e)},rr.prototype.opt_out_capturing=function(e){e=K.extend({clear_persistence:!0},e),this._gdpr_call_func(Ee,e),this._gdpr_update_persistence(e)},rr.prototype.has_opted_in_capturing=function(e){return this._gdpr_call_func(Ie,e)},rr.prototype.has_opted_out_capturing=function(e){return this._gdpr_call_func(Ce,e)},rr.prototype.clear_opt_in_out_capturing=function(e){e=K.extend({enable_persistence:!0},e),this._gdpr_call_func(Te,e),this._gdpr_update_persistence(e)},rr.prototype.sentry_integration=function(e,t,r,n){this.name="posthog-js",this.setupOnce=function(o){o((function(o){if
1("error"!==o.level||!e.__loaded)return o;o.tags||(o.tags={}),o.tags["PostHog URL"]=e.config.api_host+"/person/"+e.get_distinct_id();var i={$sentry_event_id:o.event_id,$sentry_exception:o.exception};return t&&r&&(i.$sentry_url=(n||"https://sentry.io/organizations/")+t+"/issues/?project="+r+"&query="+o.event_id),e.capture("$exception",i),o}))}},rr.prototype.debug=function(e){!1===e?(W.console.log("You've disabled debug mode."),localStorage&&localStorage.setItem("ph_debug",void 0),this.set_config({debug:!1})):(W.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))},rr.prototype.decodeLZ64=R.decompressFromBase64,rr.prototype.init=rr.prototype.init,rr.prototype.reset=rr.prototype.reset,rr.prototype.capture=rr.prototype.capture,rr.prototype.register=rr.prototype.register,rr.prototype.register_once=rr.prototype.register_once,rr.prototype.unregister=rr.prototype.unregister,rr.prototype.identify=rr.prototype.identify,rr.prototype.getGroups=rr.prototype.getGroups,rr.prototype.group=rr.prototype.group,rr.prototype.alias=rr.prototype.alias,rr.prototype.set_config=rr.prototype.set_config,rr.prototype.get_config=rr.prototype.get_config,rr.prototype.get_property=rr.prototype.get_property,rr.prototype.get_distinct_id=rr.prototype.get_distinct_id,rr.prototype.toString=rr.prototype.toString,rr.prototype.opt_out_captureing=rr.prototype.opt_out_captureing,rr.prototype.opt_in_captureing=rr.prototype.opt_in_captureing,rr.prototype.has_opted_out_captureing=rr.prototype.has_opted_out_captureing,rr.prototype.has_opted_in_captureing=rr.prototype.has_opted_in_captureing,rr.prototype.clear_opt_in_out_captureing=rr.prototype.clear_opt_in_out_captureing,rr.prototype.opt_out_capturing=rr.prototype.opt_out_capturing,rr.prototype.opt_in_capturing=rr.prototype.opt_in_capturing,rr.prototype.has_opted_out_capturing=rr.prototype.has_opted_out_capturing,rr.prototype.has_opted_in_capturing=rr.prototype.has_opted_in_capturing,rr.prototype.clear_opt_in_out_capturing=rr.prototype.clear_opt_in_out_capturing,rr.prototype.getFeatureFlag=rr.prototype.getFeatureFlag,rr.prototype.isFeatureEnabled=rr.prototype.isFeatureEnabled,rr.prototype.reloadFeatureFlags=rr.prototype.reloadFeatureFlags,rr.prototype.onFeatureFlags=rr.prototype.onFeatureFlags,rr.prototype.decodeLZ64=rr.prototype.decodeLZ64,rr.prototype.SentryIntegration=rr.prototype.sentry_integration,rr.prototype.debug=rr.prototype.debug,rr.prototype.LIB_VERSION=M.LIB_VERSION,rr.prototype.startSessionRecording=rr.prototype.startSessionRecording,rr.prototype.stopSessionRecording=rr.prototype.stopSessionRecording,rr.prototype.sessionRecordingStarted=rr.prototype.sessionRecordingStarted,Ve.prototype.properties=Ve.prototype.properties,Ve.prototype.update_search_keyword=Ve.prototype.update_search_keyword,Ve.prototype.update_referrer_info=Ve.prototype.update_referrer_info,Ve.prototype.get_cross_subdomain=Ve.prototype.get_cross_subdomain,Ve.prototype.clear=Ve.prototype.clear,K.safewrap_class(rr,["identify"]);var or={},ir=function(){Bt.init=function(e,t,r){if(r)return Bt[r]||(Bt[r]=or[r]=nr(e,t,r),Bt[r]._loaded()),Bt[r];var n=Bt;or.posthog?n=or.posthog:e&&((n=nr(e,t,Kt))._loaded(),or.posthog=n),Bt=n,1===qt&&(W.posthog=Bt),K.each(or,(function(e,t){t!==Kt&&(Bt[t]=e)})),Bt._=K}};var sr=(qt=0,Bt=new rr,ir(),Bt.init(),function(){function e(){e.done||(e.done=!0,tr=!1,K.each(or,(function(e){e._dom_loaded()})))}if(z.addEventListener)"complete"===z.readyState?e():z.addEventListener("DOMContentLoaded",e,!1);else if(z.attachEvent){z.attachEvent("onreadystatechange",e);var t=!1;try{t=null===W.frameElement}catch(r){}z.documentElement.doScroll&&t&&function t(){try{z.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}()}K.register_event(W,"load",e,!0)}(),Bt);var ar=r(90);function cr(e){var t=e.Component,r=e.pageProps,s=(0,h.useRouter)();return i.useEffect((function(){var e=function(){ar.gr&&u(),ar.px&&sr.capture("$pageview")};return ar.gr&&function(e,t){var r=document.createElement("script"),n=document.getElementsByTagName("script")[0]||document.querySelector("body");r.id="fathom-script",r.async=!0,r.setAttribute("data-site",e),r.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(void 0!==t.auto&&r.setAttribute("data-auto","".concat(t.auto)),void 0!==t.honorDNT&&r.setAttribute("data-honor-dnt","".concat(t.honorDNT)),void 0!==t.canonical&&r.setAttribute("data-canonical","".concat(t.canonical)),t.includedDomains&&(c(t.includedDomains),r.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(c(t.excludedDomains),r.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&r.setAttribute("data-spa",t.spa)),r.onload=a,n.parentNode.insertBefore(r,n)}(ar.gr,ar.GH),ar.px&&sr.init(ar.px,ar.kX),s.events.on("routeChangeComplete",e),function(){s.events.off("routeChangeComplete",e)}}),[s.events]),(0,o.jsx)(t,(0,n.Z)({},r))}ar.sk||console.log("\n\n\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557   \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2557   \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557    \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\n\u255a\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255d\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557  \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551\u255a\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255d\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d    \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\n   \u2588\u2588\u2551   \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551   \u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557      \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\n   \u2588\u2588\u2551   \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2557\u2588\u2588\u2551\u255a\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551   \u2588\u2588\u2551\u255a\u2588\u2588\u2557 \u2588\u2588\u2554\u255d\u2588\u2588\u2554\u2550\u2550\u255d      \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u255a\u2550\u2550\u2550\u2550\u2588\u2588\u2551\n   \u2588\u2588\u2551   \u2588\u2588\u2551  \u2588\u2588\u2551\u2588\u2588\u2551  \u2588\u2588\u2551\u2588\u2588\u2551 \u255a\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551   \u2588\u2588\u2551   \u2588\u2588\u2551 \u255a\u2588\u2588\u2588\u2588\u2554\u255d \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557    \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\n   \u255a\u2550\u255d   \u255a\u2550\u255d  \u255a\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u255d\u255a\u2550\u255d  \u255a\u2550\u2550\u2550\u255d\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d   \u255a\u2550\u255d   \u255a\u2550\u255d  \u255a\u2550\u2550\u2550\u255d  \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d    \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\n                                                                                               \n   This site is built using Notion, Next.js, and https://github.com/NotionX/react-notion-x.\n")},7604:function(){},1804:function(){},5560:function(){},7284:function(){},4722:function(){},6766:function(){},7663:function(e){!function(){var t={308:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!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:o}catch(e){t=o}try{r="function"===typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],u=!1,l=-1;function p(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||u||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,n),s=!1}finally{s&&delete r[e]}return i.exports}n.ab="//";var o=n(308);e.exports=o}()},1163:function(e,t,r){e.exports=r(387)},3931:function(e){"use strict";e.exports=()=>{const e={};return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e}},4924:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return n}})},6042:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(4924);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);
1"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){(0,n.Z)(e,t,r[t])}))}return e}},9396:function(e,t,r){"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}r.d(t,{Z:function(){return n}})},6261:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});const n=(e,t,r,n)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!o(i,s)&&n||Object.defineProperty(e,r,s)},o=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},i=(e,t)=>`/* Wrapped ${e}*/\n${t}`,s=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),a=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function c(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:o}=e;for(const i of Reflect.ownKeys(t))n(e,t,i,r);return((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)})(e,t),((e,t,r)=>{const n=""===r?"":`with ${r.trim()}() `,o=i.bind(null,n,t.toString());Object.defineProperty(o,"name",a),Object.defineProperty(e,"toString",{...s,value:o})})(e,t,o),e}},6861:function(e,t,r){"use strict";r.d(t,{p6:function(){return K},c8:function(){return ee},c5:function(){return N},Ck:function(){return q},cj:function(){return H},Ho:function(){return U},Sp:function(){return Z},Co:function(){return L},Kl:function(){return X},rp:function(){return B},Ru:function(){return Q},FB:function(){return M},D5:function(){return Y},q5:function(){return V},Gw:function(){return J}});r(6729);class n extends Error{constructor(e){super(e),this.name="TimeoutError"}}new WeakMap;var o,i,s,a,c,u,l,p,d,f,h,_,g,v,y,m,w,b,k,S,O,x,P,E,I=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},C=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};const F=()=>{};new n;Error;i=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap,p=new WeakMap,d=new WeakMap,f=new WeakMap,new WeakMap,h=new WeakMap,_=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,new WeakMap,new WeakMap,o=new WeakSet,m=function(){return C(this,s,"f")||C(this,a,"f")<C(this,c,"f")},w=function(){return C(this,h,"f")<C(this,_,"f")},b=function(){C(this,v,"f").call(this),I(this,v,F,"f"),0===C(this,h,"f")&&(C(this,y,"f").call(this),I(this,y,F,"f"),this.emit("idle"))},k=function(){C(this,o,"m",P).call(this),C(this,o,"m",x).call(this),I(this,d,void 0,"f")},S=function(){const e=Date.now();if(void 0===C(this,p,"f")){const t=C(this,l,"f")-e;if(!(t<0))return void 0===C(this,d,"f")&&I(this,d,setTimeout((()=>{C(this,o,"m",k).call(this)}),t),"f"),!0;I(this,a,C(this,i,"f")?C(this,h,"f"):0,"f")}return!1},O=function(){if(0===C(this,f,"f").size)return C(this,p,"f")&&clearInterval(C(this,p,"f")),I(this,p,void 0,"f"),C(this,o,"m",b).call(this),!1;if(!C(this,g,"f")){const e=!C(this,o,"m",S).call(this);if(C(this,o,"a",m)&&C(this,o,"a",w)){const t=C(this,f,"f").dequeue();
1return!!t&&(this.emit("active"),t(),e&&C(this,o,"m",x).call(this),!0)}}return!1},x=function(){C(this,s,"f")||void 0!==C(this,p,"f")||(I(this,p,setInterval((()=>{C(this,o,"m",P).call(this)}),C(this,u,"f")),"f"),I(this,l,Date.now()+C(this,u,"f"),"f"))},P=function(){0===C(this,a,"f")&&0===C(this,h,"f")&&C(this,p,"f")&&(clearInterval(C(this,p,"f")),I(this,p,void 0,"f")),I(this,a,C(this,i,"f")?C(this,h,"f"):0,"f"),C(this,o,"m",E).call(this)},E=function(){for(;C(this,o,"m",O).call(this););};const T=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));function $(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:o,hash:i}=r.groups;const s=n.split(";");i=t?"":i;let a=!1;"base64"===s[s.length-1]&&(s.pop(),a=!0);const c=(s.shift()||"").toLowerCase(),u=[...s.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return a&&u.push("base64"),(u.length>0||c&&"text/plain"!==c)&&u.unshift(c),`data:${u.join(";")},${a?o.trim():o}${i?`#${i}`:""}`})(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");const r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const n=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===n.protocol&&(n.protocol="http:"),t.forceHttps&&"http:"===n.protocol&&(n.protocol="https:"),t.stripAuthentication&&(n.username="",n.password=""),t.stripHash?n.hash="":t.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,r="";for(;;){const o=e.exec(n.pathname);if(!o)break;const i=o[0],s=o.index;r+=n.pathname.slice(t,s).replace(/\/{2,}/g,"/"),r+=i,t=s+i.length}r+=n.pathname.slice(t,n.pathname.length).replace(/\/{2,}/g,"/"),n.pathname=r}if(n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=n.pathname.split("/");const r=e[e.length-1];T(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),n.pathname=e.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const i of[...n.searchParams.keys()])T(i,t.removeQueryParameters)&&n.searchParams.delete(i);if(!0===t.removeQueryParameters&&(n.search=""),t.sortQueryParameters){n.searchParams.sort();try{n.search=decodeURIComponent(n.search)}catch{}}t.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));const o=e;return e=n.toString(),t.removeSingleSlash||"/"!==n.pathname||o.endsWith("/")||""!==n.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===n.pathname)&&""===n.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var A=r(6261),j=r(2734);const D=new WeakMap;function R(e,{cacheKey:t,cache:r=new Map,maxAge:n}={}){"number"===typeof n&&j(r);const o=function(...o){const i=t?t(o):o[0],s=r.get(i);if(s)return s.data;const a=e.apply(this,o);return r.set(i,{data:a,maxAge:n?Date.now()+n:Number.POSITIVE_INFINITY}),a};return(0,A.Z)(o,e,{ignoreNonConfigurable:!0}),D.set(o,r),o}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var M=e=>{var t;return e?Array.isArray(e)?null!=(t=null==e?void 0:e.reduce(((e,t)=>
1e+("\u204d"!==t[0]&&"\u2023"!==t[0]?t[0]:"")),""))?t:"":e:""};function N(e,t){var r,n,o,i,s,a,c;let u=e.collection_id||(null==(n=null==(r=e.format)?void 0:r.collection_pointer)?void 0:n.id);if(u)return u;let l=null==(o=null==e?void 0:e.view_ids)?void 0:o[0];if(l){let e=null==(s=null==(i=t.collection_view)?void 0:i[l])?void 0:s.value;if(e)return null==(c=null==(a=e.format)?void 0:a.collection_pointer)?void 0:c.id}return null}function U(e,t){var r,n;if(null!=(r=e.properties)&&r.title)return M(e.properties.title);if("collection_view_page"===e.type||"collection_view"===e.type){let r=N(e,t);if(r){let e=null==(n=t.collection[r])?void 0:n.value;if(e)return M(e.name)}}return""}function q(e,t){var r,n,o;if(null!=(r=e.format)&&r.page_icon)return null==(n=e.format)?void 0:n.page_icon;if("collection_view_page"===e.type||"collection_view"===e.type){let r=N(e,t);if(r){let e=null==(o=t.collection[r])?void 0:o.value;if(e)return e.icon}}return null}function B(e,t,r){var n;try{if(!t.properties||!Object.keys(r.collection))return null;let o=null==(n=r.collection[t.parent_id])?void 0:n.value;if(o){let r=e.toLowerCase(),n=Object.keys(o.schema).find((e=>{var t,n;return(null==(n=null==(t=o.schema[e])?void 0:t.name)?void 0:n.toLowerCase())===r}));if(!n)return null;let{type:i}=o.schema[n],s=M(t.properties[n]);switch(i){case"created_time":return t.created_time;case"multi_select":return s.split(",");case"date":{let e=t.properties[n][0][1][0][1];if("datetime"==e.type)return new Date(`${e.start_date} ${e.start_time}`).getTime();if("date"==e.type)return new Date(e.start_date).getTime();if("datetimerange"==e.type){let{start_date:t,start_time:r,end_date:n,end_time:o}=e;return[new Date(`${t} ${r}`).getTime(),new Date(`${n} ${o}`).getTime()]}return[new Date(e.start_date).getTime(),new Date(e.end_date).getTime()]}case"checkbox":return"Yes"==s;case"last_edited_time":return t.last_edited_time;default:return s}}}catch(o){}return null}var L=e=>{if(e&&Array.isArray(e)){if("d"===e[0])return e[1];for(let t of e){let e=L(t);if(e)return e}}return null},H=(e,t,{inclusive:r=!1}={})=>{var n,o;let i=e;for(;null!=i;){if(r&&"page"===(null==i?void 0:i.type))return i;let e=i.parent_id,s=i.parent_table;if(!e)break;if("collection"===s)i=null==(n=t.collection[e])?void 0:n.value;else if(i=null==(o=t.block[e])?void 0:o.value,"page"===(null==i?void 0:i.type))return i}return null},W={header:0,sub_header:1,sub_sub_header:2},Q=(e,t)=>{var r;let n=(null!=(r=e.content)?r:[]).map((e=>{var r,n;let o=null==(r=t.block[e])?void 0:r.value;if(o){let{type:t}=o;if("header"===t||"sub_header"===t||"sub_sub_header"===t)return{id:e,type:t,text:M(null==(n=o.properties)?void 0:n.title),indentLevel:W[t]}}return null})).filter(Boolean),o=[{actual:-1,effective:-1}];for(let i of n){let{indentLevel:e}=i,t=e;for(;;){let e=o[o.length-1],{actual:r,effective:n}=e;if(t>r)i.indentLevel=n+1,o.push({actual:t,effective:i.indentLevel});else{if(t===r){i.indentLevel=n;break}o.pop()}}}return n},z=/\b([a-f0-9]{32})\b/,G=/\b([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})\b/,V=(e="",{uuid:t=!0}={})=>{if(!e)return null;let r=(e=e.split("?")[0]).match(z);if(r)return t?((e="")=>`${e.substr(0,8)}-${e.substr(8,4)}-${e.substr(12,4)}-${e.substr(16,4)}-${e.substr(20)}`)(r[1]):r[1];let n=e.match(G);return n?t?n[1]:n[1].replace(/-/g,""):null},J=e=>e.replace(/-/g,"");var Z=(e,t,{uuid:r=!0}={})=>{var n;if(!e||!t)return null;let o=J(e),i=null==(n=t.block[e])?void 0:n.value;if(i){let e=B("slug",i,t)||B("Slug",i,t)||(e=>(e||"").replace(/ /g,"-").replace(/[^a-zA-Z0-9-\u4e00-\u9fa5]/g,"").replace(/--/g,"-").replace(/-$/,"").replace(/^-/,"").trim().toLowerCase())(U(i,t));if(e)return r?`${e}-${o}`:e}return o},X=(e,t)=>{var r;let n=e.block,o=[],i=t;for(;;){let s=null==(r=n[i])?void 0:r.value;if(!s)break;let a=U(s,e),c=q(s,e);if(!a&&!c)break;o.push({block:s,active:i===t,pageId:i,title:a,icon:c});let u=H(s,e),l=null==u?void 0:u.id;if(!l)break;i=l}return o.reverse(),o},Y=R((e=>{if(!e)return"";try{if(e.startsWith("https://www.notion.so/image/")){let t=new URL(e),r=decodeURIComponent(t.pathname.substr(7)),n=Y(r);t.pathname=`/image/${encodeURIComponent(n)}`,e=t.toString()}return $(e,{stripProtocol:!0,stripWWW:!0,stripHash:!0,stripTextFragment:!0,removeQueryParameters:!0})}catch(t){return""}}));var K=(e,{month:t="short"}={})=>{let r=new Date(e);
1return`${r.toLocaleString("en-US",{month:t})} ${r.getUTCDate()}, ${r.getUTCFullYear()}`},ee=e=>{let t=`${e.start_time||""} ${e.start_date} ${e.time_zone||""}`;return K(t)}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],(function(){return t(6840),t(387)}));var r=e.O();_N_E=r}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.