1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(35842)}])},702:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>a,Z9:()=>s,pq:()=>u,vF:()=>l});var n=r(82936),i=r(92501);let o="Sentry Logger ",a=["debug","info","warn","error","log","assert","trace"],s={};function u(e){if(!("console"in i.OW))return e();let t=i.OW.console,r={},n=Object.keys(s);n.forEach(e=>{let n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let l=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n.T?a.forEach(r=>{t[r]=(...t)=>{e&&u(()=>{i.OW.console[r](`${o}[${r}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>void 0}),t}()},1051:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(74714);t.buildWidthSrcSet=(e,{widths:t,...r})=>t.map(t=>`${n.buildURL(e,{...r,w:void 0,width:t})} ${t}w`).join(", ")},1474:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(24679);class i extends n.ForbiddenError{}t.RefExpiredError=i},1643:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var u,l=this;if("function"!=typeof l||r.apply(l)!==i)throw TypeError(t+l);for(var c=a(arguments,1),f=function(){if(this instanceof u){var t=l.apply(this,o(c,arguments));return Object(t)===t?t:this}return l.apply(e,o(c,arguments))},d=n(0,l.length-c.length),h=[],p=0;p<d;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var m=function(){};m.prototype=l.prototype,u.prototype=new m,m.prototype=null}return u}},1721:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.resolveDefaultExport=function(e){return"default"in e?e.default:e}},1978:(e,t,r)=>{"use strict";r.d(t,{BD:()=>s,Kg:()=>l,L2:()=>_,NF:()=>c,Qd:()=>d,Qg:()=>g,T2:()=>a,W6:()=>u,bJ:()=>i,gd:()=>m,mE:()=>y,sO:()=>f,tH:()=>v,vq:()=>p,xH:()=>h,yr:()=>b});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function l(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function f(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&v(e,Event)}function p(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e){return"number"==typeof e&&e!=e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function _(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},2002:e=>{"use strict";e.exports=Math.abs},2496:e=>{"use strict";e.exports=Math.floor},2743:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779);class i extends n.PrismicError{}t.NotFoundError=i},3583:e=>{function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3961:e=>{"use strict";e.exports=JSON.parse('{"start_date":"2026-07-01T04:00:00+0000","end_date":"2026-07-06T03:59
1:00+0000","filter_collections":[{"collection_slug":"member-market","name":"All","key":"*"},{"collection_slug":"member-market-holiday-gift-sets","name":"Gift Sets","key":"giftsets"},{"collection_slug":"october-member-market-fragrance","name":"Fragrance","key":"fragrance"},{"collection_slug":"member-market-hair","name":"Hair","key":"hair"},{"collection_slug":"member-market-makeup","name":"Makeup","key":"makeup"},{"collection_slug":"member-market-skincare","name":"Skincare","key":"skincare"}],"market_banner_bg_color":"#041E42","market_open_subscriber_title":[{"type":"heading1","text":"{{currentMonth}} Members Sale","spans":[],"direction":"ltr"}],"market_open_subscriber_subtitle":[{"type":"heading4","text":"Save up to 90% off retail","spans":[],"direction":"ltr"}],"market_close_subscriber_title":[{"type":"heading1","text":"The Member Market opens {{startMonthNumber}}/{{startDay}}","spans":[],"direction":"ltr"}],"market_close_subscriber_subtitle":[{"type":"heading4","text":"Mark your calendars to shop exclusive discounts!","spans":[],"direction":"ltr"}],"market_close_learn_more_path_link":"https://help.birchbox.com/hc/en-us/articles/30178897966093-What-is-the-Members-Market","non_subscriber_title":[{"type":"heading1","text":"Members Market","spans":[],"direction":"ltr"}],"non_subscriber_subtitle_list":[{"subtitle_item":"Save up to 80% off retail"},{"subtitle_item":"Shop top beauty brands"}],"non_subscriber_require_subscription":"You must have an active subscription to shop the members market","open_market_to_logged_in":false,"members_market_access":"All Can Access","modal_active":false,"modal_title":[{"type":"heading1","text":"Your Input Helps Us Improve","spans":[],"direction":"ltr"}],"modal_description":[{"type":"paragraph","text":"Tell us what you thought about last monthâs box in a quick 2-minute survey. Your feedback helps us continue improving future curations and overall member experience!","spans":[],"direction":"ltr"}],"modal_promo_code":null,"modal_button_title":"SHARE FEEDBACK","modal_button_link":{"link_type":"Web","key":"0c6f225b-a283-44b2-b5f9-c1ff9000f50d","url":"https://form.typeform.com/to/lUaSU7mn"},"modal_user_type":"Active Subscription Logged In","modal_quick_open_link_text":"Feedback","modal_cookie_duration":"1h"}')},4093:(e,t,r)=>{"use strict";var n=r(27496);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},4338:e=>{e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},4475:(e,t,r)=>{"use strict";r.d(t,{BS:()=>i,iM:()=>o});var n=r(78799);let i=e=>e?e.replace(/<h([1-6])[^>]*>(\s|<br\s*\/?>| )*<\/h\1>/gi,""):"",o=e=>{let t="es-es"===n.vV?"/categorias".concat(e.split("myshopify.com/collections",2)[1]):e.split("myshopify.com",2)[1];return t.includes("undefined")?null:t}},4536:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=/["'&<>]/;t.escapeHTML=e=>{let t,n=""+e,i=r.exec(n);if(!i)return n;let o="",a=0,s=0;for(a=i.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==a&&(o+=n.substring(s,a)),s=a+1,o+=t}return s!==a?o+n.substring(s,a):o}},4650:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(8145),i=r.n(n),o=r(36710);class a{async fetchInsuranceProduct(){let e=await i().get("".concat(a.shopifyBaseUrl,"/products/").concat(a.insuranceProductKey,".js"));return{id:e.data.id,featuredImage:null,variants:e.data.variants.map(e=>({id:"gid://shopify/ProductVariant/".concat(e.id.toString()),price:{amount:e.price/100,currencyCode:null}}))}}static parseCart(e){var t,r;return e?{currency:e.estimatedCost.totalAmount.currencyCode,items:(null==(r=e.lines)||null==(t=r.edges)?void 0:t.map(e=>({id:e.node.id,cost:{amount:parseFloat(e.node.estimatedCost.totalAmount.amount),currencyCode:e.node.estimatedCost.totalAmount.currencyCode},quantity:e.node.quantity,properties:null,sellingPlanIdentifier:e.node.sellingPlanAllocation?e.node.sellingPlanAllocation.sellingPlan.id:null,variant:{price:null,requiresShipping:e.node.merchandise.requiresShipping,id:e.node.merchandise.id}})))||[]}:{currency:"USD",items:[]}}async updateCartLines(e){let t=e.map(e=>{var t,r,n;return{id:null==(t=e.id)?void 0:t.toString(),variantId:null==(r=e.variantId)?void 0:r.toString(),quantity:e.quantity,sellingPlanId:null==(n=e.sellingPlanIdentifier)?void 0:n.toString()}});return await this.updateItems(t),this.fetchCart()}async addCartLines(e){let t=e.map(e=>{let{variantId:t,quantity:r,sellingPlanIdentifier:n}=e;return{variantId:t.toString(),quantity:r,sellingPlanId:n?n.toString():null}}),r=await this.addItems(t);return a.parseCart(r.cart)}async fetchCart(){let e=await this.getCart();return a.parseCart(e.cart)}async clearCart(){let e=await this.getCart(),t=await (0,o.A)(e.items.map(e=>({id:e.id})));return a.parseCart(t.cart)}constructor(e,t,r){this.getCart=e,this.addItems=t,this.updateItems=r}}a.insuranceProductKey="onward-package-protection",a.shopifyBaseUrl="https://".concat("us-birchbox-staging.myshopify.com")},4794:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876),i=r(48230),o=r.n(i),a=r(20542),s=r(60428),u=r(78799),l=r(35973);function c(e){let{toggleModal:t,surveyComplete:r,text:i=s.rj,className:c=""}=e,f=(0,l.A)(),{subscriptionBoxInCart:d,alreadyPurchasedSubscriptionBox:h,canPurchaseSubscriptionBox:p}=(0,a.A)(),m=!!d,g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.rj,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",disabled:!0,className:"mt-6 button button-primary",children:e}),t&&(0,n.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:t})]})};if(!p&&m&&!r)return h?g(s.rj,u._8):g();let y="button button-primary ".concat(c);if(m&&!r)return(0,n.jsx)("button",{type:"button",className:"mt-6 ".concat(y),onClick:()=>{null==t||t(!0)},children:i});let b=async()=>
1{window.onwardApp&&window.onwardClient&&(console.log("[CheckoutButton] handleCheckoutWithInsurance"),await window.onwardApp.updateCartForCheckoutWithInsurance());let e="es-es"===u.vV?"/come-back-soon":f;window.open(e,"_self")},v=async()=>{window.onwardApp&&window.onwardClient&&(console.log("[CheckoutButton] handleCheckoutWithoutInsurance"),await window.onwardApp.updateCartForCheckoutWithoutInsurance());let e="es-es"===u.vV?"/come-back-soon":f;window.open(e,"_self")};return(0,n.jsxs)("div",{className:"flex flex-col mt-6 gap-y-4",children:["en-us"===u.vV&&(0,n.jsx)("div",{id:"onward-container"}),(0,n.jsx)(o(),{legacyBehavior:!0,prefetch:!1,href:"/",children:(0,n.jsx)("a",{type:"submit",className:y,onClick:()=>b(),children:i})}),"en-us"===u.vV&&(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(o(),{legacyBehavior:!0,prefetch:!1,href:"/",children:(0,n.jsx)("a",{type:"submit",className:"underline text-sm",onClick:()=>v(),children:s.$d})})})]})}},4897:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37959),i=r(12368),o=r(73966),a=r(15845),s=r(15132),u=r(42053),l=r(26967);async function c(e){if("function"==typeof e)return c(await e());if(e instanceof i.PrismicMigrationDocument)return e.document.id?{link_type:o.LinkType.Document,id:e.document.id}:{link_type:o.LinkType.Any};let t=e&&"link_type"in e?l.getOptionalLinkProperties(e):void 0;return e?u.contentRelationship(e.id)||"string"!=typeof e.id?{...t,...await c(e.id)}:{...t,link_type:o.LinkType.Document,id:e.id}:{...t,link_type:o.LinkType.Any}}let f=(e,t,r)=>{var i;let{id:o,...a}=e instanceof n.PrismicMigrationAsset?{id:e}:e,s=null==(i=t._assets.get(o.config.id))?void 0:i.asset,u=o.originalField;if(s){let e=((null==u?void 0:u.url)||s.url).split("?")[1],n=`${s.url.split("?")[0]}${e?`?${e}`:""}`,i={width:s.width,height:s.height},l=u&&"edit"in u?null==u?void 0:u.edit:{x:0,y:0,zoom:1,background:"transparent"},c=o.config.alt||s.alt||null,d={};if(r)for(let[e,r]of Object.entries(a)){let n=f(r,t);n&&(d[e]=n)}return{id:s.id,url:n,dimensions:i,edit:l,alt:c,copyright:s.credits||null,...d}}},d=async(e,t)=>{let r=f(e.id,t);if(r){let n=await p(e.linkTo,t);return{...r,type:a.RichTextNodeType.image,linkTo:s.link(n)?n:void 0}}},h=(e,t)=>{var r;let n=null==(r=t._assets.get(e.id.config.id))?void 0:r.asset,i=l.getOptionalLinkProperties(e);return n?{...i,id:n.id,link_type:o.LinkType.Media}:{...i,link_type:o.LinkType.Any}};async function p(e,t){if(u.contentRelationship(e))return c(e);if(u.image(e))return f(e,t,!0);if(u.linkToMedia(e))return h(e,t);if(u.rtImageNode(e))return d(e,t);if("function"==typeof e)return await p(await e(),t);if(Array.isArray(e)){let r=[];for(let n of e)r.push(await p(n,t));return r.filter(Boolean)}if(e&&"object"==typeof e){let r={};for(let n in e)r[n]=await p(e[n],t);return r}return e}t.resolveMigrationContentRelationship=c,t.resolveMigrationDocumentData=p,t.resolveMigrationImage=f,t.resolveMigrationLinkToMedia=h,t.resolveMigrationRTImageNode=d},4941:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(65436);t.appendFilters=(e={},t)=>({...e,filters:[...e.filters||[],...n.castArray(t)]})},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(74714);t.buildPixelDensitySrcSet=(e,{pixelDensities:t,...r})=>t.map(t=>`${n.buildURL(e,{...r,dpr:t})} ${t}x`).join(", ")},4979:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15568),i=r(65436);t.everyTagFilter=e=>n.filter.at("document.tags",i.castArray(e))},5391:e=>{"use strict";e.exports=EvalError},5508:()=>{},5861:(e,t,r)=>{"use strict";var n=r(29563);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=p,t.setLogger=h;var i=n(r(43081)),o=n(r(84620)),a=n(r(16108)),s=r(19845);function u(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?u(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){if(e instanceof Error&&!(e instanceof s.UnknownError))return{message:e.message,stack:e.stack,name:e.name};if(f(e)){var t;e.error=c(e.error),e.message=null!=(t=e.message)?t:e.error.message}return e}function f(e){return!!(null!=e&&e.error)}var d={error:function(e,t){t=c(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(d.debug=function(){}),e.error&&(d.error=e.error),e.warn&&(d.warn=e.warn),e.debug&&(d.debug=e.debug)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){r[e]=function(){var r=(0,a.default)(i.default.mark(function r(n,o){var a,s;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(d[e](n,o),"error"===e&&(o=c(o)),o.client=!0,a="".concat(t,"/_log"),s=new URLSearchParams(l({level:e,code:n},o)),!navigator.sendBeacon){r.next=8;break}return r.abrupt("return",navigator.sendBeacon(a,s));case 8:return r.next=10,fetch(a,{method:"POST",body:s,keepalive:!0});case 10:return r.abrupt("return",r.sent);case 11:case"end":return r.stop()}},r)}));return function(e,t){return r.apply(this,arguments)}}()};for(var o in e)n(o);return r}catch(e){return d}}t.default=d},6285:e=>{"use strict";e.exports=JSON.parse('{"p":"Birchbox Edit","S":"/magazine"}')},6649:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},7060:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(74380),i=r(94772),o=r(85391),a=r(74482),s=r(4650);async function u(e){let t=e.map(e=>{let{id:t,variantId:r,quantity:n,sellingPlanId:i}=e;return{id:t,merchandiseId:r,quantity:n,sellingPlanId:i}}),r=(0,i.A)();if(!r)return null;let{cartLinesUpdate:n}=await (0,o.Ay)({query:a.A,variables:{cartId:r,lines:t}});return window.onwardApp&&window.onwardClient&&window.onwardApp.cartChanged(s.U.parseCart(n.cart)),n}function l(){let{revalidate:e}=(0,n.Ay)();return async t=>{await e(async e=>{if(!e)return{cart:null,items:null,itemCount:0};let r=await u(t);return(0,n.Ko)(r)},{rollbackOnError:!0,revalidate:!1,optimisticData:e=>{var r;let n=(null==e||null==(r=e.items)?void 0:r.map(e=>{let r=t.find(t=>t.id===e.id);if(r){let{variantId:t,quantity:n,sellingPlanId:i}=r;return{...e,variantId:t,quantity:n,sellingPlanId:i,estimatedCost:{subtotalAmount:{...e.estimatedCost.subtotalAmount,amount:(Number(e.estimatedCost.subtotalAmount.amount)*(n/e.quantity)).toFixed(2)}}}}return e}).filter(e=>e.quantity>0))||[];return e?{...e,itemCount:n.reduce((e,t)=>t.quantity?e+t.quantity:e,0),items:n}:{cart:null,items:[],itemCount:0}}})}}},7162:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},7206:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37876),i=r(14232),o=r(89099),a=r(45105),s=r(41180);function u(){var e;let t=null==(e=window.document.cookie.split("; ").find(e=>e.startsWith("".concat(s.cookie.preview,"="))))?void 0:e.split("=")[1];return(decodeURIComponent(null!=t?t:"").match(/"([^"]+)\.prismic\.io"/)||[])[1]}t.PrismicPreview=e=>{let{repositoryName:t,updatePreviewURL:r="/api/preview",exitPreviewURL:l="/api/exit-preview",children:c}=e,f=o.useRouter(),d=s.getToolbarSrc(t);return i.useEffect(()=>{let e=new AbortController;function n(t){t.preventDefault(),fetch(f.basePath+l,{signal:e.signal}).then(e=>{if(!e.ok)return void console.error('[<PrismicPreview>] Failed to exit Preview Mode using the "'.concat(l,'" API endpoint. Does it exist?'));a()}).catch(()=>{})}function i(e){e.preventDefault(),o()}function o(){fetch(f.basePath+r,{redirect:"manual",signal:e.signal}).then(e=>{if("opaqueredirect"!==e.type)return void console.error('[<PrismicPreview>] Failed to start or update the preview using "'.concat(r,'". Does it exist?'));a()}).catch(()=>{})}function a(){f.replace(f.asPath,void 0,{scroll:!1})}return window.addEventListener("prismicPreviewUpdate",i,{signal:e.signal}),window.addEventListener("prismicPreviewEnd",n,{signal:e.signal}),window.location.href.startsWith(window.location.origin+f.basePath)&&u()===t&&!f.isPreview&&o(),()=>e.abort()},[l,r,t,f]),n.jsxs(n.Fragment,{children:[c,n.jsx(a,{src:d,strategy:"lazyOnload"})]})}},7209:(e,t,r)=>{"use strict";r.d(t,{jB:()=>c,lG:()=>u,lb:()=>l});
1var n=r(92501),i=r(51298),o=r(702),a=r(1978),s=r(91654);function u(){return(0,n.BY)("globalEventProcessors",()=>[])}function l(e){u().push(e)}function c(e,t,r,n=0){return new i.T2((i,u)=>{let l=e[n];if(null===t||"function"!=typeof l)i(t);else{let f=l({...t},r);s.T&&l.id&&null===f&&o.vF.log(`Event processor "${l.id}" dropped event`),(0,a.Qg)(f)?f.then(t=>c(e,t,r,n+1).then(i)).then(null,u):c(e,f,r,n+1).then(i).then(null,u)}})}},7293:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});let n=e=>{var t;let{event:r,data:n}=e;(null==(t=window)?void 0:t.dataLayer)&&window.dataLayer.push({event:r,...n})}},7294:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7945:(e,t,r)=>{var n=r(12883).default,i=r(7294);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8126:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14232),i=r(29454),o=r(58149);let a="birchbox-cookies-settings";function s(){let{data:e,mutate:t}=(0,o.Ay)(a,u),[r,s]=(0,n.useState)(!1);function u(){r||s(!0);let e=i.A.get(a);if(e)try{return JSON.parse(e)}catch(e){}return e}return{cookieSettings:e,cookiesKey:a,revalidate:t,cookiesLoaded:r}}},8145:(e,t,r)=>{e.exports=r(83395)},8566:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(64690),i=r(93331),o=r(37385),a=r(7206),s=r(19204),u=r(56619),l=r(91963),c=r(40595),f=r(56170);t.PrismicNextLink=n.PrismicNextLink,t.PrismicNextImage=i.PrismicNextImage,t.imgixLoader=o.imgixLoader,t.PrismicPreview=a.PrismicPreview,t.enableAutoPreviews=s.enableAutoPreviews,t.redirectToPreviewURL=u.redirectToPreviewURL,t.exitPreview=l.exitPreview,t.setPreviewData=c.setPreviewData,t.createLocaleRedirect=f.createLocaleRedirect},8630:(e,t,r)=>{"use strict";var n=r(99742),i=r(27496),o=r(80426),a=r(47418),s=r(50496),u=r(30910),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function f(e,t,r){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}var d={transitional:s,adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(54070):void 0!==n&&"[object process]"===Object.prototype.toString.call(n)&&(e=r(54070)),e}(),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=i.isObject(e),a=t&&t["Content-Type"];if((r=i.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(c(t,"application/json"),f(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(40172)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){d.headers[e]={}}),i.forEach(["post","put","patch"],function(e){d.headers[e]=i.merge
1(l)}),e.exports=d},8695:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=e=>new Promise(t=>setTimeout(t,e));t.pLimit=({interval:e}={})=>{let t=[],n=!1,i=0,o=()=>{var e;!n&&t.length>0&&(null==(e=t.shift())||e(),n=!0)},a=()=>{n=!1,o()},s=async(t,n,o)=>{let s=Date.now()-i;e&&s<e&&await r(e-s);let u=(async()=>t(...o))();n(u);try{await u}catch{}i=Date.now(),a()},u=(e,r,i)=>{new Promise(e=>{t.push(e)}).then(s.bind(void 0,e,r,i)),(async()=>{await Promise.resolve(),n||o()})()};return(e,...t)=>new Promise(r=>{u(e,r,t)})}},9116:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(24679);class i extends n.ForbiddenError{}t.PreviewTokenExpiredError=i},9945:(e,t,r)=>{"use strict";var n=r(45525),i=r(73442),o=r(81073),a=r(65865),s=n("%Map%",!0),u=i("Map.prototype.get",!0),l=i("Map.prototype.set",!0),c=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),d=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+o(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new s),l(e,t,r)}};return t}},10221:(e,t,r)=>{"use strict";var n=r(65225);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},10553:(e,t,r)=>{"use strict";var n,i,o,a,s,u=r(99742),l=r(29563),c=r(12883);Object.defineProperty(t,"__esModule",{value:!0});var f={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=$,t.getCsrfToken=I,t.getProviders=L,t.getSession=R,t.signIn=B,t.signOut=U,t.useSession=P;var d=l(r(43081)),h=l(r(84620)),p=l(r(16108)),m=l(r(37990)),g=S(r(14232)),y=S(r(5861)),b=l(r(40316)),v=r(25443),_=r(37876),w=r(29e3);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(x=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=c(e)&&"function"!=typeof e)return{default:e};var r=x(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function E(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){(0,h.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}
1Object.keys(w).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(f,e))&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var A={baseUrl:(0,b.default)(null!=(n=u.env.NEXTAUTH_URL)?n:u.env.VERCEL_URL).origin,basePath:(0,b.default)(u.env.NEXTAUTH_URL).path,baseUrlServer:(0,b.default)(null!=(i=null!=(o=u.env.NEXTAUTH_URL_INTERNAL)?o:u.env.NEXTAUTH_URL)?i:u.env.VERCEL_URL).origin,basePathServer:(0,b.default)(null!=(a=u.env.NEXTAUTH_URL_INTERNAL)?a:u.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},M=(0,v.BroadcastChannel)(),T=(0,y.proxyLogger)(y.default,A.basePath);function O(){var e=g.useState("undefined"!=typeof navigator&&navigator.onLine),t=(0,m.default)(e,2),r=t[0],n=t[1],i=function(){return n(!0)},o=function(){return n(!1)};return g.useEffect(function(){return window.addEventListener("online",i),window.addEventListener("offline",o),function(){window.removeEventListener("online",i),window.removeEventListener("offline",o)}},[]),r}var C=t.SessionContext=null==(s=g.createContext)?void 0:s.call(g,void 0);function P(e){if(!C)throw Error("React Context is unavailable in Server Components");var t=g.useContext(C),r=null!=e?e:{},n=r.required,i=r.onUnauthenticated,o=n&&"unauthenticated"===t.status;return(g.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[o,i]),o)?{data:t.data,update:t.update,status:"loading"}:t}function R(e){return j.apply(this,arguments)}function j(){return(j=(0,p.default)(d.default.mark(function e(t){var r,n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("session",A,T,t);case 2:return n=e.sent,(null==(r=null==t?void 0:t.broadcast)||r)&&M.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function I(e){return N.apply(this,arguments)}function N(){return(N=(0,p.default)(d.default.mark(function e(t){var r;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("csrf",A,T,t);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(){return D.apply(this,arguments)}function D(){return(D=(0,p.default)(d.default.mark(function e(){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("providers",A,T);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function B(e,t,r){return F.apply(this,arguments)}function F(){return(F=(0,p.default)(d.default.mark(function e(t,r,n){var i,o,a,s,u,l,c,f,h,p,m,g,y,b,_,w,x;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(o=(i=null!=r?r:{}).callbackUrl)?window.location.href:o,u=void 0===(s=i.redirect)||s,l=(0,v.apiBaseUrl)(A),e.next=4,L();case 4:if(c=e.sent){e.next=8;break}return window.location.href="".concat(l,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in c))){e.next=11;break}return window.location.href="".concat(l,"/signin?").concat(new URLSearchParams({callbackUrl:a})),e.abrupt("return");case 11:return f="credentials"===c[t].type,h="email"===c[t].type,p=f||h,m="".concat(l,"/").concat(f?"callback":"signin","/").concat(t),g="".concat(m).concat(n?"?".concat(new URLSearchParams(n)):""),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=k,e.t5=k({},r),e.t6={},e.next=25,I();case 25:return e.t7=e.sent,e.t8=a,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return y=e.sent,e.next=36,y.json();case 36:if(b=e.sent,!(u||!p)){e.next=42;break}return w=null!=(_=b.url)?_:a,window.location.href=w,w.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(x=new URL(b.url).searchParams.get("error"),!y.ok){e.next=46;break}return e.next=46,A._getSession({event:"storage"});case 46:return e.abrupt("return",{error:x,status:y.status,ok:y.ok,url:x?null:b.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function U(e){return q.apply(this,arguments)}function q(){return(q=(0,p.default)(d.default.mark(function e(t){var r,n,i,o,a,s,u,l,c;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(n=(null!=t?t:{}).callbackUrl)?window.location.href:n,o=(0,v.apiBaseUrl)(A),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,I();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),a={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),a);case 13:return s=e.sent,e.next=16,s.json();case 16:if(u=e.sent,M.post({event:"session",data:{trigger:"signout"}}),!(null==(r=null==t?void 0:t.redirect)||r)){e.next=23;break}return c=null!=(l=u.url)?l:i,window.location.href=c,c.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,A._getSession({event:"storage"});case 25:return e.abrupt("return",u);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $(e){if(!C)throw Error("React Context is unavailable in Server Components");var t=e.children,r=e.basePath,n=e.refetchInterval,i=e.refetchWhenOffline;r&&(A.basePath=r);var o=void 0!==e.session;A._lastSync=o?(0,v.now)():0;var a=g.useState(function(){return o&&(A._session=e.session),e.session}),s=(0,m.default)(a,2),u=s[0],l=s[1],c=g.useState(!o),f=(0,m.default)(c,2),h=f[0],y=f[1];g.useEffect(function(){return A._getSession=(0,p.default)(d.default.mark(function e(){var t,r,n=arguments;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(n.length>0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===A._session)){e.next=10;break}return A._lastSync=(0,v.now)(),e.next=7,R({broadcast:!r});case 7:return A._session=e.sent,l(A._session),e.abrupt("return");case 10:if(!(!t||null===A._session||(0,v.now)()<A._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return A._lastSync=(0,v.now)(),e.next=15,R();case 15:A._session=e.sent,l(A._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),T.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,y(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),A._getSession(),function(){A._lastSync=0,A._session=void 0,A._getSession=function(){}}},[]),g.useEffect(function(){var e=M.receive(function(){return A._getSession({event:"storage"})});return function(){return e()}},[]),g.useEffect(function(){var t=e.refetchOnWindowFocus,r=void 0===t||t,n=function(){r&&"visible"===document.visibilityState&&A._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),function(){return document.removeEventListener("visibilitychange",n,!1)}},[e.refetchOnWindowFocus]);var b=O(),w=!1!==i||b;g.useEffect(function(){if(n&&w){var e=setInterval(function(){A._session&&A._getSession({event:"poll"})},1e3*n);return function(){return clearInterval(e)}}},[n,w]);var x=g.useMemo(function(){return{data:u,status:h?"loading":u?"authenticated":"unauthenticated",update:function(e){return(0,p.default)(d.default.mark(function t(){var r;return d.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(h||!u)){t.next=2;break}return t.abrupt("return");case 2:return y(!0),t.t0=v.fetchData,t.t1=A,t.t2=T,t.next=8,I();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return r=t.sent,y(!1),r&&(l(r),M.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",r);case 19:case"end":return t.stop()}},t)}))()}}},[u,h]);return(0,_.jsx)(C.Provider,{value:x,children:t})}},11304:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73966),i=r(66182);t.asLink=(e,...t)=>{let r;if(!e)return null;let o="link_type"in e?e:i.documentToLinkField(e),[a]=t;switch(r="function"==typeof a||null==a?{linkResolver:a}:{...a},o.link_type){case n.LinkType.Media:case n.LinkType.Web:return"url"in o?o.url:null;case n.LinkType.Document:if("id"in o&&r.linkResolver){let e=r.linkResolver(o);if(null!=e)return e}if("url"in o&&o.url)return o.url;return null;case n.LinkType.Any:default:return null}}},11418:(e,t,r)=>{"use strict";r.d(t,{$N:()=>u,Hd:()=>a,NX:()=>l,xE:()=>c});var n=r(1978);let i=(0,r(92501).VZ)(),o=80;function a(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=5,a=[],u=0,l=0,c=" > ",f=c.length,d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&u++<i&&(r=s(n,d),"html"!==r&&(!(u>1)||!(l+a.length*f+r.length>=h)));)a.push(r),l+=r.length,n=n.parentNode;return a.reverse().join(c)}catch(e){return"<unknown>"}}function s(e,t){let r,o,a,s,u,l=e,c=[];if(!l||!l.tagName)return"";if(i.HTMLElement&&l instanceof HTMLElement&&l.dataset&&l.dataset.sentryComponent)return l.dataset.sentryComponent;c.push(l.tagName.toLowerCase());let f=t&&t.length?t.filter(e=>l.getAttribute(e)).map(e=>[e,l.getAttribute(e)]):null;
1if(f&&f.length)f.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(l.id&&c.push(`#${l.id}`),(r=l.className)&&(0,n.Kg)(r))for(u=0,o=r.split(/\s+/);u<o.length;u++)c.push(`.${o[u]}`);let d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)a=d[u],(s=l.getAttribute(a))&&c.push(`[${a}="${s}"]`);return c.join("")}function u(){try{return i.document.location.href}catch(e){return""}}function l(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function c(e){if(!i.HTMLElement)return null;let t=e,r=5;for(let e=0;e<r&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},11728:(e,t,r)=>{"use strict";function n(e,t){return{err:null!=e?e:[{message:"Failed to fetch Shopify API"}],status:t}}async function i(e){return n(e.data.errors,e.status)}r.d(t,{_T:()=>o,wi:()=>s,ym:()=>m,$7:()=>f,OQ:()=>d,ST:()=>h,Uj:()=>a}),r(10553);let o=async e=>{if(200===e.status){let{data:i,errors:a,extensions:s}=e.data;if(a&&a.length)throw n(a,e.status);if(s){var t,r,o;console.log("Shopify Admin API cost:",null==s?void 0:s.cost),(null==s||null==(t=s.cost)?void 0:t.currentlyAvailable)&&(null==s||null==(r=s.cost)?void 0:r.currentlyAvailable)<1e3&&console.warn("Shopify Admin API available cost:",null==s||null==(o=s.cost)?void 0:o.currentlyAvailable)}return i}throw i(e)},a=e=>e[0]!==e[0].toLowerCase(),s=e=>/\s/.test(e),u=["January","February","March","April","May","June","July","August","September","October","November","December"],l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c(){let e=new Date,t=e.getMonth();return{currentMonth:u[t],currentMonthShort:l[t],nextMonth:u[(t+1)%12],currentYear:String(e.getFullYear()),currentMonthNumber:String(t+1)}}function f(e,t){if(!e)return"";let r={...c(),...t};return e.replace(/\{\{(\w+)\}\}/g,(e,t)=>t in r?r[t]:e)}function d(e){return e.map(e=>({...e,text:f(e.text)}))}function h(e,t){return e?e.replace(/\{\{([^}]+)\}\}/g,(e,r)=>{let n=r.trim().split("."),i=t;for(let t of n)if(!i||"object"!=typeof i||!(t in i))return e;else i=i[t];if("number"==typeof i)return i%1==0?Math.floor(i).toString():i.toString();if("string"==typeof i&&!Number.isNaN(Number(i))){let e=Number(i);return e%1==0?Math.floor(e).toString():i}return(null==i?void 0:i.toString())||e}):""}function p(e){var t,r;if(e.use_custom_primary_dates)return{start:new Date(e.start_date),end:new Date(e.end_date)};let n=new Date,i=n.getUTCFullYear(),o=n.getUTCMonth(),a=null!=(t=e.default_start_day)?t:1,s=null!=(r=e.default_end_day)?r:5;return n>new Date(Date.UTC(i,o,s,23,59,59))&&(o+=1)>11&&(o=0,i+=1),{start:new Date(Date.UTC(i,o,a,0,0,0)),end:new Date(Date.UTC(i,o,s,23,59,59))}}function m(e,t){let{start:r,end:n}=p(e),i=new Date,o="true"===t,a=i>=r&&i<=n,s=!!e.use_extra_open_window&&!!e.extra_open_start_date&&!!e.extra_open_end_date&&i>=new Date(e.extra_open_start_date)&&i<=new Date(e.extra_open_end_date);return{isCurrentlyOpen:o||a||s,isBeforeOpenDate:i<r,isBeforeCloseDate:i<n,computedStartDate:r.toISOString(),computedEndDate:s&&!a&&e.extra_open_end_date?new Date(e.extra_open_end_date).toISOString():n.toISOString()}}},11752:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(37876),i=r(14232),o=r(63043),a=r(15741);function s(e){let{isOpen:t,closeModal:r,children:s,desktopStyle:u,afterClose:l,closeModalText:c=null,ariaLabel:f="Dialog"}=e,d=(0,i.useRef)(null);return(0,a.A)(d,e=>{document.getElementById("onward-modal")||r()}),(0,i.useEffect)(()=>{let e=e=>"Escape"===e.key?r():null;return t&&(window.addEventListener("keydown",e),document.body.style.overflowY="hidden"),()=>{window.removeEventListener("keydown",e),document.body.style.overflowY="visible"}},[t]),(0,n.jsxs)(o.e,{show:t,children:[(0,n.jsx)("div",{className:"fixed inset-0 z-[100] ".concat("floating"===u?"flex items-start justify-center overflow-y-auto px-4 py-8 sm:px-8":"lg:top-6"),children:(0,n.jsx)("div",{ref:d,children:(0,n.jsxs)(o._,{as:"div",appear:!0,enter:"transition ease-in-out duration-500",enterFrom:"floating"===u?"opacity-0":"translate-y-full",enterTo:"floating"===u?"opacity-100":"translate-y-0",leave:"transition ease-in-out duration-500",leaveFrom:"floating"===u?"opacity-100":"translate-y-0",leaveTo:"floating"===u?"opacity-0":"translate-y-full",afterLeave:l,className:"flex flex-col bg-white rounded ".concat("floating"===u?"relative w-full my-auto sm:min-w-[428px] sm:w-auto":"relative h-screen overflow-y-auto"),role:"dialog","aria-modal":"true","aria-label":f,children:[(0,n.jsx)("button",{className:"absolute p-1 text-gray-500 top-4 right-4 z-[110]",type:"button",onClick:r,"aria-label":"Close dialog",children:c||(0,n.jsx)("i",{className:"w-3 fa-light fa-xmark"})}),s]})})}
1),(0,n.jsx)(o._,{as:"div",appear:!0,enter:"transition ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"fixed inset-0 z-[90] bg-bbx-style/50","aria-hidden":"true"})]})}},11875:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15845);t.RichTextReversedNodeType={[n.RichTextNodeType.listItem]:"listItem",[n.RichTextNodeType.oListItem]:"oListItem",[n.RichTextNodeType.list]:"list",[n.RichTextNodeType.oList]:"oList"}},12246:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(37876);let i=function(e){let{className:t=""}=e;return(0,n.jsxs)("svg",{viewBox:"0 0 995 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,n.jsx)("path",{d:"M863.831 60.3037L904.966 8.87591L910.044 2.6106H901.919H883.383H881.605L880.336 3.91587L849.866 42.552L819.142 3.91587L817.872 2.6106H816.095H797.559H789.687L794.765 8.87591L835.646 60.3037L792.226 114.864L787.148 121.129H795.273H813.555H815.587L816.602 119.824L849.866 78.0554L882.875 119.824L884.144 121.129H885.922H904.458H912.329L907.251 114.864L863.831 60.3037Z"}),(0,n.jsx)("path",{d:"M649.019 37.853C649.019 18.2739 633.53 2.6106 614.74 2.6106H552.023H548.214V6.52642V117.475V121.39H552.023H616.264C635.308 121.39 650.543 105.466 650.543 86.1481C650.543 76.4891 646.734 67.6132 640.386 61.0869C645.718 54.8215 649.019 46.7288 649.019 37.853ZM570.051 25.0613H614.486C621.342 25.0613 626.928 30.8045 626.928 37.853C626.928 44.9015 621.342 50.6447 614.486 50.6447H570.051V25.0613ZM616.264 98.9398H570.051V73.3564H616.264C623.12 73.3564 628.706 79.0996 628.706 86.1481C628.706 93.1966 623.12 98.9398 616.264 98.9398Z"}),(0,n.jsx)("path",{d:"M130.006 2.6106H126.197V6.52642V117.214V121.129H130.006H144.479H148.288V117.214V6.52642V2.6106H144.479H130.006Z"}),(0,n.jsx)("path",{d:"M100.805 37.853C100.805 18.2739 85.5702 2.6106 66.5264 2.6106H3.80876H0V6.52642V117.475V121.39H3.80876H68.0499C87.0937 121.39 102.329 105.466 102.329 86.1481C102.329 76.4891 98.52 67.6132 92.1721 61.0869C97.7583 54.8215 100.805 46.7288 100.805 37.853ZM22.0908 25.0613H66.5264C73.3822 25.0613 78.9684 30.8045 78.9684 37.853C78.9684 44.9015 73.3822 50.6447 66.5264 50.6447H22.0908V25.0613ZM68.3038 98.6787H22.0908V73.0954H68.3038C75.1596 73.0954 80.7458 78.8386 80.7458 85.8871C80.7458 92.9355 75.1596 98.6787 68.3038 98.6787Z"}),(0,n.jsx)("path",{d:"M237.672 73.0954C256.716 71.268 270.427 57.171 270.427 37.853C270.427 18.2739 254.938 2.6106 236.148 2.6106H179.271H175.462V6.52642V117.475V121.39H179.271H193.49H197.299V117.475V73.0954H209.741L245.797 119.824L247.067 121.39H248.844H267.126H274.998L270.173 115.125L237.672 73.0954ZM197.299 50.6447V25.0613H236.148C243.004 25.0613 248.59 30.8045 248.59 37.853C248.59 44.9015 243.004 50.6447 236.148 50.6447H197.299Z"}),(0,n.jsx)("path",{d:"M343.805 22.4497C356.501 22.4497 368.435 28.976 375.545 39.6793L379.607 45.6835L381.639 48.8162L384.686 46.7278L396.62 38.374L399.667 36.2856L397.635 33.1529L393.573 27.1486C382.4 10.1801 363.61 0.26001 343.805 0.26001C310.542 0.26001 283.626 28.1929 283.626 62.13C283.626 96.3281 310.796 124 343.805 124C363.61 124 382.4 113.819 393.573 97.1113L396.62 92.4123C396.62 92.4123 396.62 92.1513 396.874 92.1513L397.635 90.846C398.397 89.8018 399.159 88.7576 399.667 87.7133C398.143 86.6691 396.62 85.6249 395.096 84.5807L384.686 77.2711L381.639 75.1827L379.607 78.3154L375.545 84.3196C368.435 95.0229 356.501 101.549 343.805 101.549C322.73 101.549 305.463 83.7975 305.463 62.13C305.463 40.2014 322.73 22.4497 343.805 22.4497Z"}),(0,n.jsx)("path",{d:"M502.258 2.6106H498.449V6.52642V52.7331H440.556V6.52642V2.6106H436.747H422.528H418.719V6.52642V117.214V121.129H422.528H436.747H440.556V117.214V75.1838H498.449V117.214V121.129H502.258H516.731H520.54V117.214V6.52642V2.6106H516.731H502.258Z"}),(0,n.jsx)("path",{d:"M729.259 0C695.996 0 669.081 27.9329 669.081 61.87C669.081 96.0681 696.25 123.74 729.259 123.74C762.522 123.74 789.691 95.8071 789.691 61.87C789.691 27.6718 762.522 0 729.259 0ZM729.259 101.289C708.184 101.289 690.917 83.5375 690.917 61.87C690.917 40.2024 708.184 22.4507 729.259 22.4507C750.334 22.4507 767.601 40.2024 767.601 61.87C767.601 83.5375 750.588 101.289 729.259 101.289Z"}),(0,n.jsx)("path",{d:"M959.809 25.8066L924.618 61.9866L959.809 98.1666L995 61.9866L959.809 25.8066Z"}),(0,n.jsx)("rect",{x:"3",y:"3",rx:"3"}),(0,n.jsx)("rect",{x:"3.5",y:"3.5",rx:"2.5",stroke:"black",strokeOpacity:"0.14902"}),(0,n.jsx)("path",{d:"M14.3438 15C14.2969 14.6042 14.1068 14.2969 13.7734 14.0781C13.4401 13.8594
113.0313 13.75 12.5469 13.75C12.1927 13.75 11.8828 13.8073 11.6172 13.9219C11.3542 14.0365 11.1484 14.194 11 14.3945C10.8542 14.5951 10.7813 14.8229 10.7813 15.0781C10.7813 15.2917 10.832 15.4753 10.9336 15.6289C11.0378 15.7799 11.1706 15.9062 11.332 16.0078C11.4935 16.1068 11.6628 16.1888 11.8398 16.2539C12.0169 16.3164 12.1797 16.3672 12.3281 16.4062L13.1406 16.625C13.349 16.6797 13.5807 16.7552 13.8359 16.8516C14.0938 16.9479 14.3398 17.0794 14.5742 17.2461C14.8112 17.4102 15.0065 17.6211 15.1602 17.8789C15.3138 18.1367 15.3906 18.4531 15.3906 18.8281C15.3906 19.2604 15.2773 19.651 15.0508 20C14.8268 20.349 14.4987 20.6263 14.0664 20.832C13.6367 21.0378 13.1146 21.1406 12.5 21.1406C11.9271 21.1406 11.431 21.0482 11.0117 20.8633C10.5951 20.6784 10.2669 20.4206 10.0273 20.0898C9.79036 19.7591 9.65625 19.375 9.625 18.9375H10.625C10.651 19.2396 10.7526 19.4896 10.9297 19.6875C11.1094 19.8828 11.3359 20.0286 11.6094 20.125C11.8854 20.2187 12.1823 20.2656 12.5 20.2656C12.8698 20.2656 13.2018 20.2057 13.4961 20.0859C13.7904 19.9635 14.0234 19.7943 14.1953 19.5781C14.3672 19.3594 14.4531 19.1042 14.4531 18.8125C14.4531 18.5469 14.3789 18.3307 14.2305 18.1641C14.082 17.9974 13.8867 17.862 13.6445 17.7578C13.4023 17.6536 13.1406 17.5625 12.8594 17.4844L11.875 17.2031C11.25 17.0234 10.7552 16.7669 10.3906 16.4336C10.026 16.1003 9.84375 15.6641 9.84375 15.125C9.84375 14.6771 9.96484 14.2865 10.207 13.9531C10.4518 13.6172 10.7799 13.3568 11.1914 13.1719C11.6055 12.9844 12.0677 12.8906 12.5781 12.8906C13.0938 12.8906 13.5521 12.9831 13.9531 13.168C14.3542 13.3503 14.6719 13.6003 14.9062 13.918C15.1432 14.2357 15.2682 14.5964 15.2813 15H14.3438ZM19.374 21.125C18.7959 21.125 18.2972 20.9974 17.8779 20.7422C17.4613 20.4844 17.1396 20.125 16.9131 19.6641C16.6891 19.2005 16.5771 18.6615 16.5771 18.0469C16.5771 17.4323 16.6891 16.8906 16.9131 16.4219C17.1396 15.9505 17.4548 15.5833 17.8584 15.3203C18.2646 15.0547 18.7386 14.9219 19.2803 14.9219C19.5928 14.9219 19.9014 14.974 20.2061 15.0781C20.5107 15.1823 20.7881 15.3516 21.0381 15.5859C21.2881 15.8177 21.4873 16.125 21.6357 16.5078C21.7842 16.8906 21.8584 17.362 21.8584 17.9219V18.3125H17.2334V17.5156H20.9209C20.9209 17.1771 20.8532 16.875 20.7178 16.6094C20.585 16.3437 20.3949 16.1341 20.1475 15.9805C19.9027 15.8268 19.6136 15.75 19.2803 15.75C18.9131 15.75 18.5954 15.8411 18.3271 16.0234C18.0615 16.2031 17.8571 16.4375 17.7139 16.7266C17.5706 17.0156 17.499 17.3255 17.499 17.6562V18.1875C17.499 18.6406 17.5771 19.0247 17.7334 19.3398C17.8923 19.6523 18.1123 19.8906 18.3936 20.0547C18.6748 20.2161 19.0016 20.2969 19.374 20.2969C19.6162 20.2969 19.835 20.263 20.0303 20.1953C20.2282 20.125 20.3988 20.0208 20.542 19.8828C20.6852 19.7422 20.7959 19.5677 20.874 19.3594L21.7646 19.6094C21.6709 19.9115 21.5133 20.1771 21.292 20.4062C21.0706 20.6328 20.7972 20.8099 20.4717 20.9375C20.1462 21.0625 19.7803 21.125 19.374 21.125ZM25.6982 21.125C25.1357 21.125 24.6514 20.9922 24.2451 20.7266C23.8389 20.4609 23.5264 20.0951 23.3076 19.6289C23.0889 19.1628 22.9795 18.6302 22.9795 18.0312C22.9795 17.4219 23.0915 16.8841 23.3154 16.418C23.542 15.9492 23.8571 15.5833 24.2607 15.3203C24.667 15.0547 25.141 14.9219 25.6826 14.9219C26.1045 14.9219 26.4847 15 26.8232 15.1562C27.1618 15.3125 27.4391 15.5312 27.6553 15.8125C27.8714 16.0937 28.0055 16.4219 28.0576 16.7969H27.1357C27.0654 16.5234 26.9092 16.2812 26.667 16.0703C26.4274 15.8568 26.1045 15.75 25.6982 15.75C25.3389 15.75 25.0238 15.8437 24.7529 16.0312C24.4847 16.2161 24.2751 16.4779 24.124 16.8164C23.9756 17.1523 23.9014 17.5469 23.9014 18C23.9014 18.4635 23.9743 18.8672 24.1201 19.2109C24.2686 19.5547 24.4769 19.8216 24.7451 20.0117C25.016 20.2018 25.3337 20.2969 25.6982 20.2969C25.9378 20.2969 26.1553 20.2552 26.3506 20.1719C26.5459 20.0885 26.7113 19.9688 26.8467 19.8125C26.9821 19.6562 27.0785 19.4687 27.1357 19.25H28.0576C28.0055 19.6042 27.8766 19.9232 27.6709 20.207C27.4678 20.4883 27.1982 20.7122 26.8623 20.8789C26.529 21.043 26.141 21.125 25.6982 21.125ZM32.0146 15V15.7812H28.9053V15H32.0146ZM29.8115 13.5625H30.7334V19.2812C30.7334 19.5417 30.7
1712 19.737 30.8467 19.8672C30.9248 19.9948 31.0238 20.0807 31.1436 20.125C31.266 20.1667 31.3949 20.1875 31.5303 20.1875C31.6318 20.1875 31.7152 20.1823 31.7803 20.1719C31.8454 20.1589 31.8975 20.1484 31.9365 20.1406L32.124 20.9687C32.0615 20.9922 31.9743 21.0156 31.8623 21.0391C31.7503 21.0651 31.6084 21.0781 31.4365 21.0781C31.1761 21.0781 30.9209 21.0221 30.6709 20.9102C30.4235 20.7982 30.2178 20.6276 30.0537 20.3984C29.8923 20.1693 29.8115 19.8802 29.8115 19.5312V13.5625ZM33.4014 21V15H34.3232V21H33.4014ZM33.8701 14C33.6904 14 33.5355 13.9388 33.4053 13.8164C33.2777 13.694 33.2139 13.5469 33.2139 13.375C33.2139 13.2031 33.2777 13.056 33.4053 12.9336C33.5355 12.8112 33.6904 12.75 33.8701 12.75C34.0498 12.75 34.2035 12.8112 34.3311 12.9336C34.4613 13.056 34.5264 13.2031 34.5264 13.375C34.5264 13.5469 34.4613 13.694 34.3311 13.8164C34.2035 13.9388 34.0498 14 33.8701 14ZM38.4492 21.125C37.9076 21.125 37.4323 20.9961 37.0234 20.7383C36.6172 20.4805 36.2995 20.1198 36.0703 19.6562C35.8438 19.1927 35.7305 18.651 35.7305 18.0312C35.7305 17.4062 35.8438 16.8607 36.0703 16.3945C36.2995 15.9284 36.6172 15.5664 37.0234 15.3086C37.4323 15.0508 37.9076 14.9219 38.4492 14.9219C38.9909 14.9219 39.4648 15.0508 39.8711 15.3086C40.2799 15.5664 40.5977 15.9284 40.8242 16.3945C41.0534 16.8607 41.168 17.4062 41.168 18.0312C41.168 18.651 41.0534 19.1927 40.8242 19.6562C40.5977 20.1198 40.2799 20.4805 39.8711 20.7383C39.4648 20.9961 38.9909 21.125 38.4492 21.125ZM38.4492 20.2969C38.8607 20.2969 39.1992 20.1914 39.4648 19.9805C39.7305 19.7695 39.9271 19.4922 40.0547 19.1484C40.1823 18.8047 40.2461 18.4323 40.2461 18.0312C40.2461 17.6302 40.1823 17.2565 40.0547 16.9102C39.9271 16.5638 39.7305 16.2839 39.4648 16.0703C39.1992 15.8568 38.8607 15.75 38.4492 15.75C38.0378 15.75 37.6992 15.8568 37.4336 16.0703C37.168 16.2839 36.9714 16.5638 36.8438 16.9102C36.7161 17.2565 36.6523 17.6302 36.6523 18.0312C36.6523 18.4323 36.7161 18.8047 36.8438 19.1484C36.9714 19.4922 37.168 19.7695 37.4336 19.9805C37.6992 20.1914 38.0378 20.2969 38.4492 20.2969ZM43.4971 17.3906V21H42.5752V15H43.4658V15.9375H43.5439C43.6846 15.6328 43.8981 15.388 44.1846 15.2031C44.471 15.0156 44.8408 14.9219 45.2939 14.9219C45.7002 14.9219 46.0557 15.0052 46.3604 15.1719C46.665 15.3359 46.902 15.5859 47.0713 15.9219C47.2406 16.2552 47.3252 16.6771 47.3252 17.1875V21H46.4033V17.25C46.4033 16.7786 46.2809 16.4115 46.0361 16.1484C45.7913 15.8828 45.4554 15.75 45.0283 15.75C44.734 15.75 44.471 15.8138 44.2393 15.9414C44.0101 16.069 43.8291 16.2552 43.6963 16.5C43.5635 16.7448 43.4971 17.0417 43.4971 17.3906Z"})]})}},12368:(e,t)=>{"use strict";var r=Object.defineProperty,n=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,r)=>n(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class o{constructor(e,t,r){i(this,"document"),i(this,"title"),i(this,"masterLanguageDocument"),i(this,"originalPrismicDocument"),this.document=e,this.title=t,this.masterLanguageDocument=null==r?void 0:r.masterLanguageDocument,this.originalPrismicDocument=null==r?void 0:r.originalPrismicDocument}}t.PrismicMigrationDocument=o},12883:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},14059:(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{dateStyle:"long"},r=new Date(e);return"Invalid Date"===r.toString()?null:r instanceof Date?r.toLocaleDateString("en-US",t):null}function i(e){let t=new Date(e);if("Invalid Date"===t.toString())return null;let r={year:"numeric",month:"2-digit",day:"2-digit"},[n,i,o]=new Intl.DateTimeFormat("en-US",r).format(t).split(",")[0].split("/").map(Number);if(i>=25){let e=12===n?1:n+1,t=12===n?o+1:o;return new Intl.DateTimeFormat("en-US",{month:"long",year:"2-digit"}).format(new Date(t,e-1)).replace(/\d{2}$/,e=>"'".concat(e))}return new Intl.DateTimeFormat("en-US",{month:"long",year:"2-digit"}).format(new Date(o,n-1)).replace(/\d{2}$/,e=>"'".concat(e))}function o(e,t){let r=864e5;return(t.getTime()-e.getTime())/r}function a(e){let t=new Date,r=12*(t.getFullYear()-e.getFullYear())+t.getMonth()-e.getMonth(),n=new Date(e);return n.setMonth(n.getMonth()+r),r-(t<n)}function s(e){let t=new Date(e);return(new Date().getTime()-t.getTime())/36e5}function u(e,t){let r=new Date(e);return(new Date(t).getTime()-r.getTime())/36e5}r.d(t,{Xb:()=>u,bU:()=>n,gR:()=>s,jU:()=>a,nI:()=>o,v9:()=>i})},14183:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(22659),i=r(21730),o=r(18166),a=r(24765),s=(e,t)=>{let r=(e,t)=>"function"==typeof e?r=>(null==e?void 0:e(r))||t(r):t;return u({heading1:r(null==t?void 0:t.heading1,n.serializeStandardTag("h1",null==t?void 0:t.heading1)),heading2:r(null==t?void 0:t.heading2,n.serializeStandardTag("h2",null==t?void 0:t.heading2)),heading3:r(null==t?void 0:t.heading3,n.serializeStandardTag("h3",null==t?void 0:t.heading3)),heading4:r(null==t?void 0:t.heading4,n.serializeStandardTag("h4",null==t?void 0:t.heading4)),heading5:r(null==t?void 0:t.heading5,n.serializeStandardTag("h5",null==t?void 0:t.heading5)),heading6:r(null==t?void 0:t.heading6,n.serializeStandardTag("h6",null==t?void 0:t.heading6)),paragraph:r(null==t?void 0:t.paragraph,n.serializeStandardTag("p",null==t?void 0:t.paragraph)),preformatted:r(null==t?void 0:t.preformatted,n.serializePreFormatted(null==t?void 0:t.preformatted)),strong:r(null==t?void 0:t.strong,n.serializeStandardTag("strong",null==t?void 0:t.strong)),em:r(null==t?void 0:t.em,n.serializeStandardTag("em",null==t?void 0:t.em)),listItem:r(null==t?void 0:t.listItem,n.serializeStandardTag("li",null==t?void 0:t.listItem)),oListItem:r(null==t?void 0:t.oListItem,n.serializeStandardTag("li",null==t?void 0:t.oListItem)),list:r(null==t?void 0:t.list,n.serializeStandardTag("ul",null==t?void 0:t.list)),oList:r(null==t?void 0:t.oList,n.serializeStandardTag("ol",null==t?void 0:t.oList)),image:r(null==t?void 0:t.image,n.serializeImage(e,null==t?void 0:t.image)),embed:r(null==t?void 0:t.embed,n.serializeEmbed(null==t?void 0:t.embed)),hyperlink:r(null==t?void 0:t.hyperlink,n.serializeHyperlink(e,null==t?void 0:t.hyperlink)),label:r(null==t?void 0:t.label,n.serializeStandardTag("span",null==t?void 0:t.label)),span:r(null==t?void 0:t.span,n.serializeSpan())})},u=e=>{let t={};for(let r in e){let n=e[r];n&&(t[r]=e=>n({...e,children:e.children.join("")}))}return o.wrapMapSerializer(t)};t.asHTML=(e,...t)=>{if(!e)return null;{let r,n,[o,u]=t;return n=(r="function"==typeof o||null==o?{linkResolver:o,serializer:u}:{...o}).serializer?"function"==typeof r.serializer?a.composeSerializers((e,t,n,i,o)=>r.serializer(e,t,n,i.join(""),o),s(r.linkResolver)):s(r.linkResolver,r.serializer):s(r.linkResolver),i.serialize(e,n).join("")}}},14380:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>u,fj:()=>a,qO:()=>s});var n=r(82763),i=r(27426),o=r(30937);function a(e){let t=(0,n.zf)(),r={sid:(0,i.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>l(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}function l(e){return(0,o.Ce)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}},14431:(e,t,r)=>{"use strict";r.d(t,{BF:()=>y,EU:()=>m,rm:()=>b});var n=r(1978),i=r(27426),o=r(82763),a=r(702),s=r(92501),u=r(6649),l=r(91654),c=r(52316),f=r(14380);let d=parseFloat(r(41156).M),h=100;class p{constructor(e,t,r,n=d){let i,o;this._version=n,t?i=t:(i=new c.HG).setClient(e),r?o=r:(o=new c.HG).setClient(e),this._stack=[{scope:i}
1],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t,r=this.pushScope();try{t=e(r)}catch(e){throw this.popScope(),e}return(0,n.Qg)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let r=this._lastEventId=t&&t.event_id?t.event_id:(0,i.eJ)(),n=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:r}),r}captureMessage(e,t,r){let n=this._lastEventId=r&&r.event_id?r.event_id:(0,i.eJ)(),o=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n}),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,i.eJ)();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:r,client:n}=this.getStackTop();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=h}=n.getOptions&&n.getOptions()||{};if(s<=0)return;let u={timestamp:(0,o.lu)(),...e},l=i?(0,a.pq)(()=>i(u,t)):u;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:r}=this.getStackTop();r&&e(t)}run(e){let t=g(this);try{e(this)}finally{g(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return l.T&&a.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let r=this._callExtensionMethod("startTransaction",e,t);return l.T&&!r&&(this.getClient()?a.vF.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 2Sentry.addTracingExtensions(); 3Sentry.init({...}); 4`):a.vF.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&(0,f.Vu)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:r}=this.getStackTop(),{release:n,environment:i=u.U}=r&&r.getOptions()||{},{userAgent:o}=s.OW.navigator||{},a=(0,f.fj)({release:n,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&(0,f.qO)(l,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(e,...t){let r=m().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);l.T&&a.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function m(){return s.OW.__SENTRY__=s.OW.__SENTRY__||{extensions:{},hub:void 0},s.OW}function g(e){let t=m(),r=w(t);return x(t,e),r}function y(){let e=m();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return v(e)}function b(){return y().getIsolationScope()}function v(e=m()){return(!_(e)||w(e).isOlderThan(d))&&x(e,new p),w(e)}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function w(e){return(0,s.BY)("hub",()=>new p,e)}function x(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},14866:(e,t,r)=>{var n=r(56057);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},15132:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=e=>null!=e,n=e=>!!e.length,i=e=>!!r(e)&&(1===e.length&&"text"in e[0]?!!e[0].text:!!e.length),o=i,a=e=>r(e)&&!!e.url,s=a,u=e=>r(e)&&("id"in e||"url"in e),l=u,c=u,f=r,d=r,h=r,p=r,m=e=>r(m)&&!!e,g=r,y=e=>r(e)&&!!e.embed_url,b=e=>r(e)&&"longitude"in e,v=r,_=r,w=_,x=e=>r(e)&&n(e),S=e=>r(e)&&n(e),E=e=>r(e)&&n(e);t.color=h,t.contentRelationship=c,t.date=f,t.embed=y,t.geoPoint=b,t.group=S,t.image=s,t.imageThumbnail=a,t.integrationField=_,t.integrationFields=w,t.keyText=m,t.link=u,t.linkToMedia=l,t.number=p,t.repeatable=x,t.richText=i,t.select=g,t.sliceZone=E,t.table=v,t.timestamp=d,t.title=o},15539:(e,t)=>
4{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.castThunk=e=>"function"==typeof e?e:()=>e},15568:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=e=>Array.isArray(e)?`[${e.map(r).join(", ")}]`:"string"==typeof e?`"${e}"`:e instanceof Date?`${e.getTime()}`:`${e}`,n=e=>(t,...n)=>{let i=n.map(r).join(", "),o=t&&n.length?", ":"";return`[${e}(${t}${o}${i})]`},i=e=>{let t=n(e);return e=>t(e)},o=e=>{let t=n(e);return(...e)=>t("",...e)};t.filter={at:n("at"),not:n("not"),any:n("any"),in:n("in"),fulltext:n("fulltext"),has:i("has"),missing:i("missing"),similar:o("similar"),geopointNear:n("geopoint.near"),numberLessThan:n("number.lt"),numberGreaterThan:n("number.gt"),numberInRange:n("number.inRange"),dateAfter:n("date.after"),dateBefore:n("date.before"),dateBetween:n("date.between"),dateDayOfMonth:n("date.day-of-month"),dateDayOfMonthAfter:n("date.day-of-month-after"),dateDayOfMonthBefore:n("date.day-of-month-before"),dateDayOfWeek:n("date.day-of-week"),dateDayOfWeekAfter:n("date.day-of-week-after"),dateDayOfWeekBefore:n("date.day-of-week-before"),dateMonth:n("date.month"),dateMonthAfter:n("date.month-after"),dateMonthBefore:n("date.month-before"),dateYear:n("date.year"),dateHour:n("date.hour"),dateHourAfter:n("date.hour-after"),dateHourBefore:n("date.hour-before")}},15738:(e,t,r)=>{"use strict";var n=r(65865),i=r(81073),o=r(18963),a=r(9945),s=r(22009)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},15741:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(75531),o=["mousedown","touchstart"];let a=function(e,t,r){void 0===r&&(r=o);var a=(0,n.useRef)(t);(0,n.useEffect)(function(){a.current=t},[t]),(0,n.useEffect)(function(){for(var t=function(t){var r=e.current;r&&!r.contains(t.target)&&a.current(t)},n=0,o=r;n<o.length;n++){var s=o[n];(0,i.on)(document,s,t)}return function(){for(var e=0,n=r;e<n.length;e++){var o=n[e];(0,i.AU)(document,o,t)}}},[r,e])}},15773:(e,t,r)=>{"use strict";var n=r(96081).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},15845:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",preformatted:"preformatted",strong:"strong",em:"em",listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",image:"image",embed:"embed",hyperlink:"hyperlink",label:"label",span:"span"}},16108:e=>{function t(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}
4e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},16318:(e,t,r)=>{"use strict";var n=r(47418);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},16492:e=>{"use strict";e.exports=JSON.parse('{"U8":{"ME":{"O":"/profile/subscriptions"},"E":{"O":"/profile/favorites"},"WR":{"O":"/profile/points"},"Ww":{"O":"/profile/orders/subscription-orders"},"ct":{"O":"/profile/account/information"},"x0":{"O":"/profile/subscriptions"}},"hE":{"b":{"DD":"Shop Orders","OZ":"/profile/orders/shop-orders","$m":"/profile/orders/shop-orders"},"x":{"DD":"Monthly Boxes","OZ":"/profile/orders/subscription-orders","$m":"/profile/orders/subscription-orders"}},"ZK":{"pq":{"DD":"Account Information","OZ":"/profile/account/information","$m":"/profile/account/information"},"Ji":{"DD":"Payment Method","OZ":"/profile/account/payment-methods","$m":"/profile/account/payment-methods"},"$e":{"DD":"Notification Preferences","OZ":"/profile/account/notification-preferences","$m":"/profile/account/notification-preferences"}}}')},16639:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(58149),i=r(10553),o=r(79684);let a=async e=>{if((0,o.wC)(e),!e)throw Error("Shopify access token not available.");return(0,o.AZ)(e)};function s(){let{data:e,status:t}=(0,i.useSession)(),r=null==e?void 0:e.shopifyAccessToken,{data:o,error:s,isValidating:u,mutate:l}=(0,n.Ay)(r?["/recharge-session",r]:null,()=>a(r));return{rechargeSession:s?null:o,loading:"loading"===t||u,revalidate:l}}},17424:(e,t,r)=>{"use strict";var n=r(27496);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var o,a=[];n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},17753:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},17915:e=>{e.exports={version:"0.27.2"}},18166:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(11875);t.wrapMapSerializer=e=>(t,r,i,o,a)=>{let s=e[n.RichTextReversedNodeType[t]||t];if(s)return s({type:t,node:r,text:i,children:o,key:a})}},18528:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(10553),i=r(58149),o=r(58929);function a(){let{data:e}=(0,n.useSession)(),t=null==e?void 0:e.shopifyAccessToken,r=t?"/customer/".concat(t):null,{data:a,isValidating:s,mutate:u}=(0,i.Ay)(r,()=>(0,o.xt)(t));return{customer:a,loading:s,revalidate:u}}},18559:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>c,J0:()=>y,J5:()=>_,KU:()=>m,ZQ:()=>d,bX:()=>p,o5:()=>g,r:()=>f,v4:()=>h});var n=r(702),i=r(92501),o=r(6649),a=r(91654),s=r(14431),u=r(14380),l=r(35687);function c(e,t){return(0,s.BF)().captureException(e,(0,l.li)(t))}function f(e,t){return(0,s.BF)().captureEvent(e,t)}function d(e,t){(0,s.BF)().addBreadcrumb(e,t)}function h(...e){let t=(0,s.BF)();if(2===e.length){let[r,n]=e;return r?t.withScope(()=>(t.getStackTop().scope=r,n(r))):t.withScope(n)}return t.withScope(e[0])}async function p(e){let t=m();return t?t.flush(e):(a.T&&n.vF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function m(){return(0,s.BF)().getClient()}function g(){return(0,s.BF)().getScope()}function y(e){let t=m(),r=(0,s.rm)(),n=g(),{release:a,environment:l=o.U}=t&&t.getOptions()||{},{userAgent:c}=i.OW.navigator||{},f=(0,u.fj)({release:a,environment:l,user:n.getUser()||r.getUser(),...c&&{userAgent:c},...e}),d=r.getSession();return d&&"ok"===d.status&&(0,u.qO)(d,{status:"exited"}),b(),r.setSession(f),n.setSession(f),f}function b(){let e=(0,s.rm)(),t=g(),r=t.getSession()||e.getSession();r&&(0,u.Vu)(r),v(),e.setSession(),t.setSession()}function v(){let e=(0,s.rm)(),t=g(),r=m(),n=t.getSession()||e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function _(e=!1){if(e)return void b();v()}},18664:(e,t,r)=>{"use strict";var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>i(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=r(8695),s=r(68779),u=1500;class l{constructor(e){if(o(this,"fetchFn"),o(this,"fetchOptions"),o(this,"queuedFetchJobs",{}),o(this,"dedupedFetchJobs",{}),this.fetchOptions=e.fetchOptions,"function"==typeof e.fetch)this.fetchFn=e.fetch;else if("function"==typeof globalThis.fetch)this.fetchFn=globalThis.fetch;else throw new s.PrismicError("A valid fetch implementation was not provided. In environments where fetch is not available (including Node.js), a fetch implementation must be provided via a polyfill or the `fetch` option.",void 0,void 0);this.fetchFn===globalThis.fetch&&(this.fetchFn=this.fetchFn.bind(globalThis))}async fetch(e,t={}){var r,n,i,o,a;let s={...this.fetchOptions,...t.fetchOptions,headers:{...null==(r=this.fetchOptions)?void 0:r.headers,...null==(n=t.fetchOptions)?void 0:n.headers},signal:(null==(i=t.fetchOptions)?void 0:i.signal)||t.signal||(null==(o=this.fetchOptions)?void 0:o.signal)};return(null==(a=t.fetchOptions)?void 0:a.body)?this.queueFetch(e,s):this.dedupeFetch(e,s)}queueFetch(e,t={}){let r=new URL(e).hostname;return this.queuedFetchJobs[r]||(this.queuedFetchJobs[r]=a.pLimit({interval:u})),this.queuedFetchJobs[r](()=>this.createFetchJob(e,t))}dedupeFetch(e,t={}){let r;return this.dedupedFetchJobs[e]&&this.dedupedFetchJobs[e].has(t.signal)?r=this.dedupedFetchJobs[e].get(t.signal):(this.dedupedFetchJobs[e]=this.dedupedFetchJobs[e]||new Map,r=this.createFetchJob(e,t).finally(()=>{var r,n;null==(r=this.dedupedFetchJobs[e])||r.delete(t.signal),(null==(n=this.dedupedFetchJobs[e])?void 0:n.size)===0&&delete this.dedupedFetchJobs[e]}),this.dedupedFetchJobs[e].set(t.signal,r)),r}createFetchJob(e,t={}){return this.fetchFn(e,t).then(async e=>{let t,r;if(e.ok)try{t=await e.json()}catch{}else try{r=await e.text(),t=JSON.parse(r)}catch{}return{status:e.status,headers:e.headers,json:t,text:r}})}}t.BaseClient=l,t.UNKNOWN_RATE_LIMIT_DELAY=u},18697:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(84848);t.findRefByLabel=(e,t)=>
4n.findRef(e,e=>e.label===t)},18758:(e,t,r)=>{var n=r(31365);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},18847:(e,t,r)=>{e.exports=r(52496)},18963:(e,t,r)=>{"use strict";var n=r(81073),i=r(65865),o=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var r=o(e,t);return r&&r.value}},s=function(e,t,r){var n=o(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},u=function(e,t){return!!e&&!!o(e,t)},l=function(e,t){if(e)return o(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=l(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return u(e,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},19204:(e,t)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&"ref"in e}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.enableAutoPreviews=function(e){if("previewData"in e&&e.previewData){r(e.previewData)&&e.client.queryContentFromRef(e.previewData.ref);return}if("req"in e&&e.req)return void e.client.enableAutoPreviewsFromReq(e.req)}},19467:(e,t,r)=>{"use strict";r.d(t,{L2:()=>v,O7:()=>y,S7:()=>b,hj:()=>m,u$:()=>p,zM:()=>g});var n,i=r(10553);let o=null,a=null,s=!0,u=[],l=!1,c=async()=>{if(!l&&0!==u.length){l=!0;try{let e=u[0];window.ElevarInvalidateContext&&window.ElevarInvalidateContext(),await new Promise(e=>{setTimeout(()=>e(),100)}),window.ElevarDataLayer.push(e.data),u.shift(),u.length>0&&await c()}finally{l=!1}}},f=(e,t)=>{let r=Date.now();return!!o&&o.type===e&&JSON.stringify(o.data)===JSON.stringify(t)&&r-o.timestamp<1e3||(o={type:e,data:t,timestamp:r},!1)};window.ElevarDataLayer=null!=(n=window.ElevarDataLayer)?n:[];let d=async()=>{var e,t,r,n,o,a,s,u,l,c,f,d,h,p,m;let g=await (0,i.getSession)();return(null==g?void 0:g.user)?{visitor_type:"logged_in",customer_email:g.user.email,customer_id:null==(e=g.user.customer)?void 0:e.id,customer_first_name:null==(t=g.user.customer)?void 0:t.firstName,customer_last_name:null==(r=g.user.customer)?void 0:r.lastName,customer_phone:null==(n=g.user.customer)?void 0:n.phone,customer_address_1:null==(o=g.user.customer)?void 0:o.address1,customer_address_2:null==(a=g.user.customer)?void 0:a.address2,customer_city:null==(s=g.user.customer)?void 0:s.city,customer_province:null==(u=g.user.customer)?void 0:u.province,customer_province_code:null==(l=g.user.customer)?void 0:l.provinceCode,customer_zip:null==(c=g.user.customer)?void 0:c.zip,customer_country:null==(f=g.user.customer)?void 0:f.country,customer_order_count:null==(d=g.user.customer)?void 0:d.orderCount,customer_total_spent:null==(h=g.user.customer)?void 0:h.totalSpent,customer_tags:(null==(m=g.user.customer)||null==(p=m.tags)?void 0:p.join(", "))||""}:{visitor_type:"guest"}},h=async e=>{if(!e.event)return void console.error("[Elevar] Event missing required field: event");if(e.ecommerce){if(!e.ecommerce.currencyCode)return void console.error("[Elevar] Event missing required field: ecommerce.currencyCode");e.ecommerce.products&&e.ecommerce.products.forEach((e,t)=>{let r=["id","name","price"].filter(t=>!e[t]);r.length>0&&console.error("[Elevar] Product at index ".concat(t," missing required fields:"),r)})}u.push({type:e.event,data:e,timestamp:Date.now()}),l||await c()},p=async(e,t)=>{let r=window.location.pathname;if(r===a&&!s)return;a=r,s=!1;let n={event:"dl_user_data",cart_total:e||"0.00",user_properties:await d(),ecommerce:{currencyCode:"USD",cart_contents:{products:t||[]}}};await h(n)},m=async(e,t)=>{var r,n,i;let o=await d(),a=e.variants[0],s=e.id.split("/").pop()||"",u=(null==a?void 0:a.id.split("/").pop())||"",l={event:"dl_view_item",user_properties:o,ecommerce:{currencyCode:"USD",detail
4:{actionField:{list:t||window.location.pathname,action:"detail"},products:[{id:e.id,name:e.name,brand:e.vendor||"",category:e.type,variant:(null==a?void 0:a.title)||"Default",price:(null==a||null==(r=a.price)?void 0:r.amount)||"0.0",product_id:s,variant_id:u,compare_at_price:(null==a||null==(n=a.compareAtPrice)?void 0:n.amount)||"0.0",image:(null==(i=e.images[0])?void 0:i.url)||"https://www.birchbox.com/images/default-product.jpg",url:window.location.href,list:t||window.location.pathname}]}}};f("dl_view_item",l)||await h(l)},g=async(e,t,r)=>{var n,i,o,a,s,u;let l=await d(),c=null==(n=e.variants)?void 0:n[0],p=e.id.split("/").pop()||"",m=(null==c?void 0:c.id.split("/").pop())||"",g={event:"dl_add_to_cart",user_properties:l,ecommerce:{currencyCode:"USD",add:{actionField:{list:r||window.location.pathname},products:[{id:e.id,name:e.name,brand:e.vendor||"",category:e.type||"product",variant:(null==c?void 0:c.title)||"Default",price:(null==c||null==(i=c.price)?void 0:i.amount)||(null==(o=e.price)?void 0:o.amount)||"0.0",quantity:t.toString(),product_id:p,variant_id:m,compare_at_price:(null==c||null==(a=c.compareAtPrice)?void 0:a.amount)||"0.0",image:(null==(u=e.images)||null==(s=u[0])?void 0:s.url)||"https://www.birchbox.com/images/default-product.jpg",url:window.location.href,list:r||window.location.pathname}]}}};f("dl_add_to_cart",g)||await h(g)},y=async e=>{let t=await d(),r=e.lines.edges.map(e=>e.node),n={event:"dl_view_cart",user_properties:t,cart_total:e.estimatedCost.totalAmount.amount.toString(),ecommerce:{currencyCode:"USD",actionField:{list:"Shopping Cart"},impressions:r.map((e,t)=>{var r;let n=e.merchandise.product.id.split("/").pop()||"",i=e.merchandise.id.split("/").pop()||"";return{id:e.merchandise.id,name:e.merchandise.product.title,brand:e.merchandise.product.vendor,category:"product",variant:e.merchandise.title,price:e.estimatedCost.subtotalAmount.amount,quantity:e.quantity.toString(),product_id:n,variant_id:i,compare_at_price:"0.0",position:t+1,image:(null==(r=e.merchandise.image)?void 0:r.url)||"",url:"".concat(window.location.origin,"/products/").concat(e.merchandise.product.handle)}})}};f("dl_view_cart",n)||await h(n)},b=async()=>{h({event:"dl_login",user_properties:await d()})},v=()=>{window.ElevarInvalidateContext&&window.ElevarInvalidateContext()}},19845:(e,t,r)=>{"use strict";var n=r(29563);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=b,t.capitalize=g,t.eventsErrorHandler=y,t.upperSnake=m;var i=n(r(43081)),o=n(r(16108)),a=n(r(84620)),s=n(r(4338)),u=n(r(18758)),l=n(r(7945)),c=n(r(88461)),f=n(r(14866));function d(e,t,r){return t=(0,c.default)(t),(0,l.default)(e,h()?Reflect.construct(t,r||[],(0,c.default)(e).constructor):t.apply(e,r))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var p=t.UnknownError=function(e){function t(e){var r,n;return(0,s.default)(this,t),(n=d(this,t,[null!=(r=null==e?void 0:e.message)?r:e])).name="UnknownError",n.code=e.code,e instanceof Error&&(n.stack=e.stack),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,n(r(95852)).default)(Error));function m(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function g(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function y(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[n],r.next=4,o.apply(void 0,a);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(m(n),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})}function b(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a,s,u,l,c=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,a=Array(o=c.length),s=0;s<o;s++)a[s]=c[s];return t.debug("adapter_".concat(n),{args:a}),u=e[n],r.next=6,u.apply(void 0,a);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(n),r.t0),(l=new p(r.t0)).name="".concat(g(n),"Error"),l;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})}t.OAuthCallbackError=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","OAuthCallbackError"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.AccountNotLinkedError=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","AccountNotLinkedError"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.MissingAPIRoute=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAPIRouteError"),(0,a.default)(e,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.MissingSecret=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","MissingSecretError"),(0,a.default)(e,"code","NO_SECRET"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.MissingAuthorize=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAuthorizeError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.MissingAdapter=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAdapterError"),(0,a.default)(e,"code","
4EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.MissingAdapterMethods=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","MissingAdapterMethodsError"),(0,a.default)(e,"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.UnsupportedStrategy=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","UnsupportedStrategyError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p),t.InvalidCallbackUrl=function(e){function t(){var e;(0,s.default)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e=d(this,t,[].concat(n)),(0,a.default)(e,"name","InvalidCallbackUrl"),(0,a.default)(e,"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,f.default)(t,e),(0,u.default)(t)}(p)},20087:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(58055);t.createClient=(e,t)=>new n.Client(e,t)},20542:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(14232),i=r(10553),o=r(58149),a=r(74380),s=r(16639),u=r(79684),l=r(60272);let c=function(){let{data:e}=(0,i.useSession)(),{items:t}=(0,a.Ay)(),{revalidate:r}=(0,s.A)(),{data:c,isValidating:f,mutate:d}=(0,o.Ay)(e?"subscriptionBoxPlan":null,p),h=(0,n.useMemo)(()=>{let r=[];if((!t||!t.length)&&!e)return[];let n=null==t?void 0:t.filter(e=>(0,l.B)(null==e?void 0:e.merchandise.id));return n&&(null==n?void 0:n.length)>0&&r.push(...n.map(e=>({productId:e.merchandise.product.id,variantId:e.merchandise.id,state:"in-cart",cartLineId:null==e?void 0:e.id}))),c&&r.push({productId:c,state:"subscribed"}),[...r]},[t,c,e]);async function p(){let t=null==e?void 0:e.shopifyAccessToken,r=await (0,u.AZ)(t),n=r?await (0,u.UF)(r):null;return n?n.external_product_id.ecommerce:null}return{canPurchaseSubscriptionBox:!0,canAddSubscriptionBoxToCart:!h.length,subscriptionBoxInCart:h.find(e=>"in-cart"===e.state),alreadyPurchasedSubscriptionBox:h.find(e=>"subscribed"===e.state),existingBoxes:h,loading:f,revalidate:d}}},21038:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15845),i=()=>(++i.i).toString();i.i=0;let o=(e,t=[])=>({key:i(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),a=e=>o({type:n.RichTextNodeType.span,text:e,spans:[]}),s=e=>{let t=e.slice(0);for(let e=0;e<t.length;e++){let r=t[e];if(r.type===n.RichTextNodeType.listItem||r.type===n.RichTextNodeType.oListItem){let i=[r];for(;t[e+1]&&t[e+1].type===r.type;)i.push(t[e+1]),t.splice(e,1);r.type===n.RichTextNodeType.listItem?t[e]={type:n.RichTextNodeType.list,items:i}:t[e]={type:n.RichTextNodeType.oList,items:i}}}return t},u=e=>{if("text"in e)return o(e,l(e.spans,e));if("items"in e){let t=[];for(let r=0;r<e.items.length;r++)t.push(u(e.items[r]));return o(e,t)}return o(e)},l=(e,t,r)=>{if(!e.length)return[a(t.text)];let n=e.slice(0);n.sort((e,t)=>e.start-t.start||t.end-e.end);let i=[];for(let e=0;e<n.length;e++){let s=n[e],u=r&&r.start||0,c=s.start-u,f=s.end-u,d=t.text.slice(c,f),h=[];for(let t=e;t<n.length;t++){let e=n[t];e!==s&&(e.start>=s.start&&e.end<=s.end?(h.push(e),n.splice(t,1),t--):e.start<s.end&&e.end>s.start&&(h.push({...e,end:s.end}),n[t]={...e,start:s.end}))}0===e&&c>0&&i.push(a(t.text.slice(0,c)));let p={...s,text:d};i.push(o(p,l(h,{...t,text:d},s))),f<t.text.length&&i.push(a(t.text.slice(f,n[e+1]?n[e+1].start-u:void 0)))}return i};t.asTree=e=>{let t=s(e),r=[];for(let e=0;e<t.length;e++)r.push(u(t[e]));return{key:i(),children:r}}},21196:(e,t,r)=>{"use strict";var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>i(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=r(55850),s=r(8695),u=r(4897),l=r(68779),c=r(58055),f=["cSaZlfkQlF9C6CEAM2Del6MNX9WonlV86HPbeEJL","pZCexCajUQ4jriYwIGSxA1drZrFxDyFf1S0D1K0P","Yc0mfrkGDw8gaaGKTrzwC3QUZDajv6k
473DA99vWN","ySzSEbVMAb5S1oSCQfbVG4mbh9Cb8wlF7BCvKI0L","g2DA3EKWvx8uxVYcNFrmT5nJpon1Vi9V4XcOibJD","CCNIlI0Vz41J66oFwsHUXaZa6NYFIY6z7aDF62Bc"];class d extends c.Client{constructor(e,t){super(e,t),o(this,"writeToken"),o(this,"migrationAPIKey"),o(this,"assetAPIEndpoint","https://asset-api.prismic.io/"),o(this,"migrationAPIEndpoint","https://migration.prismic.io/"),o(this,"_resolveAssetTagIDsLimit",s.pLimit()),void 0!==globalThis.window&&console.warn(`[@prismicio/client] Prismic write client appears to be running in a browser environment. This is not recommended as it exposes your write token and Migration API key. Consider using Prismic write client in a server environment only, preferring the regular client for browser environement. For more details, see ${a.devMsg("avoid-write-client-in-browser")}`),this.writeToken=t.writeToken,this.migrationAPIKey=t.migrationAPIKey||f[Math.floor(Math.random()*f.length)],t.assetAPIEndpoint&&(this.assetAPIEndpoint=`${t.assetAPIEndpoint}/`),t.migrationAPIEndpoint&&(this.migrationAPIEndpoint=`${t.migrationAPIEndpoint}/`)}async migrate(e,t={}){var r,n;null==(r=t.reporter)||r.call(t,{type:"start",data:{pending:{documents:e._documents.length,assets:e._assets.size}}}),await this.migrateCreateAssets(e,t),await this.migrateCreateDocuments(e,t),await this.migrateUpdateDocuments(e,t),null==(n=t.reporter)||n.call(t,{type:"end",data:{migrated:{documents:e._documents.length,assets:e._assets.size}}})}async migrateCreateAssets(e,{reporter:t,...r}={}){let n=0;for(let[i,o]of e._assets){let i;null==t||t({type:"assets:creating",data:{current:++n,remaining:e._assets.size-n,total:e._assets.size,asset:o}});let{file:a,filename:s,notes:u,credits:l,alt:c,tags:f}=o.config;if("string"==typeof a){let e;try{e=new URL(a)}catch(e){}i=e?await this.fetchForeignAsset(e.toString(),r):a}else i=a instanceof URL?await this.fetchForeignAsset(a.toString(),r):a;o.asset=await this.createAsset(i,s,{notes:u,credits:l,alt:c,tags:f,...r})}null==t||t({type:"assets:created",data:{created:n}})}async migrateCreateDocuments(e,{reporter:t,...r}={}){var n,i;let o=(await this.getRepository(r)).languages.find(e=>e.is_master).id;null==t||t({type:"documents:masterLocale",data:{masterLocale:o}});let a=[];for(let t of e._documents)t.document.id||(t.document.lang===o?a.unshift(t):a.push(t));let s=0;for(let l of a){let c;if(null==t||t({type:"documents:creating",data:{current:++s,remaining:a.length-s,total:a.length,document:l}}),l.masterLanguageDocument){let e=await u.resolveMigrationContentRelationship(l.masterLanguageDocument);c="id"in e?e.id:void 0}else if(l.originalPrismicDocument){let t=null==(n=l.originalPrismicDocument.alternate_languages.find(({lang:e})=>e===o))?void 0:n.id;t&&(c=null==(i=e._getByOriginalID(t))?void 0:i.document.id)}let{id:f}=await this.createDocument({...l.document,data:{}},l.title,{masterLanguageDocumentID:c,...r});l.document.id=f}null==t||t({type:"documents:created",data:{created:s}})}async migrateUpdateDocuments(e,{reporter:t,...r}={}){let n=0;for(let i of e._documents)null==t||t({type:"documents:updating",data:{current:++n,remaining:e._documents.length-n,total:e._documents.length,document:i}}),await this.updateDocument(i.document.id,{...i.document,documentTitle:i.title,data:await u.resolveMigrationDocumentData(i.document.data,e)},r);null==t||t({type:"documents:updated",data:{updated:e._documents.length}})}async createAsset(e,t,{notes:r,credits:n,alt:i,tags:o,...a}={}){let s=new URL("assets",this.assetAPIEndpoint),u=new FormData;u.append("file",new File([e],t,{type:e instanceof File?e.type:void 0})),r&&u.append("notes",r),n&&u.append("credits",n),i&&u.append("alt",i);let l=await this.fetch(s.toString(),this.buildAssetAPIQueryParams({method:"POST",body:u,params:a}));return o&&o.length?this.updateAsset(l.id,{tags:o}):l}async updateAsset(e,{notes:t,credits:r,alt:n,filename:i,tags:o,...a}={}){let s=new URL(`assets/${e}`,this.assetAPIEndpoint);return o&&o.length&&(o=await this.resolveAssetTagIDs(o,{createTags:!0,...a})),this.fetch(s.toString(),this.buildAssetAPIQueryParams({method:"PATCH",body:{notes:t,credits:r,alt:n,filename:i,tags:o},params:a}))}async fetchForeignAsset(e,t={}){var r,n,i,o;let a={...this.fetchOptions,...t.fetchOptions,headers:{...null==(r=this.fetchOptions)?void 0:r.headers,...null==(n=t.fetchOptions)?void 0:n.headers},signal:(null==(i=t.fetchOptions)?void 0:i.signal)||t.signal||(null==(o=this.fetchOptions)?void 0:o.signal)},s=await this.fetchFn(e,a);if(!s.ok)throw new l.PrismicError("Could not fetch foreign asset",e,void 0);return new File([await s.blob()],"",{type:s.headers.get("content-type")||void 0})}async resolveAssetTagIDs(e=[],{createTags:t,...r}={}){return this._resolveAssetTagIDsLimit(async()=>{let n=await this.getAssetTags(r),i={};for(let e of n)i[e.name]=e;let o=[];for(let n of e)!i[n]&&t&&(i[n]=await this.createAssetTag(n,r)),i[n]&&o.push(i[n].id);return o}
4)}async createAssetTag(e,t){let r=new URL("tags",this.assetAPIEndpoint);return this.fetch(r.toString(),this.buildAssetAPIQueryParams({method:"POST",body:{name:e},params:t}))}async getAssetTags(e){let t=new URL("tags",this.assetAPIEndpoint),{items:r}=await this.fetch(t.toString(),this.buildAssetAPIQueryParams({params:e}));return r}async createDocument(e,t,{masterLanguageDocumentID:r,...n}={}){let i=new URL("documents",this.migrationAPIEndpoint);return{id:(await this.fetch(i.toString(),this.buildMigrationAPIQueryParams({method:"POST",body:{title:t,type:e.type,uid:e.uid||void 0,lang:e.lang,alternate_language_id:r,tags:e.tags,data:e.data},params:n}))).id}}async updateDocument(e,t,r){let n=new URL(`documents/${e}`,this.migrationAPIEndpoint);await this.fetch(n.toString(),this.buildMigrationAPIQueryParams({method:"PUT",body:{title:t.documentTitle,uid:t.uid||void 0,tags:t.tags,data:t.data},params:r}))}buildAssetAPIQueryParams({method:e,body:t,params:r}){var n;let i,o={...null==(n=null==r?void 0:r.fetchOptions)?void 0:n.headers,authorization:`Bearer ${this.writeToken}`,repository:this.repositoryName};return t instanceof FormData?i=t:t&&(i=JSON.stringify(t),o["content-type"]="application/json"),{...r,fetchOptions:{...null==r?void 0:r.fetchOptions,method:e,body:i,headers:o}}}buildMigrationAPIQueryParams({method:e,body:t,params:r}){var n;return{...r,fetchOptions:{...null==r?void 0:r.fetchOptions,method:e,body:JSON.stringify(t),headers:{...null==(n=null==r?void 0:r.fetchOptions)?void 0:n.headers,"content-type":"application/json",repository:this.repositoryName,authorization:`Bearer ${this.writeToken}`,"x-api-key":this.migrationAPIKey}}}}}t.WriteClient=d},21730:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(21038),i=(e,t)=>{let r=[];for(let n=0;n<e.length;n++){let o=e[n],a=t(o.type,o.node,o.text,i(o.children,t),o.key);null!=a&&r.push(a)}return r};t.serialize=(e,t)=>i(n.asTree(e).children,t)},22009:(e,t,r)=>{"use strict";var n=r(45525),i=r(73442),o=r(81073),a=r(9945),s=r(65865),u=n("%WeakMap%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);e.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+o(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},22152:(e,t,r)=>{"use strict";var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>i(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=r(4959),s=r(74714),u=r(1051);class l{constructor(e){o(this,"baseURL"),this.baseURL=e.baseURL}buildURLForPath(e,t={}){return s.buildURL(`${new URL(e,this.baseURL)}`,t)}buildWidthSrcSetForPath(e,t){return u.buildWidthSrcSet(`${new URL(e,this.baseURL)}`,t)}buildPixelDensitySrcSetForPath(e,t){return a.buildPixelDensitySrcSet(`${new URL(e,this.baseURL)}`,t)}}t.Client=l},22254:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.version="7.18.0"},22659:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73966),i=r(11304),o=r(4536),a=(e,t)=>{let r={...t};"direction"in e&&"rtl"===e.direction&&(r.dir=e.direction),"data"in e&&"label"in e.data&&e.data.label&&(r.class=r.class?`${r.class} ${e.data.label}`:e.data.label);let n=[];for(let e in r){let t=r[e];t&&("boolean"==typeof t?n.push(e):n.push(`${e}="${o.escapeHTML(t)}"`))}return n.length&&n.unshift(""),n.join(" ")},s=e=>e&&"function"!=typeof e?e:{},u=(e,t)=>{let r=s(t);return({node:t,children:n})=>`<${e}${a(t,r)}>${n}</${e}>`},l=e=>{let t=s(e);return({node:e})=>`<pre${a(e,t)}>${o.escapeHTML(e.text)}</pre>`}
4,c=(e,t)=>{let r=s(t);return({node:t})=>{let n={...r,src:t.url,alt:t.alt,copyright:t.copyright},i=`<img${a(t,n)} />`;return t.linkTo&&(i=f(e)({type:"hyperlink",node:{type:"hyperlink",data:t.linkTo,start:0,end:0},text:"",children:i,key:""})),`<p class="block-img">${i}</p>`}},f=(e,t)=>{let r=s(t);return({node:t,children:o})=>{let s={...r};return t.data.link_type===n.LinkType.Web?(s.href=t.data.url,s.target=t.data.target,s.rel="noopener noreferrer"):t.data.link_type===n.LinkType.Document?s.href=i.asLink(t.data,{linkResolver:e}):t.data.link_type===n.LinkType.Media&&(s.href=t.data.url),`<a${a(t,s)}>${o}</a>`}},d=()=>({text:e})=>e?o.escapeHTML(e).replace(/\n/g,"<br />"):"";t.serializeEmbed=e=>{let t=s(e);return({node:e})=>{let r={...t,"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name};return`<div${a(e,r)}>${e.oembed.html}</div>`}},t.serializeHyperlink=f,t.serializeImage=c,t.serializePreFormatted=l,t.serializeSpan=d,t.serializeStandardTag=u},23408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return d}}),r(26201);let n=r(78637),i=r(89161),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function s(e){return void 0!==e.src}function u(e){return!!e&&"object"==typeof e&&(a(e)||s(e))}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}function f(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=c(t,i,a),f=u.length-1;return{sizes:a||"w"!==l?a:"100vw",srcSet:u.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===l?e:n+1)+l).join(", "),src:s({config:t,src:r,quality:o,width:u[f]})}}function d(e,t){let r,s,c,{src:d,sizes:h,unoptimized:p=!1,priority:m=!1,loading:g,className:y,quality:b,width:v,height:_,fill:w=!1,style:x,overrideSrc:S,onLoad:E,onLoadingComplete:k,placeholder:A="empty",blurDataURL:M,fetchPriority:T,decoding:O="async",layout:C,objectFit:P,objectPosition:R,lazyBoundary:j,lazyRoot:I,...N}=e,{imgConf:L,showAltText:D,blurComplete:B,defaultLoader:F}=t,U=L||i.imageConfigDefault;if("allSizes"in U)r=U;else{var q;let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),n=null==(q=U.qualities)?void 0:q.sort((e,t)=>e-t);r={...U,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let $=N.loader||F;delete N.loader,delete N.srcSet;let z="__next_img_default"in $;if(z){if("custom"===r.loader)throw Object.defineProperty(Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:r,...n}=t;return e(n)}}if(C){"fill"===C&&(w=!0);let e={responsive:"100vw",fill:"100vw"},t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];t&&(x={...x,...t});let r=e[C];r&&!h&&(h=r)}let V="",H=l(v),G=l(_);if(u(d)){let e=a(d)?d.default:d;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,
4configurable:!0});if(s=e.blurWidth,c=e.blurHeight,M=M||e.blurDataURL,V=e.src,!w)if(H||G){if(H&&!G){let t=H/e.width;G=Math.round(e.height*t)}else if(!H&&G){let t=G/e.height;H=Math.round(e.width*t)}}else H=e.width,G=e.height}let W=!m&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:V)||d.startsWith("data:")||d.startsWith("blob:"))&&(p=!0,W=!1),r.unoptimized&&(p=!0),z&&!r.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(p=!0);let J=l(b),K=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:R}:{},D?{}:{color:"transparent"},x),Z=B||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:H,heightInt:G,blurWidth:s,blurHeight:c,blurDataURL:M||"",objectFit:K.objectFit})+'")':'url("'+A+'")',X=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Y=Z?{backgroundSize:X,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},Q=f({config:r,src:d,unoptimized:p,width:H,quality:J,sizes:h,loader:$});return{props:{...N,loading:W?"lazy":g,fetchPriority:T,width:H,height:G,decoding:O,className:y,style:{...K,...Y},sizes:Q.sizes,srcSet:Q.srcSet,src:S||Q.src},meta:{unoptimized:p,priority:m,placeholder:A,fill:w}}}},24054:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(74380),i=r(85453),o=r(94772),a=r(85391),s=r(81175);async function u(e){let t=e.map(e=>{let{variantId:t,quantity:r,sellingPlanId:n,attributes:i}=e;return{merchandiseId:t,quantity:r,...n?{sellingPlanId:n}:{},...(null==i?void 0:i.length)?{attributes:i}:{}}}),r=(0,o.A)();if(!r)return(0,i.A)(t);let{cartLinesAdd:n}=await (0,a.Ay)({query:s.A,variables:{cartId:r,lines:t}});return n}function l(){let{revalidate:e}=(0,n.Ay)();return async t=>{let r=await u(t);return await e(),r}}},24468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return s}});let n=r(72687),i=r(23408),o=r(39420),a=n._(r(75540));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},24679:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779);class i extends n.PrismicError{}t.ForbiddenError=i},24765:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.composeSerializers=(...e)=>(...t)=>{for(let r=0;r<e.length;r++){let n=e[r];if(n){let e=n(...t);if(null!=e)return e}}}},25443:(e,t,r)=>{"use strict";var n=r(29563);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=h,t.apiBaseUrl=f,t.fetchData=l,t.now=d;var i=n(r(43081)),o=n(r(84620)),a=n(r(16108));function s(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return c.apply(this,arguments)}function c(){return(c=(0,a.default)(i.default.mark(function e(t,r,n){var o,a,s,l,c,d,h,p,m,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=(o=g.length>3&&void 0!==g[3]?g[3]:{}).ctx,l=void 0===(s=o.req)?null==a?void 0:a.req:s,c="".concat(f(r),"/").concat(t),e.prev=2,h={headers:u({"Content-Type":"application/json"},null!=l&&null!=(d=l.headers)&&d.cookie?{cookie:l.headers.cookie}:{})},null!=l&&l.body&&(h.body=JSON.stringify(l.body),h.method="POST"),e.next=7,fetch(c,h);case 7:return p=e.sent,e.next=10,p.json();case 10:if(m=e.sent,p.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:c}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function f(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,i=JSON.parse(null!=(n=r.newValue)?n:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(u(u({},t),{},{timestamp:d()})))}catch(e){}}}}},26967:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getOptionalLinkProperties=e=>{let t={};return"text"in e&&(t.text=e.text),"variant"in e&&(t.variant=e.variant),t}},27022:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(85453),i=r(94772),o=r(85391),a=r(81175),s=r(4650);async function u(e){let{variantId:t,quantity:r,sellingPlanId:u,attributes:l}=e;try{let e=[{merchandiseId:t,quantity:r,...u?{sellingPlanId:u}:{},...(null==l?void 0:l.length)?{attributes:l}:{}}],c=(0,i.A)();if(!c)return await (0,n.A)(e);let{cartLinesAdd:f}=await (0,o.Ay)({query:a.A,variables:{cartId:c,lines:e}});
4return window.onwardApp&&window.onwardClient&&window.onwardApp.cartChanged(s.U.parseCart(f.cart)),f}catch(e){throw console.error("Failed to add item to cart:",e),Error("Failed to add item to cart")}}},27426:(e,t,r)=>{"use strict";r.d(t,{$X:()=>s,GR:()=>c,M6:()=>l,eJ:()=>o,gO:()=>u,k9:()=>f});var n=r(30937),i=r(92501);function o(){let e=i.OW,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){let{message:t,event_id:r}=e;if(t)return t;let n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function l(e,t){let r=a(e);if(!r)return;let n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){let e={...i&&i.data,...t.data};r.mechanism.data=e}}function c(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function f(e){return Array.isArray(e)?e:[e]}},27437:(e,t,r)=>{"use strict";var n=r(17915).version,i=r(47418),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var u=e[a],l=void 0===u||s(u,a,e);if(!0!==l)throw new i("option "+a+" must be "+l,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},27496:(e,t,r)=>{"use strict";var n=r(72442),i=Object.prototype.toString,o=function(e){return function(t){var r=i.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function s(e){return Array.isArray(e)}function u(e){return void 0===e}function l(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function f(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)}function d(e){return"string"==typeof e}function h(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function m(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var g=a("Date"),y=a("File"),b=a("Blob"),v=a("FileList");function _(e){return"[object Function]"===i.call(e)}function w(e){return p(e)&&_(e.pipe)}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function E(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function k(){var e={};function t(t,r){m(e[r])&&m(t)?e[r]=k(e[r],t):m(t)?e[r]=k({},t):s(t)?e[r]=t.slice():e[r]=t}for(var r=0,n=arguments.length;r<n;r++)E(arguments[r],t);return e}function A(e,t,r){return E(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=t}),e}function M(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}function T(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)}function O(e,t,r){var n,i,o,a={};t=t||{};do{for(i=(n=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function C(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r}function P(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r}e.exports={isArray:s,isArrayBuffer:c,isBuffer:l,isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||_(e.toString)&&e.toString()===t)},isArrayBufferView:f,isString:d,isNumber:h,isObject:p,isPlainObject:m,isUndefined:u,isDate:g,isFile:y,isBlob:b,isFunction:_,isStream:w,isURLSearchParams:a("URLSearchParams"),isStandardBrowserEnv:S,forEach:E,merge:k,extend:A,trim:x,stripBOM:M,inherits:T,toFlatObject:O,kindOf:o,kindOfTest:a,endsWith:C,toArray:P,isTypedArray:function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),isFileList:v}},27784:(e,t,r)=>{"use strict";var n=r(37621),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},l=function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(o(t)&&!o(r)&&(a=u(t,n)),o(t)&&o(r))?(r.forEach(function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t},a)};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],o=i.obj[i.prop],a=Object.keys(o),u=0;u<a.length;++u){var l=a[u],c=o[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:o,prop:l}),r.push(c))}return s(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
4if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===n.RFC1738&&(40===c||41===c)){u+=s.charAt(l);continue}if(c<128){u+=a[c];continue}if(c<2048){u+=a[192|c>>6]+a[128|63&c];continue}if(c<55296||c>=57344){u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c];continue}l+=1,u+=a[240|(c=65536+((1023&c)<<10|1023&s.charCodeAt(l)))>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c]}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:l}},27789:(e,t,r)=>{"use strict";let n;r.d(t,{U:()=>eg,a:()=>em});let i=e=>Array.isArray(e)?e:[e],o=(e={},t)=>({...e,filters:[...e.filters||[],...i(t)]}),a=e=>"function"==typeof e?e:()=>e,s="7.18.0",u=e=>`https://prismic.dev/msg/client/v${s}/${e}`;var l,c,f=r(48863);let d=e=>f.p.at("document.tags",i(e));var h=Object.defineProperty,p=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t,r)=>p(e,"symbol"!=typeof t?t+"":t,r);class g extends Error{constructor(e="An invalid API response was returned",t,r){super(e),m(this,"url"),m(this,"response"),this.url=t,this.response=r}}let y=(e,t)=>{let r=e.find(e=>t(e));if(!r)throw new g("Ref could not be found.",void 0,void 0);return r},b=e=>y(e,e=>e.isMasterRef),v=(e,t)=>y(e,e=>e.id===t),_=(e,t)=>y(e,e=>e.label===t),w="io.prismic.preview",x=e=>e.replace(/%3B/g,";"),S=e=>{let t;for(let r of e.split("; ")){let e=r.split("=");if(x(e[0]).replace(/%3D/g,"=")===w){t=x(e.slice(1).join("="));break}}return t},E=e=>e.replace(/(\n| )*( |{|})(\n| )*/gm,(e,t,r)=>r),k=e=>f.p.any("document.tags",i(e)),A=5e3,M=0,T=(e,t={})=>{let{level:r="log"}=t;if(e===n&&Date.now()-M<A){M=Date.now();return}M=Date.now(),n=e,console[r](e)},O=e=>f.p.at("document.type",e);class C extends g{}class P extends g{}class R extends g{}class j extends C{}class I extends C{}class N extends C{}class L extends P{}var D=r(96096);let B=e=>new Promise(t=>setTimeout(t,e)),F=({interval:e}={})=>{let t=[],r=!1,n=0,i=()=>{var e;!r&&t.length>0&&(null==(e=t.shift())||e(),r=!0)},o=()=>{r=!1,i()},a=async(t,r,i)=>{let a=Date.now()-n;e&&a<e&&await B(e-a);let s=(async()=>t(...i))();r(s);try{await s}catch{}n=Date.now(),o()},s=(e,n,o)=>{new Promise(e=>{t.push(e)}).then(a.bind(void 0,e,n,o)),(async()=>{await Promise.resolve(),r||i()})()};return(e,...t)=>new Promise(r=>{s(e,r,t)})};var U=Object.defineProperty,q=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t,r)=>q(e,"symbol"!=typeof t?t+"":t,r);let z=1500;class V{constructor(e){if($(this,"fetchFn"),$(this,"fetchOptions"),$(this,"queuedFetchJobs",{}),$(this,"dedupedFetchJobs",{}),this.fetchOptions=e.fetchOptions,"function"==typeof e.fetch)this.fetchFn=e.fetch;else if("function"==typeof globalThis.fetch)this.fetchFn=globalThis.fetch;else throw new g("A valid fetch implementation was not provided. In environments where fetch is not available (including Node.js), a fetch implementation must be provided via a polyfill or the `fetch` option.",void 0,void 0);this.fetchFn===globalThis.fetch&&(this.fetchFn=this.fetchFn.bind(globalThis))}async fetch(e,t={}){var r,n,i,o,a;let s={...this.fetchOptions,...t.fetchOptions,headers:{...null==(r=this.fetchOptions)?void 0:r.headers,...null==(n=t.fetchOptions)?void 0:n.headers},signal:(null==(i=t.fetchOptions)?void 0:i.signal)||t.signal||(null==(o=this.fetchOptions)?void 0:o.signal)};return(null==(a=t.fetchOptions)?void 0:a.body)?this.queueFetch(e,s):this.dedupeFetch(e,s)}queueFetch(e,t={}){let r=new URL(e).hostname;return this.queuedFetchJobs[r]||(this.queuedFetchJobs[r]=F({interval:z})),this.queuedFetchJobs[r](()=>this.createFetchJob(e,t))}dedupeFetch(e,t={}){let r;return this.dedupedFetchJobs[e]&&this.dedupedFetchJobs[e].has(t.signal)?r=this.dedupedFetchJobs[e].get(t.signal):(this.dedupedFetchJobs[e]=this.dedupedFetchJobs[e]||new Map,r=this.createFetchJob(e,t).finally(()=>{var r,n;null==(r=this.dedupedFetchJobs[e])||r.delete(t.signal),(null==(n=this.dedupedFetchJobs[e])?void 0:n.size)===0&&delete this.dedupedFetchJobs[e]}),this.dedupedFetchJobs[e].set(t.signal,r)),r}createFetchJob(e,t={}){return this.fetchFn(e,t).then(async e=>{let t,r;if(e.ok)try{t=await e.json()}catch{}else try{r=await e.text(),t=JSON.parse(r)}catch{}return{status:e.status,headers:e.headers,json:t,text:r}})}}let H="x-c",G={accessToken:"access_token"},W=e=>"string"==typeof e?e:"desc"===e.direction?`${e.field} desc`:e.field,J=(e,t)=>
4{let{filters:r,predicates:n,...o}=t,a=new URL("documents/search",`${e}/`);if(r)for(let e of i(r))a.searchParams.append("q",`[${e}]`);if(n)for(let e of i(n))a.searchParams.append("q",`[${e}]`);for(let e in o){let t=G[e]||e,r=o[e];if("orderings"===t){let e=o[t];if(null!=e){let t=i(e).map(e=>W(e)).join(",");r=`[${t}]`}}else"routes"===t&&"object"==typeof o[t]&&(r=JSON.stringify(i(o[t])));null!=r&&a.searchParams.set(t,i(r).join(","))}return a.searchParams.set(H,`js-${s}`),a.toString()},K=e=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e),Z=e=>{if(K(e))return`https://${e}.cdn.prismic.io/api/v2`;throw new g(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)},X=e=>{try{let t=new URL(e).hostname;if(t.endsWith("prismic.io")||t.endsWith("wroom.io")||t.endsWith("wroom.test"))return t.split(".")[0]}catch{}throw new g(`An invalid Prismic Document API endpoint was provided: ${e}`,void 0,void 0)},Y=e=>{try{return new URL(e),!0}catch{return!1}};var Q=Object.defineProperty,ee=e=>{throw TypeError(e)},et=(e,t,r)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,er=(e,t,r)=>et(e,"symbol"!=typeof t?t+"":t,r),en=(e,t,r)=>t.has(e)||ee("Cannot "+r),ei=(e,t,r)=>(en(e,t,"read from private field"),r?r.call(e):t.get(e)),eo=(e,t,r)=>t.has(e)?ee("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ea=(e,t,r,n)=>(en(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);let es=100,eu=5e3,el=500,ec=1e3,ef=3;!function(e){e.Master="Master",e.ReleaseID="ReleaseID",e.ReleaseLabel="ReleaseLabel",e.Manual="Manual"}(c||(c={}));class ed extends V{constructor(e,t={}){if(super(t),eo(this,l),er(this,"documentAPIEndpoint"),er(this,"accessToken"),er(this,"routes"),er(this,"brokenRoute"),er(this,"defaultParams"),er(this,"refState",{mode:c.Master,autoPreviewsEnabled:!0}),er(this,"cachedRepository"),er(this,"cachedRepositoryExpiration",0),t.documentAPIEndpoint||Y(e),Y(e)){this.documentAPIEndpoint=e;try{this.repositoryName=X(e)}catch(t){console.warn(`[@prismicio/client] A repository name could not be inferred from the provided endpoint (\`${e}\`). Some methods will be disabled. Create the client using a repository name to prevent this warning. For more details, see ${u("prefer-repository-name")}`)}}else this.documentAPIEndpoint=t.documentAPIEndpoint||Z(e),this.repositoryName=e;this.accessToken=t.accessToken,this.routes=t.routes,this.brokenRoute=t.brokenRoute,this.defaultParams=t.defaultParams,t.ref&&this.queryContentFromRef(t.ref),this.graphQLFetch=this.graphQLFetch.bind(this)}set repositoryName(e){ea(this,l,e)}get repositoryName(){if(!ei(this,l))throw new g(`A repository name is required for this method but one could not be inferred from the provided API endpoint (\`${this.documentAPIEndpoint}\`). To fix this error, provide a repository name when creating the client. For more details, see ${u("prefer-repository-name")}`,void 0,void 0);return ei(this,l)}set endpoint(e){this.documentAPIEndpoint=e}get endpoint(){return this.documentAPIEndpoint}enableAutoPreviews(){this.refState.autoPreviewsEnabled=!0}enableAutoPreviewsFromReq(e){this.refState.httpRequest=e,this.refState.autoPreviewsEnabled=!0}disableAutoPreviews(){this.refState.autoPreviewsEnabled=!1}async get(e){let{data:t}=await this._get(e);return t}async getFirst(e){var t;let r={...e};e&&e.page||(null==e?void 0:e.pageSize)||(r.pageSize=(null==(t=this.defaultParams)?void 0:t.pageSize)??1);let{data:n,url:i}=await this._get(r),o=n.results[0];if(o)return o;throw new P("No documents were returned",i,void 0)}async dangerouslyGetAll(e={}){var t;let r,{limit:n=1/0,...i}=e,o={...i,pageSize:Math.min(n,i.pageSize||(null==(t=this.defaultParams)?void 0:t.pageSize)||es)},a=[];for(;(!r||r.next_page)&&a.length<n;){let e=r?r.page+1:void 0;r=await this.get({...o,page:e}),a.push(...r.results),r.next_page&&await new Promise(e=>setTimeout(e,el))}return a.slice(0,n)}async getByID(e,t){return await this.getFirst(o(t,f.p.at("document.id",e)))}async getByIDs(e,t){return await this.get(o(t,f.p.in("document.id",e)))}async getAllByIDs(e,t){return await this.dangerouslyGetAll(o(t,f.p.in("document.id",e)))}async getByUID(e,t,r){return await this.getFirst(o(r,[O(e),f.p.at(`my.${e}.uid`,t)]))}async getByUIDs(e,t,r){return await this.get(o(r,[O(e),f.p.in(`my.${e}.uid`,t)]))}async getAllByUIDs(e,t,r){return await this.dangerouslyGetAll(o(r,[O(e),f.p.in(`my.${e}.uid`,t)]))}async getSingle(e,t){return await this.getFirst(o(t,O(e)))}async getByType(e,t){return await this.get(o(t,O(e)))}async getAllByType(e,t){return await this.dangerouslyGetAll(o(t,O(e)))}async getByTag(e,t){return await this.get(o(t,k(e)))}async getAllByTag(e,t){return await this.dangerouslyGetAll(o(t,k(e)))}async getByEveryTag(e,t){return await this.get(o(t,d(e)))}async getAllByEveryTag(e,t){return await this.dangerouslyGetAll(o(t,d(e)))}async getBySomeTags(e,t){return await this.get(o(t,k(e)))}async getAllBySomeTags(e,t){return await this.dangerouslyGetAll(o(t,k(e)))}async getRepository(e){let t=new URL(this.documentAPIEndpoint);return this.accessToken&&t.searchParams.set("access_token",this.accessToken),await this.fetch(t.toString(),e)}async getRefs(e){return(await this.getRepository(e)).refs}
4async getRefByID(e,t){return v(await this.getRefs(t),e)}async getRefByLabel(e,t){return _(await this.getRefs(t),e)}async getMasterRef(e){return b(await this.getRefs(e))}async getReleases(e){return(await this.getRefs(e)).filter(e=>!e.isMasterRef)}async getReleaseByID(e,t){return v(await this.getReleases(t),e)}async getReleaseByLabel(e,t){return _(await this.getReleases(t),e)}async getTags(e){try{let t=await this.getCachedRepositoryForm("tags",e),r=new URL(t.action);return this.accessToken&&r.searchParams.set("access_token",this.accessToken),await this.fetch(r.toString(),e)}catch{return(await this.getRepository(e)).tags}}async buildQueryURL({signal:e,fetchOptions:t,...r}={}){let n=r.ref||await this.getResolvedRefString({signal:e,fetchOptions:t}),i=r.integrationFieldsRef||(await this.getCachedRepository({signal:e,fetchOptions:t})).integrationFieldsRef||void 0;return J(this.documentAPIEndpoint,{...this.defaultParams,...r,ref:n,integrationFieldsRef:i,routes:r.routes||this.routes,brokenRoute:r.brokenRoute||this.brokenRoute,accessToken:r.accessToken||this.accessToken})}async resolvePreviewURL(e){var t,r;let n=e.documentID,i=e.previewToken;if(void 0!==globalThis.location){let e=new URLSearchParams(globalThis.location.search);n=n||e.get("documentId"),i=i||e.get("token")}else if(this.refState.httpRequest){if("query"in this.refState.httpRequest)n=n||(null==(t=this.refState.httpRequest.query)?void 0:t.documentId),i=i||(null==(r=this.refState.httpRequest.query)?void 0:r.token);else if("url"in this.refState.httpRequest&&this.refState.httpRequest.url){let e=new URL(this.refState.httpRequest.url,"missing-host://").searchParams;n=n||e.get("documentId"),i=i||e.get("token")}}if(null!=n&&null!=i){let t=await this.getByID(n,{ref:i,lang:"*",signal:e.signal,fetchOptions:e.fetchOptions}),r=(0,D.z)(t,{linkResolver:e.linkResolver});if("string"==typeof r)return r}return e.defaultURL}queryLatestContent(){this.refState.mode=c.Master}queryContentFromReleaseByID(e){this.refState={...this.refState,mode:c.ReleaseID,releaseID:e}}queryContentFromReleaseByLabel(e){this.refState={...this.refState,mode:c.ReleaseLabel,releaseLabel:e}}queryContentFromRef(e){this.refState={...this.refState,mode:c.Manual,ref:e}}async graphQLFetch(e,t){let r=await this.getCachedRepository(),n=await this.getResolvedRefString(),i={"Prismic-ref":n,Authorization:this.accessToken?`Token ${this.accessToken}`:"",...t?t.headers:{}};r.integrationFieldsRef&&(i["Prismic-integration-field-ref"]=r.integrationFieldsRef);let o={};for(let e in i)i[e]&&(o[e.toLowerCase()]=i[e]);let a=new URL(e);a.searchParams.set("ref",n);let s=a.searchParams.get("query");return s&&a.searchParams.set("query",E(s)),await this.fetchFn(a.toString(),{...t,headers:o})}async getCachedRepository(e){return(!this.cachedRepository||Date.now()>=this.cachedRepositoryExpiration)&&(this.cachedRepositoryExpiration=Date.now()+eu,this.cachedRepository=await this.getRepository(e)),this.cachedRepository}async getCachedRepositoryForm(e,t){let r=(await this.getCachedRepository(t)).forms[e];if(!r)throw new g(`Form with name "${e}" could not be found`,void 0,void 0);return r}async getResolvedRefString(e){var t,r;if(this.refState.autoPreviewsEnabled){let e,n;if((null==(t=this.refState.httpRequest)?void 0:t.headers)?"get"in this.refState.httpRequest.headers&&"function"==typeof this.refState.httpRequest.headers.get?n=this.refState.httpRequest.headers.get("cookie"):"cookie"in this.refState.httpRequest.headers&&(n=this.refState.httpRequest.headers.cookie):(null==(r=globalThis.document)?void 0:r.cookie)&&(n=globalThis.document.cookie),n&&(e=S(n)),e)return e}let n=await this.getCachedRepository(e),i=this.refState.mode;if(i===c.ReleaseID)return v(n.refs,this.refState.releaseID).ref;if(i===c.ReleaseLabel)return _(n.refs,this.refState.releaseLabel).ref;if(i===c.Manual){let e=await a(this.refState.ref)();if("string"==typeof e)return e}return b(n.refs).ref}async _get(e,t=0){var r,n;let i=await this.buildQueryURL(e);try{return{data:await this.fetch(i,e),url:i}}catch(u){if(!(u instanceof N||u instanceof I)||t>=ef-1)throw u;(null==e?void 0:e.ref)||(this.cachedRepository=void 0);let o=null==(n=null==(r=u.message.match(/Master ref is: (?<ref>.*)$/))?void 0:r.groups)?void 0:n.ref;if(!o)throw u;let a=new URL(i).searchParams.get("ref"),s=u instanceof N?"invali
4d":"expired";return T(`[@prismicio/client] The ref (${a}) was ${s}. Now retrying with the latest master ref (${o}). If you were previewing content, the response will not include draft content.`,{level:"warn"}),await this._get({...e,ref:o},t+1)}}async fetch(e,t={}){let r=await super.fetch(e,t);if(404!==r.status&&429!==r.status&&null==r.json)throw new g(void 0,e,r.json||r.text);switch(r.status){case 200:case 201:return r.json;case 400:throw new R(r.json.message,e,r.json);case 401:case 403:throw new C(r.json.error||r.json.message,e,r.json);case 404:if(void 0===r.json)throw new L(`Prismic repository not found. Check that "${this.documentAPIEndpoint}" is pointing to the correct repository.`,e,e.startsWith(this.documentAPIEndpoint)?void 0:r.text);if("api_notfound_error"===r.json.type)throw new N(r.json.message,e,r.json);if("api_security_error"===r.json.type&&/preview token.*expired/i.test(r.json.message))throw new j(r.json.message,e,r.json);throw new P(r.json.message,e,r.json);case 410:throw new I(r.json.message,e,r.json);case 429:{let n=Number(r.headers.get("retry-after")),i=Number.isNaN(n)?ec:n;return await new Promise((r,n)=>{setTimeout(async()=>{try{r(await this.fetch(e,t))}catch(e){n(e)}},i)})}}throw new g(void 0,e,r.json)}}l=new WeakMap;let eh=(e,t)=>new ed(e,t);var ep=r(8566);let{aR:em}={aR:"birchbox"},eg=e=>{let{previewData:t,req:r,...n}=e,i=eh(em,{...n});return(0,ep.enableAutoPreviews)({client:i,previewData:t,req:r}),i}},28158:(e,t,r)=>{"use strict";r.d(t,{bh:()=>i,pw:()=>o,tK:()=>a});var n=r(78799);let i=()=>"en-us"===n.vV,o=()=>"en-gb"===n.vV,a=()=>"es-es"===n.vV},28419:(e,t,r)=>{"use strict";var n=r(1643);e.exports=Function.prototype.bind||n},28450:(e,t,r)=>{"use strict";function n(e){return e.transaction}r.d(t,{z:()=>n})},29e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29260:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Yf:()=>s,tE:()=>l});var n=r(37876),i=r(14232);let o=5e3,a=(0,i.createContext)({toasts:[],toast:()=>{},setToasts:()=>{}});function s(){return(0,i.useContext)(a)}function u(){return(0,i.useContext)(a).toast}function l(e){let{children:t}=e,[r,s]=(0,i.useState)([]),u=(0,i.useCallback)((e,t,n)=>{let i=Math.random();s(r=>[...r,{title:e,message:t,key:i}]),setTimeout(()=>{s(r.filter(e=>e.key!==i))},n||o)},[s,r]),l=(0,i.useCallback)(e=>{s(e)},[]),c=(0,i.useMemo)(()=>({toast:u,toasts:r,setToasts:l}),[r,u,l]);return(0,n.jsx)(a.Provider,{value:c,children:t})}},29351:e=>{"use strict";e.exports=Error},29454:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function i(e,t){function r(r,i,o){if("undefined"!=typeof document){o=n({},t,o),"number"==typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=r+"="+e.write(i,r)+a}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=e.read(a,s),t===s)break}catch(e){}}return t?n[t]:n}},remove:function(e,t){r(e,"",n({},t,{expires:-1}))},withAttributes:function(e){return i(this.converter,n({},this.attributes,e))},withConverter:function(e){return i(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}r.d(t,{A:()=>o});var o=i({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},29563:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},29999:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(14232);function i(){var e=(0,n.useRef)(!0);return e.current?(e.current=!1,!0):e.current}let o=function(e,t){var r=i();(0,n.useEffect)(function(){if(!r)return e()},t)}},30289:(e,t,r)=>{"use strict";r.d(t,{Rg:()=>l,e2:()=>u});var n=r(30937),i=r(27426),o=r(86140),a=r(28450),s=r(72451);function u(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;f(e,t),n&&p(e,n),m(e,r),d(e,i),h(e,o)}function l(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:f,attachments:d,propagationContext:h,transactionName:p,span:m}=t;c(e,"extra",r),c(e,"tags",n),c(e,"user",i),c(e,"contexts",o),c(e,"s
4dkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function c(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}function f(e,t){let{extra:r,tags:i,user:o,contexts:a,level:s,transactionName:u}=t,l=(0,n.Ce)(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let c=(0,n.Ce)(i);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let f=(0,n.Ce)(o);f&&Object.keys(f).length&&(e.user={...f,...e.user});let d=(0,n.Ce)(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),u&&(e.transaction=u)}function d(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function h(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function p(e,t){e.contexts={trace:(0,s.kX)(t),...e.contexts};let r=(0,a.z)(t);if(r){e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.k)(t),...e.sdkProcessingMetadata};let n=(0,s.et)(r).description;n&&(e.tags={transaction:n,...e.tags})}}function m(e,t){e.fingerprint=e.fingerprint?(0,i.k9)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}},30910:(e,t,r)=>{"use strict";var n=r(82909).Buffer,i=r(27496);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}function a(e,n){if(i.isPlainObject(e)||i.isArray(e)){if(-1!==r.indexOf(e))throw Error("Circular reference detected in "+n);r.push(e),i.forEach(e,function(e,r){if(!i.isUndefined(e)){var s,u=n?n+"."+r:r;if(e&&!n&&"object"==typeof e){if(i.endsWith(r,"{}"))e=JSON.stringify(e);else if(i.endsWith(r,"[]")&&(s=i.toArray(e)))return void s.forEach(function(e){i.isUndefined(e)||t.append(u,o(e))})}a(e,u)}}),r.pop()}else t.append(n,o(e))}return a(e),t}},30937:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>y,GS:()=>u,HF:()=>g,W4:()=>h,my:()=>l,pO:()=>c,sp:()=>f,u4:()=>d});var n=r(11418),i=r(82936),o=r(1978),a=r(702),s=r(56523);function u(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&c(i,n),e[t]=i}function l(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){i.T&&a.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,l(e,"__sentry_original__",t)}catch(e){}}function f(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function h(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.vq)(e)?(0,n.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function g(e,t=40){let r=Object.keys(h(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,s.xv)(r[0],t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,s.xv)(n,t)}}return""}function y(e){return b(e,new Map)}function b(e,t){if(v(e)){let r=t.get(e);if(void 0!==r)return r;let n={};for(let r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=b(e[r],t));return n}if(Array.isArray(e)){let r=t.get(e);if(void 0!==r)return r;let n=[];return t.set(e,n),e.forEach(e=>{n.push(b(e,t))}),n}return e}function v(e){if(!(0,o.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}},31142:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CustomTypeModelSliceDisplay={List:"list",Grid:"grid"}},31365:(e,t,r)=>{var n=r(12883).default,i=r(78212);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},31943:(e,t)=>
4{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isRepositoryName=e=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e)},32545:(e,t,r)=>{var n="/",i=r(99742);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(709),a=r(337);r(782)(c,o);for(var s=n(a.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=O,O.ReadableState=T,n(361).EventEmitter;var o,a,s,u,l,c=function(e,t){return e.listeners(t).length},f=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(379),b=n(25),v=n(776).getHighWaterMark,_=n(646).q,w=_.ERR_INVALID_ARG_TYPE,x=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 6,276 bytes, line 4
4ED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(O,f);var k=b.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(o=o||n(403),!(this instanceof O))return new O(e);var t=this instanceof o;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function C(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,L(e,s);else if(i||(o=R(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new E):P(e,s,t,!0);else if(s.ended)k(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):F(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,F(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),F(e,t)}function R(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=b.destroy,O.prototype._undestroy=b.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},O.prototype.unshift=function(e){return C(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=0x40000000;function I(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function D(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,G(e))}}function $(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(H,e,t))}function H(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(K,t,e))}function K(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}O.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):D(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;
vendor: 16,059 bytes, line 4
4return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){k(this,new S("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var l=q(r);e.on("drain",l);var f=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Z(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&k(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Z(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?D(this):n.reading||i.nextTick(z,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick($,this),r},O.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick($,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},O.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=W,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===l&&(l=n(727)),l(O,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}e.exports=T,T.WritableState=M;var a,s,u={deprecate:n(769)},l=n(678),c=n(300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof f}var p=n(25),m=n(776).getHighWaterMark,g=n(646).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,x=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,E=g.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function T(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(T,this))return new T(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function O(e,t){var r=new S;k(e,r),i.nextTick(t,r)}function C(e,t,r,n){var o;return null===r?o=new x:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(k(e,o),i.nextTick(n,o),!1)}function P(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function R(e,t,r,n,i,o){if(!r){var a=P(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,s,n,i,o);return u}function j(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(z,e,t),e._writableState.errorEmitted=!0,k(e,n)):(o(n),e._writableState.errorEmitted=!0,k(e,n),z(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new v;if(N(r),t)I(e,r,n,t,o);else{var a=U(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(D,e,r,a,o):D(e,r,a,o)}}function D(e,t,r,n){r||B(e,t),t.pendingcb--,n(),z(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,j(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:u.length;if(j(e,t,!1,f,u,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),z(e,t)})}function $(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(q,e,t)))}function z(e,t){var r=U(t);if(r&&($(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function V(e,t,r){t.ending=!0,z(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function H(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(T,l),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===T&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},T.prototype.pipe=function(){k(this,new _)},T.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!c.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?O(this,r):(o||C(this,n,e,r))&&(n.pendingcb++,i=R(this,n,o,e,t,r)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new b("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},871: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}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[c])return void r(p(void 0,!0));t[d](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[l]?r(t[l]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),o),b);e.exports=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[c]=!0}
vendor: 4,532 bytes, line 4
4),e.on("readable",g.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(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 i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(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 u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var l=r(300).Buffer,c=r(837).inspect,f=c&&c.custom||"inspect";function d(e,t,r){l.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
4var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){l=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,l||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):l&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",g),e.req?y():e.on("request",y)):l&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
4var u=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function l(){return c.apply(this,arguments)}function c(){return(c=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?l():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,l())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function l(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var c=!1;return function(t){if(!u&&!c){if(c=!0,l(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return c(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
4case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(82909)},361:function(e){"use strict";e.exports=r(69319)},781:function(e){"use strict";e.exports=r(69319).EventEmitter},837:function(e){"use strict";e.exports=r(68994)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},33468:(e,t,r)=>{var n=r(50466);e.exports=function(e,t,r,i,o){var a=n(e,t,r,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},34009:(e,t,r)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},useLinkStatus:function(){return S}});let n=r(63732),i=r(37876),o=n._(r(14232)),a=r(84727),s=r(1623),u=r(170),l=r(70464),c=r(20125),f=r(242),d=r(63786),h=r(34327),p=r(9094),m=r(89203);r(35785);let g=new Set;function y(e,t,r,n){if((0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function b(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function v(e,t,r,n,i,o,a,u,l){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&b(e)||e.currentTarget.hasAttribute("download"))){if(!(0,s.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}function _(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let r,n,{href:s,as:u,children:g,prefetch:b=null,passHref:w,replace:x,shallow:S,scroll:E,locale:k,onClick:A,onNavigate:M,onMouseEnter:T,onTouchStart:O,legacyBehavior:C=!1,...P}=e;r=g,C&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let R=o.default.useContext(f.RouterContext),j=!1!==b,{href:I,as:N}=o.default.useMemo(()=>{if(!R){let e=_(s);return{href:e,as:u?_(u):e}}let[e,t]=(0,a.resolveHref)(R,s,!0);return{href:e,as:u?(0,a.resolveHref)(R,u):t||e}},[R,s,u]),L=o.default.useRef(I),D=o.default.useRef(N);C&&(n=o.default.Children.only(r));let B=C?n&&"object"==typeof n&&n.ref:t,[F,U,q]=(0,d.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(e=>{(D.current!==N||L.current!==I)&&(q(),D.current=N,L.current=I),F(e)},[N,I,q,F]),z=(0,m.useMergedRef)($,B);o.default.useEffect(()=>{R&&U&&j&&y(R,I,N,{locale:k})},[N,I,U,k,j,null==R?void 0:R.locale,R]);let V={ref:z,onClick(e){C||"function"!=typeof A||A(e),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&(e.defaultPrevented||v(e,R,I,N,x,S,E,k,M))},onMouseEnter(e){C||"function"!=typeof T||T(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&y(R,I,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){C||"function"!=typeof O||O(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&y(R,I,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0})}};if((0,l.isAbsoluteUrl)(N))V.href=N;else if(!C||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==R?void 0:R.locale;V.href=(null==R?void 0:R.isLocaleDomain)&&(0,h.getDomainLocale)(N,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(N,e,null==R?void 0:R.defaultLocale))}return C?o.default.cloneElement(n,V):(0,i.jsx)("a",{...P,...V,children:r})}),x=(0,o.createContext)({pending:!1}),S=()=>(0,o.useContext)(x),E=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34140:(e,t,r)=>{"use strict";var n=r(28419),i=r(71938),o=r(66958);e.exports=r(78121)||n.call(o,i)},34327:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(19783),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34816:(e,t,r)=>{"use strict";var n=r(86558),i=r(61664),o=r(55450);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},35043:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(65436);r(55850);let i=r(22254),o="x-c",a={accessToken:"access_token"},s=e=>"string"==typeof e?e:"desc"===e.direction?`${e.field} desc`:e.field;t.buildQueryURL=(e,t)=>{let{filters:r,predicates:u,...l}=t,c=new URL("documents/search",`${e}/`);if(r)for(let e of n.castArray(r))c.searchParams.append("q",`[${e}]`);if(u)for(let e of n.castArray(u))c.searchParams.append("q",`[${e}]`);for(let e in l){let t=a[e]||e,r=l[e];if("orderings"===t){let e=l[t];if(null!=e){let t=n.castArray(e).map(e=>s(e)).join(",");r=`[${t}]`}}else"routes"===t&&"object"==typeof l[t]&&(r=JSON.stringify(n.castArray(l[t])));null!=r&&c.searchParams.set(t,n.castArray(r).join(","))}return c.searchParams.set(o,`js-${i.version}`),c.toString()}},35687:(e,t,r)=>{"use strict";r.d(t,{li:()=>w,mG:()=>h});var n=r(27426),i=r(82763),o=r(56523),a=r(92501),s=r(81868),u=r(6649),l=r(7209),c=r(52316),f=r(30289),d=r(72451);function h(e,t,r,o,a,s){let{normalizeDepth:u=3,normalizeMaxBreadth:d=1e3}
4=e,h={...t,event_id:t.event_id||r.event_id||(0,n.eJ)(),timestamp:t.timestamp||(0,i.lu)()},m=r.integrations||e.integrations.map(e=>e.name);p(h,e),b(h,m),void 0===t.type&&g(h,e.stackParser);let w=_(o,r.captureContext);r.mechanism&&(0,n.M6)(h,r.mechanism);let x=a&&a.getEventProcessors?a.getEventProcessors():[],S=(0,c.m6)().getScopeData();if(s){let e=s.getScopeData();(0,f.Rg)(S,e)}if(w){let e=w.getScopeData();(0,f.Rg)(S,e)}let E=[...r.attachments||[],...S.attachments];E.length&&(r.attachments=E),(0,f.e2)(h,S);let k=[...x,...(0,l.lG)(),...S.eventProcessors];return(0,l.jB)(k,h,r).then(e=>(e&&y(e),"number"==typeof u&&u>0)?v(e,u,d):e)}function p(e,t){let{environment:r,release:n,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?r:u.U),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.xv)(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.xv)(s.value,a));let l=e.request;l&&l.url&&(l.url=(0,o.xv)(l.url,a))}let m=new WeakMap;function g(e,t){let r,n=a.OW._sentryDebugIds;if(!n)return;let i=m.get(t);i?r=i:(r=new Map,m.set(t,r));let o=Object.keys(n).reduce((e,i)=>{let o,a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}function y(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.keys(t).forEach(e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}function b(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function v(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,s.S8)(e.data,t,r)}}))},...e.user&&{user:(0,s.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,s.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,s.S8)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,s.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>{let n=(0,d.et)(e).data;return n&&(e.data=(0,s.S8)(n,t,r)),e})),n}function _(e,t){if(!t)return e;let r=e?e.clone():new c.HG;return r.update(t),r}function w(e){if(e)return x(e)||E(e)?{captureContext:e}:e}function x(e){return e instanceof c.HG||"function"==typeof e}let S=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function E(e){return Object.keys(e).some(e=>S.includes(e))}},35785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},35842:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>eP});var n=r(37876),i=r(14232),o=r(10553),a=r(62867),s=r(18847),u=r.n(s),l=r(89099),c=r(45105),f=r.n(c);function d(e){try{!function(e,t,r,n,i,o,a){t.getElementById("clarity-script")||(e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},(o=t.createElement(n)).async=1,o.src="https://www.clarity.ms/tag/"+i+"?ref=npm",o.id="clarity-script",(a=t.getElementsByTagName(n)[0]).parentNode.insertBefore(o,a))}(window,document,"clarity","script",e);return}catch(e){return}}let h={init(e){d(e,"clarity-script")},setTag(e,t){window.clarity("set",e,t)},identify(e,t,r,n){window.clarity("identify",e,t,r,n)},consent(e=!0){window.clarity("consent",e)},consentV2(e={ad_Storage:"granted",analytics_Storage:"granted"}){window.clarity("consentv2",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}};var p=r(36854),m=r(77966),g=r(98571),y=r(29260),b=r(63141),v=r(98640),_=r(78799),w=r(40593),x=r(20542),S=r(78723),E=r(15741),k=r(60428),A=r(51211),M=r(24054),T=r(74380),O=r(7060),C=r(99783),P=r(19467),R=r(99116),j=r(99219),I=r(97091),N=r(54587),L=r.n(N),D=r(48230),B=r.n(D),F=r(36595),U=r(7293),q=r(83782),$=r(49018);function z(){let{revalidate:e}=(0,T.Ay)(),t=(0,y.Ay)();return async r=>{let{id:n,variantId:i,quantity:o,sellingPlanId:a,quantityAvailable:s}=r;if(s&&o>s)return void t("Can't add to cart","Not enough items in stock");await e(async e=>{if(!e)return{cart:null,items:null,itemCount:0};let t=await (0,$.A)({id:n,variantId:i,quantity:o,sellingPlanId:a});return(0,T.Ko)(t)},{rollbackOnError:!0,revalidate:o<=0,optimisticData:e=>{var t;let r=(null==e||null==(t=e.items)?void 0:t.map(e=>e.id===n?{...e,variantId:i,quantity:o,sellingPlanId:a,estimatedCost:{subtotalAmount:{...e.estimatedCost.subtotalAmount,amount:(Number(e.estimatedCost.subtotalAmount.amount)*(o/e.quantity)).toFixed(2)}}}:e).filter(e=>e.quantity>0))||[];return e?{...e,itemCount:r.reduce((e,t)=>
4t.quantity?e+t.quantity:e,0),items:r}:{cart:null,items:[],itemCount:0}}})}}var V=r(90528),H=r(60272),G=r(4650);let W=function(e){var t,r,o,a,s,u,l;let{id:c,title:f,variant:d,quantity:h,sellingPlan:p,estimatedCost:m}=e,g=z(),b=(0,q.A)(),w=(0,y.Ay)(),x=(0,i.useRef)(!1),S=(0,i.useCallback)(e=>{var t,r,n,i,o;b({id:e});let a=d.product.collections.nodes.map(e=>e.handle),s=(0,V.A)(a,v.items),u=(0,F.A)({product:{id:null==d||null==(t=d.product)?void 0:t.id,name:f,vendor:null==d||null==(r=d.product)?void 0:r.vendor},price:(null==m||null==(n=m.totalAmount)?void 0:n.amount)?null==m||null==(i=m.totalAmount)?void 0:i.amount:void 0,isSubscriptionBox:!!(0,H.B)(null==d?void 0:d.id),productBreadcrumb:s});(0,U.h)({event:"analytics_event",data:{eventData:{category:"ecommerce",action:"removeFromCart"},ecommerce:{currencyCode:null==m||null==(o=m.totalAmount)?void 0:o.currencyCode,remove:{products:[u]}}}})},[m,b,f,d]),{handle:E}=d.product,{subtotalAmount:M,totalAmount:T}=m||{},O=(null==T?void 0:T.amount)||(null==M?void 0:M.amount),C=(0,i.useMemo)(()=>(null==M?void 0:M.amount)&&(null==T?void 0:T.amount)&&Number(M.amount)!==Number(T.amount)?M.amount:void 0,[M,T]);return(0,i.useEffect)(()=>{x.current||(null==d?void 0:d.quantityAvailable)!==0||(null==d?void 0:d.product.handle)===G.U.insuranceProductKey||(S(c),w(k.QA.D,k.QA.Q),x.current=!0)},[c,S,d,w]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"".concat(_.NG,"/").concat(E),children:(0,n.jsx)("a",{className:"relative flex-shrink-0 w-24",children:(null==(t=d.image)?void 0:t.url)&&(0,n.jsx)(L(),{src:null==(r=d.image)?void 0:r.url,alt:(null==(o=d.image)?void 0:o.altText)||d.title,width:null==(a=d.image)?void 0:a.width,height:null==(s=d.image)?void 0:s.height,sizes:"200px",objectFit:"cover"})})}),(0,n.jsxs)("div",{className:"flex flex-col flex-1 ml-4 sm:ml-6",children:[(0,n.jsxs)("div",{className:"flex text-sm",children:[f&&(0,n.jsx)(B(),{legacyBehavior:!0,href:"".concat(_.NG,"/").concat(null==d||null==(u=d.product)?void 0:u.handle),children:(0,n.jsxs)("a",{className:"block text-gray-700 grow hover:text-gray-800",children:[(0,n.jsx)("h3",{className:"font-medium ",children:f}),(null==p?void 0:p.name)&&(0,n.jsx)("span",{className:"mb-2",children:null==p?void 0:p.name})]})}),(0,n.jsx)("div",{className:"justify-items-end",children:(0,n.jsx)("button",{type:"button",className:"inline-flex text-gray-500 transition-colors duration-150 ease-in-out hover:text-red-500","aria-label":"Remove item",onClick:()=>S(c),children:(0,n.jsx)("i",{className:"fa-light fa-trash-can-xmark"})})})]}),Array.isArray(null==d?void 0:d.selectedOptions)&&(null==d||null==(l=d.selectedOptions)?void 0:l.length)>0?(0,n.jsx)("div",{className:"col-span-2 text-sm",children:d.selectedOptions.map((e,t)=>{let{name:r,value:i}=e;return r&&i?(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"sr-only",children:r}),(0,n.jsx)("dd",{className:"text-gray-500 ".concat(t>0?"border-gray-200 border-l pl-4 ml-4":""),children:(0,n.jsx)("div",{children:i})})]}),(0,n.jsxs)("div",{className:"flex w-full pt-6",children:[(0,n.jsxs)("div",{className:"self-center pr-3",children:["Qty: ",h]}),!(null==p?void 0:p.name)&&(0,n.jsxs)("div",{className:" self-center flex",children:[(0,n.jsx)("button",{"aria-label":"Increase quantity",onClick:()=>g({id:c,variantId:null==d?void 0:d.id,quantity:h+1,quantityAvailable:null==d?void 0:d.quantityAvailable}),disabled:!!d.quantityAvailable&&h>=d.quantityAvailable,type:"button",className:"block px-2 py-0 mx-0.5 border rounded border-slate-200 disabled:opacity-20",children:"+"}),(0,n.jsx)("button",{"aria-label":"Decrease quantity",onClick:()=>g({id:c,variantId:null==d?void 0:d.id,quantity:h-1}),type:"button",className:"block px-2 py-0 mx-0.5 border rounded border-slate-200 disabled:opacity-20",children:"â"})]}),(0,n.jsx)("div",{className:"mx-4 border-b border-dotted grow"}),(0,n.jsxs)("div",{className:"relative",children:[void 0!==C&&(0,n.jsxs)("del",{className:"absolute right-0 text-sm text-gray-400",style:{bottom:"100%"},children:[A.currency.symbol,C]}),void 0!==O&&(0,n.jsxs)("p",{className:"text-sm font-medium text-gray-900",children:[A.currency.symbol,Number(O).toFixed(2)]})]})]})]},"".concat(c)):null})}):null]})]})};var J=r(4794);function K(){var e,t,r,a,s,u;
4let c=(0,i.useRef)(null),{data:f}=(0,o.useSession)(),{subscriptionBoxInCart:d}=(0,x.A)(),h=!!d,{cart:p,items:m,loading:g,appliedDiscountCodes:y,discountAllocations:b,appliedGiftCards:v,getCart:w,closeCart:N,openCart:L,isCartOpen:D}=(0,T.Ay)(),B=(0,M.A)(),F=(0,O.A)(),[U,q]=(0,i.useState)(!1),$=(0,l.useRouter)();(0,i.useEffect)(()=>{"open"===$.query.cart&&L()},[$,L]),(0,E.A)(c,e=>{let t=document.getElementById("onward-modal");U||t||N()}),(0,i.useEffect)(()=>{let e=()=>{N()},t=e=>{"Escape"===e.key&&N()};return $.events.on("routeChangeStart",e),document.addEventListener("keydown",t),()=>{$.events.off("routeChangeStart",e),document.removeEventListener("keydown",t)}},[$.events,N]);let z=(0,i.useMemo)(()=>{var e,t;if("en-us"===_.vV||!f||!f.user.customer||!f.user.customer.tags||0===f.user.customer.tags.length)return;let{tags:r}=f.user.customer;return null!=(t=null==(e=C.A[_.vV].find(e=>{let{tag:t}=e;return r.indexOf(t)>-1}))?void 0:e.message)?t:void 0},[f]),V=(0,i.useMemo)(()=>!z||!(null==m?void 0:m.find(e=>!e.merchandise.product.tags.includes(C.D))),[m,z]),H=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&(window.onwardApp=null),"en-us"!==_.vV||window.onwardApp&&window.onwardClient)(null==e?void 0:e.length)||(window.onwardApp=null,window.onwardClient=null);else{let e=new G.U(w,B,F);console.log("[Onward] initializeOnward - force: ",t),window.initializeOnward({storefrontClient:e,containerSelector:"#onward-container",force:!0,locale:{currency_iso_code:"USD",request_locale:"en-US"}})}};return((0,i.useEffect)(()=>{document.cookie.split(";").some(e=>e.trim().startsWith("bbSurveySubmitted="))&&q(!1)},[]),(0,i.useEffect)(()=>{H(m,!1)},[m]),(0,i.useEffect)(()=>{H(m,!0)},[D]),(0,i.useEffect)(()=>{let e=e=>{console.log("[initOnwardEvent] pageshow persisted:",e.persisted),e.persisted&&(console.log("[initOnwardEvent] cache reload page"),H([],!0))};return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,i.useEffect)(()=>{p&&D&&(0,P.O7)(p)},[p,D]),D)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"modal-bg z-[60] is-open"}),(0,n.jsxs)("div",{className:"cart-slideout flex flex-col z-[70] is-open max-md:overflow-scroll",ref:c,role:"dialog","aria-modal":"true","aria-label":"Shopping cart",children:[(0,n.jsxs)("header",{className:"relative px-12 pt-12 pb-4 text-center",children:[(0,n.jsx)("button",{type:"button",className:"absolute top-0 left-0 px-6 py-4 text-lg","aria-label":"Close",onClick:N,children:(0,n.jsx)("i",{className:"fa-light fa-xmark"})}),Array.isArray(m)&&(null==m?void 0:m.length)>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-4",children:[(0,n.jsx)(R.A,{className:"w-6 fill-bbx-style"}),(0,n.jsx)("h2",{className:"text-4xl title",children:k.DD})]}),(0,n.jsx)("p",{className:"text-sm font-medium text-gray-500",children:"".concat(k.Bv," ").concat(A.currency.symbol).concat(_.eb.amount,"+")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"mb-4 text-4xl title",children:k.O$}),(0,n.jsx)("p",{className:"text-sm font-medium text-bbx-gray12",children:k.Ie})]})]}),Array.isArray(m)&&(null==m?void 0:m.length)>0?(0,n.jsx)("ul",{className:"flex-1 md:h-full px-12 pt-1 pb-4 md:overflow-auto",children:null==m?void 0:m.map(e=>{let{quantity:t,merchandise:r,id:i,sellingPlanAllocation:o,estimatedCost:a}=e;return(0,n.jsx)("li",{className:"flex py-6",children:(0,n.jsx)(W,{id:i,title:r.product.title,variant:r,quantity:t,sellingPlan:null==o?void 0:o.sellingPlan,estimatedCost:a})},i)})}):(0,n.jsxs)("div",{className:"flex flex-col items-center h-full px-12 space-y-4 justify-stretch",children:[(0,n.jsx)("button",{type:"button","aria-label":"Close",className:"button button-primary",onClick:N,children:k.c3}),(0,n.jsxs)("p",{children:[k.Bv," ",(0,n.jsx)(j.A,{price:_.eb}),"+"]})]}),Array.isArray(m)&&(null==m?void 0:m.length)>0&&(0,n.jsxs)("footer",{className:"px-12 py-8 relative ".concat(g&&"opacity-70 pointer-events-none"),children:[(0,n.jsx)("p",{className:"mb-4 pb-4 border-b border-gray-200 text-sm text-gray-500",children:"Have a promo code? Add it at checkout."}),(null==p||null==(e=p.estimatedCost)?void 0:e.subtotalAmount.amount)&&(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("div",{className:"text-sm text-gray-600",children:k.R6}),(0,n.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[A.currency.symbol,null==p?void 0:p.estimatedCost.subtotalAmount.amount]})]}),y.length>0&&b.length>0&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 text-sm border-t border-gray-200",children:[(0,n.jsx)("div",{className:"text-gray-600",children:(0,n.jsx)("span",{className:"pr-4",children:1===y.length?k.Pq:k.K6})}),(0,n.jsxs)("div",{className:"flex-grow pl-4 font-medium text-gray-900 text-right",children:["-",A.currency.symbol,b.reduce((e,t)=>
4{var r;return e+Number(null==(r=t.discountedAmount)?void 0:r.amount)},0).toFixed(2)]})]}),v.length>0&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 text-sm border-t border-gray-200",children:[(0,n.jsx)("div",{className:"text-gray-600",children:(0,n.jsx)("span",{className:"pr-4",children:1===v.length?"Gift Card":"Gift Cards"})}),(0,n.jsx)("div",{className:"flex flex-wrap font-medium text-gray-600",style:{maxWidth:"64%"},children:v.map((e,t)=>(0,n.jsx)("span",{className:"mr-2",children:"****".concat(e.lastCharacters).concat(t+1<v.length?", ":"")},e.id))}),(0,n.jsxs)("div",{className:"flex-grow pl-4 font-medium text-gray-900 text-right",children:["-",A.currency.symbol,v.reduce((e,t)=>{var r;return e+(Number(null==(r=t.presentmentAmountUsed)?void 0:r.amount)||0)},0).toFixed(2)]})]}),!V&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[(0,n.jsx)("div",{className:"flex text-sm text-gray-600",children:(0,n.jsx)("span",{children:z})}),(0,n.jsx)("div",{className:"text-sm text-right text-gray-900",children:k.FL})]}),(null==p||null==(r=p.estimatedCost)||null==(t=r.totalTaxAmount)?void 0:t.amount)&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[(0,n.jsx)("div",{className:"flex text-sm text-gray-600",children:(0,n.jsx)("span",{children:k.yP})}),(0,n.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[A.currency.symbol,null==p?void 0:p.estimatedCost.totalTaxAmount.amount]})]}),Number(null==p?void 0:p.estimatedCost.subtotalAmount.amount)>Number(_.eb.amount)&&(null==p?void 0:p.estimatedCost.subtotalAmount.currencyCode)==="USD"&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[(0,n.jsx)("div",{className:"flex text-sm text-gray-600",children:(0,n.jsxs)("span",{children:[(null==p?void 0:p.estimatedCost.subtotalAmount.amount)>Number(_.yN.amount)?"2 Day":"Ground"," ","Shipping"]})}),(0,n.jsxs)("div",{className:"text-sm font-medium text-gray-900",children:[A.currency.symbol,"0.00"]})]}),(null==p||null==(s=p.estimatedCost)||null==(a=s.totalAmount)?void 0:a.amount)&&(0,n.jsxs)("div",{className:"flex items-center justify-between pt-4 font-medium text-gray-900 border-t border-gray-200",children:[(0,n.jsx)("span",{children:k.X5}),(0,n.jsxs)("span",{children:[A.currency.symbol,null==p||null==(u=p.estimatedCost.totalAmount)?void 0:u.amount]})]}),document.cookie.split(";").some(e=>e.trim().startsWith("bbSurveySubmitted="))?(0,n.jsx)(J.A,{surveyComplete:!0,className:"w-full"}):(0,n.jsx)(J.A,{toggleModal:q,className:"w-full"})]})]}),h&&(0,n.jsx)(S.BN,{surveyType:"new",children:(0,n.jsx)(I.A,{isModalOpen:U,closeModal:()=>{q(!1)}})})]}):null}var Z=r(16492),X=r(3961),Y=r(4475),Q=r(11728),ee=r(12246);function et(e){let{classes:t="w-4"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:t,children:(0,n.jsx)("path",{d:"M128 128V96C128 42.98 170.1 0 224 0C277 0 320 42.98 320 96V128H400C426.5 128 448 149.5 448 176V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V176C0 149.5 21.49 128 48 128H128zM160 128H288V96C288 60.65 259.3 32 224 32C188.7 32 160 60.65 160 96V128zM48 160C39.16 160 32 167.2 32 176V416C32 451.3 60.65 480 96 480H352C387.3 480 416 451.3 416 416V176C416 167.2 408.8 160 400 160H320V240C320 248.8 312.8 256 304 256C295.2 256 288 248.8 288 240V160H160V240C160 248.8 152.8 256 144 256C135.2 256 128 248.8 128 240V160H48z"})})}function er(e){let{classes:t="w-4"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:t,children:(0,n.jsx)("path",{d:"M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 32c52.94 0 96 43.06 96 96c0 52.93-43.06 96-96 96S128 180.9 128 128C128 75.06 171.1 32 224 32zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM413.3 480H34.66C33.2 480 32 478.8 32 477.3C32 399.4 95.4 336 173.3 336h101.3C352.6 336 416 399.4 416 477.3C416 478.8 414.8 480 413.3 480z",fill:"
4currentColor"})})}var en=r(51232);let ei=u()(()=>r.e(8916).then(r.bind(r,78916)),{loadableGenerated:{webpack:()=>[78916]}});function eo(e){let{menuData:t,navWrapperRef:r,isLoggedIn:o,headerContents:a}=e,[s,u]=(0,i.useState)(null),[c,f]=(0,i.useState)(!1),[d,h]=(0,i.useState)(!1),{toggleCart:p,items:m,itemCount:g}=(0,T.Ay)(),y=(0,i.useRef)(null),b=(0,l.useRouter)(),v=b.asPath.startsWith("/subscriptions/"),w=b.query.forcemarketopen,{isCurrentlyOpen:x}=(0,Q.ym)(X,w),[S,k]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{"search"!==s||S||k(!0)},[s,S]),(0,E.A)(r,()=>u(null)),(0,i.useEffect)(()=>{if((null==a?void 0:a.cta_button_link)&&(null==a?void 0:a.cta_button_text)){let e=setTimeout(()=>{f(!0)},50);return()=>clearTimeout(e)}f(!1)},[a]),(0,i.useEffect)(()=>{if(!c||"/"!==b.pathname||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=setTimeout(()=>h(!0),450),t=setTimeout(()=>h(!1),1450);return()=>{clearTimeout(e),clearTimeout(t)}},[c,b.pathname]),(0,i.useEffect)(()=>{let e=()=>{u(null)};return b.events.on("routeChangeStart",e),()=>{b.events.off("routeChangeStart",e)}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:"container relative z-50 flex items-center justify-between max-lg:hidden",children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"/",prefetch:!1,children:(0,n.jsx)("a",{className:"py-4 -mb-1.5","aria-label":"Birchbox Home",children:(0,n.jsx)(ee.A,{className:"w-28 fill-bbx-style"})})}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"mr-4 min-w-[120px] h-[32px] flex items-center self-center shrink-0",children:(null==a?void 0:a.cta_button_link)&&(null==a?void 0:a.cta_button_text)&&(v&&"en-us"===_.vV?(0,n.jsx)(B(),{legacyBehavior:!0,href:"/get-started",children:(0,n.jsx)("a",{className:"button button-primary px-3 py-1.5 text-[15px] whitespace-nowrap transition-opacity duration-300 ease-out ".concat(c?"opacity-100":"opacity-0"," ").concat(d?"animate-cta-attention motion-reduce:animate-none":""),children:a.cta_button_text})}):(0,n.jsx)(en.A,{link:a.cta_button_link,label:a.cta_button_text,className:"button button-primary px-3 py-1.5 text-[15px] whitespace-nowrap transition-opacity duration-300 ease-out ".concat(c?"opacity-100":"opacity-0"," ").concat(d?"animate-cta-attention motion-reduce:animate-none":"")}))}),(0,n.jsx)("div",{className:"flex items-stretch",children:"en-us"===_.vV?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"/members-market",children:(0,n.jsxs)("a",{className:"nav-item bottom-line-current lg:px-4 xl:px-5 py-7 ".concat(b.asPath.startsWith("/members-market")?"current font-medium":""),children:[o&&x&&(0,n.jsx)("span",{className:"bg-white border-2 border-[#72BF95] text-[#2D7A4A] font-bold text-[12px] px-[6px] mr-2",children:"LIVE"}),"Members Market"]})}),(0,n.jsx)(B(),{legacyBehavior:!0,href:"".concat(_.O1,"/gifting"),children:(0,n.jsx)("a",{className:"nav-item bottom-line-current lg:px-4 xl:px-5 py-7 ".concat(b.asPath.startsWith("".concat(_.O1,"/gifting"))?"current font-medium":""),children:"Gifting"})})]}):(0,n.jsx)(n.Fragment,{children:t.items.map(e=>{var t;let r=null==e||null==(t=e.url)?void 0:t.split("/").pop(),i="/collections/".concat(r);return(0,n.jsx)(B(),{legacyBehavior:!0,href:i,children:(0,n.jsx)("a",{className:"nav-item bottom-line-current lg:px-4 xl:px-5 py-7 ".concat(b.asPath.startsWith(i)?"current font-medium":""),children:e.title})},r)})})}),(0,n.jsxs)("div",{className:"flex items-stretch",children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:Z.U8.ME.O,prefetch:!1,children:(0,n.jsx)("a",{title:o?"View your profile":"Sign in to your account",className:"rounded flex items-center px-4 h-20 nav-item bottom-line-current ".concat(o?"bg-bbx-pearl-light text-bbx-spark":""," ").concat(!s&&b.asPath.startsWith(Z.U8.ME.O)?"current":""),children:(0,n.jsx)(er,{})})}),(0,n.jsxs)("button",{className:"flex items-center px-4 h-20 nav-item rounded transition-colors duration-300 bottom-line-current pr-1 ".concat(Array.isArray(m)&&(null==m?void 0:m.length)>0?"text-bbx-spark":""),title:"View your cart",type:"button",onClick:()=>{p()},children:[(0,n.jsx)(et,{classes:"w-4 fill-bbx-style"}),(0,n.jsx)("span",{className:"w-6 py-1 ml-2 -mb-1 font-medium text-center rounded ".concat(g?"bg-bbx-pearl-light":""),children:g||""})]})]}),"en-us"!==_.vV&&"en-gb"!==_.vV&&"es-es"!==_.vV&&(0,n.jsx)(B(),{legacyBehavior:!0,href:"/".concat(_.AM),prefetch:!1,children:(0,n.jsx)("a",{className:"px-8 button button-primary lg:ml-4",children:A.nav.getBoxCTA})})]})]}),(0,n.jsx)("div",{className:"desktop-nav-drawer pt-6 pb-8 ".concat("search"===s?"is-open":""),children:S?(0,n.jsx)(ei,{inputRef:y,type:"compact"}):null}),"en-us"!==_.vV&&t.items.map(e=>{let t=!!("en-us"!==_.vV&&("en-gb"===_.vV?"Shop"===e.title.trim():"Especiales"===e.title.trim()));return(0,n.jsx)("div",{className:"desktop-nav-drawer ".concat(s===(null==e?void 0:e.id)?"is-open":""),children:Array.isArray(null==e?void 0:e.items)&&(0,n.jsx)("div",{className:"container ".concat(t?"grid grid-cols-4 gap-8":"flex gap-x-14"),children:e.items.map(e=>{let r=(0,Y.iM)(null==e?void 0:e.url);return(0,n.jsxs)("div",{className:"flex flex-col gap-y-2.5",children:[(null==r?void 0:r.startsWith("/"))?(0,n.jsx)(B(),{legacyBehavior:!0,href:r,children:(0,n.jsxs)("a",{className:"text-lg font-medium",children:[t&&e.image&&(0,n.jsx)("div",{className:"relative w-full h-[160px] mb-3",children:(0,n.jsx)(L(),{src:e.image.url,alt:e.title,layout:"fill",objectFit:"cover"})}),(0,n.jsx)("span",{className:"",children:e.title})]})},e.id):(0,n.jsx)("span",{className:"text-lg font-medium",children:e.title}),Array.isArray(null==e?void 0:e.items)&&e.items.map(e=>{let t=(0,Y.iM)(null==e?void 0:e.url);return t?(0,n.jsx)(B(),{legacyBehavior:!0,href:t,children:(0,n.jsx)("a",{className:"nav-item",children:null==e?void 0:e.title})},null==e?void 0:e.id):(0,n.jsx)("span",{className:"nav-item",children:e.title},null==e?void 0:e.id)})]},null==e?void 0:e.id)})})},e.id)})]})}function ea(e){let{classes:t="w-4"}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:t,children:(0,n.jsx)("path",{d:"M0 80C0 71.16 7.164 64 16 64H432C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H16C7.164 96 0 88.84 0 80zM0 240C0 231.2 7.164 224 16 224H432C440.8 224 448 231.2 448 240C448 248.8 440.8 256 432 256H16C7.164 256 0 248.8 0 240zM432 416H16C7.164 416 0 408.8 0 400C0 391.2 7.164 384 16 384H432C440.8 384 448 391.2 448 400C448 408.8 440.8 416 432 416z",fill:"
4currentColor"})})}function es(e){let{items:t,slideIn:r,parentTitle:o,level:a,closeSlider:s,closeMenu:u,isLoggedIn:c,profileUrl:f}=e,d=(0,l.useRouter)(),[h,p]=(0,i.useState)({}),m=d.query.forcemarketopen,{isCurrentlyOpen:g}=(0,Q.ym)(X,m),y=e=>e.split("myshopify.com",2)[1];return(0,i.useEffect)(()=>{r||p({})},[r]),(0,n.jsxs)("div",{className:"mobile-nav",style:{transform:r?"translate3d(0, 0, 0)":"translate3d(-100%, 0, 0)"},children:[(0,n.jsx)("div",{className:"border-b border-gray-200",children:(0,n.jsxs)("div",{className:"container flex items-center justify-between",children:[1===a?(0,n.jsx)(B(),{legacyBehavior:!0,href:"/",prefetch:!1,children:(0,n.jsx)("a",{className:"inline-block py-[22px] pl-3 pr-6 -ml-3","aria-label":"Birchbox Home",children:(0,n.jsx)(ee.A,{className:"w-16 sm:w-20 fill-bbx-style"})})}):(0,n.jsxs)("button",{type:"button",className:"flex items-center gap-x-3",onClick:s,children:[(0,n.jsx)("i",{className:"text-xl fa-light fa-arrow-left-long"}),o&&(0,n.jsx)("span",{className:"text-lg font-medium",children:o})]}),(0,n.jsx)("button",{type:"button",className:"p-2 text-lg","aria-label":"Close",onClick:u,children:(0,n.jsx)("i",{className:"fa-light fa-xmark"})})]})}),Array.isArray(t)&&t.length>0?(0,n.jsxs)("div",{className:"container flex flex-col flex-1 py-5 overflow-auto gap-y-5",children:["en-us"===_.vV?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"/subscriptions/monthly-box",children:(0,n.jsx)("a",{className:"flex justify-between items-center py-0.5",children:"Build Your Box"})}),(0,n.jsx)(B(),{legacyBehavior:!0,href:"/members-market",children:(0,n.jsxs)("a",{className:"flex items-center py-0.5",children:[g&&(0,n.jsx)("span",{className:"bg-white border-2 border-[#72BF95] text-[#2D7A4A] font-bold text-[12px] px-[6px] mr-2",children:"LIVE"}),"Members Market"]})}),(0,n.jsx)(B(),{legacyBehavior:!0,href:"".concat(_.O1,"/gifting"),children:(0,n.jsx)("a",{className:"flex justify-between items-center py-0.5",children:"Gifting"})})]}):t.map(e=>{var t;return Array.isArray(null==e?void 0:e.items)&&e.items.length>0?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("button",{type:"button",className:"flex justify-between items-center py-0.5",onClick:()=>p(t=>({...t,[null==e?void 0:e.id]:!0})),children:[null==e?void 0:e.title,(0,n.jsx)("i",{className:"fa-light fa-chevron-right"})]}),(0,n.jsx)(es,{items:null==e?void 0:e.items,slideIn:!!h[null==e?void 0:e.id],parentTitle:null==e?void 0:e.title,closeSlider:()=>p(t=>({...t,[null==e?void 0:e.id]:!1})),closeMenu:u})]},null==e?void 0:e.id):(null==(t=y(null==e?void 0:e.url))?void 0:t.startsWith("/"))?(0,n.jsx)(B(),{legacyBehavior:!0,href:y(null==e?void 0:e.url),children:(0,n.jsxs)("a",{className:"relative flex items-center space-x-6",children:[e.image&&(0,n.jsx)(L(),{src:e.image.url,width:85,height:85,objectFit:"cover",alt:e.title}),(0,n.jsx)("span",{children:null==e?void 0:e.title})]})},null==e?void 0:e.id):null}),(0,n.jsx)("hr",{}),1===a&&f&&(0,n.jsx)(B(),{legacyBehavior:!0,href:f,prefetch:!1,children:(0,n.jsxs)("a",{className:"flex items-center gap-3 py-0.5 ".concat(c?"text-bbx-spark":""),children:[(0,n.jsx)(er,{}),(0,n.jsx)("span",{children:"Profile"})]})})]}):null]})}function eu(e){let{menuData:t,isLoggedIn:r,headerContents:o}=e,[a,s]=(0,i.useState)(!1),[u,c]=(0,i.useState)(!1),{toggleCart:f,items:d,itemCount:h}=(0,T.Ay)(),p=(0,l.useRouter)(),m=p.asPath.startsWith("/subscriptions/");return(0,i.useEffect)(()=>{let e=()=>{s(!1)};return p.events.on("routeChangeStart",e),()=>{p.events.off("routeChangeStart",e)}}),(0,i.useEffect)(()=>{if((null==o?void 0:o.cta_button_link)&&(null==o?void 0:o.cta_button_text)){let e=setTimeout(()=>{c(!0)},50);return()=>clearTimeout(e)}c(!1)},[o]),(0,n.jsx)("nav",{"aria-label":"Mobile navigation",className:"lg:hidden",children:(0,n.jsxs)("div",{className:"container flex items-center justify-between px-1",children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"/",prefetch:!1,children:(0,n.jsx)("a",{className:"inline-flex flex-shrink-0",title:"Birchbox","aria-label":"Birchbox Home",children:(0,n.jsx)(ee.A,{className:"w-24 flex-shrink-0 fill-bbx-style"})})}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("button",{className:"px-3 py-6 text-lg","aria-label":"Toggle navigation",type:"button",onClick:()=>s(!0),children:(0,n.jsx)(ea,{})}),(0,n.jsx)(es,{slideIn:a,items:null==t?void 0:t.items,level:1,closeMenu:()=>s(!1),isLoggedIn:r,profileUrl:Z.U8.ME.O}),(0,n.jsxs)("button",{className:"flex items-center relative px-3 py-6 ".concat(Array.isArray(d)&&(null==d?void 0:d.length)>0?"text-bbx-spark pr-1":""),type:"button","aria-label":"Cart",onClick:f,children:[(0,n.jsx)(et,{classes:"fill-bbx-style w-4"}),Array.isArray(d)&&(null==d?void 0:d.length)>0&&(0,n.jsx)("span",{className:"w-6 ml-2 -mb-1 font-medium text-center rounded bg-bbx-pearl-light",children:h})]}),(0,n.jsx)("div",{className:"ml-2 min-w-[120px] h-[32px] flex items-center",children:(null==o?void 0:o.cta_button_link)&&(null==o?void 0:o.cta_button_text)&&(m&&"en-us"===_.vV?(0,n.jsx)(B(),{legacyBehavior:!0,href:"/get-started",children:(0,n.jsx)("a",{className:"button button-primary px-3 py-1.5 text-sm whitespace-nowrap transition-all duration-700 ease-[
4cubic-bezier(0.34,1.56,0.64,1)] ".concat(u?"opacity-100 scale-100":"opacity-0 scale-[0.96]"),children:o.cta_button_text})}):(0,n.jsx)(en.A,{link:o.cta_button_link,label:o.cta_button_text,className:"button button-primary px-3 py-1.5 text-sm whitespace-nowrap transition-all duration-700 ease-[cubic-bezier(0.34,1.56,0.64,1)] ".concat(u?"opacity-100 scale-100":"opacity-0 scale-[0.96]")}))})]})]})})}var el=r(46462);let ec=JSON.parse('{"w$":[{"type":"paragraph","text":"Turn Down, Glow Up This September","spans":[{"start":0,"end":33,"type":"hyperlink","data":{"link_type":"Web","url":"https://www.birchbox.com/subscriptions/monthly-box","target":"_self"}}],"direction":"ltr"}]}');function ef(){let[e,t]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=()=>{t(window.scrollY)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)("div",{className:"promo-bar-wrapper animate-appear ".concat(e>50?"hide":""),children:(0,n.jsx)("div",{className:"promo-bar-content",children:(0,n.jsx)(el.$,{field:ec.w$})})})}function ed(){let{data:e}=(0,o.useSession)(),t=(0,l.useRouter)(),r=(0,i.useRef)(null),a=(0,i.useContext)(b.A),s="/"===t.pathname,[u,c]=(0,i.useState)(0),[f,d]=(0,i.useState)(null);if(!a)throw Error("Nav must be used within a NavHeightContext.Provider");let{setNavHeight:h}=a;(0,i.useEffect)(()=>{(0,w._m)().then(e=>{e&&d(e.data)})},[]),(0,i.useEffect)(()=>{let e=()=>{c(window.scrollY)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,i.useEffect)(()=>{let e=new ResizeObserver(e=>{for(let t of e)r.current&&h(r.current.offsetHeight)}),t=r.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[h]);let p=!s||u>50,m=()=>(null==f?void 0:f.header_background_color)?{backgroundColor:f.header_background_color,borderBottom:"1px solid rgba(229, 231, 235, 1)"}:{},g=()=>(null==f?void 0:f.header_background_color)?"border-b border-gray-200":p?"bg-white border-b border-gray-200":"bg-none border-none";return(0,n.jsxs)("div",{className:"fixed inset-x-0 top-0 z-30",ref:r,children:[(0,n.jsxs)("header",{className:"relative transition-colors duration-200 ".concat(g()),style:m(),children:[(0,n.jsx)(ef,{}),(0,n.jsx)(eu,{menuData:_.PI?v:{...v,items:[]},isLoggedIn:!!(null==e?void 0:e.shopifyAccessToken),headerContents:f}),(0,n.jsx)(eo,{menuData:_.PI?v:{...v,items:[]},navWrapperRef:r,isLoggedIn:!!(null==e?void 0:e.shopifyAccessToken),headerContents:f})]}),(0,n.jsx)(K,{})]})}var eh=r(88992),ep=r(28158);function em(){let{register:e,handleSubmit:t,reset:r,formState:{isValid:i}}=(0,eh.mN)({mode:"onChange",defaultValues:{acceptsMarketing:(0,ep.bh)()}}),o=(0,y.Ay)(),a=async e=>{let{newsletterEmail:t,acceptsMarketing:n}=e,i="US";if(t)try{let e=await fetch("https://sst01.birchbox.com/braze/braze_email_sms_dc.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,subscribeType:"email",subscriptionGroupId:"056b9729-188b-4068-b507-a4def52fc533",countryCode:i,eventName:"website_newsletter_signup"})});if(!e.ok)throw Error("Request failed with status ".concat(e.status));o("Success!","You're signed up to receive the latest deals, news, and more!"),r()}catch(e){o("Something went wrong","Please wait a few minutes, and try signing up again.")}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"text-lg font-medium max-sm:max-w-[200px]",children:A.footer.enterEmailText}),(0,n.jsx)("form",{className:"flex flex-col mb-4 max-lg:gap-y-2.5 lg:gap-x-3",onSubmit:t(a),children:(0,n.jsxs)("div",{className:"flex max-lg:flex-col max-lg:gap-y-2.5 lg:gap-x-3",children:[(0,n.jsx)("input",{...e("newsletterEmail"),id:"newsletterEmail",required:!0,type:"email",placeholder:A.footer.placeholder,className:"w-full input","aria-label":"Email address for newsletter signup"}),(0,n.jsx)("button",{type:"submit",className:"button button-primary shrink-0 max-lg:w-full",disabled:!i,children:A.footer.cta})]})})]})}let eg={"en-us":{items:[{title:"Products",id:1,items:[{title:"Members Market",id:4,url:"/members-market"}]},{title:"Company",id:2,items:[{title:"About",id:1,url:"/about"},{title:"Careers",id:2,url:"https://www.linkedin.com/jobs/search/?currentJobId=3141303065&f_C=946261&geoId=92000000"},{title:"Help Center",id:3,url:"https://help.birchbox.com/"},{title:"Birchbox Edit",id:4,url:"/magazine"}]},{title:"Legal",id:3,items:[{title:"Terms",id:1,url:"/terms-conditions"},{title:"Privacy",id:2,url:"/privacy-policy"},{title:"Accessibility",id:3,url:"/accessibility"}]}]},"en-gb":{items:[{title:"Products",id:1,items:[{title:"Makeup",id:1,url:"/collections/makeup"},{title:"Hair",id:2,url:"/collections/hair"},{title:"Skincare",id:3,url:"/collections/skincare"},{title:"Body",id:4,url:"/collections/body"},{title:"Limited Edition",id:5,url:"/collections/limited-editions"}]},{title:"Company",id:2,items:[{title:"About",id:1,url:"/about"},{title:"Careers",id:2,url:"https://www.linkedin.com/jobs/search/?currentJobId=3141303065&f_C=946261&geoId=92000000"},{title:"Help Centre",id:3,url:"https://help.birchbox.com"}]},{title:"Legal",id:3,items:[{title:"Terms",id:1,url:"/terms-conditions"},{title:"Privacy",id:2,url:"/privacy-policy"}]}]},"es-es":{items:[{title:"Productos",id:1,items:[{title:"Ediciones Limitadas",id:1,url:"".concat(_.O1,"/ediciones-limitadas")},{title:"Maquillaje",id:2,url:"".concat(_.O1,"/maquillaje")},{title:"Facial",id:3,url:"".concat(_.O1,"/facial")},{title:"Capilar",id:4,url:"".concat(_.O1,"/capilar")},{title:"Corporal",id:5,url:"".concat(_.O1,"/corporal")}]}
4,{title:"Empresa",id:2,items:[{title:"Contacto",id:1,url:"https://soporte.birchbox.es/hc/es-es"},{title:"Qui\xe9nes somos",id:2,url:"/quienes-somos"},{title:"Trabaja con nosotros",id:3,url:"https://www.linkedin.com/jobs/search/?currentJobId=3141303065&f_C=946261&geoId=92000000"},{title:"Prensa",id:4,url:"/prensa-comunicacion-birchbox"}]},{title:"Legal",id:3,items:[{title:"T\xe9rminos y condiciones",id:1,url:"/terminos-y-condiciones"},{title:"Pol\xedtica de privacidad",id:2,url:"/politica-de-privacidad"},{title:"Pol\xedtica de cookies",id:3,url:"/politica-de-cookies"},{title:"Aviso Legal",id:4,url:"/aviso-legal"}]}]}},ey=[{title:"Instagram",icon:"fa-instagram",url:A.footer.socialUrls.Instagram},{title:"Pinterest",icon:"fa-pinterest",url:A.footer.socialUrls.Pinterest},{title:"TikTok",icon:"fa-tiktok",url:A.footer.socialUrls.TikTok},{title:"YouTube",icon:"fa-youtube",url:A.footer.socialUrls.YouTube},{title:"Twitter",icon:"fa-twitter",url:A.footer.socialUrls.Twitter},{title:"Facebook",icon:"fa-facebook",url:A.footer.socialUrls.Facebook}];function eb(){var e;let t=null==(e=eg[_.vV])?void 0:e.items.filter(e=>_.PI||!e.items.some(e=>e.url.startsWith("/collections")||e.url.startsWith("/products")||e.url.startsWith("/members-market")));return(0,n.jsx)("footer",{className:"border-t section",children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsx)(B(),{legacyBehavior:!0,href:"/",prefetch:!1,children:(0,n.jsx)("a",{className:"inline-flex mb-12",title:"Birchbox",children:(0,n.jsx)(R.A,{className:"w-16 fill-bbx-style"})})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2",children:[Array.isArray(t)&&(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 xs:grid-cols-3",children:t.map(e=>{let{title:t,id:r,items:i}=e;return(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("h2",{className:"mb-4 text-lg font-medium",children:t}),Array.isArray(i)&&(0,n.jsx)("div",{className:"flex flex-col gap-3",children:i.map(e=>{let{title:t,id:r,url:i}=e;return t?(0,n.jsx)(B(),{legacyBehavior:!0,href:i,prefetch:!1,children:(0,n.jsx)("a",{className:"text-gray-500 nav-item",children:t})},r):null})},r)]},r)})}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,n.jsx)(em,{}),(0,n.jsx)("div",{className:"flex gap-x-7",children:ey.map(e=>{let{title:t,icon:r,url:i}=e;return"string"!=typeof i?null:(0,n.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 transition-colors duration-150 hover:text-bbx-spark",title:t,children:(0,n.jsx)("i",{className:"text-xl fa-brands ".concat(r)})},r)})})]})]})]})})}var ev=r(8126);function e_(){let{cookieSettings:e,cookiesLoaded:t}=(0,ev.A)();if("en-us"!==_.vV&&!e&&t){let e=u()(()=>r.e(7971).then(r.bind(r,27971)),{loadableGenerated:{webpack:()=>[27971]}});return(0,n.jsx)(e,{})}return null}function ew(){let{toasts:e,setToasts:t}=(0,y.Yf)();return(0,n.jsx)("div",{className:"fixed bottom-20 flex flex-col gap-y-2 right-4 transition-all z-50 ".concat(e.length>0?"":"pointer-events-none opacity-100 translate-y-5"),children:e.map(r=>(0,n.jsxs)("div",{className:"overflow-hidden shadow-lg shadow-bbx-spark/20 w-80 border border-gray-200",children:[(0,n.jsxs)("div",{className:"p-5 bg-white",children:[(0,n.jsxs)("div",{className:"flex justify-between items-start",children:[(0,n.jsx)("h3",{className:"font-serif text-xl mb-3",children:r.title}),(0,n.jsx)("button",{"aria-label":"Close Toast",type:"button",className:"p-1 -mt-1 ",onClick:()=>{t(e.filter(e=>e.key!==r.key))},children:(0,n.jsx)("i",{className:"fa-thin fa-times"})})]}),(0,n.jsx)("p",{className:"text-sm leading-5",children:r.message})]}),(0,n.jsx)("hr",{className:"h-1 bg-bbx-spark w-full border-none"})]},r.key))})}function ex(e){let{children:t}=e,{data:r}=(0,o.useSession)(),a=(0,l.useRouter)(),[s,u]=(0,i.useState)(!1),{brazeFunction:c,getBrazeExternalId:f}=(0,g.Ay)(),[d,h]=(0,i.useState)(0),p=(0,i.useMemo)(()=>({navHeight:d,setNavHeight:h}),[d,h]);(0,i.useEffect)(()=>{s||(async()=>{let e=await c();if(e){let l=f(r);if(l){var t,n,i,o,s;e.changeUser(l),((null==r||null==(n=r.user)||null==(t=n.customer)?void 0:t.email)||(null==r||null==(i=r.user)?void 0:i.email))&&(null==(s=e.getUser())||s.setEmail((null==(o=r.user.customer)?void 0:o.email)||r.user.email))}e.openSession(),u(!0),await m(e,a.pathname)}})()},[s,r,c,f,a.pathname]),(0,i.useEffect)(()=>{s&&(async()=>{let e=await c();e&&await m(e,a.pathname)})()},[a.pathname,s,c]);let m=async(e,t)=>{"/subscriptions/signature-box"===t?e.logCustomEvent("view_signature_box_page"):e.logCustomEvent("view_default_page")},y="/"===a.pathname,v="/get-started"===a.pathname,_="".concat(d,"px");return v?_="0px":y&&(_="40px"),(0,n.jsxs)(b.A.Provider,{value:p,children:[!v&&(0,n.jsx)(ed,{}),(0,n.jsx)("main",{style:{paddingTop:_},children:t}),!v&&(0,n.jsx)(eb,{}),(0,n.jsx)(ew,{}),!v&&(0,n.jsx)(e_,{})]})}var eS=r(8566),eE=r(58149);let ek={"en-us":"https://shopify-gtm-suite.getelevar.com/configs/18964df798cfd02706125dcf1aa6265e19ebf8c8/config.js","en-gb":"https://shopify-gtm-suite.getelevar.com/configs/809ac1e43333834171ba13a194bf371648e3f21e/config.js"},eA=!1,eM=async()=>
4{if(eA)return;let e={},t=ek[_.vV];if(!t)return void console.warn("[Elevar] No config found for language: ".concat(_.vV));try{let i=(await import(t)).default,o=e.proxyPath?e.proxyPath+i.script_src_custom_pages_proxied:i.script_src_custom_pages;if(o){var r,n;let t=await import(o);await t.handler(i,e),null==(n=window)||null==(r=n.ElevarInvalidateContext)||r.call(n),eA=!0}}catch(e){console.error("Failed to initialize Elevar:",e)}},eT=()=>{let e=(0,i.useRef)(!1);(0,i.useEffect)(()=>{e.current||(e.current=!0,eM())},[])};r(5508);var eO=r(27789);let eC=u()(()=>Promise.all([r.e(4529),r.e(269),r.e(2694)]).then(r.bind(r,42694)),{loadableGenerated:{webpack:()=>[42694]}}),eP=function(e){let{Component:t,pageProps:r}=e,s=(0,l.useRouter)();eT(),(0,i.useEffect)(()=>{(0,P.u$)();let e=e=>{p.Ay.capture("$pageview"),(0,P.u$)(),(0,P.L2)()};return s.events.on("routeChangeComplete",e),()=>{s.events.off("routeChangeComplete",e)}},[s]),(0,i.useEffect)(()=>{if("en-us"!==_.vV)return;let e="vnogbueqhx";e&&h.init(e)},[]);let u=s.pathname.startsWith("/profile"),c=(null==t?void 0:t.Layout)||null;return(0,n.jsx)(m.so,{client:p.Ay,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.FR,{titleTemplate:"%s | Birchbox",description:"Birchbox believes in easy to use products that work â and make you look and feel great. Birchbox's subscription service makes it easy to find those products.",defaultTitle:"Beauty Subscriptions | Birchbox",openGraph:{type:"website",locale:"en_US",url:"https://www.birchbox.com/",site_name:"Birchbox",title:"Birchbox: Beauty Subscriptions",description:"Birchbox believes in easy to use products that work â and make you look and feel great. Birchbox's subscription service makes it easy to find those products.",images:[{url:"https://cdn.raster.app/birchbox/51LU9DtGI8?ixlib=js-3.6.0&height=630&width=1200&compress=false&fm=jpg&q=100&s=9fac8b8273f553de8d76fe6a4413da4f",width:1200,height:630,alt:"Birchbox logo",type:"image/jpeg"}]},twitter:{handle:"@birchbox",site:"@site",cardType:"summary_large_image"}}),(0,n.jsxs)(o.SessionProvider,{session:null==r?void 0:r.session,refetchInterval:0,children:[(0,n.jsx)(f(),{strategy:"afterInteractive",src:"https://kit.fontawesome.com/755e5d98bb.js"}),"en-us"===_.vV&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(f(),{id:"ze-snippet",strategy:"lazyOnload",src:"https://static.zdassets.com/ekr/snippet.js?key=07748884-9a35-49cb-8d69-f1c20899ec59",onLoad:()=>{window.zE(()=>{window.zE.setHelpCenterSuggestions({search:"widget"})})},onError:()=>{console.log("Error loading Zendesk")}})}),(0,n.jsx)(eE.BE,{value:{revalidateOnFocus:!1,revalidateIfStale:!1},children:(0,n.jsx)(g.Ww,{children:(0,n.jsx)(y.tE,{children:(0,n.jsx)(T.ez,{children:(0,n.jsx)(ex,{children:(0,n.jsx)(eS.PrismicPreview,{repositoryName:eO.a,children:u?(0,n.jsx)(eC,{children:c?(0,n.jsx)(c,{children:(0,n.jsx)(t,{...r})}):(0,n.jsx)(t,{...r})}):(0,n.jsx)(t,{...r})})})})})})})]})]})})}},35973:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(10553),i=r(29999),o=r(58149),a=r(74380),s=r(78799),u=r(99742);function l(){let{cart:e}=(0,a.Ay)()||{},{data:t}=(0,n.useSession)(),{data:r,mutate:l}=(0,o.Ay)("/checkout-url",c,{fallbackData:"/",revalidateIfStale:!0,revalidateOnFocus:!0,revalidateOnMount:!0});async function c(){if(e)if(!t)return e.checkoutUrl;else{let t=null==e?void 0:e.checkoutUrl.split("/cart");if(2===t.length){let e=await fetch("/api/shopify/sign-in?redirectPath=/cart".concat(t[1])),r=(await e.json()).url,n="us-birchbox-staging.myshopify.com";if(r.includes(n)){let e={"en-us":"checkout.birchbox.com","es-es":"checkout.birchbox.es","en-gb":"checkout.birchbox.co.uk"}[s.vV];"production"!==u.env.VERCEL_ENV&&(e="us-birchbox-staging.myshopify.com"),r=r.replace(n,e)}return r}}return"/"}return(0,i.A)(()=>{l()},[t,e]),r}},36595:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n;let{product:i,price:o,shippingMethod:a,quantity:s=1,productBreadcrumb:u=[],isSubscriptionBox:l=!1}=e,c=(null==u?void 0:u.length)?null==(t=u[u.length-1])?void 0:t.title:"",f=(null==u?void 0:u.length)?null==(r=u[0])?void 0:r.title:"",d="shop";return l&&(c="membership",f="subscriptions",d="subscription"),{id:(null==i?void 0:i.id)?null==(n=i.id.split("gid://shopify/Product/"))?void 0:n[1]:void 0,name:null==i?void 0:i.name,price:o?parseFloat(o):void 0,brand:null==i?void 0:i.vendor,category:c,dimension3:a,dimension4:d,dimension
45:f,quantity:s}}},36710:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(94772),i=r(85391),o=r(93028);async function a(e){let t=e.map(e=>e.id),r=(0,n.A)();if(!r)return null;let{cartLinesRemove:a}=await (0,i.Ay)({query:o.A,variables:{cartId:r,lineIds:t}});return a}},37385:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(51541);t.imgixLoader=e=>{let t={fit:new URL(e.src).searchParams.get("fit")||"max",w:e.width,h:void 0};return e.quality&&(t.q=e.quality),n.buildURL(e.src,t)}},37621:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},37959:(e,t)=>{"use strict";var r=Object.defineProperty,n=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,r)=>n(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class o{constructor(e,t){i(this,"asset"),i(this,"config"),i(this,"originalField"),this.config=e,this.originalField=t}}t.PrismicMigrationAsset=o},37990:(e,t,r)=>{var n=r(99838),i=r(96777),o=r(85403),a=r(72773);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},38870:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}
4),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},39420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(72687),i=r(63732),o=r(37876),a=i._(r(14232)),s=n._(r(98477)),u=n._(r(29269)),l=r(23408),c=r(89161),f=r(9263);r(26201);let d=r(242),h=n._(r(75540)),p=r(89203),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let b=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:u,decoding:l,className:c,style:f,fetchPriority:d,placeholder:h,loading:m,unoptimized:b,fill:v,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:S,sizesInput:E,onLoad:k,onError:A,...M}=e,T=(0,a.useCallback)(e=>{e&&(A&&(e.src=e.src),e.complete&&g(e,h,_,w,x,b,E))},[r,h,_,w,x,A,b,E]),O=(0,p.useMergedRef)(t,T);return(0,o.jsx)("img",{...M,...y(d),loading:m,width:u,height:s,decoding:l,"data-nimg":v?"fill":"1",className:c,style:f,sizes:i,srcSet:n,src:r,ref:O,onLoad:e=>{g(e.currentTarget,h,_,w,x,b,E)},onError:e=>{S(!0),"empty"!==h&&x(!0),A&&A(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=!(0,a.useContext)(d.RouterContext),n=(0,a.useContext)(f.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:s,onLoadingComplete:u}=e,p=(0,a.useRef)(s);(0,a.useEffect)(()=>{p.current=s},[s]);let g=(0,a.useRef)(u);(0,a.useEffect)(()=>{g.current=u},[u]);let[y,_]=(0,a.useState)(!1),[w,x]=(0,a.useState)(!1),{props:S,meta:E}=(0,l.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b,{...S,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:_,setShowAltText:x,sizesInput:e.sizes,ref:t}),E.priority?(0,o.jsx)(v,{isAppRouter:r,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
4dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39895:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6285);let i=e=>(null==e?void 0:e.url)?e.url:(null==e?void 0:e.uid)?(null==e?void 0:e.type)==="article"?"".concat(n.S,"/article/").concat(e.uid):"/".concat(e.uid):"/"},40090:(e,t,r)=>{"use strict";var n=r(27496),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e&&n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&(a[t]&&i.indexOf(t)>=0||("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r))}),a}},40172:e=>{e.exports=null},40316:(e,t)=>{"use strict";function r(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!=(t=e)?t:r),i=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${i}`;return{origin:n.origin,host:n.host,path:i,base:o,toString:()=>o}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},40593:(e,t,r)=>{"use strict";r.d(t,{_m:()=>a,Rt:()=>s});let n=r(48863).p;var i=r(78799),o=r(27789);async function a(e){return(0,o.U)({previewData:e}).getSingle("header_contents",{lang:i.vV}).catch(e=>(console.log("Error fetching header_contents:",e),null))}function s(e){let{topicID:t,after:r,withBodyContent:a=!0,previewData:s}=e;return(0,o.U)({previewData:s}).getByType("article",{graphQuery:"{\n article {\n hero_image\n og_image\n description\n intro\n title\n\n author {\n ...on person {\n name\n photo\n }\n }\n\n topics {\n topic {\n ...on topic {\n title\n }\n }\n }\n\n ".concat(a?"body {\n ...on full_width_text {\n non-repeat {\n ...non-repeatFields\n }\n repeat {\n ...repeatFields\n }\n }\n }":"","\n }\n }"),pageSize:50,predicates:t&&[n.at("my.article.topics.topic",t)],orderings:["my.article.date desc"],after:r,lang:i.vV})}},40595:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(41180);t.setPreviewData=function(e){let{req:t,res:r}=e,i=t.query.token||t.cookies[n.cookie.preview];i&&r.setPreviewData({ref:i})}},40864:(e,t,r)=>{"use strict";var n=r(27496);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},41156:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="7.120.3"},41180:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15845),i=r(62070),o=r(15568),a=r(20087),s=r(58055),u=r(99996),l=r(21196),c=r(72460),f=r(77692),d=r(74935),h=r(75385),p=r(96442),m=r(31943),g=r(88181),y=r(35043),b=r(73549),v=r(76880),_=r(88784),w=r(11304),x=r(77098),S=r(48413),E=r(14183),k=r(42311),A=r(41211),M=r(74975),T=r(15132),O=r(66182),C=r(68779),P=r(24679),R=r(2743),j=r(90104),I=r(1474),N=r(9116),L=r(98678),D=r(41403),B=r(73966),F=r(75707),U=r(82431),q=r(71118),$=r(51456),z=r(31142),V=r(12368),H=r(37959),G=r(48371),W=o.filter,J=i.mapSliceZone,K=n.RichTextNodeType;t.RichTextNodeType=n.RichTextNodeType,t.mapSliceZone=i.mapSliceZone,t.filter=o.filter,t.createClient=a.createClient,t.Client=s.Client,t.createWriteClient=u.createWriteClient,t.WriteClient=l.WriteClient,t.createMigration=c.createMigration,t.Migration=f.Migration,t.getRepositoryEndpoint=d.getRepositoryEndpoint,t.getRepositoryName=h.getRepositoryName,t.getGraphQLEndpoint=p.getGraphQLEndpoint,t.isRepositoryName=m.isRepositoryName,t.isRepositoryEndpoint=g.isRepositoryEndpoint,t.buildQueryURL=y.buildQueryURL,t.getToolbarSrc=b.getToolbarSrc,t.cookie=v,t.asDate=_.asDate,t.asLink=w.asLink,t.asLinkAttrs=x.asLinkAttrs,t.asText=S.asText,t.asHTML=E.asHTML,t.asImageSrc=k.asImageSrc,t.asImageWidthSrcSet=A.asImageWidthSrcSet,t.asImagePixelDensitySrcSet=M.asImagePixelDensitySrcSet,t.isFilled=T,t.documentToLinkField=O.documentToLinkField,t.PrismicError=C.PrismicError,t.ForbiddenError=P.ForbiddenError,t.NotFoundError=R.NotFoundError,t.RefNotFoundError=j.RefNotFoundError,t.RefExpiredError=I.RefExpiredError,t.PreviewTokenExpiredError=N.PreviewTokenExpiredError,t.ParsingError=L.ParsingError,t.RepositoryNotFoundError=D.RepositoryNotFoundError,t.LinkType=B.LinkType,t.OEmbedType=F.OEmbedType,t.CustomTypeModelFieldType=U.CustomTypeModelFieldType,t.CustomTypeModelLinkSelectType=q.CustomTypeModelLinkSelectType,t.CustomTypeModelSliceType=$.CustomTypeModelSliceType,t.CustomTypeModelSliceDisplay=z.CustomTypeModelSliceDisplay,t.PrismicMigrationDocument=V.PrismicMigrationDocument,t.PrismicMigrationAsset=H.PrismicMigrationAsset,t.WebhookType=G.WebhookType,t.Element=K,t.predicate=W,t.unstable_mapSliceZone=J},41211:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73414),i=r(15132),o=[640,828,1200,2048,3840];t.asImageWidthSrcSet=(e,t={})=>
4{if(!(e&&i.imageThumbnail(e)))return null;{let{widths:r=o,...i}=t,{url:a,dimensions:s,id:u,alt:l,copyright:c,edit:f,...d}=e,h=Object.values(d);return"thumbnails"===r&&h.length<1&&(r=o),{src:n.buildURL(a,i),srcset:"thumbnails"===r?[n.buildWidthSrcSet(a,{...i,widths:[s.width]}),...h.map(e=>n.buildWidthSrcSet(e.url,{...i,widths:[e.dimensions.width]}))].join(", "):n.buildWidthSrcSet(e.url,{...i,widths:r})}}}},41403:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(2743);class i extends n.NotFoundError{}t.RepositoryNotFoundError=i},41465:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.minifyGraphQLQuery=e=>e.replace(/(\n| )*( |{|})(\n| )*/gm,(e,t,r)=>r)},41760:e=>{"use strict";e.exports=Math.max},42053:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37959),i=r(12368),o=r(73966),a=r(15845),s=r(67607),u=e=>e instanceof i.PrismicMigrationDocument||s.prismicDocument(e)||"object"==typeof e&&null!==e&&"link_type"in e&&e.link_type===o.LinkType.Document&&"id"in e&&(u(e.id)||"function"==typeof e.id),l=e=>e instanceof n.PrismicMigrationAsset||"object"==typeof e&&null!==e&&"id"in e&&Object.values(e).every(e=>e instanceof n.PrismicMigrationAsset),c=e=>"object"==typeof e&&null!==e&&"id"in e&&e.id instanceof n.PrismicMigrationAsset&&"link_type"in e&&e.link_type===o.LinkType.Media,f=e=>"object"==typeof e&&null!==e&&"id"in e&&e.id instanceof n.PrismicMigrationAsset&&"type"in e&&e.type===a.RichTextNodeType.image;t.contentRelationship=u,t.image=l,t.linkToMedia=c,t.rtImageNode=f},42265:(e,t,r)=>{"use strict";var n=r(17753),i=r(90832);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},42311:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73414),i=r(15132);t.asImageSrc=(e,t={})=>e&&i.imageThumbnail(e)?n.buildURL(e.url,t):null},42493:(e,t,r)=>{"use strict";
4var n=r(27496),i=r(17424),o=r(74371),a=r(90640),s=r(52597),u=r(42265),l=r(27437),c=l.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r,n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var u=[];if(this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)}),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,i),f=f.concat(u),r=Promise.resolve(t);f.length;)r=r.then(f.shift(),f.shift());return r}for(var d=t;i.length;){var h=i.shift(),p=i.shift();try{d=h(d)}catch(e){p(e);break}}try{r=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)r=r.then(u.shift(),u.shift());return r},f.prototype.getUri=function(e){return i(u((e=s(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)}),e.exports=f},42504:e=>{"use strict";e.exports=Math.pow},42634:()=>{},43081:(e,t,r)=>{var n=r(84096)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},45105:(e,t,r)=>{e.exports=r(36758)},45525:(e,t,r)=>{"use strict";var n,i=r(52468),o=r(29351),a=r(5391),s=r(55502),u=r(72130),l=r(71742),c=r(65865),f=r(73305),d=r(2002),h=r(2496),p=r(41760),m=r(54366),g=r(42504),y=r(87962),b=r(80611),v=Function,_=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(10221),x=r(98857),S=function(){throw new c},E=w?function(){try{return arguments.callee,S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,k=r(95295)(),A=r(34816),M=r(61664),T=r(86558),O=r(71938),C=r(66958),P={},R="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
4IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":E,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":M,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(A)try{null.error}catch(e){var I=A(A(e));j["%Error.prototype%"]=I}var N=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return j[t]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=r(28419),B=r(71355),F=D.call(C,Array.prototype.concat),U=D.call(O,Array.prototype.splice),q=D.call(C,String.prototype.replace),$=D.call(C,String.prototype.slice),z=D.call(C,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,G=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return q(e,V,function(e,t,r,i){n[n.length]=r?q(i,H,"$1"):t||e}),n},W=function(e,t){var r,n=e;if(B(L,n)&&(n="%"+(r=L[n])[0]+"%"),B(j,n)){var i=j[n];if(i===P&&(i=N(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],U(r,F([0,1],u)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],p=$(h,0,1),m=$(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),n+="."+h,B(j,o="%"+n+"%"))a=j[o];
4else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var g=w(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=B(a,h),a=a[h];d&&!s&&(j[o]=a)}}return a}},46462:(e,t,r)=>{"use strict";r.d(t,{$:()=>j});var n=r(37876),i=r(14232);let o=e=>null!=e,a=e=>!!o(e)&&(1===e.length&&"text"in e[0]?!!e[0].text:!!e.length),s=e=>o(e)&&("id"in e||"url"in e),u=e=>o(u)&&!!e,l={listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",span:"span"},c={[l.listItem]:"listItem",[l.oListItem]:"oListItem",[l.list]:"list",[l.oList]:"oList"},f=e=>(t,r,n,i,o)=>{let a=e[c[t]||t];if(a)return a({type:t,node:r,text:n,children:i,key:o})},d=(...e)=>(...t)=>{for(let r=0;r<e.length;r++){let n=e[r];if(n){let e=n(...t);if(null!=e)return e}}},h=()=>(++h.i).toString();h.i=0;let p=e=>{let t=y(e),r=[];for(let e=0;e<t.length;e++)r.push(b(t[e]));return{key:h(),children:r}},m=(e,t=[])=>({key:h(),type:e.type,text:"text"in e?e.text:void 0,node:e,children:t}),g=e=>m({type:l.span,text:e,spans:[]}),y=e=>{let t=e.slice(0);for(let e=0;e<t.length;e++){let r=t[e];if(r.type===l.listItem||r.type===l.oListItem){let n=[r];for(;t[e+1]&&t[e+1].type===r.type;)n.push(t[e+1]),t.splice(e,1);r.type===l.listItem?t[e]={type:l.list,items:n}:t[e]={type:l.oList,items:n}}}return t},b=e=>{if("text"in e)return m(e,v(e.spans,e));if("items"in e){let t=[];for(let r=0;r<e.items.length;r++)t.push(b(e.items[r]));return m(e,t)}return m(e)},v=(e,t,r)=>{if(!e.length)return[g(t.text)];let n=e.slice(0);n.sort((e,t)=>e.start-t.start||t.end-e.end);let i=[];for(let e=0;e<n.length;e++){let o=n[e],a=r&&r.start||0,s=o.start-a,u=o.end-a,l=t.text.slice(s,u),c=[];for(let t=e;t<n.length;t++){let e=n[t];e!==o&&(e.start>=o.start&&e.end<=o.end?(c.push(e),n.splice(t,1),t--):e.start<o.end&&e.end>o.start&&(c.push({...e,end:o.end}),n[t]={...e,start:o.end}))}0===e&&s>0&&i.push(g(t.text.slice(0,s)));let f={...o,text:l};i.push(m(f,v(c,{...t,text:l},o))),u<t.text.length&&i.push(g(t.text.slice(u,n[e+1]?n[e+1].start-a:void 0)))}return i},_=(e,t)=>w(p(e).children,t),w=(e,t)=>{let r=[];for(let n=0;n<e.length;n++){let i=e[n],o=t(i.type,i.node,i.text,w(i.children,t),i.key);null!=o&&r.push(o)}return r};var x=r(50967);let S="3.2.1";function E(e){return`https://prismic.dev/msg/react/v${S}/${e}`}let k=e=>{let t=/^(\/(?!\/)|#)/.test(e),r=!t&&!/^https?:\/\//.test(e);return t&&!r};var A=r(96096);let M=(e,t={})=>{if(e&&("link_type"in e?s(e):e)){let r="target"in e?e.target:void 0,n=(0,A.z)(e,t.linkResolver),i=null==n?void 0:n,o="string"==typeof i&&!k(i),a=t.rel?t.rel({href:i,isExternal:o,target:r}):o?"noreferrer":void 0;return{href:i,target:r,rel:null==a?void 0:a}}return{}},T="a",O=(0,i.forwardRef)(function(e,t){let{field:r,document:i,linkResolver:o,internalComponent:a,externalComponent:s,children:u,...l}=e;if(x.A)if(r)if(r.link_type)("text"in r?Object.keys(r).length>2:Object.keys(r).length>1)&&!("url"in r||"uid"in r||"id"in r)&&console.warn(`[PrismicLink] The provided field is missing required properties to properly render a link. The link may not render correctly. For more details, see ${E("missing-link-properties")}`,r);else throw console.error(`[PrismicLink] This "field" prop value caused an error to be thrown. 5`,r),Error(`[PrismicLink] The provided field is missing required properties to properly render a link. The link will not render. For more details, see ${E("missing-link-properties")}`);else i&&!("url"in i||"id"in i)&&console.warn(`[PrismicLink] The provided document is missing required properties to properly render a link. The link may not render correctly. For more details, see ${E("missing-link-properties")}`,i);let{href:c,rel:f,...d}=M(r??i,{linkResolver:o,rel:"function"==typeof l.rel?l.rel:void 0}),h=f;"rel"in l&&"function"!=typeof l.rel&&(h=l.rel);let p=("href"in l?l.href:c)||"",m=a||T,g=s||T,y=p?C(p)?m:g:m;return(0,n.jsx)(y,{ref:t,...d,...l,href:p,rel:h,children:"children"in e?u:null==r?void 0:r.text})});function C(e){let t=/^(\/(?!\/)|#)/.test(e),r=!t&&!/^https?:\/\//.test(e);return t&&!r}let P=e=>{if("direction"in e&&"rtl"===e.direction)return"rtl"},R=e=>f({heading1:({node:e,children:t,key:r})=>(0,n.jsx)("h1",{dir:P(e),children:t},r),heading2:({node:e,children:t,key:r})=>(0,n.jsx)("h2",{dir:P(e),children:t},r),heading3:({node:e,children:t,key:r})=>(0,n.jsx)("h3",{dir:P(e),children:t},r),heading4:({node:e,children:t,key:r})=>(0,n.jsx)("h4",{dir:P(e),children:t},r),heading5:({node:e,children:t,key:r})=>(0,n.jsx)("h5",{dir:P(e),children:t},r),heading6:({node:e,children:t,key:r})=>(0,n.jsx)("h6",{dir:P(e),children:t},r),paragraph:({node:e,children:t,key:r})=>(0,n.jsx)("p",{dir:P(e),children:t}
5,r),preformatted:({node:e,key:t})=>(0,n.jsx)("pre",{children:e.text},t),strong:({children:e,key:t})=>(0,n.jsx)("strong",{children:e},t),em:({children:e,key:t})=>(0,n.jsx)("em",{children:e},t),listItem:({node:e,children:t,key:r})=>(0,n.jsx)("li",{dir:P(e),children:t},r),oListItem:({node:e,children:t,key:r})=>(0,n.jsx)("li",{dir:P(e),children:t},r),list:({children:e,key:t})=>(0,n.jsx)("ul",{children:e},t),oList:({children:e,key:t})=>(0,n.jsx)("ol",{children:e},t),image:({node:t,key:r})=>{let i=(0,n.jsx)("img",{src:t.url,alt:t.alt??void 0,"data-copyright":t.copyright?t.copyright:void 0});return(0,n.jsx)("p",{className:"block-img",children:t.linkTo?(0,n.jsx)(O,{linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,field:t.linkTo,children:i}):i},r)},embed:({node:e,key:t})=>(0,n.jsx)("div",{"data-oembed":e.oembed.embed_url,"data-oembed-type":e.oembed.type,"data-oembed-provider":e.oembed.provider_name,dangerouslySetInnerHTML:{__html:e.oembed.html??""}},t),hyperlink:({node:t,children:r,key:i})=>(0,n.jsx)(O,{field:t.data,linkResolver:e.linkResolver,internalComponent:e.internalLinkComponent,externalComponent:e.externalLinkComponent,children:r},i),label:({node:e,children:t,key:r})=>(0,n.jsx)("span",{className:e.data.label,children:t},r),span:({text:e,key:t})=>{let r=[],o=0;for(let t of e.split("\n"))o>0&&r.push((0,n.jsx)("br",{},`${o}__break`)),r.push((0,n.jsx)(i.Fragment,{children:t},`${o}__line`)),o++;return(0,n.jsx)(i.Fragment,{children:r},t)}}),j=e=>{let{linkResolver:t,field:r,fallback:o,components:s,externalLinkComponent:u,internalLinkComponent:l,...c}=e;if(x.A&&"className"in c&&console.warn(`[PrismicRichText] className cannot be passed to <PrismicRichText> since it renders an array without a wrapping component. For more details, see ${E("classname-is-not-a-valid-prop")}.`,r),!a(r))return null!=o?(0,n.jsx)(n.Fragment,{children:o}):null;let h=d("object"==typeof s?f(s):s,R({linkResolver:t,internalLinkComponent:l,externalLinkComponent:u})),p=_(r,(e,t,r,n,o)=>{let a=h(e,t,r,n,o);return(0,i.isValidElement)(a)&&null==a.key?(0,i.cloneElement)(a,{key:o}):a});return p?(0,n.jsx)(n.Fragment,{children:p}):null!=o?(0,n.jsx)(n.Fragment,{children:o}):null}},46968:(e,t,r)=>{var n=r(94147);function i(){var t,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(e,i,o,a){var s=Object.create((i&&i.prototype instanceof c?i:c).prototype);return n(s,"_invoke",function(e,n,i){var o,a,s,u=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return o=e,a=0,s=t,d.n=r,l}};function h(e,n){for(a=e,s=n,r=0;!f&&u&&!i&&r<c.length;r++){var i,o=c[r],h=d.p,p=o[2];e>3?(i=p===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=e<2&&h<o[1])?(a=0,d.v=n,d.n=o[1]):h<p&&(i=e<3||o[0]>n||n>p)&&(o[4]=e,o[5]=n,d.n=p,a=0))}if(i||e>1)return l;throw f=!0,n}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),a=c,s=p;(r=a<2?t:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(u=2,o){if(a||(i="next"),r=o[i]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=o.return)&&r.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((r=(f=d.n<0)?s:e.call(n,d))!==l)break}catch(e){o=t,a=1,s=e}finally{u=1}}return{value:r,done:f}}}(e,o,a),!0),s}var l={};function c(){}function f(){}function d(){}r=Object.getPrototypeOf;var h=d.prototype=c.prototype=Object.create([][a]?r(r([][a]())):(n(r={},a,function(){return this}),r));function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return f.prototype=d,n(h,"constructor",d),n(d,"constructor",f),f.displayName="GeneratorFunction",n(d,s,"GeneratorFunction"),n(h),n(h,s,"Generator"),n(h,a,function(){return this}),n(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:u,m:p}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},47418:(e,t,r)=>{"use strict";var n=r(27496);function i(e,t,r,n,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}n.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};
5["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){a[e]={value:e}}),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,r,a,s,u){var l=Object.create(o);return n.toFlatObject(e,l,function(e){return e!==Error.prototype}),i.call(l,e.message,t,r,a,s),l.name=e.name,u&&Object.assign(l,u),l},e.exports=i},48230:(e,t,r)=>{e.exports=r(34009)},48371:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.WebhookType={APIUpdate:"api-update",TestTrigger:"test-trigger"}},48413:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(83031);t.asText=(e,...t)=>{if(!e)return null;{let r,[i]=t;return r="string"==typeof i?{separator:i}:{...i},n.asText(e,r.separator)}}},48863:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});let n=e=>Array.isArray(e)?`[${e.map(n).join(", ")}]`:"string"==typeof e?`"${e}"`:e instanceof Date?`${e.getTime()}`:`${e}`,i=e=>(t,...r)=>{let i=r.map(n).join(", "),o=t&&r.length?", ":"";return`[${e}(${t}${o}${i})]`},o=e=>{let t=i(e);return e=>t(e)},a=e=>{let t=i(e);return(...e)=>t("",...e)},s={at:i("at"),not:i("not"),any:i("any"),in:i("in"),fulltext:i("fulltext"),has:o("has"),missing:o("missing"),similar:a("similar"),geopointNear:i("geopoint.near"),numberLessThan:i("number.lt"),numberGreaterThan:i("number.gt"),numberInRange:i("number.inRange"),dateAfter:i("date.after"),dateBefore:i("date.before"),dateBetween:i("date.between"),dateDayOfMonth:i("date.day-of-month"),dateDayOfMonthAfter:i("date.day-of-month-after"),dateDayOfMonthBefore:i("date.day-of-month-before"),dateDayOfWeek:i("date.day-of-week"),dateDayOfWeekAfter:i("date.day-of-week-after"),dateDayOfWeekBefore:i("date.day-of-week-before"),dateMonth:i("date.month"),dateMonthAfter:i("date.month-after"),dateMonthBefore:i("date.month-before"),dateYear:i("date.year"),dateHour:i("date.hour"),dateHourAfter:i("date.hour-after"),dateHourBefore:i("date.hour-before")}},49018:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(94772),i=r(85391),o=r(74482),a=r(4650);async function s(e){let{id:t,variantId:r,quantity:s,sellingPlanId:u}=e,l=[{id:t,merchandiseId:r,quantity:s,sellingPlanId:u}],c=(0,n.A)();if(!c)return null;let{cartLinesUpdate:f}=await (0,i.Ay)({query:o.A,variables:{cartId:c,lines:l}});return window.onwardApp&&window.onwardClient&&window.onwardApp.cartChanged(a.U.parseCart(f.cart)),f}},50466:(e,t,r)=>{var n=r(46968),i=r(56202);e.exports=function(e,t,r,o,a){return new i(n().w(e,t,r,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},50496:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},50967:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=!1},51211:e=>{"use strict";e.exports=JSON.parse('{"currency":{"symbol":"$"},"nav":{"BestSellers":"Best Sellers","Featured":"Featured","getBoxCTA":"Get Birchbox"},"profileNav":{"home":"Home","favorites":"Favorites","points":"Points","Loyalty":"Loyalty","orders":"Orders","yourAccount":"Your Account"},"accountLayout":{"updatingWebsite":"We\'re currently updating our website. We\'ll finish updating your profile information soon."},"loyaltyPage":{"Months":"Months","ViewExclusiveContent":"View Exclusive Content","YourStatus":"Your status"},"footer":{"enterEmailText":"Stay in touch for deals, news, and more!","cta":"Submit","placeholder":"Enter your email","privacy":["Yes, I\'d like to sign up for messages and be first to know about offers personalized just for me. "],"privacyLink":"Privacy Policy","socialUrls":{"Instagram":"https://www.instagram.com/birchbox","TikTok":"https://www.tiktok.com/@birchbox","Pinterest":"https://www.pinterest.com/birchbox","Facebook":"https://www.facebook.com/Birchbox/","YouTube":"https://www.youtube.com/Birchbox","Twitter":"https://twitter.com/birchbox"}},"termsHref":"/terms-conditions","privacyHref":"/privacy-policy","survey":{"skip":"Skip","back":"Previous","next":"NEXT","finish":"Finish"},"curate":{"animationTitle":"Your first box is in the works","ctaTitle":"You\'re almost there!","animationDescription":"Sit tight while we curate beauty just for you","ctaDescription":"Checkout and begin your Birchbox journey","checkoutCta":"Checkout"}}')},51232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(37876),i=r(48230),o=r.n(i),a=r(39895);function s(e){let{link:t,label:r,className:i="",onClick:s}=e;return(null==t?void 0:t.link_type)==="Web"&&t.url&&r?(0,n.jsx)("a",{href:t.url,target:t.target,rel:(null==t?void 0:t.target)==="_blank"?"noopener noreferrer":void 0,className:i,onClick:s,children:r}):(null==t?void 0:t.uid)?(0,n.jsx)(o(),{legacyBehavior:!0,href:(0,a.A)(t),children:(0,n.jsx)("a",{className:i,onClick:s,children:r})}):null}},51298:(e,t,r)=>{"use strict";r.d(t,{T2:()=>s,XW:()=>o,xg:()=>a});var n,i=r(1978);function o(e){return new s(t=>{t(e)})}function a(e){return new s((t,r)=>{r(e)})}
5!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i)return void r(n);t(n)})})}__init(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===n.PENDING){if((0,i.Qg)(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)})}}}},51456:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CustomTypeModelSliceType={Slice:"Slice",SharedSlice:"SharedSlice"}},51541:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(22152),i=r(74714),o=r(1051),a=r(4959);t.Client=n.Client,t.buildURL=i.buildURL,t.buildWidthSrcSet=o.buildWidthSrcSet,t.buildPixelDensitySrcSet=a.buildPixelDensitySrcSet},51715:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15568),i=r(65436);t.someTagsFilter=e=>n.filter.any("document.tags",i.castArray(e))},51725:(e,t,r)=>{"use strict";function n(e){return Object.entries(e.estimatedCost).forEach(e=>{let[,t]=e;t&&t.amount&&t.currencyCode&&(t.amount=Number(t.amount).toFixed(2))}),{id:e.id,estimatedCost:e.estimatedCost,checkoutUrl:e.checkoutUrl,lines:e.lines,discountCodes:e.discountCodes,appliedGiftCards:e.appliedGiftCards||[],discountAllocations:e.discountAllocations||[]}}function i(e){return e.node.estimatedCost.subtotalAmount.amount=Number(e.node.estimatedCost.subtotalAmount.amount).toFixed(2),{...e.node,image:e.node.merchandise.image}}r.d(t,{CV:()=>n,Z8:()=>i,ID:()=>b,oi:()=>w,S4:()=>v,hv:()=>S,Ts:()=>g,RT:()=>f});let o=e=>e.quantityAvailable>0,a=(e,t,r,n)=>{let{edges:i}=e;return null==i?void 0:i.map((e,i)=>{let{node:o}=e;return u(o,"".concat(null!=n?n:""," ").concat(null!=t?t:""," ").concat(s(r,o.id)," ").concat(i+1).trim())})},s=(e,t)=>{if(!e)return"";let r=null==e?void 0:e.find(e=>{var r;return(null==e||null==(r=e.image)?void 0:r.id)===t});return(null==r?void 0:r.title)||""},u=(e,t)=>({id:e.id,url:e.url,altText:t||e.altText,width:e.width,height:e.height}),l=e=>parseFloat(e).toFixed(2),c=[{name:"Cruelty-Free",icon:"rabbit"},{name:"Brightening",icon:"sun"},{name:"Clean",icon:"soap"},{name:"Aromatherapy",icon:"eye-dropper-half"},{name:"Long lasting",icon:"timer"},{name:"Anti-Aging",icon:"clock-rotate-left"},{name:"Refreshing",icon:"sparkles"},{name:"Exclusive",icon:"stars"},{name:"Color Enhancing",icon:"palette"},{name:"Sun Protection",icon:"eclipse"},{name:"Under-Eye Brightening",icon:"eye"},{name:"Detangling",icon:"wave-triangle"},{name:"Smoothing",icon:"horizontal-rule"},{name:"Shine",icon:"lightbulb-on"},{name:"Exfoliating",icon:"soap"},{name:"Gluten Free",icon:"wheat-slash"},{name:"Waterproof / Water resistant",icon:"water-arrow-down"},{name:"Paraben Free",icon:"vial-circle-check"},{name:"Curling",icon:"user-hair-buns"},{name:"Volumizing",icon:"balloon"},{name:"Vegan",icon:"leaf"},{name:"Sulfate Free",icon:"flask"},{name:"Silicone Free",icon:"flask"},{name:"Phthalate Free",icon:"flask"},{name:"Hydrating",icon:"droplet"},{name:"Moisturizing",icon:"droplet"},{name:"Oil Free",icon:"droplet-slash"},{name:"Oil-Free",icon:"droplet-slash"},{name:"Light",icon:"feather-pointed"},{name:"Sensitive Skin",icon:"spa"},{name:"All Skin",icon:"people"},{name:"Not Tested On Animals",icon:"sheep"},{name:"More Volume",icon:"arrows-maximize"},{name:"Lengthens",icon:"arrows-left-right"},{name:"Lengthening",icon:"arrows-left-right"},{name:"Volumizing",icon:"arrows-maximize"},{name:"Full",icon:"arrows-maximize"},{name:"Pore Minimizing",icon:"circle-dashed"}],f=(e,t)=>{var r,n;let i=e.variants?d(e.variants.nodes,null==e||null==(r=e.brand)?void 0:r.value,null==e?void 0:e.title,{shouldOmitHiddenVariants:(null==t?void 0:t.shouldOmitHiddenVariants)||!1}):[];
5return{id:e.id,name:e.title,vendor:e.vendor,path:"/".concat(e.handle),slug:e.handle.replace(/^\/+|\/+$/g,""),priceRange:e.priceRange,options:e.options,images:a(e.images,e.title,e.variants.nodes,null==(n=e.brand)?void 0:n.value),collections:e.collections.nodes,variants:i,description:e.description,descriptionHtml:e.descriptionHtml,tags:e.tags,availableForSale:e.availableForSale,price:{amount:l(e.priceRange.minVariantPrice.amount),currencyCode:e.priceRange.minVariantPrice.currencyCode},type:e.productType,requiresSellingPlan:e.requiresSellingPlan,videos:h(e.videos),sellingPlanGroups:p(e.sellingPlanGroups),ingredients:m(e.ingredients),notForSale:g(e.notForSale),howToUse:g(e.howToUse),brand:g(e.brand),highlights:y(e.highlights),avgRating:g(e.avgRating),numReviews:g(e.numReviews),promotionalDescription:g(e.promotionalDescription)}},d=(e,t,r,n)=>null==e?void 0:e.map(e=>{var n,i,o,a,s,c,f;return{id:e.id,name:e.title,title:e.title,sku:null!=(c=e.sku)?c:e.id,price:{amount:l(e.priceV2.amount),currencyCode:e.priceV2.currencyCode},compareAtPrice:e.compareAtPriceV2?{amount:l(e.compareAtPriceV2.amount),currencyCode:e.compareAtPriceV2.currencyCode}:null,listPrice:+((null==(n=e.compareAtPriceV2)?void 0:n.amount)||0),requiresShipping:e.requiresShipping,availableForSale:e.availableForSale,quantityAvailable:e.quantityAvailable,selectedOptions:e.selectedOptions,image:e.image?u(e.image,null==(i=(o="".concat(null!=t?t:""," ").concat(null!=r?r:""," ").concat(null!=(f=e.title)?f:""," swatch")).trim)?void 0:i.call(o)):null,weight:e.weight,weightUnit:e.weightUnit,priceV2:{amount:l(e.priceV2.amount),currencyCode:e.priceV2.currencyCode},isSample:(null==(a=e.isSample)?void 0:a.value.toLowerCase().trim())==="true",hide:(null==(s=e.hide)?void 0:s.value.toLowerCase().trim())==="true",swatch:g(e.swatch)}}).filter(e=>{if(null==n?void 0:n.shouldOmitHiddenVariants){var t;if(0>=Number(null==e||null==(t=e.price)?void 0:t.amount))return!1}return!!e}),h=e=>{let{nodes:t}=e,r=t.filter(e=>(null==e?void 0:e.id)!==void 0);return r.length?r:null},p=e=>{let{edges:t}=e;return t.map(e=>{let{node:t}=e,{sellingPlans:r,name:n}=t,{edges:i}=r;return{sellingPlans:i.map(e=>{let{node:t}=e;return t}),name:n}})},m=e=>{let t=g(e);try{return JSON.parse(t.replace(/'/g,'"'))}catch(e){return[]}},g=e=>{if(e){if("json"===e.type)try{return JSON.parse(e.value)}catch(e){}else if("number_integer"===e.type)return parseInt(e.value,10);else if("number_decimal"===e.type)return parseFloat(e.value);else if("file_reference"===e.type)return e.reference?e.reference:null;else if("boolean"===e.type)return"true"===e.value.toLowerCase().trim();return e.value}return e},y=e=>e?g(e).map(e=>{var t;return{name:e,icon:(null==(t=c.find(t=>{let{name:r}=t;return r.toLowerCase()===e.toLowerCase()}))?void 0:t.icon)||"mortar-pestle"}}):null,b=e=>({id:e.id,name:e.title,handle:e.handle,descriptionHtml:e.descriptionHtml,image:e.image,seo:e.seo}),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onlyFullSizeProducts:!0,onlyWithStock:!0};return e.reduce((e,r)=>{let n=_(r,t);return n?[...e,n]:e},[])},_=function(e){var t,r,n,i,s,u,l;let{node:c}=e,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onlyFullSizeProducts:!0,onlyWithStock:!0};if(!c)return null;let d=!f.onlyWithStock||(null==c?void 0:c.variants.nodes.some(o));return{id:c.id,name:c.title,handle:c.handle,vendor:c.vendor,type:c.productType,images:a(c.images,c.title),price:(null==(n=c.variants.nodes.filter(e=>Number(e.priceV2.amount)>0))||null==(r=n.sort((e,t)=>{var r,n;return Number(null==e||null==(r=e.priceV2)?void 0:r.amount)-Number(null==t||null==(n=t.priceV2)?void 0:n.amount)}))||null==(t=r[0])?void 0:t.priceV2)||c.priceRange.minVariantPrice,compareAtPrice:null!=(l=null==(u=c.variants.nodes.filter(e=>{var t;return Number(null==e||null==(t=e.compareAtPriceV2)?void 0:t.amount)>0}))||null==(s=u.sort((e,t)=>{var r,n;return Number(null==e||null==(r=e.compareAtPriceV2)?void 0:r.amount)-Number(null==t||null==(n=t.compareAtPriceV2)?void 0:n.amount)}))||null==(i=s[0])?void 0:i.compareAtPriceV2)?l:null,avgRating:g(c.avgRating),numReviews:g(c.numReviews),collections:c.collections.edges.map(e=>e.node.handle),hasStock:d,variants:c.variants.nodes.map(e=>({id:e.id,title:e.title}))}},w=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.reduce((e,n)=>{let i=x(n,t,r);return i?[...e,i]:e},[])},x=function(e,t){let{node:r}=e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!r)return null;let i=null==r?void 0:r.variants.nodes.map(e=>{var t,r;return{...e,hasStock:e.quantityAvailable>n,isNMC:(null==(t=e.isNMC)?void 0:t.value.toLowerCase().trim())==="true",isRMC:(null==(r=e.isRMC)?void 0:r.value.toLowerCase().trim())==="true",image:e.image||null}}).filter(e=>{let{isNMC:r,isRMC:n}=e;switch(t){case"NMC":return r;case"RMC":return n;default:return!0}});
5return i.length?{id:r.id,sampleVariants:i,name:r.title,handle:r.handle,vendor:r.vendor,type:r.productType,images:a(r.images,r.title),avgRating:g(r.avgRating),numReviews:g(r.numReviews)}:null},S=e=>e.map(e=>E(e)),E=e=>({id:e.id,label:e.label,type:e.type,values:k(e.values)}),k=e=>e.map(e=>A(e)),A=e=>({id:e.id,label:M(e.label),count:e.count,input:T(e.input)}),M=e=>{let t=e;try{t=JSON.parse(e)}catch(e){}return t},T=e=>JSON.parse(e)},52016:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76880),i=e=>e.replace(/%3B/g,";");t.getPreviewCookie=e=>{let t;for(let r of e.split("; ")){let e=r.split("=");if(i(e[0]).replace(/%3D/g,"=")===n.preview){t=i(e.slice(1).join("="));break}}return t}},52316:(e,t,r)=>{"use strict";let n;r.d(t,{HG:()=>d,m6:()=>h});var i=r(1978),o=r(82763),a=r(27426),s=r(702),u=r(7209),l=r(14380),c=r(30289);let f=100;class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(e){return e?e.clone():new d}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,l.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof d){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,i.Qd)(t)){let t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:f;if(r<=0)return this;let n={timestamp:(0,o.lu)(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}
5getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:r,_tags:n,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:c,_transactionName:f,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:r,tags:n,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:c,transactionName:f,span:d}}applyToEvent(e,t={},r=[]){(0,c.e2)(e,this.getScopeData());let n=[...r,...(0,u.lG)(),...this._eventProcessors];return(0,u.jB)(n,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:(0,a.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:(0,a.eJ)();if(!this._client)return s.vF.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,a.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):s.vF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function h(){return n||(n=new d),n}function p(){return{traceId:(0,a.eJ)(),spanId:(0,a.eJ)().substring(16)}}},52468:e=>{"use strict";e.exports=Object},52496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},noSSR:function(){return u}});let n=r(72687),i=r(37876);r(14232);let o=n._(r(90295)),a=!1;function s(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){if(delete t.webpack,delete t.modules,!a)return e(t);let r=t.loading;return()=>(0,i.jsx)(r,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function l(e,t){let r=o.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let i=(n={...n,...t}).loader,a=()=>null!=i?i().then(s):Promise.resolve(s(()=>null));return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:a}):(delete n.webpack,delete n.modules,u(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52597:(e,t,r)=>{"use strict";var n=r(27496);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function u(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};
5return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=l[e]||o,i=t(e);n.isUndefined(i)&&t!==u||(r[e]=i)}),r}},52801:(e,t,r)=>{"use strict";var n=r(47418);function i(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(27496).inherits(i,n,{__CANCEL__:!0}),e.exports=i},52818:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},52836:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(62516);t.devMsg=e=>`https://prismic.dev/msg/next/v${n.version}/${e}`},54026:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(72711);t.buildWidthSrcSet=(e,{widths:t,...r})=>t.map(t=>`${n.buildURL(e,{...r,w:void 0,h:void 0,height:void 0,width:t})} ${t}w`).join(", ")},54070:(e,t,r)=>{"use strict";var n=r(27496),i=r(16318),o=r(40864),a=r(17424),s=r(42265),u=r(40090),l=r(75526),c=r(50496),f=r(47418),d=r(52801),h=r(84084);e.exports=function(e){return new Promise(function(t,r){var p,m=e.data,g=e.headers,y=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete g["Content-Type"];var v=new XMLHttpRequest;e.auth&&(g.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password?unescape(encodeURIComponent(e.auth.password)):"")));var _=s(e.baseURL,e.url);function w(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,o=y&&"text"!==y&&"json"!==y?v.response:v.responseText,a={data:o,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};i(function(e){t(e),b()},function(e){r(e),b()},a),v=null}}if(v.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(w)},v.onabort=function(){v&&(r(new f("Request aborted",f.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,v,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,v)),v=null},n.isStandardBrowserEnv()){var x=(e.withCredentials||l(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(g[e.xsrfHeaderName]=x)}"setRequestHeader"in v&&n.forEach(g,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:v.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),y&&"json"!==y&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(r(!e||e&&e.type?new d:e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(_);if(S&&-1===["http","https","file"].indexOf(S))return void r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e));v.send(m)})}},54366:e=>{"use strict";e.exports=Math.min},54587:(e,t,r)=>{e.exports=r(24468)},55043:(e,t,r)=>{"use strict";r.d(t,{gd:()=>a,qQ:()=>c,vk:()=>s});let n=50,i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0)=>{let o=[],a=e.split("\n");for(let e=r;e<a.length;e++){let r=a[e];if(r.length>1024)continue;let s=i.test(r)?r.replace(i,"$1"):r;if(!s.match(/\S*Error: /)){for(let e of t){let t=e(s);if(t){o.push(t);break}}if(o.length>=n)break}}return u(o)}}function s(e){return Array.isArray(e)?a(...e):e}function u(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),o.test(t[t.length-1].function||"")&&(t.pop(),o.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,n).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}let l="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return l;return e.name||l}catch(e){return l}}},55450:(e,t,r)=>{"use strict";var n,i=r(66530),o=r(10221);try{n=[].__proto__===Array.prototype}
5catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},55502:e=>{"use strict";e.exports=RangeError},55850:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(22254);t.devMsg=e=>`https://prismic.dev/msg/client/v${n.version}/${e}`},56057:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},56170:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(52836);t.createLocaleRedirect=function(){throw Error(`createLocaleRedirect() has been removed due to performance issues. See ${n.devMsg("replace-createLocaleRedirect")} for more details.`)}},56202:(e,t,r)=>{var n=r(66713),i=r(94147);function o(e,t){var r;function a(r,i,o,s){try{var u=e[r](i),l=u.value;return l instanceof n?t.resolve(l.v).then(function(e){a("next",e,o,s)},function(e){a("throw",e,o,s)}):t.resolve(l).then(function(e){u.value=e,o(u)},function(e){return a("throw",e,o,s)})}catch(e){s(e)}}this.next||(i(o.prototype),i(o.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,n,i){function o(){return new t(function(t,r){a(e,i,t,r)})}return r=r?r.then(o,o):o()},!0)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},56508:(e,t,r)=>{r(79151),e.exports=self.fetch.bind(self)},56523:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>s,gt:()=>o,xv:()=>i});var n=r(1978);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,n.L2)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(r?e===t:e.includes(t)))}function s(e,t=[],r=!1){return t.some(t=>a(e,t,r))}},56619:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.redirectToPreviewURL=async function(e){var t;let{client:r,req:n,res:i,linkResolver:o,defaultURL:a="/",basePath:s=""}=e,u=null==(t=n.query.token)?void 0:t.toString(),l=await r.resolvePreviewURL({linkResolver:o,defaultURL:a,previewToken:u});i.redirect(s+l)}},56992:e=>{"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},58055:(e,t,r)=>{"use strict";var n,i,o=Object.defineProperty,a=e=>{throw TypeError(e)},s=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t,r)=>s(e,"symbol"!=typeof t?t+"":t,r),l=(e,t,r)=>t.has(e)||a("Cannot "+r),c=(e,t,r)=>(l(e,t,"read from private field"),r?r.call(e):t.get(e)),f=(e,t,r)=>t.has(e)?a("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),d=(e,t,r,n)=>(l(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let h=r(4941),p=r(15539),m=r(55850),g=r(4979),y=r(83562),b=r(78384),v=r(18697),_=r(52016),w=r(41465),x=r(51715),S=r(90120),E=r(82020),k=r(24679),A=r(2743),M=r(98678),T=r(9116),O=r(68779),C=r(1474),P=r(90104),R=r(41403),j=r(11304),I=r(18664),N=r(35043),L=r(15568),D=r(74935),B=r(75385),F=r(88181),U=100,q=5e3,$=500,z=1e3,V=3;!function(e){e.Master="Master",e.ReleaseID="ReleaseID",e.ReleaseLabel="ReleaseLabel",e.Manual="Manual"}(i||(i={}));class H extends I.BaseClient{constructor(e,t={}){if(super(t),f(this,n),u(this,"documentAPIEndpoint"),u(this,"accessToken"),u(this,"routes"),u(this,"brokenRoute"),u(this,"defaultParams"),u(this,"refState",{mode:i.Master,autoPreviewsEnabled:!0}),u(this,"cachedRepository"),u(this,"cachedRepositoryExpiration",0),t.documentAPIEndpoint||F.isRepositoryEndpoint(e),F.isRepositoryEndpoint(e)){this.documentAPIEndpoint=e;try{this.repositoryName=B.getRepositoryName(e)}catch(t){console.warn(`[@prismicio/client] A repository name could not be inferred from the provided endpoint (\`${e}\`). Some methods will be disabled. Create the client using a repository name to prevent this warning. For more details, see ${m.devMsg("prefer-repository-name")}`)}}else this.documentAPIEndpoint=t.documentAPIEndpoint||D.getRepositoryEndpoint(e),this.repositoryName=e;this.accessToken=t.accessToken,this.routes=t.routes,this.brokenRoute=t.brokenRoute,this.defaultParams=t.defaultParams,t.ref&&this.queryContentFromRef(t.ref),this.graphQLFetch=this.graphQLFetch.bind(this)}set repositoryName(e){d(this,n,e)}get repositoryName(){if(!c(this,n))throw new O.PrismicError(`A repository name is required for this method but one could not be inferred from the provided API endpoint (\`${this.documentAPIEndpoint}\`). To fix this error, provide a repository name when creating the client. For more details, see ${m.devMsg("prefer-repository-name")}`,void 0,void 0);return c(this,n)}set endpoint(e){this.documentAPIEndpoint=e}get endpoint(){return this.documentAPIEndpoint}enableAutoPreviews(){this.refState.autoPreviewsEnabled=!0}enableAutoPreviewsFromReq(e){this.refState.httpRequest=e,this.refState.autoPreviewsEnabled=!0}disableAutoPreviews(){this.refState.autoPreviewsEnabled=!1}async get(e){let{data:t}=await this._get(e);return t}async getFirst(e){var t;let r={...e};e&&e.page||(null==e?void 0:e.pageSize)||(r.pageSize=(null==(t=this.defaultParams)?void 0:t.pageSize)??1);let{data:n,url:i}=await this._get(r),o=n.results[0];if(o)return o;throw new A.NotFoundError("No documents were returned",i,void 0)}async dangerouslyGetAll(e={}){var t;let r,{limit:n=1/0,...i}=e,o={...i,pageSize:Math.min(n,i.pageSize||(null==(t=this.defaultParams)?void 0:t.pageSize)||U)},a=[];for(;(!r||r.next_page)&&a.length<n;){let e=r?r.page+1:void 0;r=await this.get({...o,page:e}),a.push(...r.results),r.next_page&&await new Promise(e=>setTimeout(e,$))}return a.slice(0,n)}async getByID(e,t){return await this.getFirst(h.appendFilters(t,L.filter.at("document.id",e)))}async getByIDs(e,t){return await this.get(h.appendFilters(t,L.filter.in("document.id",e)))}async getAllByIDs(e,t){return await this.dangerouslyGetAll(h.appendFilters(t,L.filter.in("document.id",e)))}async getByUID(e,t,r){return await this.getFirst(h.appendFilters(r,[E.typeFilter(e),L.filter.at(`my.${e}.uid`,t)]))}async getByUIDs(e,t,r){return await this.get(h.appendFilters(r,[E.typeFilter(e),L.filter.in(`my.${e}.uid`,t)]))}async getAllByUIDs(e,t,r){return await this.dangerouslyGetAll(h.appendFilters(r,[E.typeFilter(e),L.filter.in(`my.${e}.uid`,t)]))}async getSingle(e,t){return await this.getFirst(h.appendFilters(t,E.typeFilter(e)))}async getByType(e,t){return await this.get(h.appendFilters(t,E.typeFilter(e)))}async getAllByType(e,t){return await this.dangerouslyGetAll(h.appendFilters(t,E.typeFilter(e)))}async getByTag(e,t){return await this.get(h.appendFilters(t,x.someTagsFilter(e)))}async getAllByTag(e,t){return await this.dangerouslyGetAll(h.appendFilters(t,x.someTagsFilter(e)))}async getByEveryTag(e,t){return await this.get(h.appendFilters(t,g.everyTagFilter(e)))}async getAllByEveryTag(e,t){return await this.dangerouslyGetAll(h.appendFilters(t,g.everyTagFilter(e)))}async getBySomeTags(e,t){return await this.get(h.appendFilters(t,x.someTagsFilter(e)))}async getAllBySomeTags(e,t){return await this.dangerouslyGetAll(h.appendFilters(t,x.someTagsFilter(e)))}async getRepository(e){let t=new URL(this.documentAPIEndpoint);return this.accessToken&&t.searchParams.set("access_token",this.accessToken),await this.fetch(t.toString(),e)}async getRefs(e){return(await this.getRepository(e)).refs}
5async getRefByID(e,t){let r=await this.getRefs(t);return b.findRefByID(r,e)}async getRefByLabel(e,t){let r=await this.getRefs(t);return v.findRefByLabel(r,e)}async getMasterRef(e){let t=await this.getRefs(e);return y.findMasterRef(t)}async getReleases(e){return(await this.getRefs(e)).filter(e=>!e.isMasterRef)}async getReleaseByID(e,t){let r=await this.getReleases(t);return b.findRefByID(r,e)}async getReleaseByLabel(e,t){let r=await this.getReleases(t);return v.findRefByLabel(r,e)}async getTags(e){try{let t=await this.getCachedRepositoryForm("tags",e),r=new URL(t.action);return this.accessToken&&r.searchParams.set("access_token",this.accessToken),await this.fetch(r.toString(),e)}catch{return(await this.getRepository(e)).tags}}async buildQueryURL({signal:e,fetchOptions:t,...r}={}){let n=r.ref||await this.getResolvedRefString({signal:e,fetchOptions:t}),i=r.integrationFieldsRef||(await this.getCachedRepository({signal:e,fetchOptions:t})).integrationFieldsRef||void 0;return N.buildQueryURL(this.documentAPIEndpoint,{...this.defaultParams,...r,ref:n,integrationFieldsRef:i,routes:r.routes||this.routes,brokenRoute:r.brokenRoute||this.brokenRoute,accessToken:r.accessToken||this.accessToken})}async resolvePreviewURL(e){var t,r;let n=e.documentID,i=e.previewToken;if(void 0!==globalThis.location){let e=new URLSearchParams(globalThis.location.search);n=n||e.get("documentId"),i=i||e.get("token")}else if(this.refState.httpRequest){if("query"in this.refState.httpRequest)n=n||(null==(t=this.refState.httpRequest.query)?void 0:t.documentId),i=i||(null==(r=this.refState.httpRequest.query)?void 0:r.token);else if("url"in this.refState.httpRequest&&this.refState.httpRequest.url){let e=new URL(this.refState.httpRequest.url,"missing-host://").searchParams;n=n||e.get("documentId"),i=i||e.get("token")}}if(null!=n&&null!=i){let t=await this.getByID(n,{ref:i,lang:"*",signal:e.signal,fetchOptions:e.fetchOptions}),r=j.asLink(t,{linkResolver:e.linkResolver});if("string"==typeof r)return r}return e.defaultURL}queryLatestContent(){this.refState.mode=i.Master}queryContentFromReleaseByID(e){this.refState={...this.refState,mode:i.ReleaseID,releaseID:e}}queryContentFromReleaseByLabel(e){this.refState={...this.refState,mode:i.ReleaseLabel,releaseLabel:e}}queryContentFromRef(e){this.refState={...this.refState,mode:i.Manual,ref:e}}async graphQLFetch(e,t){let r=await this.getCachedRepository(),n=await this.getResolvedRefString(),i={"Prismic-ref":n,Authorization:this.accessToken?`Token ${this.accessToken}`:"",...t?t.headers:{}};r.integrationFieldsRef&&(i["Prismic-integration-field-ref"]=r.integrationFieldsRef);let o={};for(let e in i)i[e]&&(o[e.toLowerCase()]=i[e]);let a=new URL(e);a.searchParams.set("ref",n);let s=a.searchParams.get("query");return s&&a.searchParams.set("query",w.minifyGraphQLQuery(s)),await this.fetchFn(a.toString(),{...t,headers:o})}async getCachedRepository(e){return(!this.cachedRepository||Date.now()>=this.cachedRepositoryExpiration)&&(this.cachedRepositoryExpiration=Date.now()+q,this.cachedRepository=await this.getRepository(e)),this.cachedRepository}async getCachedRepositoryForm(e,t){let r=(await this.getCachedRepository(t)).forms[e];if(!r)throw new O.PrismicError(`Form with name "${e}" could not be found`,void 0,void 0);return r}async getResolvedRefString(e){var t,r;if(this.refState.autoPreviewsEnabled){let e,n;if((null==(t=this.refState.httpRequest)?void 0:t.headers)?"get"in this.refState.httpRequest.headers&&"function"==typeof this.refState.httpRequest.headers.get?n=this.refState.httpRequest.headers.get("cookie"):"cookie"in this.refState.httpRequest.headers&&(n=this.refState.httpRequest.headers.cookie):(null==(r=globalThis.document)?void 0:r.cookie)&&(n=globalThis.document.cookie),n&&(e=_.getPreviewCookie(n)),e)return e}let n=await this.getCachedRepository(e),o=this.refState.mode;if(o===i.ReleaseID)return b.findRefByID(n.refs,this.refState.releaseID).ref;if(o===i.ReleaseLabel)return v.findRefByLabel(n.refs,this.refState.releaseLabel).ref;if(o===i.Manual){let e=await p.castThunk(this.refState.ref)();if("string"==typeof e)return e}return y.findMasterRef(n.refs).ref}async _get(e,t=0){var r,n;let i=await this.buildQueryURL(e);try{return{data:await this.fetch(i,e),url:i}}catch(u){if(!(u instanceof P.RefNotFoundError||u instanceof C.RefExpiredError)||t>=V-1)throw u;(null==e?void 0:e.ref)||(this.cachedRepository=void 0);let o=null==(n=null==(r=u.message.match(/Master ref is: (?<ref>.*)$/))?void 0:r.groups)?void 0:n.ref;if(!o)throw u;let a=new URL(i).searchParams.get("ref"),s=u instanceof P.RefNotFoundError?"invalid":"expired";return S.throttledLog(`[@prismicio/client] The ref (${a}) was ${s}. Now retrying with the latest master ref (${o}). If you were previewing content, the response will not include draft content.`,{level:"warn"}),await this._get({...e,ref:o},t+1)}}async fetch(e,t={}){let r=await super.fetch(e,t);if(404!==r.status&&429!==r.status&&null==r.json)throw new O.PrismicError(void 0,e,r.json||r.text);switch(r.status){case 200:case 201:return r.json;case 400:throw new M.ParsingError(r.json.message,e,r.json);case 401:case 403:throw new k.ForbiddenError(r.json.error||r.json.message,e,r.json);case 404:if(void 0===r.json)throw new R.RepositoryNotFoundError(`Prismic repository not found. Check that "${this.documentAPIEndpoint}" is pointing to the correct repository.`,e,e.startsWith(this.documentAPIEndpoint)?void 0:r.text);if("api_notfound_error"===r.json.type)throw new P.RefNotFoundError(r.json.message,e,r.json);if("api_security_error"===r.json.type&&/preview token.*expired/i.test(r.json.message))throw new T.PreviewTokenExpiredError(r.json.message,e,r.json);throw new A.NotFoundError(r.json.message,e,r.json);case 410:throw new C.RefExpiredError(r.json.message,e,r.json);case 429:{let n=Number(r.headers.get("retry-after")),i=Number.isNaN(n)?z:n;return await new Promise((r,n)=>{setTimeout(async()=>{try{r(await this.fetch(e,t))}catch(e){n(e)}},i)})}}throw new O.PrismicError(void 0,e,r.json)}}n=new WeakMap,t.Client=H,t.GET_ALL_QUERY_DELAY=$,t.REPOSITORY_CACHE_TTL=q},58149:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>es,BE:()=>ea,Tk:()=>J,iX:()=>et});var n=r(14232);function i(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())})}function o(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var a=function(){},s=a(),u=Object,l=function(e){return e===s},c=function(e){return"function"==typeof e},f=function(e,t){return u.assign({},e,t)},d="undefined",h=function(){return typeof window!=d},p=function(){return typeof document!=d},m=function(){return h()&&typeof window.requestAnimationFrame!=d},g=new WeakMap,y=0,b=function(e){var t,r,n=typeof e,i=e&&e.constructor,o=i==Date;if(u(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++y+"~",g.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=b(e[r])+",";g.set(e,t)}if(i==u){t="#";for(var a=u.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+b(e[r])+",");g.set(e,t)}}return t},v=!0,_=function(){return v},w=h(),x=p(),S=w&&window.addEventListener?window.addEventListener.bind(window):a,E=x?document.addEventListener.bind(document):a,k=w&&window.removeEventListener?window.removeEventListener.bind(window):a,A=x?document.removeEventListener.bind(document):a,M={isOnline:_,isVisible:function(){var e=x&&document.visibilityState;
5return l(e)||"hidden"!==e}},T={initFocus:function(e){return E("visibilitychange",e),S("focus",e),function(){A("visibilitychange",e),k("focus",e)}},initReconnect:function(e){var t=function(){v=!0,e()},r=function(){v=!1};return S("online",t),S("offline",r),function(){k("online",t),k("offline",r)}}},O=!h()||"Deno"in window,C=function(e){return m()?window.requestAnimationFrame(e):setTimeout(e,1)},P=O?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,j=!O&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),I=function(e){if(c(e))try{e=e()}catch(t){e=""}var t=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"")?"$swr$"+e:"";return[e,t,r]},N=new WeakMap,L=0,D=1,B=2,F=function(e,t,r,n,i,o,a){void 0===a&&(a=!0);var s=N.get(e),u=s[0],l=s[1],c=s[3],f=u[t],d=l[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](r,n,i);return o&&(delete c[t],f&&f[0])?f[0](B).then(function(){return e.get(t)}):e.get(t)},U=0,q=function(){return++U},$=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(void 0,void 0,void 0,function(){var t,r,n,i,a,u,d,h,p,m,g,y,b,v,_,w,x,S,E,k;return o(this,function(o){switch(o.label){case 0:if(t=e[0],r=e[1],n=e[2],u=!!l((a="boolean"==typeof(i=e[3])?{revalidate:i}:i||{}).populateCache)||a.populateCache,d=!1!==a.revalidate,h=!1!==a.rollbackOnError,p=a.optimisticData,g=(m=I(r))[0],y=m[2],!g)return[2];if(b=N.get(t)[2],e.length<3)return[2,F(t,g,t.get(g),s,s,d,!0)];if(v=n,w=q(),b[g]=[w,0],x=!l(p),S=t.get(g),x&&(E=c(p)?p(S):p,t.set(g,E),F(t,g,E)),c(v))try{v=v(t.get(g))}catch(e){_=e}if(!(v&&c(v.then)))return[3,2];return[4,v.catch(function(e){_=e})];case 1:if(v=o.sent(),w!==b[g][0]){if(_)throw _;return[2,v]}_&&x&&h&&(u=!0,v=S,t.set(g,S)),o.label=2;case 2:return u&&(_||(c(u)&&(v=u(v,S)),t.set(g,v)),t.set(y,f(t.get(y),{error:_}))),b[g][1]=q(),[4,F(t,g,v,_,s,d,!!u)];case 3:if(k=o.sent(),_)throw _;return[2,u?k:v]}})})},z=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},V=function(e,t){if(!N.has(e)){var r=f(T,t),n={},i=$.bind(s,e),o=a;if(N.set(e,[n,{},{},{},i]),!O){var u=r.initFocus(setTimeout.bind(s,z.bind(s,n,L))),l=r.initReconnect(setTimeout.bind(s,z.bind(s,n,D)));o=function(){u&&u(),l&&l(),N.delete(e)}}return[e,i,o]}return[e,N.get(e)[4]]},H=function(e,t,r,n,i){var o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(l(o)||!(a>o))&&setTimeout(n,s,i)},G=V(new Map),W=G[0],J=G[1],K=f({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:H,onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:j?5e3:3e3,compare:function(e,t){return b(e)==b(t)},isPaused:function(){return!1},cache:W,mutate:J,fallback:{}},M),Z=function(e,t){var r=f(e,t);if(t){var n=e.use,i=e.fallback,o=t.use,a=t.fallback;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=f(i,a))}return r},X=(0,n.createContext)({}),Y=function(e){var t=e.value,r=Z((0,n.useContext)(X),t),i=t&&t.provider,o=(0,n.useState)(function(){return i?V(i(r.cache||W),t):s})[0];return o&&(r.cache=o[0],r.mutate=o[1]),P(function(){return o?o[2]:s},[]),(0,n.createElement)(X.Provider,f(e,{value:r}))},Q=function(e,t){var r=(0,n.useState)({})[1],i=(0,n.useRef)(e),o=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)(function(e){var n=!1,a=i.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],o.current[u]&&(n=!0))}n&&!t.current&&r({})},[]);return P(function(){i.current=e}),[i,o.current,a]},ee=function(e){return c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},et=function(){return f(K,(0,n.useContext)(X))},er=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=et(),i=ee(t),o=i[0],a=i[1],s=Z(n,i[2]),u=e,l=s.use;if(l)for(var c=l.length;c-- >0;)u=l[c](u);return u(o,a||s.fetcher,s)}},en=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},ei={dedupe:!0},eo=function(e,t,r){var a=r.cache,u=r.compare,d=r.fallbackData,h=r.suspense,p=r.revalidateOnMount,m=r.refreshInterval,g=r.refreshWhenHidden,y=r.refreshWhenOffline,b=N.get(a),v=b[0],_=b[1],w=b[2],x=b[3],S=I(e),E=S[0],k=S[1],A=S[2],M=(0,n.useRef)(!1),T=(0,n.useRef)(!1),R=(0,n.useRef)(E),j=(0,n.useRef)(t),U=(0,n.useRef)(r),z=function(){return U.current},V=function(){return z().isVisible()&&z().isOnline()},H=function(e){return a.set(A,f(a.get(A),e))},G=a.get(E),W=l(d)?r.fallback[E]:d,J=l(G)?W:G,K=a.get(A)||{},Z=K.error,X=!M.current,Y=function(){return X&&!l(p)?p:!z().isPaused()&&(h?!l(J)&&r.revalidateIfStale:l(J)||r.revalidateIfStale)},ee=function(){return!!E&&!!t&&(!!K.isValidating||X&&Y())}(),et=Q({data:J,error:Z,isValidating:ee},T),er=et[0],eo=et[1],ea=et[2],es=(0,n.useCallback)(function(e){return i(void 0,void 0,void 0,function(){var t,n,i,f,d,h,p,m,g,y,b,v,_;return o(this,function(o){switch(o.label){case 0:if(t=j.current,!E||!t||T.current||z().isPaused())return[2,!1];f=!0,d=e||{},h=!x[E]||!d.dedupe,p=function(){return!T.current&&E===R.current&&M.current},m=function(){var e=x[E];e&&e[1]===i&&delete x[E]},g={isValidating:!1},y=function(){H({isValidating:!1}),p()&&ea(g)},H({isValidating:!0}),ea({isValidating:!0}),o.label=1;case 1:return o.trys.push([1,3,,4]),h&&(F(a,E,er.current.data,er.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout(function(){f&&p()&&z().onLoadingSlow(E,r)},r.loadingTimeout),x[E]=[t.apply(void 0,k),q()]),n=(_=x[E])[0],i=_[1],[4,n];case 2:if(n=o.sent(),h&&setTimeout(m,r.dedupingInterval),!x[E]||x[E][1]!==i)return h&&p()&&z().onDiscarded(E),[2,!1];if(H({error:s}),g.error=s,!l(b=w[E])&&(i<=b[0]||i<=b[1]||0===b[1]))return y(),h&&p()&&z().onDiscarded(E),[2,!1];return u(er.current.data,n)?g.data=er.current.data:g.data=n,u(a.get(E),n)||a.set(E,n),h&&p()&&z().onSuccess(n,E,r),[3,4];case 3:return v=o.sent(),m(),!z().isPaused()&&(H({error:v}),g.error=v,h&&p()&&(z().onError(v,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||c(r.shouldRetryOnError)&&r.shouldRetryOnError(v))&&V()&&z().onErrorRetry(v,E,r,es,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return f=!1,y(),p()&&h&&F(a,E,g.data,g.error,!1),[2,!0]}})})},[E]),eu=(0,n.useCallback)($.bind(s,a,function(){return R.current}),[]);if(P(function(){j.current=t,U.current=r}),P(function(){if(E){var e=E!==R.current,t=es.bind(s,ei),r=function(e,t,r){ea(f({error:t,isValidating:r},u(er.current.data,e)?s:{data:e}))},n=0,i=function(e){if(e==L){var r=Date.now();z().revalidateOnFocus&&r>n&&V()&&(n=r+z().focusThrottleInterval,t())}else if(e==D)z().revalidateOnReconnect&&V()&&t();else if(e==B)return es()},o=en(E,_,r),a=en(E,v,i);return T.current=!1,R.current=E,M.current=!0,e&&ea({data:J,error:Z,isValidating:ee}),Y()&&(l(J)||O?t():C(t)),function(){T.current=!0,o(),a()}}},[E,es]),P(function(){var e;function t(){var t=c(m)?m(J):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!er.current.error&&(g||z().isVisible())&&(y||z().isOnline())?es(ei).then(t):t()}return t(),function(){e&&(clearTimeout(e),e=-1)}},[m,g,y,es]),(0,n.useDebugValue)(J),h&&l(J)&&E)throw j.current=t,U.current=r,T.current=!1,l(Z)?es(ei):Z;return{mutate:eu,get data(){return eo.data=!0,J},get error(){return eo.error=!0,Z},get isValidating(){return eo.isValidating=!0,ee}}},ea=u.defineProperty(Y,"default",{value:K}),es=er(eo)},58929:(e,t,r)=>{"use strict";r.d(t,{Rc:()=>s,xt:()=>a,i9:()=>p,Rr:()=>g,aP:()=>m,WB:()=>y,Gk:()=>u,f3:()=>x});var n=r(85391);let i="\n mutation customerUpdate($customerAccessToken: String!, $input: CustomerUpdateInput!) {\n customerUpdate(customerAccessToken: $customerAccessToken, customer: $input) {\n customer {\n id\n }\n customerUserErrors {\n message\n field\n code\n }\n }\n }\n",o='\n query getCustomer($customerAccessToken: String!) {\n customer(customerAccessToken: $customerAccessToken) {\n id\n firstName\n phone\n lastName\n phone\n email\n acceptsMarketing\n createdAt\n defaultAddress {\n id\n country\n company\n address1\n address2\n city\n zip\n province\n }\n brazeExternalId: metafield(namespace: "customer", key: "braze_external_id") {\n id\n value\n }\n tags\n }\n }\n';async function a(e){let t=await (0,n.Ay)({variables:{customerAccessToken:e},query:o});if(t.customer){let{customer:e}=t;return{id:e.id,firstName:e.firstName,lastName:e.lastName,createdAt:e.createdAt,phone:e.phone,email:e.email,acceptsMarketing:e.acceptsMarketing,tags:e.tags}}return null}async function s(e){let t=await fetch("/api/shopify/customer/".concat(encodeURIComponent(e),"/marketing-consent")),r=await t.json();return r.success?r.data:null}async function u(e,t){var r,o;let a=await (0,n.Ay)({variables:{customerAccessToken:e,input:t},query:i});if(null==a||null==(o=a.customerUpdate)||null==(r=o.customerUserErrors)?void 0:r.length){let{customerUserErrors:e}=a.customerUpdate;return e}return!0}var l=r(78799),c=r(93890);let f='\n query getCustomerOrders($customerAccessToken: String!, $numOrders: Int!) {\n customer(customerAccessToken: $customerAccessToken) {\n orders(first: $numOrders, sortKey: PROCESSED_AT, reverse: true) {\n nodes {\n id\n orderNumber\n processedAt\n\n financialStatus\n fulfillmentStatus\n currentTotalPrice {\n amount\n currencyCode\n }\n\n subscription: metafield(namespace: "appstle_subscription", key: "details") {\n ...metafield\n }\n\n migratedCreatedAt: metafield(namespace: "order", key: "magento_order_created_at") {\n ...metafield\n }
5\n\n lineItems(first: 250) {\n nodes {\n title\n currentQuantity\n\n variant {\n id\n title\n sku\n product {\n handle\n }\n image {\n url\n height\n width\n }\n }\n }\n }\n }\n }\n }\n }\n\n '.concat(c.G,"\n");var d=r(14059),h=r(51725);async function p(e){var t,r,i;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,a=await (0,n.Ay)({variables:{customerAccessToken:e,numOrders:o},query:f});if(null==(i=a.customer)||null==(r=i.orders)||null==(t=r.nodes)?void 0:t.length){let{orders:e}=a.customer;return b(e.nodes)}return null}async function m(e){let t=encodeURIComponent(e),r=await fetch("/api/shopify/customer/".concat(t,"/orders-fulfillments-and-tags"));return(await r.json()).data}function g(e){var t,r;let n=null==e||null==(r=e.fulfillments)||null==(t=r.slice(-1))?void 0:t[0];if("string"==typeof(null==n?void 0:n.displayStatus)&&String(null==n?void 0:n.displayStatus)in l.p5){let e=n.displayStatus;if("DELIVERED"===e&&n.deliveredAt){let t=(0,d.bU)(n.deliveredAt,{month:"short",day:"numeric",year:"numeric"});if(t)return{status:e,message:"Delivered ".concat(t)}}return{status:e,message:l.p5[e]}}return{status:e.fulfillmentStatus,message:l.PF[e.fulfillmentStatus]}}function y(e){var t;return null!=(t=({UNFULFILLED:null,MARKED_AS_FULFILLED:3,FULFILLED:3,IN_PROGRESS:1,IN_TRANSIT:2,DELIVERED:3})[e.status])?t:null}function b(e){return e.map(v)}function v(e){let t=(0,h.Ts)(e.migratedCreatedAt);return{id:e.id,processedAt:null!=t?t:e.processedAt,lineItems:_(e.lineItems.nodes),orderNumber:e.orderNumber,financialStatus:e.financialStatus,fulfillmentStatus:e.fulfillmentStatus,currentTotalPrice:e.currentTotalPrice,subscription:(0,h.Ts)(e.subscription)}}function _(e){return e.map(w)}function w(e){return{title:e.title,quantity:e.currentQuantity,variant:e.variant?{id:e.variant.id,title:e.variant.title,image:e.variant.image,sku:e.variant.sku,handle:e.variant.product.handle}:null}}async function x(e,t){var r,o;let a=await (0,n.Ay)({variables:{customerAccessToken:e,input:{password:t}},query:i});if(null==a||null==(o=a.customerUpdate)||null==(r=o.customerUserErrors)?void 0:r.length){let{customerUserErrors:e}=a.customerUpdate;return e}return!0}},59432:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){let n=new Date(new Date().getTime()+60*r*6e4),i="expires=".concat(n.toUTCString());document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/")}
5},60272:(e,t,r)=>{"use strict";r.d(t,{B:()=>a,d:()=>s});var n=r(92918);let i=n.map(e=>e.variantId),o=n.map(e=>e.productId),a=e=>e&&i.includes(e),s=e=>e&&o.includes(e)},60428:e=>{"use strict";e.exports=JSON.parse('{"DD":"Your Cart","O$":"Hey there!","Ie":"Looks like your cart is empty.","Bv":"Free shipping on orders","c3":"Continue shopping","R6":"Subtotal","yP":"Tax estimate","X5":"Order total","Pq":"Discount code","K6":"Discount codes","FL":"Calculated at next step","rj":"Checkout","$d":"continue without Checkout+","QA":{"D":"Cart updated!","Q":"Your cart has been updated due to a product no longer being in stock."}}')},61044:(e,t,r)=>{"use strict";var n=r(15738),i=r(27784),o=r(37621),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},m={},g=function e(t,r,o,a,s,l,f,d,g,y,b,v,_,w,x,S){for(var E,k=t,A=S,M=0,T=!1;void 0!==(A=A.get(m))&&!T;){var O=A.get(t);if(M+=1,void 0!==O)if(O===M)throw RangeError("Cyclic object value");else T=!0;void 0===A.get(m)&&(M=0)}if("function"==typeof d?k=d(r,k):k instanceof Date?k=b(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,function(e){return e instanceof Date?b(e):e})),null===k){if(s)return f&&!w?f(r,h.encoder,x,"key",v):r;k=""}if(p(k)||i.isBuffer(k))return f?[_(w?r:f(r,h.encoder,x,"key",v))+"="+_(f(k,h.encoder,x,"value",v))]:[_(r)+"="+_(String(k))];var C=[];if(void 0===k)return C;if("comma"===o&&u(k))w&&f&&(k=i.maybeMap(k,f)),E=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(d))E=d;else{var P=Object.keys(k);E=g?P.sort(g):P}for(var R=a&&u(k)&&1===k.length?r+"[]":r,j=0;j<E.length;++j){var I=E[j],N="object"==typeof I&&void 0!==I.value?I.value:k[I];if(!l||null!==N){var L=u(k)?"function"==typeof o?o(R,I):R:R+(y?"."+I:"["+I+"]");S.set(t,M);var D=n();D.set(m,S),c(C,e(N,L,o,a,s,l,"comma"===o&&w&&u(k)?null:f,d,g,y,b,v,_,w,x,D))}}return C},y=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=h.filter;return("function"==typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,i,o,a=e,l=y(t);"function"==typeof l.filter?a=(i=l.filter)("",a):u(l.filter)&&(r=i=l.filter);var f=[];if("object"!=typeof a||null===a)return"";o=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(a)),l.sort&&r.sort(l.sort);for(var p=n(),m=0;m<r.length;++m){var b=r[m];l.skipNulls&&null===a[b]||c(f,g(a[b],b,d,h,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,p))}var v=f.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},61664:(e,t,r)=>{"use strict";e.exports=r(52468).getPrototypeOf||null},62070:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.mapSliceZone=function(e,t,r){return Promise.all(e.map(async(e,n,i)=>{let o="slice_type"in e,a=o?e.slice_type:e.type,s=t[a];if(!s)return e;let u={slice:e,slices:i,index:n,context:r},l=await s(u);return(s.length<1&&("function"==typeof l||"object"==typeof l&&"default"in l)&&(l="default"in l?l.default:l,l=await l(u)),o)?{__mapped:!0,id:e.id,slice_type:a,...l}:{__mapped:!0,type:a,...l}}))}},62516:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.version="2.0.1"},62867:(e,t,r)=>{"use strict";r.d(t,{FR:()=>h,bV:()=>p});var n=r(14232),i=r(77328),o=r.n(i);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
5for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var u=["keyOverride"],l={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},c=function(e,t,r){void 0===t&&(t=[]);var i=void 0===r?{}:r,o=i.defaultWidth,a=i.defaultHeight;return t.reduce(function(t,r,i){return t.push(n.createElement("meta",{key:"og:"+e+":0"+i,property:"og:"+e,content:r.url})),r.alt&&t.push(n.createElement("meta",{key:"og:"+e+":alt0"+i,property:"og:"+e+":alt",content:r.alt})),r.secureUrl&&t.push(n.createElement("meta",{key:"og:"+e+":secure_url0"+i,property:"og:"+e+":secure_url",content:r.secureUrl.toString()})),r.type&&t.push(n.createElement("meta",{key:"og:"+e+":type0"+i,property:"og:"+e+":type",content:r.type.toString()})),r.width?t.push(n.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:r.width.toString()})):o&&t.push(n.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:o.toString()})),r.height?t.push(n.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:r.height.toString()})):a&&t.push(n.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:a.toString()})),t},[])},f=function(e){var t,r,i,o,f,d=[];e.titleTemplate&&(l.templateTitle=e.titleTemplate);var h="";e.title?(h=e.title,l.templateTitle&&(h=l.templateTitle.replace(/%s/g,function(){return h}))):e.defaultTitle&&(h=e.defaultTitle),h&&d.push(n.createElement("title",{key:"title"},h));var p=e.noindex||l.noindex||e.dangerouslySetAllPagesToNoIndex,m=e.nofollow||l.nofollow||e.dangerouslySetAllPagesToNoFollow,g="";if(e.robotsProps){var y=e.robotsProps,b=y.nosnippet,v=y.maxSnippet,_=y.maxImagePreview,w=y.maxVideoPreview,x=y.noarchive,S=y.noimageindex,E=y.notranslate,k=y.unavailableAfter;g=(b?",nosnippet":"")+(v?",max-snippet:"+v:"")+(_?",max-image-preview:"+_:"")+(x?",noarchive":"")+(k?",unavailable_after:"+k:"")+(S?",noimageindex":"")+(w?",max-video-preview:"+w:"")+(E?",notranslate":"")}if(p||m?(e.dangerouslySetAllPagesToNoIndex&&(l.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(l.nofollow=!0),d.push(n.createElement("meta",{key:"robots",name:"robots",content:(p?"noindex":"index")+","+(m?"nofollow":"follow")+g}))):d.push(n.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+g})),e.description&&d.push(n.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&d.push(n.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&d.push(n.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){d.push(n.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&d.push(n.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&d.push(n.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&d.push(n.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&d.push(n.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||h)&&d.push(n.createElement("meta",{key:"og:title",property:"og:title",content:(null==(o=e.openGraph)?void 0:o.title)||h})),(null!=(r=e.openGraph)&&r.description||e.description)&&d.push(n.createElement("meta",{key:"og:description",property:"og:description",content:(null==(f=e.openGraph)?void 0:f.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&d.push(n.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var A=e.openGraph.type.toLowerCase();d.push(n.createElement("meta",{key:"og:type",property:"og:type",content:A})),"profile"===A&&e.openGraph.profile?(e.openGraph.profile.firstName&&d.push(n.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&d.push(n.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&d.push(n.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&d.push(n.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===A&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEac
5h(function(e,t){d.push(n.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&d.push(n.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&d.push(n.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){d.push(n.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===A&&e.openGraph.article?(e.openGraph.article.publishedTime&&d.push(n.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&d.push(n.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&d.push(n.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){d.push(n.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&d.push(n.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){d.push(n.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===A||"video.episode"===A||"video.tv_show"===A||"video.other"===A)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&d.push(n.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&d.push(n.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){d.push(n.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){d.push(n.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&d.push(n.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&d.push(n.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
5h(function(e,t){d.push(n.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&d.push(n.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(l.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(l.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&d.push.apply(d,c("image",e.openGraph.images,{defaultWidth:l.defaultOpenGraphImageWidth,defaultHeight:l.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(l.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(l.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&d.push.apply(d,c("video",e.openGraph.videos,{defaultWidth:l.defaultOpenGraphVideoWidth,defaultHeight:l.defaultOpenGraphVideoHeight})),e.openGraph.audio&&d.push.apply(d,c("audio",e.openGraph.audio)),e.openGraph.locale&&d.push(n.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&d.push(n.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&d.push(n.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,r,i=e.keyOverride,o=s(e,u);d.push(n.createElement("meta",a({key:"meta:"+(null!=(t=null!=(r=null!=i?i:o.name)?r:o.property)?t:o.httpEquiv)},o)))}),null!=(i=e.additionalLinkTags)&&i.length&&e.additionalLinkTags.forEach(function(e){var t;d.push(n.createElement("link",a({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))}),d},d=function(e){return n.createElement(o(),null,f(e))},h=function(e){var t=e.title,r=e.titleTemplate,i=e.defaultTitle,o=e.themeColor,a=e.dangerouslySetAllPagesToNoIndex,s=void 0!==a&&a,u=e.dangerouslySetAllPagesToNoFollow,l=void 0!==u&&u,c=e.description,f=e.canonical,h=e.facebook,p=e.openGraph,m=e.additionalMetaTags,g=e.twitter,y=e.defaultOpenGraphImageWidth,b=e.defaultOpenGraphImageHeight,v=e.defaultOpenGraphVideoWidth,_=e.defaultOpenGraphVideoHeight,w=e.mobileAlternate,x=e.languageAlternates,S=e.additionalLinkTags,E=e.robotsProps;return n.createElement(d,{title:t,titleTemplate:r,defaultTitle:i,themeColor:o,dangerouslySetAllPagesToNoIndex:s,dangerouslySetAllPagesToNoFollow:l,description:c,canonical:f,facebook:h,openGraph:p,additionalMetaTags:m,twitter:g,defaultOpenGraphImageWidth:y,defaultOpenGraphImageHeight:b,defaultOpenGraphVideoWidth:v,defaultOpenGraphVideoHeight:_,mobileAlternate:w,languageAlternates:x,additionalLinkTags:S,robotsProps:E})},p=function(e){var t=e.title,r=e.themeColor,i=e.noindex,o=void 0!==i&&i,a=e.nofollow,s=e.robotsProps,u=e.description,l=e.canonical,c=e.openGraph,h=e.facebook,p=e.twitter,m=e.additionalMetaTags,g=e.titleTemplate,y=e.defaultTitle,b=e.mobileAlternate,v=e.languageAlternates,_=e.additionalLinkTags,w=e.useAppDir,x=void 0!==w&&w;return n.createElement(n.Fragment,null,x?f({title:t,themeColor:r,noindex:o,nofollow:a,robotsProps:s,description:u,canonical:l,facebook:h,openGraph:c,additionalMetaTags:m,twitter:p,titleTemplate:g,defaultTitle:y,mobileAlternate:b,languageAlternates:v,additionalLinkTags:_}):n.createElement(d,{title:t,themeColor:r,noindex:o,nofollow:a,robotsProps:s,description:u,canonical:l,facebook:h,openGraph:c,additionalMetaTags:m,twitter:p,titleTemplate:g,defaultTitle:y,mobileAlternate:b,languageAlternates:v,additionalLinkTags:_}))};RegExp("["+Object.keys(Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"})).join("")+"]","g")},63043:(e,t,r)=>{"use strict";r.d(t,{e:()=>eh,_:()=>ed});var n,i,o=r(14232),a=r.t(o,2);function s(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function u(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))),requestAnimationFrame(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];let i={current:!0};return s(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=u();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function l(){let[e]=(0,o.useState)(u);return(0,o.useEffect)(()=>()=>
5e.dispose(),[e]),e}var c=Object.defineProperty,f=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t,r)=>(f(e,"symbol"!=typeof t?t+"":t,r),r);class h{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){d(this,"current",this.detect()),d(this,"handoffState","pending"),d(this,"currentId",0)}}let p=new h,m=(e,t)=>{p.isServer?(0,o.useEffect)(e,t):(0,o.useLayoutEffect)(e,t)};function g(e){let t=(0,o.useRef)(e);return m(()=>{t.current=e},[e]),t}let y=function(e){let t=g(e);return o.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])};function b(){let e=(0,o.useRef)(!1);return m(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function v(){let e="undefined"==typeof document;return(0,a.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)}function _(){let e=v(),[t,r]=o.useState(p.isHandoffComplete);return t&&!1===p.isHandoffComplete&&r(!1),o.useEffect(()=>{!0!==t&&r(!0)},[t]),o.useEffect(()=>p.handoff(),[]),!e&&t}let w=Symbol();function x(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=(0,o.useRef)(t);(0,o.useEffect)(()=>{n.current=t},[t]);let i=y(e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[w]))?void 0:i}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,o.useState)(e),n=(0,o.useCallback)(e=>r(e),[]),i=(0,o.useCallback)(e=>r(t=>t|e),[]),a=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:i,hasFlag:a,removeFlag:(0,o.useCallback)(e=>r(t=>t&~e),[]),toggleFlag:(0,o.useCallback)(e=>r(t=>t^e),[])}}var E=r(99742);void 0!==E&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(n=null==E?void 0:E.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var k=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(k||{});function A(e){let t={};for(let r in e)!0===e[r]&&(t["data-".concat(r)]="");return t}function M(e,t,r,n){let[i,a]=(0,o.useState)(r),{hasFlag:s,addFlag:u,removeFlag:c}=S(e&&i?3:0),f=(0,o.useRef)(!1),d=(0,o.useRef)(!1);return m(()=>{var i;if(e){if(r&&a(!0),!t){r&&u(3);return}return null==(i=null==n?void 0:n.start)||i.call(n,r),T(t,{inFlight:f,prepare(){d.current?d.current=!1:d.current=f.current,f.current=!0,d.current||(r?(u(3),c(4)):(u(4),c(2)))},run(){d.current?r?(c(3),u(4)):(c(4),u(3)):r?c(1):u(1)},done(){var e;d.current&&P(t)||(f.current=!1,c(7),r||a(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})}},[e,r,t,l()]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function T(e,t){let{prepare:r,run:n,done:i,inFlight:o}=t,a=u();return C(e,{prepare:r,inFlight:o}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(O(e,i))})}),a.dispose}function O(e,t){var r,n;let i=u();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}function C(e,t){let{inFlight:r,prepare:n}=t;if(null!=r&&r.current)return void n();let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}function P(e){var t,r;return(null!=(r=null==(t=e.getAnimations)?void 0:t.call(e))?r:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}let R=(0,o.createContext)(null);R.displayName="OpenClosedContext";var j=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(j||{});function I(){return(0,o.useContext)(R)}function N(e){let{value:t,children:r}=e;return o.createElement(R.Provider,{value:t},r)}function L(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>
5"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function D(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(o,D),o}var B=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(B||{}),F=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(F||{});function U(){let e=z();return(0,o.useCallback)(t=>q({mergeRefs:e,...t}),[e])}function q(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:o,visible:a=!0,name:s,mergeRefs:u}=e;u=null!=u?u:V;let l=H(r,t);if(a)return $(l,n,i,s,u);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return $(t,n,i,s,u)}if(1&c){let{unmount:e=!0,...t}=l;return D(+!e,{0:()=>null,1:()=>$({...t,hidden:!0,style:{display:"none"}},n,i,s,u)})}return $(l,n,i,s,u)}function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:a=r,children:s,refName:u="ref",...l}=J(e,["unmount","static"]),c=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof s?s(t):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d["data-".concat(e)]=""}if(Z(a)&&(Object.keys(W(l)).length>0||Object.keys(W(d)).length>0))if(!(0,o.isValidElement)(f)||Array.isArray(f)&&f.length>1||X(f)){if(Object.keys(W(l)).length>0)throw Error(['Passing props on "Fragment"!\n',"The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(W(l)).concat(Object.keys(W(d))).map(e=>" - ".concat(e)).join("\n"),"\nYou can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{let e=f.props,t=null==e?void 0:e.className,r="function"==typeof t?function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return L(t(...r),l.className)}:L(t,l.className),n=r?{className:r}:{},a=H(f.props,W(J(l,["ref"])));for(let e in d)e in a&&delete d[e];return(0,o.cloneElement)(f,Object.assign({},a,d,c,{ref:i(K(f),c.ref)},n))}return(0,o.createElement)(a,Object.assign({},J(l,["ref"]),!Z(a)&&c,!Z(a)&&d),f)}function z(){let e=(0,o.useRef)([]),t=(0,o.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!n.every(e=>null==e))return e.current=n,t}}function V(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function H(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)return{};if(1===r.length)return r[0];let i={},o={};for(let t of r)for(let r in t)r.startsWith("on")&&"function"==typeof t[r]?(null!=(e=o[r])||(o[r]=[]),o[r].push(t[r])):i[r]=t[r];if(i.disabled||i["aria-disabled"])for(let e in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(o[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(i,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(let r of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return i}function G(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function W(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}function K(e){return o.version.split(".")[0]>="19"?e.props.ref:e.ref}function Z(e){return e===o.Fragment||e===Symbol.for("react.fragment")}function X(e){return Z(e.type)}function Y(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Z(null!=(t=e.as)?t:ea)||1===o.Children.count(e.children)}let Q=(0,o.createContext)(null);Q.displayName="TransitionContext";var ee=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ee||{});function et(){let e=(0,o.useContext)(Q);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function er(){let e=(0,o.useContext)(en);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let en=(0,o.createContext)(null);function ei(e){return"children"in e?ei(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function eo(e,t){let r=g(e),n=(0,o.useRef)([]),i=b(),a=l(),s=y(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.Hidden,o=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==o&&(D(t,{[F.Unmount](){n.current.splice(o,1)},[F.Hidden](){n.current[o].state="hidden"}}),a.microTask(()=>{var e;!ei(n)&&i.current&&(null==(e=r.current)||e.call(r))}))}),u=y(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>s(e,F.Unmount)}),c=(0,o.useRef)([]),f=(0,o.useRef)(Promise.resolve()),d=(0,o.useRef)({enter:[],leave:[]}
5),h=y((e,r,n)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{c.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(d.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())})]),"enter"===r?f.current=f.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),p=y((e,t,r)=>{Promise.all(d.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=c.current.shift())||e()}).then(()=>r(t))});return(0,o.useMemo)(()=>({children:n,register:u,unregister:s,onStart:h,onStop:p,wait:f,chains:d}),[u,s,n,h,p,d,f])}en.displayName="NestingContext";let ea=o.Fragment,es=B.RenderStrategy;function eu(e,t){var r,n;let{transition:i=!0,beforeEnter:a,afterEnter:s,beforeLeave:u,afterLeave:l,enter:c,enterFrom:f,enterTo:d,entered:h,leave:p,leaveFrom:g,leaveTo:b,...v}=e,[w,S]=(0,o.useState)(null),E=(0,o.useRef)(null),k=Y(e),T=x(...k?[E,t,S]:null===t?[]:[t]),O=null==(r=v.unmount)||r?F.Unmount:F.Hidden,{show:C,appear:P,initial:R}=et(),[I,B]=(0,o.useState)(C?"visible":"hidden"),q=er(),{register:$,unregister:z}=q;m(()=>$(E),[$,E]),m(()=>{if(O===F.Hidden&&E.current)return C&&"visible"!==I?void B("visible"):D(I,{hidden:()=>z(E),visible:()=>$(E)})},[I,E,$,z,C,O]);let V=_();m(()=>{if(k&&V&&"visible"===I&&null===E.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,I,V,k]);let H=R&&!P,G=P&&C&&R,J=(0,o.useRef)(!1),K=eo(()=>{J.current||(B("hidden"),z(E))},q),Z=y(e=>{J.current=!0;let t=e?"enter":"leave";K.onStart(E,t,e=>{"enter"===e?null==a||a():"leave"===e&&(null==u||u())})}),X=y(e=>{let t=e?"enter":"leave";J.current=!1,K.onStop(E,t,e=>{"enter"===e?null==s||s():"leave"===e&&(null==l||l())}),"leave"!==t||ei(K)||(B("hidden"),z(E))});(0,o.useEffect)(()=>{k&&i||(Z(C),X(C))},[C,k,i]);let[,Q]=M(!(!i||!k||!V||H),w,C,{start:Z,end:X}),ee=W({ref:T,className:(null==(n=L(v.className,G&&c,G&&f,Q.enter&&c,Q.enter&&Q.closed&&f,Q.enter&&!Q.closed&&d,Q.leave&&p,Q.leave&&!Q.closed&&g,Q.leave&&Q.closed&&b,!Q.transition&&C&&h))?void 0:n.trim())||void 0,...A(Q)}),eu=0;"visible"===I&&(eu|=j.Open),"hidden"===I&&(eu|=j.Closed),C&&"hidden"===I&&(eu|=j.Opening),C||"visible"!==I||(eu|=j.Closing);let el=U();return o.createElement(en.Provider,{value:K},o.createElement(N,{value:eu},el({ourProps:ee,theirProps:v,defaultTag:ea,features:es,visible:"visible"===I,name:"Transition.Child"})))}function el(e,t){let r=null!==(0,o.useContext)(Q),n=null!==I();return o.createElement(o.Fragment,null,!r&&n?o.createElement(ec,{ref:t,...e}):o.createElement(ef,{ref:t,...e}))}let ec=G(function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...a}=e,s=(0,o.useRef)(null),u=x(...Y(e)?[s,t]:null===t?[]:[t]);_();let l=I();if(void 0===r&&null!==l&&(r=(l&j.Open)===j.Open),void 0===r)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=(0,o.useState)(r?"visible":"hidden"),d=eo(()=>{r||f("hidden")}),[h,p]=(0,o.useState)(!0),g=(0,o.useRef)([r]);m(()=>{!1!==h&&g.current[g.current.length-1]!==r&&(g.current.push(r),p(!1))},[g,r]);let b=(0,o.useMemo)(()=>({show:r,appear:n,initial:h}),[r,n,h]);m(()=>{r?f("visible"):ei(d)||null===s.current||f("hidden")},[r,d]);let v={unmount:i},w=y(()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),S=y(()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),E=U();return o.createElement(en.Provider,{value:d},o.createElement(Q.Provider,{value:b},E({ourProps:{...v,as:o.Fragment,children:o.createElement(ef,{ref:u,...v,...a,beforeEnter:w,beforeLeave:S})},theirProps:{},defaultTag:o.Fragment,features:es,visible:"visible"===c,name:"Transition"})))}),ef=G(eu),ed=G(el),eh=Object.assign(ec,{Child:ed,Root:ec})},63141:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext(void 0)},63426:(e,t,r)=>{var n="/",i=r(82909).Buffer,o=r(99742);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6
vendor: 18,614 bytes, line 5
5701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};f.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},l.forEach(function(e){c.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(e,u,n.any),e.isError(a))return a}else{var l=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(l)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var c=this._decodeTag(e,n.explicit);if(e.isError(c))return c;e=c}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)var l=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(l):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e)if(null===o.default)return;else e=o.default;var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},u))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var l=null!==o.implicit?o.implicit:o.tag,c=null===o.implicit?"universal":"context";null===l?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(l,s,c,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=u,u.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(l,o.Node),l.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=c(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},l.prototype._decodeTag=function(e,t,r){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var r,n=c(e,t);if(e.isError(n))return n;var i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();else if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,(128&a)==0&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var l=t[n.join(" ")];void 0===l&&(l=t[n.join(".")]),void 0!==l&&(n=l)}return n},l.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var r=new a(e.raw());return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var n=t;n.der=r(2259),n.pem=r(8527)},8527:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(2259);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,l=0;l<r.length;l++){var c=r[l].match(a);if(null!==c&&c[2]===n)if(-1===s){if("BEGIN"!==c[1])break;s=l}else{if("END"!==c[1])break;u=l;break}}if(-1===s||-1===u)throw Error("PEM section not found for: "+n);var f=r.slice(s+1,u).join("");
5f.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(f,"base64");return o.prototype.decode.call(this,d,t)}},7804:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(7160),a=o.base,s=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}function f(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,a.Node),l.prototype._encodeComposite=function(e,t,r,n){var o=f(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,u=n.length;u>=256;u>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var u=1+s,l=n.length;l>0;u--,l>>=8)a[u]=255&l;return this._createEncoderBuffer([a,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}if("numstr"===t)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===t)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(t))return this._createEncoderBuffer(e);else if("objDesc"===t)return this._createEncoderBuffer(e);else return this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}for(var s=new i(o),u=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=""+c(n.getFullYear())+c(n.getUTCMonth()+1)+c(n.getUTCDate())+c(n.getUTCHours())+c(n.getUTCMinutes())+c(n.getUTCSeconds())+"Z":"utctime"===t?r=""+c(n.getFullYear()%100)+c(n.getUTCMonth()+1)+c(n.getUTCDate())+c(n.getUTCHours())+c(n.getUTCMinutes())+c(n.getUTCSeconds())+"Z":this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;
vendor: 4,911 bytes, line 5
5var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},3418:function(e,t,r){var n=t;n.der=r(7804),n.pem=r(1564)},1564:function(e,t,r){var n=r(3782),i=r(7804);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u=r(4300).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,a>=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,l=0,c=r;c<u;c+=n)l=s(e,c,c+n,t),this.imuln(i),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=s(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 4,559 bytes, line 5
50x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function d(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,u=a/0x4000000|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=u>>>26,f=0x3ffffff&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&0xffffff).toString(16);r=0!=(o=s>>>24-i&0xffffff)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=c[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==u),this.toArrayLike(u,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var u="le"===t,l=new e(s),c=this.clone();if(u){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[o]=i;for(;o<s;o++)l[o]=0}else{for(o=0;o<s-a;o++)l[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[s-o-1]=i}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 34,623 bytes, line 5
5n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],S=8191&x,E=x>>>13,k=0|a[5],A=8191&k,M=k>>>13,T=0|a[6],O=8191&T,C=T>>>13,P=0|a[7],R=8191&P,j=P>>>13,I=0|a[8],N=8191&I,L=I>>>13,D=0|a[9],B=8191&D,F=D>>>13,U=0|s[0],q=8191&U,$=U>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,J=G>>>13,K=0|s[3],Z=8191&K,X=K>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,el=es>>>13,ec=0|s[8],ef=8191&ec,ed=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,q);var eg=(l+n|0)+((8191&(i=(i=Math.imul(f,$))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,$))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,q),i=(i=Math.imul(p,$))+Math.imul(m,q)|0,o=Math.imul(m,$),n=n+Math.imul(f,V)|0;var ey=(l+n|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(d,V)|0))<<13)|0;l=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,$))+Math.imul(b,q)|0,o=Math.imul(b,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,H)|0,n=n+Math.imul(f,W)|0;var eb=(l+n|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(_,q),i=(i=Math.imul(_,$))+Math.imul(w,q)|0,o=Math.imul(w,$),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,H)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,H)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(f,Z)|0;var ev=(l+n|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(S,q),i=(i=Math.imul(S,$))+Math.imul(E,q)|0,o=Math.imul(E,$),n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,H)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(f,Q)|0;var e_=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(A,q),i=(i=Math.imul(A,$))+Math.imul(M,q)|0,o=Math.imul(M,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var ew=(l+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;l=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(O,q),i=(i=Math.imul(O,$))+Math.imul(C,q)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,H)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(f,eo)|0;var ex=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;l=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(R,q),i=(i=Math.imul(R,$))+Math.imul(j,q)|0,o=Math.imul(j,$),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,H)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,H)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(f,eu)|0;var eS=(l+n|0)+((8191&(i=(i=i+Math.imul(f,el)|0)+Math.imul(d,eu)|0))<<13)|0;l=((o=o+Math.imul(d,el)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(N,q),i=(i=Math.imul(N,$))+Math.imul(L,q)|0,o=Math.imul(L,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,el)|0,n=n+Math.imul(f,ef)|0;var eE=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;l=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,q),i=(i=Math.imul(B,$))+Math.imul(F,q)|0,o=Math.imul(F,$),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(y,eu)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(b,eu)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(f,ep)|0;var ek=(l+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;l=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(B,V),i=(i=Math.imul(B,H))+Math.imul(F,V)|0,o=Math.imul(F,H),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(S,eo)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(w,eu)|0,o=o+Math.imul(w,el)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,ed)|0)+Math.imul(b,ef)|0,o=o+Math.imul(b,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(l+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;l=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(F,W)|0,o=Math.imul(F,J),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(S,eu)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(E,eu)|0,o=o+Math.imul(E,el)|0,n=n+Math.imul(_,ef)|0,i=(i=i+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,o=o+Math.imul(w,ed)|0,n=n+Math.imul(y,ep)|0;var eM=(l+n|0)+((8191&(i=(i=i+Math.imul(y,em)|0)+Math.imul(b,ep)|0))<<13)|0;l=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(B,Z),i=(i=Math.imul(B,X))+Math.imul(F,Z)|0,o=Math.imul(F,X),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,el)|0,n=n+Math.imul(S,ef)|0,i=(i=i+Math.imul(S,ed)|0)+Math.imul(E,ef)|0,o=o+Math.imul(E,ed)|0,n=n+Math.imul(_,ep)|0;var eT=(l+n|0)+((8191&(i=(i=i+Math.imul(_,em)|0)+Math.imul(w,ep)|0))<<13)|0;l=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(L,er)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(O,eu)|0,i=(i=i+Math.imul(O,el)|0)+Math.imul(C,eu)|0,o=o+Math.imul(C,el)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul(S,ep)|0;var eO=(l+n|0)+((8191&(i=(i=i+Math.imul(S,em)|0)+Math.imul(E,ep)|0))<<13)|0;l=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(F,er)|0,o=Math.imul(F,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,ea)|0,n=n+Math.imul(R,eu)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(j,eu)|0,o=o+Math.imul(j,el)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(C,ef)|0,o=o+Math.imul(C,ed)|0,n=n+Math.imul(A,ep)|0;var eC=(l+n|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;l=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,el)|0)+Math.imul(L,eu)|0,o=o+Math.imul(L,el)|0,n=n+Math.imul(R,ef)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(O,ep)|0;var eP=(l+n|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(C,ep)|0))<<13)|0;l=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(B,eu),i=(i=Math.imul(B,el))+Math.imul(F,eu)|0,o=Math.imul(F,el),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(L,ef)|0,o=o+Math.imul(L,ed)|0,n=n+Math.imul(R,ep)|0;var eR=(l+n|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(j,ep)|0))<<13)|0;l=((o=o+Math.imul(j,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(B,ef),i=(i=Math.imul(B,ed))+Math.imul(F,ef)|0,o=Math.imul(F,ed),n=n+Math.imul(N,ep)|0;var ej=(l+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(L,ep)|0))<<13)|0;l=((o=o+Math.imul(L,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(B,ep);var eI=(l+n|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(F,ep)|0))<<13)|0;return l=((o=Math.imul(F,em))+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,u[0]=eg,u[1]=ey,u[2]=eb,u[3]=ev,u[4]=e_,u[5]=ew,u[6]=ex,u[7]=eS,u[8]=eE,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eT,u[13]=eO,u[14]=eC,u[15]=eP,u[16]=eR,u[17]=ej,u[18]=eI,0!==l&&(u[19]=l,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,f=(0|e.words[c])*(0|t.words[l]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=r[c+h],m=n[c+h],g=r[c+h+a],y=n[c+h+a],b=f*g-d*y;y=f*y+d*g,g=b,r[c+h]=p+g,n[c+h]=m+y,r[c+h+a]=p-g,n[c+h+a]=m-y,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),c=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,o,s,u,n,i),this.transform(l,o,c,f,n,i);for(var h=0;h<n;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(0x3ffffff&i)+(0x3ffffff&t);t>>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=d(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=0x3ffffff&u,s=(o>>26)-(u/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var c=i.clone()._ishlnsubmul(a,1,u);0===c.negative&&(i=c,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(r.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(_,v),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,v),i(x,v),i(S,v),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(b[e])return b[e];if("k256"===e)t=new _;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else if("p25519"===e)t=new S;else throw Error("Unknown prime "+e);return b[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var y=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(y),f=y.redSqr(),h=h.redMul(f),p=g}return d},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],f=l-1;f>=0;f--){var d=c>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}l=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,E),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,225 bytes, line 5
5"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s<o;s++){var u,l=e.charCodeAt(s)-48;i<<=4,i|=u=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=u}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var l=e.charCodeAt(u)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,l=0,c=r;c<u;c+=n)l=s(e,c,c+n,t),this.imuln(i),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=s(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l:o.prototype.inspect=l;var c,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 19,586 bytes, line 5
50x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&0xffffff).toString(16);r=0!=(o=s>>>24-i&0xffffff)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:f[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,u=a/0x4000000|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=u>>>26,f=0x3ffffff&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],S=8191&x,E=x>>>13,k=0|a[5],A=8191&k,M=k>>>13,T=0|a[6],O=8191&T,C=T>>>13,P=0|a[7],R=8191&P,j=P>>>13,I=0|a[8],N=8191&I,L=I>>>13,D=0|a[9],B=8191&D,F=D>>>13,U=0|s[0],q=8191&U,$=U>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,J=G>>>13,K=0|s[3],Z=8191&K,X=K>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,el=es>>>13,ec=0|s[8],ef=8191&ec,ed=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,q);var eg=(l+n|0)+((8191&(i=(i=Math.imul(f,$))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,$))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,q),i=(i=Math.imul(p,$))+Math.imul(m,q)|0,o=Math.imul(m,$),n=n+Math.imul(f,V)|0;var ey=(l+n|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(d,V)|0))<<13)|0;l=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(y,q),i=(i=Math.imul(y,$))+Math.imul(b,q)|0,o=Math.imul(b,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,H)|0,n=n+Math.imul(f,W)|0;var eb=(l+n|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(_,q),i=(i=Math.imul(_,$))+Math.imul(w,q)|0,o=Math.imul(w,$),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,H)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,H)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(f,Z)|0;var ev=(l+n|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(S,q),i=(i=Math.imul(S,$))+Math.imul(E,q)|0,o=Math.imul(E,$),n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,H)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,J)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(f,Q)|0;var e_=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(A,q),i=(i=Math.imul(A,$))+Math.imul(M,q)|0,o=Math.imul(M,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var ew=(l+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;l=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(O,q),i=(i=Math.imul(O,$))+Math.imul(C,q)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(M,V)|0,o=o+Math.imul(M,H)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(f,eo)|0;var ex=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;l=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(R,q),i=(i=Math.imul(R,$))+Math.imul(j,q)|0,o=Math.imul(j,$),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,H)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,H)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(f,eu)|0;var eS=(l+n|0)+((8191&(i=(i=i+Math.imul(f,el)|0)+Math.imul(d,eu)|0))<<13)|0;l=((o=o+Math.imul(d,el)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(N,q),i=(i=Math.imul(N,$))+Math.imul(L,q)|0,o=Math.imul(L,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,el)|0,n=n+Math.imul(f,ef)|0;var eE=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;l=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,q),i=(i=Math.imul(B,$))+Math.imul(F,q)|0,o=Math.imul(F,$),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,H)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(y,eu)|0,i=(i=i+Math.imul(y,el)|0)+Math.imul(b,eu)|0,o=o+Math.imul(b,el)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(f,ep)|0;var ek=(l+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;l=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(B,V),i=(i=Math.imul(B,H))+Math.imul(F,V)|0,o=Math.imul(F,H),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(S,eo)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(w,eu)|0,o=o+Math.imul(w,el)|0,n=n+Math.imul(y,ef)|0,i=(i=i+Math.imul(y,ed)|0)+Math.imul(b,ef)|0,o=o+Math.imul(b,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(l+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;l=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(B,W),i=(i=Math.imul(B,J))+Math.imul(F,W)|0,o=Math.imul(F,J),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(S,eu)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(E,eu)|0,o=o+Math.imul(E,el)|0,n=n+Math.imul(_,ef)|0,i=(i=i+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,o=o+Math.imul(w,ed)|0,n=n+Math.imul(y,ep)|0;var eM=(l+n|0)+((8191&(i=(i=i+Math.imul(y,em)|0)+Math.imul(b,ep)|0))<<13)|0;l=((o=o+Math.imul(b,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(B,Z),i=(i=Math.imul(B,X))+Math.imul(F,Z)|0,o=Math.imul(F,X),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,el)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,el)|0,n=n+Math.imul(S,ef)|0,i=(i=i+Math.imul(S,ed)|0)+Math.imul(E,ef)|0,o=o+Math.imul(E,ed)|0,n=n+Math.imul(_,ep)|0;var eT=(l+n|0)+((8191&(i=(i=i+Math.imul(_,em)|0)+Math.imul(w,ep)|0))<<13)|0;l=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(L,er)|0,o=o+Math.imul(L,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(O,eu)|0,i=(i=i+Math.imul(O,el)|0)+Math.imul(C,eu)|0,o=o+Math.imul(C,el)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul(S,ep)|0;var eO=(l+n|0)+((8191&(i=(i=i+Math.imul(S,em)|0)+Math.imul(E,ep)|0))<<13)|0;l=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(F,er)|0,o=Math.imul(F,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,ea)|0,n=n+Math.imul(R,eu)|0,i=(i=i+Math.imul(R,el)|0)+Math.imul(j,eu)|0,o=o+Math.imul(j,el)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(C,ef)|0,o=o+Math.imul(C,ed)|0,n=n+Math.imul(A,ep)|0;var eC=(l+n|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(M,ep)|0))<<13)|0;l=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(F,eo)|0,o=Math.imul(F,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,el)|0)+Math.imul(L,eu)|0,o=o+Math.imul(L,el)|0,n=n+Math.imul(R,ef)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(O,ep)|0;var eP=(l+n|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(C,ep)|0))<<13)|0;l=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(B,eu),i=(i=Math.imul(B,el))+Math.imul(F,eu)|0,o=Math.imul(F,el),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(L,ef)|0,o=o+Math.imul(L,ed)|0,n=n+Math.imul(R,ep)|0;var eR=(l+n|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(j,ep)|0))<<13)|0;l=((o=o+Math.imul(j,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(B,ef),i=(i=Math.imul(B,ed))+Math.imul(F,ef)|0,o=Math.imul(F,ed),n=n+Math.imul(N,ep)|0;var ej=(l+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(L,ep)|0))<<13)|0;l=((o=o+Math.imul(L,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(B,ep);var eI=(l+n|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(F,ep)|0))<<13)|0;return l=((o=Math.imul(F,em))+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,u[0]=eg,u[1]=ey,u[2]=eb,u[3]=ev,u[4]=e_,u[5]=ew,u[6]=ex,u[7]=eS,u[8]=eE,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eT,u[13]=eO,u[14]=eC,u[15]=eP,u[16]=eR,u[17]=ej,u[18]=eI,0!==l&&(u[19]=l,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,u=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=u;l++){var c=o-l,f=(0|e.words[c])*(0|t.words[l]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return b(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(y=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?g(this,e,t):r<1024?b(this,e,t):v(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},_.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},_.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=r[c+h],m=n[c+h],g=r[c+h+a],y=n[c+h+a],b=f*g-d*y;y=f*y+d*g,g=b,r[c+h]=p+g,n[c+h]=m+y,r[c+h+a]=p-g,n[c+h+a]=m-y,h!==s&&(b=u*f-l*d,d=u*d+l*f,f
vendor: 4,289 bytes, line 5
5=b)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},_.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},_.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),l=Array(n),c=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,o,s,u,n,i),this.transform(l,o,c,f,n,i);for(var h=0;h<n;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?
vendor: 11,616 bytes, line 5
5(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=0x3ffffff&u,s=(o>>26)-(u/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var c=i.clone()._ishlnsubmul(a,1,u);0===c.negative&&(i=c,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(r.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(S,x),S.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,x),i(k,x),i(A,x),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
vendor: 12,815 bytes, line 5
5r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new S;else if("p224"===e)t=new E;else if("p192"===e)t=new k;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return w[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var y=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(y),f=y.redSqr(),h=h.redMul(f),p=g}return d},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],f=l-1;f>=0;f--){var d=c>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}l=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,M),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(6113);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var n=r(6911).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,r,n,i){for(var o,a,s,u,l=r[0],c=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],y=4,b=1;b<i;b++)o=l[h>>>24]^c[p>>>16&255]^f[m>>>8&255]^d[255&g]^t[y++],a=l[p>>>24]^c[m>>>16&255]^f[g>>>8&255]^d[255&h]^t[y++],s=l[m>>>24]^c[g>>>16&255]^f[h>>>8&255]^d[255&p]^t[y++],u=l[g>>>24]^c[h>>>16&255]^f[p>>>8&255]^d[255&m]^t[y++],h=o,p=a,m=s,g=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[y++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[y++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],[o>>>=0,a>>>=0,s>>>=0,u=((n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[y++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,r[a]=l,n[l]=a;var c=e[a],f=e[c],d=e[f],h=257*e[l]^0x1010100*l;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=0x1010101*d^65537*f^257*c^0x1010100*a,o[0][l]=h<<24|h>>>8,o[1][l]=h<<16|h>>>16,o[2][l]=h<<8|h>>>24,o[3][l]=h,0===a?a=s=1:(a=c^e[e[e[d^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var l=[],c=0;c<n;c++){var f=n-c,d=i[f-(c%4?0:4)];c<4||f<=4?l[c]=d:l[c]=u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=l},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),u=r(4734),l=r(598);function c(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function f(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,c=i.alloc(8);c.writeUIntBE(u,0,8),n.update(c),e._finID=n.state;var f=i.from(e._finID);return l(f),f}function d(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(u);this._ghash=new s(l),r=f(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=d},6594:function(e,t,r){var n=r(2),i=r(2598),o=r(5866);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=a},2598:function(e,t,r){var n=r(6624),i=r(6911).Buffer,o=r(6370),a=r(126),s=r(1043),u=r(1387),l=r(8368);function c(e,t,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new c(s.module,t,r)}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=l(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),u=r(1387),l=r(8368);function c(e,t,r){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new c(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=l(t,!1,r.key,r.iv);
5return h(e,i.key,i.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},7225:function(e,t,r){var n=r(6911).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=o(this.h),n=[0,0,0,0],i=-1;++i<128;){for((this.state[~~(i/8)]&1<<7-i%8)!=0&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,u=8,l=0;++s<u;)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,l+=(128&(a=n[0]^i))>>s%8,e._prev=o(e._prev,r?i:a);return l}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},2430:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},3361:function(e,t,r){var n=r(4734),i=r(6911).Buffer,o=r(598);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(r*s)]);for(var u=0;u<r;u++){var l=a(e),c=o+u*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var n={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},i=r(5866);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},3412:function(e,t,r){var n=r(4734);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3782)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},8996:function(e,t,r){var n=r(5238),i=r(6594),o=r(6370),a=r(6280),s=r(8368);function u(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return c(e,i.key,i.iv)}function l(e,t,r){if(o[e=e.toLowerCase()])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function c(e,t,r){if(o[e=e.toLowerCase()])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function f(){return Object.keys(a).concat(i.getCiphers())}t.createCipher=t.Cipher=function(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return l(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=u,t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=f},5238:function(e,t,r){var n=r(1043),i=r(9536),o=r(3782),a=r(6911).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),("des-ede"===r||"des-ede-cbc"===r)&&(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),o=r(7223);function a(e){var t=u(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=a(t),o=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),u=s.toRed(n.mont(t.prime1)),l=s.toRed(n.mont(t.prime2)),c=t.coefficient,f=t.prime1,d=t.prime2,h=u.redPow(t.exponent1),p=l.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(c).umod(f);return m.imul(d),p.iadd(m),new i(p.imul(r.unblinder).umod(t.modulus).toArray(!1,o))}function u(e){for(var t=e.modulus.byteLength(),r=new n(o(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=u},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),u=r(4013),l=r(2908);function c(e){o.Writable.call(this);var t=l[e];if(!t)throw Error("Unknown message digest");
5this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){o.Writable.call(this);var t=l[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new c(e)}function h(e){return new f(e)}Object.keys(l).forEach(function(e){l[e].id=n.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]}),a(c,o.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),u(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),u=r(9902),l=r(9267);function c(e,t){var r=l[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function f(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,u=t.params.g,l=new s(0),c=p(e,a).mod(a),f=!1,m=h(i,a,e,r);!1===f;)l=y(u,n=g(a,m,r),o,a),0===(f=n.invm(a).imul(c.add(i.mul(l))).mod(a)).cmpn(0)&&(f=!1,l=new s(0));return d(l,f)}function d(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function h(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=m(r,t),l=n.alloc(s);l.fill(1);var c=n.alloc(s);return c=i(o,c).update(l).update(n.from([0])).update(e).update(u).digest(),l=i(o,c).update(l).digest(),c=i(o,c).update(l).update(n.from([1])).update(e).update(u).digest(),l=i(o,c).update(l).digest(),{k:c,v:l}}function p(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function m(e,t){e=(e=p(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}function g(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=p(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function y(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,a){var s=u(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return c(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return f(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var l=s.modulus.byteLength(),d=[0,1];e.length+d.length+1<l;)d.push(255);d.push(0);for(var h=-1;++h<e.length;)d.push(e[h]);return o(d,s)},e.exports.getKey=h,e.exports.makeKey=g},4013:function(e,t,r){var n=r(6911).Buffer,i=r(1670),o=r(949).ec,a=r(9902),s=r(9267);function u(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}function l(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,l=a.signature.decode(e,"der"),f=l.s,d=l.r;c(f,o),c(d,o);var h=i.mont(n),p=f.invm(o);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}function c(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=function(e,t,r,o,s){var c=a(r);if("ec"===c.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return u(e,t,c)}if("dsa"===c.type){if("dsa"!==o)throw Error("wrong public key type");return l(e,t,c)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var f=c.modulus.byteLength(),d=[1],h=0;t.length+d.length+2<f;)d.push(255),h++;d.push(0);for(var p=-1;++p<t.length;)d.push(t[p]);d=n.from(d);var m=i.mont(c.modulus);e=(e=new i(e).toRed(m)).redPow(new i(c.publicExponent));var g=+(h<8);for(f=Math.min((e=n.from(e.fromRed().toArray())).length,d.length),e.length!==d.length&&(g=1),p=-1;++p<f;)g|=e[p]^d[p];return 0===g}},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;o<r;++o)n[o]=e[o]^t[o];return n}},1043:function(e,t,r){var n=r(6911).Buffer,i=r(2781).Transform,o=r(1576).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a}
vendor: 7,079 bytes, line 5
5,9942:function(e,t,r){var n=r(949),o=r(711);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i(e);if(r&&n.length<r){var o=new i(r-n.length);o.fill(0),n=i.concat([o,n])}return t?n.toString(t):n}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.isBuffer(e)||(e=new i(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var n=r(3782),i=r(3533),o=r(3225),a=r(4371),s=r(1043);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},450:function(e,t,r){var n=r(3533);e.exports=function(e){return(new n).update(e).digest()}},4873:function(e,t,r){"use strict";var n=r(3782),i=r(8119),o=r(1043),a=r(6911).Buffer,s=r(450),u=r(3225),l=r(4371),c=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:l(e)).update(t).digest():t.length<r&&(t=a.concat([t,c],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:l(e),this._hash.update(n)}n(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},8119:function(e,t,r){"use strict";var n=r(3782),i=r(6911).Buffer,o=r(1043),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,o),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var n=r(3523);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(5334),a=r(9876);function s(){this.tmp=[,,],this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=l[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt
5(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var l=e.keys[u],c=e.keys[u+1];o.expand(s,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var f=o.substitute(l,c),d=o.permute(f),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var l=e.keys[u],c=e.keys[u+1];o.expand(a,e.tmp,0),l^=e.tmp[0],c^=e.tmp[1];var f=o.substitute(l,c),d=o.permute(f),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&0xfffffff|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>r[u]&1;for(var u=s;u<r.length;u++)a<<=1,a|=t>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},6587:function(e,t,r){var n=r(296),o=r(7992),a=r(373),s={binary:!0,hex:!0,base64:!0};function u(e,t,r,o){return i.isBuffer(t)||void 0===s[t]?u(e,"binary",t,r):(t=t||"b
5inary",o=o||"binary",r=r||new i([2]),i.isBuffer(r)||(r=new i(r,o)),"number"==typeof e)?new a(n(e,r),r,!0):(i.isBuffer(e)||(e=new i(e,t)),new a(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){return new a(new i(o[e].prime,"hex"),new i(o[e].gen,"hex"))},t.createDiffieHellman=t.DiffieHellman=u},373:function(e,t,r){var n=r(711),o=new(r(1354)),a=new n(24),s=new n(11),u=new n(10),l=new n(3),c=new n(7),f=r(296),d=r(7223);function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}e.exports=y;var m={};function g(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var d=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!o.test(e))return d+=1,"02"===n||"05"===n?d+=8:d+=4,m[i]=d,d;switch(!o.test(e.shrn(1))&&(d+=2),n){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(r=e.mod(u)).cmp(l)&&r.cmp(c)&&(d+=8);break;default:d+=4}return m[i]=d,d}function y(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function b(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(e){var t=new i((e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(t.length<r.length){var o=new i(r.length-t.length);o.fill(0),t=i.concat([o,t])}return t},y.prototype.getPublicKey=function(e){return b(this._pub,e)},y.prototype.getPrivateKey=function(e){return b(this._priv,e)},y.prototype.getPrime=function(e){return b(this.__prime,e)},y.prototype.getGenerator=function(e){return b(this._gen,e)},y.prototype.setGenerator=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var n=r(7223);e.exports=b,b.simpleSieve=g,b.fermatTest=y;var i=r(711),o=new i(24),a=new(r(1354)),s=new i(1),u=new i(2),l=new i(5);new i(16),new i(8);var c=new i(10),f=new i(3);new i(7);var d=new i(11),h=new i(4);new i(12);var p=null;function m(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!=0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return p=t,t}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))if(0!==e.cmpn(t[r]))return!1;else break;return!0}function y(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){var r,p;if(e<16)if(2===t||5===t)return new i([140,123]);else return new i([140,39]);for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(l))for(;r.mod(c).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(g(p=r.shrn(1))&&g(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
5function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],u=0;u<n.length;u+=r.step){for(var l=0,t=u+r.step-1;t>=u;t--)l=(l<<1)+n[t];a.push(l)}for(var c=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(var u=0;u<a.length;u++){var l=a[u];l===d?f=f.mixedAdd(r.points[u]):l===-d&&(f=f.mixedAdd(r.points[u].neg()))}c=c.add(f)}return c.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(var t=0;l>=0&&0===a[l];l--)t++;if(l>=0&&t++,u=u.dblp(t),l<0)break;var c=a[l];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,c=0,f=0;f<n;f++){var d=t[f],h=d._getNAFPoints(e);s[f]=h.wnd,u[f]=h.points}for(var f=n-1;f>=1;f-=2){var p=f-1,m=f;if(1!==s[p]||1!==s[m]){l[p]=o(r[p],s[p],this._bitLength),l[m]=o(r[m],s[m],this._bitLength),c=Math.max(l[p].length,c),c=Math.max(l[m].length,c);continue}var g=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(g[1]=t[p].add(t[m]),g[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(g[1]=t[p].toJ().mixedAdd(t[m]),g[2]=t[p].add(t[m].neg())):(g[1]=t[p].toJ().mixedAdd(t[m]),g[2]=t[p].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=a(r[p],r[m]);c=Math.max(b[0].length,c),l[p]=Array(c),l[m]=Array(c);for(var v=0;v<c;v++){var _=0|b[0][v],w=0|b[1][v];l[p][v]=y[(_+1)*3+(w+1)],l[m][v]=0,u[p]=g}}for(var x=this.jpoint(null,null,null),S=this._wnafT4,f=c;f>=0;f--){for(var E=0;f>=0;){for(var k=!0,v=0;v<n;v++)S[v]=0|l[v][f],0!==S[v]&&(k=!1);if(!k)break;
vendor: 4,239 bytes, line 5
5E++,f--}if(f>=0&&E++,x=x.dblp(E),f<0)break;for(var v=0;v<n;v++){var d,A=S[v];0!==A&&(A>0?d=u[v][A-1>>1]:A<0&&(d=u[v][-A-1>>1].neg()),x="affine"===d.type?x.mixedAdd(d):x.add(d))}}for(var f=0;f<n;f++)u[f]=null;return i?x:x.toP()},u.BasePoint=l,l.prototype.eq=function(){throw Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function l(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();
vendor: 4,080 bytes, line 5
5var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),l=o.redMul(s),c=i.redMul(s),f=a.redMul(o);return this.curve.point(u,l,f,c)},l.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),l=s.redSub(u).redISub(u);e=n.redSub(i).redISub(o).redMul(l),t=s.redMul(a.redSub(o)),r=s.redMul(l)}}else{var a=i.redAdd(o),u=this.curve._mulC(this.z).redSqr(),l=a.redSub(u).redSub(u);e=this.curve._mulC(n.redISub(a)).redMul(l),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(l)}return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),l=o.redMul(a),c=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(l,c,d,f)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(l)),this.curve.point(f,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);
vendor: 6,255 bytes, line 5
5function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function l(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,l,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),y=new i(1),b=0;0!==d.cmpn(0);){var v=h.div(d);l=h.sub(v.mul(d)),c=g.sub(v.mul(p));var _=y.sub(v.mul(m));if(!n&&0>l.cmp(f))t=u.neg(),r=p,n=l.neg(),o=c;else if(n&&2==++b)break;u=l,h=d,d=l,g=p,p=c,y=m,m=_}a=l.neg(),s=c;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(l).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return l},o(l,a.BasePoint),u.prototype.point=function(e,t,r){return new l(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,173 bytes, line 5
5omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))if(0!==u.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var l=s.redSqr(),c=l.redMul(s),f=n.redMul(l),d=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
vendor: 4,077 bytes, line 5
5var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=a.redSqr(),l=u.redMul(a),c=r.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),d=s.redMul(c.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},c.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),l=a.redAdd(a),r=0;r<e;r++){var c=o.redSqr(),f=l.redSqr(),d=f.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),y=h.redMul(g);y=y.redIAdd(y).redISub(d);var b=l.redMul(s);r+1<e&&(u=u.redMul(d)),o=m,s=b,l=y}return this.curve.jpoint(o,l.redMul(i),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=u,t=s.redMul(a.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(c).redISub(d);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),l=(u=u.redIAdd(u)).redMul(a),c=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(c),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,h,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(s).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(u.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},c.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 15,944 bytes, line 5
5,c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),u=o.assert,l=r(4724),c=r(7526);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(u(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new l(this,e)},f.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(l.generate(this.n.byteLength()));if(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(f)>=0)continue;var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=!!p.getY().isOdd()|2*(0!==m.cmp(g));return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new c({r:g,s:y,recoveryParam:b})}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new c(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(e).umod(this.n),l=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var f=this.g.mulAdd(u,r.getPublic(),l);return!f.isInfinity()&&0===f.getX().umod(this.n).cmp(o)}var f=this.g.jmulAdd(u,r.getPublic(),l);return!f.isInfinity()&&f.eqXToP(o)},f.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var o=this.n,a=new n(e),s=t.r,l=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=l.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var l=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var c=u(e,r);if(!1===c||e.length!==c+r.place)return!1;var f=e.slice(r.place,c+r.place);if(0===l[0])if(!(128&l[1]))return!1;else l=l.slice(1);if(0===f[0])if(!(128&f[1]))return!1;else f=f.slice(1);return this.r=new n(l),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,u=r(9917),l=r(9314);function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},c.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return o.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var n=r(4401),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},9702:function(e){e
vendor: 18,403 bytes, line 5
5.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 5
5a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
54401:function(e,t,r){"use strict";var n=t,i=r(711),o=r(3523),a=r(6545);function s(e){return"string"==typeof e?n.toArray(e,"hex"):e}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,u=t.andln(3)+i&3;if(3===s&&(s=-1),3===u&&(u=-1),(1&s)==0)o=0;else{var l=e.andln(7)+n&7;o=(3===l||5===l)&&2===u?-s:s}if(r[0].push(o),(1&u)==0)a=0;else{var l=t.andln(7)+i&7;a=(3===l||5===l)&&2===s?-u:u}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),l=n.alloc(0);a>0||o>0;){var c=new i;c.update(l),c.update(e),t&&c.update(t),l=c.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,l.length),l.copy(s,d,0,f),a-=f}if(f<l.length&&o>0){var h=u.length-o,p=Math.min(o,l.length-f);l.copy(u,h,f,f+p),o-=p}}return l.fill(0),{key:s,iv:u}}},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,u=8*e.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*u);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 9,640 bytes, line 5
5t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},3092:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],b=r,v=n,_=i,w=l,x=c,S=0;S<80;S++){var E=a(o(u(r,f(S,n,i,l),e[p[S]+t],d(S)),g[S]),c);r=c,c=l,l=o(i,10),i=n,n=E,E=a(o(u(b,f(79-S,v,_,w),e[m[S]+t],h(S)),y[S]),x),b=x,x=w,w=o(_,10),_=v,v=E}E=s(this.h[1],i,w),this.h[1]=s(this.h[2],l,x),this.h[2]=s(this.h[3],c,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,_),this.h[0]=E},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=n.rotl32,s=n.sum32,u=n.sum32_5,l=o.ft_1,c=i.BlockHash,f=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=u(a(i,5),l(p,o,c,d),h,r[n],f[p]);h=d,d=c,c=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var n=r(263),i=r(1525);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=r(3523),s=n.sum32,u=n.sum32_4,l=n.sum32_5,c=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=y,this.W=Array(64)}n.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=l(w,h(b),c(b,v,_),this.k[n],r[n]),S=s(d(i),f(i,o,g));w=_,_=v,v=b,b=s(y,x),y=g,g=o,o=i,i=s(x,S)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var n=r(263),i=r(1319);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(3523),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,l=n.shr64_lo,c=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=i.BlockHash,b=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function v(){if(!(this instanceof v))return new v;
5y.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=b,this.W=Array(160)}function _(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function E(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function k(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}function C(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=C(r[n-4],r[n-3]),o=P(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=T(r[n-30],r[n-29]),l=O(r[n-30],r[n-29]),c=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,u,l,c,f),r[n+1]=p(i,o,a,s,u,l,c,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],h=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],T=this.h[11],O=this.h[12],C=this.h[13],P=this.h[14],R=this.h[15];o(this.k.length===r.length);for(var j=0;j<r.length;j+=2){var I=P,N=R,L=A(y,b),D=M(y,b),B=_(y,b,v,T,O,C),F=w(y,b,v,T,O,C),U=this.k[j],q=this.k[j+1],$=r[j],z=r[j+1],V=m(I,N,L,D,B,F,U,q,$,z),H=g(I,N,L,D,B,F,U,q,$,z);I=E(n,i),N=k(n,i);var G=f(I,N,L=x(n,i,a,s,u,l),D=S(n,i,a,s,u,l)),W=d(I,N,L,D);P=O,R=C,O=v,C=T,v=y,T=b,y=f(h,p,V,H),b=d(p,p,V,H),h=u,p=l,u=a,l=s,a=n,s=i,n=f(V,H,G,W),i=d(V,H,G,W)}c(this.h,0,n,i),c(this.h,2,a,s),c(this.h,4,u,l),c(this.h,6,h,p),c(this.h,8,y,b),c(this.h,10,v,T),c(this.h,12,O,C),c(this.h,14,P,R)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var n=r(263).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},263:function(e,t,r){"use strict";var n=r(3523);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(3782),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),u=0,l=t;u<s.length;u++,l+=4)o="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[u]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>
vendor: 11,705 bytes, line 5
50,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u,l=t;return e+r+i+a+(u=0+ +((l=l+n>>>0)<t)+ +((l=l+o>>>0)<o)+ +((l=l+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,l){var c,f=t;return e+r+i+a+u+(c=0+ +((f=f+n>>>0)<t)+ +((f=f+o>>>0)<o)+ +((f=f+s>>>0)<s)+ +((f=f+l>>>0)<l))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,l){return t+n+o+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=0x1000000000000},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var n=r(3782),i=r(9029),o=r(6911).Buffer,a=Array(16);function s(){i.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function u(e,t){return e<<t|e>>>32-t}function l(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=l(r,n,i,o,e[0],0xd76aa478,7),o=l(o,r,n,i,e[1],0xe8c7b756,12),i=l(i,o,r,n,e[2],0x242070db,17),n=l(n,i,o,r,e[3],0xc1bdceee,22),r=l(r,n,i,o,e[4],0xf57c0faf,7),o=l(o,r,n,i,e[5],0x4787c62a,12),i=l(i,o,r,n,e[6],0xa8304613,17),n=l(n,i,o,r,e[7],0xfd469501,22),r=l(r,n,i,o,e[8],0x698098d8,7),o=l(o,r,n,i,e[9],0x8b44f7af,12),i=l(i,o,r,n,e[10],0xffff5bb1,17),n=l(n,i,o,r,e[11],0x895cd7be,22),r=l(r,n,i,o,e[12],0x6b901122,7),o=l(o,r,n,i,e[13],0xfd987193,12),i=l(i,o,r,n,e[14],0xa679438e,17),n=l(n,i,o,r,e[15],0x49b40821,22),r=c(r,n,i,o,e[1],0xf61e2562,5),o=c(o,r,n,i,e[6],0xc040b340,9),i=c(i,o,r,n,e[11],0x265e5a51,14),n=c(n,i,o,r,e[0],0xe9b6c7aa,20),r=c(r,n,i,o,e[5],0xd62f105d,5),o=c(o,r,n,i,e[10],0x2441453,9),i=c(i,o,r,n,e[15],0xd8a1e681,14),n=c(n,i,o,r,e[4],0xe7d3fbc8,20),r=c(r,n,i,o,e[9],0x21e1cde6,5),o=c(o,r,n,i,e[14],0xc33707d6,9),i=c(i,o,r,n,e[3],0xf4d50d87,14),n=c(n,i,o,r,e[8],0x455a14ed,20),r=c(r,n,i,o,e[13],0xa9e3e905,5),o=c(o,r,n,i,e[2],0xfcefa3f8,9),i=c(i,o,r,n,e[7],0x676f02d9,14),n=c(n,i,o,r,e[12],0x8d2a4c8a,20),r=f(r,n,i,o,e[5],0xfffa3942,4),o=f(o,r,n,i,e[8],0x8771f681,11),i=f(i,o,r,n,e[11],0x6d9d6122,16),n=f(n,i,o,r,e[14],0xfde5380c,23),r=f(r,n,i,o,e[1],0xa4beea44,4),o=f(o,r,n,i,e[4],0x4bdecfa9,11),i=f(i,o,r,n,e[7],0xf6bb4b60,16),n=f(n,i,o,r,e[10],0xbebfbc70,23),r=f(r,n,i,o,e[13],0x289b7ec6,4),o=f(o,r,n,i,e[0],0xeaa127fa,11),i=f(i,o,r,n,e[3],0xd4ef3085,16),n=f(n,i,o,r,e[6],0x4881d05,23),r=f(r,n,i,o,e[9],0xd9d4d039,4),o=f(o,r,n,i,e[12],0xe6db99e5,11),i=f(i,o,r,n,e[15],0x1fa27cf8,16),n=f(n,i,o,r,e[2],0xc4ac5665,23),r=d(r,n,i,o,e[0],0xf4292244,6),o=d(o,r,n,i,e[7],0x432aff97,10),i=d(i,o,r,n,e[14],0xab9423a7,15),n=d(n,i,o,r,e[5],0xfc93a039,21),r=d(r,n,i,o,e[12],0x655b59c3,6),o=d(o,r,n,i,e[3],0x8f0ccc92,10),i=d(i,o,r,n,e[10],0xffeff47d,15),n=d(n,i,o,r,e[1],0x85845dd1,21),r=d(r,n,i,o,e[8],0x6fa87e4f,6),o=d(o,r,n,i,e[15],0xfe2ce6e0,10),i=d(i,o,r,n,e[6],0xa3014314,15),n=d(n,i,o,r,e[13],0x4e0811a1,21),r=d(r,n,i,o,e[4],0xf7537e82,6),o=d(o,r,n,i,e[11],0xbd3af235,10),i=d(i,o,r,n,e[2],0x2ad7d2bb,15),n=d(n,i,o,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var l=e.shrn(u),c=s.toRed(o),f=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(c))break}if(p===u)return!1}}return f},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),l=a.toRed(i);t>0;t--){var c=this._randrange(new n(2),a),f=e.gcd(c);if(0!==f.cmpn(1))return f;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(l)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},8687:function(e,t,r){"use strict";var n=r(7160);t.certificate=r(8782),t.RSAPrivateKey=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),t.PublicKey=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PrivateKey=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=n.define("DSAparam",function(){this.int()}),t.ECPrivateKey=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())});var o=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var n=r(7160),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),l=n.define("RDNSequence",function(){this.seqof(u)}),c=n.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(f),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())});
5e.exports=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())})},6501:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r(8368),s=r(6594),u=r(6911).Buffer;e.exports=function(e,t){var r,l=e.toString(),c=l.match(n);if(c){var f="aes"+c[1],d=u.from(c[2],"hex"),h=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(c[1],10)).key,m=[],g=s.createDecipheriv(f,p,d);m.push(g.update(h)),m.push(g.final()),r=u.concat(m)}else r=new u(l.match(o)[2].replace(/[\r\n]/g,""),"base64");return{tag:l.match(i)[1],data:r}}},9902:function(e,t,r){var n=r(8687),i=r(2510),o=r(6501),a=r(6594),s=r(4978),u=r(6911).Buffer;function l(e){"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var t,r,i,a=o(e,t),s=a.tag,l=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!i&&(i=n.PublicKey.decode(l,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":l=c(l=n.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=n.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw Error("unknown key type "+s)}}function c(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,f,"sha1"),h=a.createDecipheriv(o,d,l),p=[];return p.push(h.update(c)),p.push(h.final()),u.concat(p)}e.exports=l,l.signature=n.signature},4978:function(e,t,r){var n=r(6113),i=r(5349),o=r(7007),a=r(5407);function s(e,t,r,s,u,l){if(i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"==typeof u&&(l=u,u="sha1"),"function"!=typeof l)throw Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,u,l)}function u(e,t,r,s,u){return i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),u=u||"sha1",n.pbkdf2Sync(e,t,r,s,u)}n.pbkdf2Sync&&-1!==n.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=u,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(e,t,n){var i,a=n(6911).Buffer,s=n(5349),u=n(7007),l=n(2127),c=n(5407),f=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(e){if(r.g.process&&!r.g.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=m(i=i||a.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}function m(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}function g(e,t){e.then(function(e){o.nextTick(function(){t(null,e)})},function(e){o.nextTick(function(){t(e)})})}
5e.exports=function(e,t,n,i,a,f){"function"==typeof a&&(f=a,a=void 0);var h=d[(a=a||"sha1").toLowerCase()];if(!h||"function"!=typeof r.g.Promise)return o.nextTick(function(){var r;try{r=l(e,t,n,i,a)}catch(e){return f(e)}f(null,r)});if(s(n,i),e=c(e,u,"Password"),t=c(t,u,"Salt"),"function"!=typeof f)throw Error("No callback provided to pbkdf2");g(p(h).then(function(r){return r?m(e,t,n,i,h):l(e,t,n,i,a)}),f)}},7007:function(e){e.exports="utf-8"},5349:function(e){var t=0x3fffffff;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),u=r(5407);e.exports=function(e,t,r,l,c){a(r,l),e=u(e,s,"Password"),t=u(t,s,"Salt"),c=c||"sha1";var f=o.allocUnsafe(l),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,p=n[c],m=Math.ceil(l/p),g=1;g<=m;g++){d.writeUInt32BE(g,t.length);for(var y=i(c,e).update(d).digest(),b=y,v=1;v<r;v++){b=i(c,e).update(b).digest();for(var _=0;_<p;_++)y[_]^=b[_]}y.copy(f,h),h+=p}return f}},5407:function(e,t,r){var n=r(6911).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var n=r(9739),i=r(6911).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},4366:function(e,t,r){var n=r(9902),i=r(5520),o=r(6386),a=r(711),s=r(7166),u=r(9739),l=r(1607),c=r(6911).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,a+1),l=t.slice(a+1),f=o(s,i(l,a)),d=o(l,i(f,r-a-1));if(h(n,d.slice(0,a)))throw Error("decryption error");for(var p=a;0===d[p];)p++;if(1!==d[p++])throw Error("decryption error");return d.slice(p)}function d(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,u=n(e),h=u.modulus.byteLength();if(t.length>h||new a(t).cmp(u.modulus)>=0)throw Error("decryption error");i=r?l(new a(t),u):s(t,u);var p=c.alloc(h-i.length);if(i=c.concat([p,i],h),4===o)return f(u,i);if(1===o)return d(u,i,r);if(3===o)return i;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),u=r(711),l=r(1607),c=r(7166),f=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=t.length,l=o("sha1").update(f.alloc(0)).digest(),c=l.length,d=2*c;if(n>r-d-2)throw Error("message too long");var h=f.alloc(r-n-d-2),p=r-c-1,m=i(c),g=s(f.concat([l,h,f.alloc(1,1),t],p),a(m,p)),y=s(m,a(g,c));return new u(f.concat([f.alloc(1),y,g],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?f.alloc(o-i-3,255):p(o-i-3),new u(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],o))}function p(e){for(var t,r=f.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,a=n(e);if(4===o)i=d(a,t);else if(1===o)i=h(a,t,r);else if(3===o){if((i=new u(t)).cmp(a.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(i,a):l(i,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},7223:function(e,t,n){"use strict";var i=65536,a=0xffffffff;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var u=n(6911).Buffer,l=r.g.crypto||r.g.msCrypto;function c(e,t){if(e>a)throw RangeError("requested too many random bytes");var r=u.allocUnsafe(e);if(e>0)if(e>i)for(var n=0;n<e;n+=i)l.getRandomValues(r.slice(n,n+i));else l.getRandomValues(r);return"function"==typeof t?o.nextTick(function(){t(null,r)}
5):r}l&&l.getRandomValues?e.exports=c:e.exports=s},6445:function(e,t,n){"use strict";function i(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(6911);n(7223);var s=a.Buffer,u=a.kMaxLength,l=r.g.crypto||r.g.msCrypto,c=0xffffffff;function f(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>c||e<0)throw TypeError("offset must be a uint32");if(e>u||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>c||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>u)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return f(t,e.length),d(n,t,e.length),p(e,t,n,i)}function p(e,t,r,n){var i=new Uint8Array(e.buffer,t,r);return(l.getRandomValues(i),n)?void o.nextTick(function(){n(null,e)}):e}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===n&&(n=e.length-t),d(n,t,e.length),p(e,t,n)}l&&l.getRandomValues?(t.randomFill=h,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(1709),a=r(7337);r(3782)(c,i);for(var s=n(a.prototype),u=0;u<s.length;u++){var l=s[u];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=i;var n=r(1170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},1709:function(e,t,n){"use strict";e.exports=O,O.ReadableState=T,n(2361).EventEmitter;var i,a,s,u,l,c=function(e,t){return e.listeners(t).length},f=n(4678),d=n(4300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var g=n(3837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(4379),b=n(7025),v=n(6776).getHighWaterMark,_=n(4646).q,w=_.ERR_INVALID_ARG_TYPE,x=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 6,281 bytes, line 5
5ED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(3782)(O,f);var k=b.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,r){i=i||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||n(2403),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function C(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,L(e,s);else if(i||(o=R(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new E):P(e,s,t,!0);else if(s.ended)k(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):F(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,F(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),F(e,t)}function R(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=b.destroy,O.prototype._undestroy=b.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},O.prototype.unshift=function(e){return C(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){s||(s=n(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=0x40000000;function I(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function D(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function F(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,G(e))}}function $(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(H,e,t))}function H(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(K,t,e))}function K(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}O.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):D(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;
vendor: 16,078 bytes, line 5
5return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},O.prototype._read=function(e){k(this,new S("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?y:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var l=q(r);e.on("drain",l);var f=!1;function d(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Z(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===c(e,"error")&&k(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Z(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?D(this):n.reading||o.nextTick(z,this)),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick($,this),r},O.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick($,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},O.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(6871)),u(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=W,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===l&&(l=n(9727)),l(O,e,t)})},1170:function(e,t,r){"use strict";e.exports=c;var n=r(4646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2403);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}e.exports=T,T.WritableState=M;var a,s,u={deprecate:n(6769)},l=n(4678),c=n(4300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof f}var p=n(7025),m=n(6776).getHighWaterMark,g=n(4646).q,y=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,x=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,E=g.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function T(e){var t=this instanceof(a=a||n(2403));if(!t&&!s.call(T,this))return new T(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function O(e,t){var r=new S;k(e,r),o.nextTick(t,r)}function C(e,t,r,n){var i;return null===r?i=new x:"string"==typeof r||t.objectMode||(i=new y("chunk",["string","Buffer"],r)),!i||(k(e,i),o.nextTick(n,i),!1)}function P(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function R(e,t,r,n,i,o){if(!r){var a=P(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,s,n,i,o);return u}function j(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(z,e,t),e._writableState.errorEmitted=!0,k(e,n)):(i(n),e._writableState.errorEmitted=!0,k(e,n),z(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(N(r),t)I(e,r,n,t,i);else{var a=U(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?o.nextTick(D,e,r,a,i):D(e,r,a,i)}}function D(e,t,r,n){r||B(e,t),t.pendingcb--,n(),z(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,j(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,f=t.objectMode?1:u.length;if(j(e,t,!1,f,u,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),z(e,t)})}function $(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(q,e,t)))}function z(e,t){var r=U(t);if(r&&($(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function V(e,t,r){t.ending=!0,z(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function H(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(3782)(T,l),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===T&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},T.prototype.pipe=function(){k(this,new _)},T.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!c.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?O(this,r):(o||C(this,n,e,r))&&(n.pendingcb++,i=R(this,n,o,e,t,r)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new b("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},6871: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}var i,a=r(9698),s=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function g(e){o.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[c])return void r(p(void 0,!0));t[d](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(i={get stream(){return this[h]},next:function(){var e,t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[l]?r(t[l]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(y(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),i),b);e.exports=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[l]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[c]=!0}
vendor: 5,916 bytes, line 5
5),e.on("readable",g.bind(null,r)),r}},4379:function(e,t,r){"use strict";function n(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 i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(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 u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var l=r(4300).Buffer,c=r(3837).inspect,f=c&&c.custom||"inspect";function d(e,t,r){l.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,e)):o.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!i&&e?a._writableState?a._writableState.errorEmitted?o.nextTick(r,a):(a._writableState.errorEmitted=!0,o.nextTick(t,a,e)):o.nextTick(t,a,e):i?(o.nextTick(r,a),i(e)):o.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){l=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,l||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):l&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",g),e.req?y():e.on("request",y)):l&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",g)}}
5e.exports=s},9727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(4646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function l(){return c.apply(this,arguments)}function c(){return(c=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?l():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,l())},o}},8442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(4646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function l(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(9698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var c=!1;return function(t){if(!u&&!c){if(c=!0,l(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return c(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],d=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}
vendor: 7,381 bytes, line 5
5function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,_=0|this._d,w=0|this._e,x=0|this._a,S=0|this._b,E=0|this._c,k=0|this._d,A=0|this._e,M=0;M<80;M+=1)M<16?(e=m(i,o,h,_,w,r[s[M]],f[0],l[M]),t=v(x,S,E,k,A,r[u[M]],d[0],c[M])):M<32?(e=g(i,o,h,_,w,r[s[M]],f[1],l[M]),t=b(x,S,E,k,A,r[u[M]],d[1],c[M])):M<48?(e=y(i,o,h,_,w,r[s[M]],f[2],l[M]),t=y(x,S,E,k,A,r[u[M]],d[2],c[M])):M<64?(e=b(i,o,h,_,w,r[s[M]],f[3],l[M]),t=g(x,S,E,k,A,r[u[M]],d[3],c[M])):(e=v(i,o,h,_,w,r[s[M]],f[4],l[M]),t=m(x,S,E,k,A,r[u[M]],d[4],c[M])),i=w,w=_,_=p(h,10),h=o,o=e,x=A,A=k,k=p(E,10),E=S,S=t;var T=this._b+h+k|0;this._b=this._c+_+A|0,this._c=this._d+w+x|0,this._d=this._e+i+S|0,this._e=this._a+o+E|0,this._a=T},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,l=Math.min(o-s,i-u),c=0;c<l;c++)r[u+c]=e[s+c];a+=l,s+=l,a%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(0|r)>>>0,i=(r-n)/0x100000000;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=l(r)+f(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=c(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=l(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=f(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
vendor: 4,767 bytes, line 5
576c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(u,i),u.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=p(t[y-2])+t[y-7]+h(t[y-15])+t[y-16]|0;for(var b=0;b<64;++b){var v=g+d(s)+l(s,u,m)+a[b]+t[b]|0,_=f(r)+c(r,n,i)|0;g=m,m=u,u=s,s=o+v|0,o=i,i=n,n=r,r=v+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return+(e>>>0<t>>>0)}
5n(u,i),u.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,x=0|this._cl,S=0|this._dl,E=0|this._el,k=0|this._fl,A=0|this._gl,M=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var O=t[T-30],C=t[T-30+1],P=h(O,C),R=p(C,O),j=m(O=t[T-4],C=t[T-4+1]),I=g(C,O),N=t[T-14],L=t[T-14+1],D=t[T-32],B=t[T-32+1],F=R+L|0,U=P+N+y(F,R)|0;U=(U=U+j+y(F=F+I|0,I)|0)+D+y(F=F+B|0,B)|0,t[T]=U,t[T+1]=F}for(var q=0;q<160;q+=2){U=t[q],F=t[q+1];var $=c(r,n,i),z=c(_,w,x),V=f(r,_),H=f(_,r),G=d(s,E),W=d(E,s),J=a[q],K=a[q+1],Z=l(s,u,b),X=l(E,k,A),Y=M+W|0,Q=v+G+y(Y,M)|0;Q=(Q=(Q=Q+Z+y(Y=Y+X|0,X)|0)+J+y(Y=Y+K|0,K)|0)+U+y(Y=Y+F|0,F)|0;var ee=H+z|0,et=V+$+y(ee,H)|0;v=b,M=A,b=u,A=k,u=s,k=E,s=o+Q+y(E=S+Y|0,S)|0,o=i,S=x,i=n,x=w,n=r,w=_,r=Q+et+y(_=Y+ee|0,Y)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+S|0,this._el=this._el+E|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+M|0,this._ah=this._ah+r+y(this._al,_)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,x)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+s+y(this._el,E)|0,this._fh=this._fh+u+y(this._fl,k)|0,this._gh=this._gh+b+y(this._gl,A)|0,this._hh=this._hh+v+y(this._hl,M)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
5e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},4300:function(e){"use strict";e.exports=r(82909)},6113:function(e){"use strict";e.exports=r(63426)},2361:function(e){"use strict";e.exports=r(69319)},2781:function(e){"use strict";e.exports=r(32545)},1576:function(e){"use strict";e.exports=r(15773)},3837:function(e){"use strict";e.exports=r(68994)},6144:function(e){"use strict";e.exports=r(38870)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
507b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={id:e,loaded:!1,exports:{}},i=!0;try{t[e].call(n.exports,n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.loaded=!0,n.exports}!function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),s.ab=n+"/";var u={};!function(){"use strict";var e=u;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=s(7223),e.createHash=e.Hash=s(9739),e.createHmac=e.Hmac=s(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(s(9276)));e.getHashes=function(){return t};var r=s(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var n=s(8996);e.Cipher=n.Cipher,e.createCipher=n.createCipher,e.Cipheriv=n.Cipheriv,e.createCipheriv=n.createCipheriv,e.Decipher=n.Decipher,e.createDecipher=n.createDecipher,e.Decipheriv=n.Decipheriv,e.createDecipheriv=n.createDecipheriv,e.getCiphers=n.getCiphers,e.listCiphers=n.listCiphers;var i=s(6587);e.DiffieHellmanGroup=i.DiffieHellmanGroup,e.createDiffieHellmanGroup=i.createDiffieHellmanGroup,e.getDiffieHellman=i.getDiffieHellman,e.createDiffieHellman=i.createDiffieHellman,e.DiffieHellman=i.DiffieHellman;var o=s(4078);e.createSign=o.createSign,e.Sign=o.Sign,e.createVerify=o.createVerify,e.Verify=o.Verify,e.createECDH=s(9942);var a=s(9783);e.publicEncrypt=a.publicEncrypt,e.privateEncrypt=a.privateEncrypt,e.publicDecrypt=a.publicDecrypt,e.privateDecrypt=a.privateDecrypt;var l=s(6445);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),e.exports=u}()},63786:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let n=r(14232),i=r(43273),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}function l(e,t,r){let{id:n,observer:i,elements:o}=u(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}function c(e){let{rootRef:t,rootMargin:r,disabled:a}=e,s=a||!o,[u,c]=(0,n.useState)(!1),f=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(s||u)return;let e=f.current;if(e&&e.tagName)return l(e,e=>e&&c(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!u){let e=(0,i.requestIdleCallback)(()=>c(!0));return()=>(0,i.cancelIdleCallback)(e)}},[s,r,t,u,f.current]),[d,u,(0,n.useCallback)(()=>{c(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64690:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37876),i=r(14232),o=r(48230),a=r(41180),s=r(1721);t.PrismicNextLink=i.forwardRef(function(e,t){let{field:r,document:i,linkResolver:u,children:l,...c}=e,{href:f,rel:d,...h}=a.asLinkAttrs(r??i,{linkResolver:u,rel:"function"==typeof c.rel?c.rel:void 0}),p=("href"in c?c.href:f)||"",m=d;"rel"in c&&"function"!=typeof c.rel&&(m=c.rel);let g=s.resolveDefaultExport(o);return n.jsx(g,{ref:t,...h,...c,href:p,rel:m,children:"children"in e?l:null==r?void 0:r.text})})},65225:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},65436:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.castArray=e=>Array.isArray(e)?e:[e]},65865:e=>{"use strict";e.exports=TypeError},66143:(e,t,r)=>{var n=r(3583),i=r(56057);e.exports=function(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return r&&i(a,r.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},66182:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73966);t.documentToLinkField=e=>{var t;return{link_type:n.LinkType.Document,id:e.id,uid:e.uid||void 0,type:e.type,tags:e.tags,lang:e.lang,url:null==e.url?void 0:e.url,slug:null==(t=e.slugs)?void 0:t[0],...e.data&&Object.keys(e.data).length>0?{data:e.data}:{}}}},66530:(e,t,r)=>{"use strict";var n=r(28419),i=r(65865),o=r(66958),a=r(34140);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},66713:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},66788:e=>{e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},66958:e=>{"use strict";e.exports=Function.prototype.call},67607:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73966),i=r(15845),o=e=>!!e&&"object"==typeof e&&!("version"in e)&&"link_type"in e&&e.link_type===n.LinkType.Media&&"id"in e&&"name"in e&&"kind"in e&&"url"in e&&"size"in e||!1,a=e=>!!e&&"object"==typeof e&&(!("version"in e)||"object"==typeof e.version)&&"id"in e&&"url"in e&&"string"==typeof e.url&&"dimensions"in e&&"edit"in e&&"alt"in e&&"copyright"in e||!1,s=e=>!!a(e)&&(!("type"in e)||e.type!==i.RichTextNodeType.image),u=e=>!!a(e)&&"type"in e&&e.type===i.RichTextNodeType.image,l=e=>{try{return"object"==typeof e&&null!==e&&"id"in e&&"href"in e&&"string"==typeof e.href&&new URL(e.href)&&"type"in e&&"lang"in e&&"tags"in e&&Array.isArray(e.tags)}catch{return!1}};t.filledContentRelationship=e=>!!e&&"object"==typeof e&&!("version"in e)&&"link_type"in e&&e.link_type===n.LinkType.Document&&"id"in e&&"type"in e&&"tags"in e&&"lang"in e||!1,t.filledImage=s,t.filledLinkToMedia=o,t.prismicDocument=l,t.rtImageNode=u},68779:(e,t)=>{"use strict";var r=Object.defineProperty,n=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,r)=>n(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});
5class o extends Error{constructor(e="An invalid API response was returned",t,r){super(e),i(this,"url"),i(this,"response"),this.url=t,this.response=r}}t.PrismicError=o},68994:(e,t,r)=>{var n="/",i=r(82909).Buffer,o=r(99742);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(192),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(n,a,arguments);return u&&l&&u(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},181:function(e){"use strict";e.exports=EvalError},545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},803:function(e){"use strict";e.exports=ReferenceError},182:function(e){"use strict";e.exports=SyntaxError},202:function(e){"use strict";e.exports=TypeError},284:function(e){"use strict";e.exports=URIError},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},136:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var u,l=this;if("function"!=typeof l||r.apply(l)!==i)throw TypeError(t+l);for(var c=a(arguments,1),f=function(){if(this instanceof u){var t=l.apply(this,o(c,arguments));return Object(t)===t?t:this}return l.apply(e,o(c,arguments))},d=n(0,l.length-c.length),h=[],p=0;p<d;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var m=function(){};m.prototype=l.prototype,u.prototype=new m,m.prototype=null}return u}},212:function(e,t,r){"use strict";var n=r(136);e.exports=Function.prototype.bind||n},192:function(e,t,r){"use strict";var n,i=r(545),o=r(181),a=r(22),s=r(803),u=r(182),l=r(202),c=r(284),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var p=function(){throw new l},m=h?function(){try{return arguments.callee,p}catch(e){try{return h(arguments,"callee").get}catch(e){return p}}}():p,g=r(115)(),y=r(14)(),b=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),v={},_="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
5IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var x=b(b(e));w["%Error.prototype%"]=x}var S=function e(t){var r;if("%AsyncFunction%"===t)r=d("async function () {}");else if("%GeneratorFunction%"===t)r=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return w[t]=r,r},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=r(212),A=r(270),M=k.call(Function.call,Array.prototype.concat),T=k.call(Function.apply,Array.prototype.splice),O=k.
5call(Function.call,String.prototype.replace),C=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,I=function(e){var t=C(e,0,1),r=C(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,R,function(e,t,r,i){n[n.length]=r?O(i,j,"$1"):t||e}),n},N=function(e,t){var r,n=e;if(A(E,n)&&(n="%"+(r=E[n])[0]+"%"),A(w,n)){var i=w[n];if(i===v&&(i=S(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=I(e),n=r.length>0?r[0]:"",i=N("%"+n+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],T(r,M([0,1],c)));for(var f=1,d=!0;f<r.length;f+=1){var p=r[f],m=C(p,0,1),g=C(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),n+="."+p,A(w,o="%"+n+"%"))a=w[o];else if(null!=a){if(!(p in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&f+1>=r.length){var y=h(a,p);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else d=A(a,p),a=a[p];d&&!s&&(w[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(212).call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),c=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),d={},h=n(24),p=Object.getPrototypeOf;u&&h&&p&&i(l,function(e){var t=new r.g[e];
vendor: 5,081 bytes, line 5
5if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=p(t),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),d[e]=i.get});var m=function(e){var t=!1;return i(d,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&m(e):c(l,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===c(e)}function b(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function _(e){return"[object WeakSet]"===c(e)}function w(e){return"[object ArrayBuffer]"===c(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function E(e){return"undefined"!=typeof DataView&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function M(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function T(e){return g(e,f)}function O(e){return g(e,d)}function C(e){return g(e,h)}function P(e){return u&&g(e,p)}function R(e){return l&&g(e,m)}t.isSharedArrayBuffer=M,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=T,t.isStringObject=O,t.isBooleanObject=C,t.isBigIntObject=P,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return T(e)||O(e)||C(e)||P(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||M(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!S(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])w(s)||!A(s)?a+=" "+s:a+=" "+l(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
5return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var u=o.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function l(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"\x1b["+l.colors[r][0]+"m"+e+"\x1b["+l.colors[r][1]+"m":e}function f(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return S(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),T(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(T(r))return m(r)}var c="",f=!1,_=["{","}"];if(v(r)&&(f=!0,_=["[","]"]),O(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(c=" "+RegExp.prototype.toString.call(r)),M(r)&&(c=" "+Date.prototype.toUTCString.call(r)),T(r)&&(c=" "+m(r)),0===s.length&&(!f||0==r.length))return _[0]+c+_[1];if(n<0)if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=f?g(e,r,n,u,s):s.map(function(t){return y(e,r,n,u,t,f)}),e.seen.pop(),b(i,c,_)}function p(e,t){if(E(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):w(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=w(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function w(e){return null===e}function x(e){return"number"==typeof e}function S(e){return"string"==typeof e}function E(e){return void 0===e}function k(e){return A(e)&&"[object RegExp]"===C(e)}function A(e){return"object"==typeof e&&null!==e}function M(e){return A(e)&&"[object Date]"===C(e)}function T(e){return A(e)&&("[object Error]"===C(e)||e instanceof Error)}function O(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=_,t.isNull=w,t.isNullOrUndefined=function(e){return null==e}
5,t.isNumber=x,t.isString=S,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=E,t.isRegExp=k,t.types.isRegExp=k,t.isObject=A,t.isDate=M,t.types.isDate=M,t.isError=T,t.types.isNativeError=T,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t=e[N];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(L.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),c=a("String.prototype.slice"),f={},d=n(24),h=Object.getPrototypeOf;u&&d&&h&&i(l,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=d(n,Symbol.toStringTag);i||(i=d(h(n),Symbol.toStringTag)),f[e]=i.get}});var p=function(e){var t=!1;return i(f,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(u?p(e):c(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(192)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/",e.exports=s(177)}()},69319:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,i(c)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}_(e,t,o,{once:!0}),"error"!==t&&v(e,i,{once:!0})})}function v(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}function _(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var l=u.length,c=m(u,l),r=0;r<l;++r)n(c[r],this,t);return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(u(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
5("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():g(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},71118:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CustomTypeModelLinkSelectType={Document:"document",Media:"media",Web:"web"}},71355:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(28419).call(n,i)},71742:e=>{"use strict";e.exports=SyntaxError},71938:e=>{"use strict";e.exports=Function.prototype.apply},72130:e=>{"use strict";e.exports=ReferenceError},72442:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},72451:(e,t,r)=>{"use strict";r.d(t,{CC:()=>a,Qh:()=>l,aO:()=>s,cI:()=>c,et:()=>d,kX:()=>u,pK:()=>p});var n=r(30937),i=r(85460),o=r(82763);let a=0,s=1;function u(e){let{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:u,origin:l}=d(e);return(0,n.Ce)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:u,trace_id:r,origin:l})}function l(e){let{traceId:t,spanId:r}=e.spanContext(),n=p(e);return(0,i.TC)(t,r,n)}function c(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,o.zf)()}function f(e){return e>0x2540be3ff?e/1e3:e}function d(e){return h(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function h(e){return"function"==typeof e.getSpanJSON}function p(e){let{traceFlags:t}=e.spanContext();return!!(t&s)}},72460:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77692);t.createMigration=()=>new n.Migration},72711:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);t.buildURL=(e,t)=>{let n=new URL(e);for(let e in t){let i=r(e),o=t[e];void 0===o?n.searchParams.delete(i):Array.isArray(o)?n.searchParams.set(i,o.join(",")):n.searchParams.set(i,`${o}`)}let i=n.searchParams.get("s");return i&&(n.searchParams.delete("s"),n.searchParams.append("s",i)),n.toString()}},72773:e=>{e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},73305:e=>{"use strict";e.exports=URIError},73414:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(85673),i=r(72711),o=r(54026),a=r(87548);t.Client=n.Client,t.buildURL=i.buildURL,t.buildWidthSrcSet=o.buildWidthSrcSet,t.buildPixelDensitySrcSet=a.buildPixelDensitySrcSet},73442:(e,t,r)=>{"use strict";var n=r(45525),i=r(66530),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},73549:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779),i=r(31943);t.getToolbarSrc=e=>{if(i.isRepositoryName(e))return`https://static.cdn.prismic.io/prismic.js?new=true&repo=${e}`;throw new n.PrismicError(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)}},73966:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LinkType={Any:"Any",Document:"Document",Media:"Media",Web:"Web"}},74371:(e,t,r)=>{"use strict";var n=r(27496);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)}
5,i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},74380:(e,t,r)=>{"use strict";r.d(t,{ez:()=>w,Ay:()=>x,Ko:()=>S});var n=r(37876),i=r(14232),o=r(58149),a=r(29454),s=r(94772),u=r(78799);async function l(){(0,s.A)()&&a.A.remove(u.z_)}let c=JSON.parse('[{"id":"gid://shopify/DiscountCodeNode/989878091913","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["4203fab94896437d07d9854f8195468c8a9c1ede989352a8f64fa4ba45cee0a0"],"customerBuys":{"value":{"quantity":"3"},"items":{"collections":{"nodes":[{"id":"gid://shopify/Collection/271876128905"}]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40426762764425","price":"28.00"},{"id":"gid://shopify/ProductVariant/40426762797193","price":"0.00"}]}}},{"id":"gid://shopify/DiscountCodeNode/990304665737","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["f1fb5847b33980f92e1e1452374aa2124aaeaf8191d74b828d726b5f309502fc"],"customerBuys":{"value":{"amount":"50.0"},"items":{"collections":{"nodes":[{"id":"gid://shopify/Collection/270043971721"}]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40424105902217","price":"22.00"}]}}},{"id":"gid://shopify/DiscountCodeNode/990473322633","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["2f3466ae9a7cf61d2fe82b22413dc68881f8152b7170da4168e76367b97e3fa1"],"customerBuys":{"value":{"amount":"50.0"},"items":{"collections":{"nodes":[{"id":"gid://shopify/Collection/270043971721"}]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40397433798793","price":"0.00"}]}}},{"id":"gid://shopify/DiscountCodeNode/990675042441","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["7a42ca690af17daa47196531a9a6e264f1e5409550a97b7b47e07233881cf3bd"],"customerBuys":{"value":{"quantity":"3"},"items":{"collections":{"nodes":[{"id":"gid://shopify/Collection/271876128905"}]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40423306657929","price":"55.00"}]}}},{"id":"gid://shopify/DiscountCodeNode/998583795849","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["4087c6806e052229e9f1e332a1dff99c5b6c454259bcca63b653e94bbb091940"],"customerBuys":{"value":{"amount":"100.0"},"items":{"products":{"nodes":[]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40796397994121","price":"49.99"}]}}},{"id":"gid://shopify/DiscountCodeNode/1001465806985","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["a49140c21b7f47934b51237166dbbe55b73943d2b882e4d6a08c6d954466678a"],"customerBuys":{"value":{"amount":"100.0"},"items":{"products":{"nodes":[]}}},"customerGets":{"variants":[{"id":"gid://shopify/ProductVariant/40796397994121","price":"49.99"},{"id":"gid://shopify/ProductVariant/40854641082505","price":"0.00"}]}}},{"id":"gid://shopify/DiscountCodeNode/1079743873161","codeDiscount":{"__typename":"DiscountCodeBxgy","codes":["c84c4b1fee8a86dac52142745efa19dfdf0f31e3f26bd06dc566104fa4aa3f22"],"customerBuys":{"value":{"quantity":"1"},"items":{"collections":{"nodes":[{"id":"gid://shopify/Collection/270953840777"}]}}},"customerGets":{"variants":[]}}}]');async function f(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}r(63426);let d=async function(e){let{productsInCart:t,code:r}=e,n=await f(r),i=c.find(e=>e.codeDiscount.codes.includes(n));if(!i)return[];let{codeDiscount:o}=i,{customerBuys:a,customerGets:s}=o;if(void 0===a.items.collections&&void 0===a.items.products||void 0===a.value.amount&&void 0===a.value.quantity)return[];let u=[];if(void 0!==a.items.collections){let e=a.items.collections.nodes.map(e=>e.id)||[];u=t.edges.filter(t=>{let{node:r}=t;return r.merchandise.product.collections.nodes.map(e=>e.id).some(t=>e.includes(t))})}else if(void 0!==a.items.products){let e=a.items.products.nodes.map(e=>e.id)||[];u=t.edges.filter(t=>{let{node:r}=t;return e.includes(r.merchandise.product.id)})}return void 0!==a.value.amount?u.reduce((e,t)=>{let{node:r}=t;return e+parseFloat(r.estimatedCost.subtotalAmount.amount)},0)>=parseFloat(a.value.amount)?s.variants:[]:void 0!==a.value.quantity&&u.length>=parseFloat(a.value.quantity)?s.variants:[]};var h=r(85391),p=r(84645);let m="\n mutation cartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!]!) {\n cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n cart {\n ...cartDetails\n }\n userErrors {\n code\n field\n message\n }\n }\n }\n\n ".concat(p.X,"\n"),g="\n mutation cartGiftCardCodesUpdate($cartId: ID!, $giftCardCodes: [String!]!) {\n cartGiftCardCodesUpdate(cartId: $cartId, giftCardCodes: $giftCardCodes) {\n cart {\n ...cartDetails\n }\n userErrors {\n code\n field\n message\n }\n warnings {\n code\n message\n }\n }\n }\n\n ".concat(p.X,"\n"),y="\n mutation cartAttributesUpdate($cartId: ID!, $attributes: [AttributeInput!]!) {\n cartAttributesUpdate(
5attributes: $attributes, cartId: $cartId) {\n cart {\n id\n }\n userErrors {\n field\n message\n }\n }\n }\n";var b=r(51725),v=r(27022);let _=(0,i.createContext)(void 0);function w(e){var t;let{children:r}=e,{data:a,isValidating:u,error:l,mutate:c}=(0,o.Ay)("cart",O),[f,m]=(0,i.useState)(!1),{cart:g,items:b}=null!=a?a:{},w=null!=(t=null==a?void 0:a.itemCount)?t:0,x=(0,i.useMemo)(()=>{var e;return(null==a||null==(e=a.cart)?void 0:e.discountCodes)&&a.cart.discountCodes.length>0?a.cart.discountCodes.filter(e=>{let{applicable:t}=e;return t}).map(e=>{let{code:t}=e;return t}):[]},[a]),A=(0,i.useCallback)(()=>{m(!0)},[]),M=(0,i.useCallback)(()=>{m(!1)},[]),T=(0,i.useCallback)(()=>{m(!f)},[f]);async function O(){let e=(0,s.A)();return e?S(await (0,h.Ay)({query:p.A,variables:{cartId:e}})):{cart:null,items:null,itemCount:0}}let C=(0,i.useCallback)(O,[]),P=(0,i.useCallback)(async e=>{if(g&&b&&b.length)try{let t={cartId:g.id,attributes:e.map(e=>({key:"survey_".concat(e.question_id),value:e.answer||"-"}))};await (0,h.Ay)({query:y,variables:t})}catch(e){console.error("Unable to add Survey Answer to Shopify cart attributes: ",e)}return null},[g,b]);(0,i.useEffect)(()=>{if(null==g?void 0:g.id)try{let e=localStorage.getItem("bbx_exp_cart_attrs");if(!e)return;let t=JSON.parse(e);if(!t.length)return;(0,h.Ay)({query:y,variables:{cartId:g.id,attributes:t}}).then(()=>localStorage.removeItem("bbx_exp_cart_attrs")).catch(e=>console.error("Unable to flush experiment cart attributes:",e))}catch(e){}},[null==g?void 0:g.id]);let R=(0,i.useCallback)(async(e,t)=>{let r={key:e,value:t};if(null==g?void 0:g.id)try{await (0,h.Ay)({query:y,variables:{cartId:g.id,attributes:[r]}})}catch(e){console.error("Unable to add experiment variant to Shopify cart attributes:",e)}else try{let t=[...JSON.parse(localStorage.getItem("bbx_exp_cart_attrs")||"[]").filter(t=>t.key!==e),r];localStorage.setItem("bbx_exp_cart_attrs",JSON.stringify(t))}catch(e){}return null},[null==g?void 0:g.id]),j=(0,i.useCallback)(async e=>{let t=!1,r=null;return await c(async n=>{var i,o,a;if(!n)return{cart:null,items:null,itemCount:0};let s=await d({productsInCart:b||[],code:e});if(s){let e=s.sort((e,t)=>parseFloat(e.price)-parseFloat(t.price)).find(e=>0!==parseFloat(e.price)),t=null==(a=n.items)?void 0:a.some(t=>t.merchandise.id===(null==e?void 0:e.id));e&&!t&&await (0,v.A)({variantId:e.id,quantity:1})}let u=null,l=null,c=[];try{(u=await E([...x,e])).userErrors.length>0&&c.push(...u.userErrors)}catch(e){}if((!(null==u||null==(i=u.cart.discountCodes.find(t=>t.code===e))?void 0:i.applicable)||(null==u?void 0:u.userErrors)&&u.userErrors.length>0)&&!(null==g||null==(o=g.appliedGiftCards)?void 0:o.length))try{(l=await k([e])).userErrors.length>0&&c.push(...l.userErrors)}catch(e){}let f=null,h=!1;return(null==u?void 0:u.userErrors.length)===0?(f=u.cart,h=!0):l&&0===l.userErrors.length&&(f=l.cart,h=!0),h||0!==c.length?c.length>0&&(r=c.filter((e,t,r)=>t===r.findIndex(t=>t.message===e.message))):r=[{code:"INVALID_CODE",field:["code"],message:"Enter a valid discount code or gift card"}],t=h,S({cart:f})},{rollbackOnError:!0}),r&&console.error(r),{applied:t,errors:r}},[c,b,x]),I=(0,i.useCallback)(async e=>{await c(async t=>{if(!t)return{cart:null,items:null,itemCount:0};let{cart:r,userErrors:n}=await E(x.filter(t=>t!==e));return n.length>0&&console.error(n),S({cart:r})},{rollbackOnError:!0})},[c,x]),N=(0,i.useMemo)(()=>({cart:g,items:b,itemCount:w,loading:u,revalidate:c,appliedDiscountCodes:x,appliedGiftCards:(null==g?void 0:g.appliedGiftCards)||[],discountAllocations:(null==g?void 0:g.discountAllocations)||[],addDiscountCode:j,removeDiscountCode:I,getCart:C,addSurveyAnswerToCartAttributes:P,addExperimentVariantToCart:R,isCartOpen:f,openCart:A,closeCart:M,toggleCart:T}),[g,b,w,u,c,x,j,I,C,P,R,f,A,M,T]);return(0,n.jsx)(_.Provider,{value:N,children:r})}function x(){let e=(0,i.useContext)(_);if(void 0===e)throw Error("useCart must be used within a CartProvider");return e}let S=async e=>{if(null==e?void 0:e.cart){let t=e.cart.lines.edges.map(e=>(0,b.Z8)(e)),r=(0,b.CV)(e.cart),n=t.reduce((e,t)=>
5t.quantity?e+t.quantity:e,0);return{cart:r,items:t,itemCount:n}}return await l(),{cart:null,items:null,itemCount:0}};async function E(e){let t=(0,s.A)();return(await (0,h.Ay)({query:m,variables:{cartId:t,discountCodes:e}})).cartDiscountCodesUpdate}async function k(e){let t=(0,s.A)();return(await (0,h.Ay)({query:g,variables:{cartId:t,giftCardCodes:e}})).cartGiftCardCodesUpdate}},74482:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(84645);let i="\n mutation cartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) {\n cartLinesUpdate(cartId: $cartId, lines: $lines) {\n userErrors {\n code\n field\n message\n }\n cart {\n ...cartDetails\n }\n }\n }\n\n ".concat(n.X,"\n")},74714:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);t.buildURL=(e,t)=>{let n=new URL(e);for(let e in t){let i=r(e),o=t[e];void 0===o?n.searchParams.delete(i):Array.isArray(o)?n.searchParams.set(i,o.join(",")):n.searchParams.set(i,`${o}`)}let i=n.searchParams.get("s");return i&&(n.searchParams.delete("s"),n.searchParams.append("s",i)),n.toString()}},74935:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779),i=r(31943);t.getRepositoryEndpoint=e=>{if(i.isRepositoryName(e))return`https://${e}.cdn.prismic.io/api/v2`;throw new n.PrismicError(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)}},74975:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(73414),i=r(15132),o=[1,2,3];t.asImagePixelDensitySrcSet=(e,t={})=>{if(!(e&&i.imageThumbnail(e)))return null;{let{pixelDensities:r=o,...i}=t;return{src:n.buildURL(e.url,i),srcset:n.buildPixelDensitySrcSet(e.url,{...i,pixelDensities:r})}}}},75385:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779);t.getRepositoryName=e=>{try{let t=new URL(e).hostname;if(t.endsWith("prismic.io")||t.endsWith("wroom.io")||t.endsWith("wroom.test"))return t.split(".")[0]}catch{}throw new n.PrismicError(`An invalid Prismic Document API endpoint was provided: ${e}`,void 0,void 0)}},75526:(e,t,r)=>{"use strict";var n=r(27496);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}()},75531:(e,t,r)=>{"use strict";r.d(t,{AU:()=>o,Bd:()=>a,lQ:()=>n,on:()=>i});var n=function(){};function i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function o(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var a=!0},75540:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=75;function n(e){var t;let{config:n,src:i,width:o,quality:a}=e,s=a||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e))||r;return n.path+"?url="+encodeURIComponent(i)+"&w="+o+"&q="+s+(i.startsWith("/_next/static/media/"),"")}n.__next_img_default=!0;let i=n},75707:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.OEmbedType={Photo:"photo",Video:"video",Link:"link",Rich:"rich"}},76880:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.preview="io.prismic.preview"},77098:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(95518),i=r(11304),o=r(15132);t.asLinkAttrs=(e,t={})=>{if(e&&("link_type"in e?o.link(e):e)){let r="target"in e?e.target:void 0,o=i.asLink(e,t.linkResolver),a=null==o?void 0:o,s="string"==typeof a&&!n.isInternalURL(a),u=t.rel?t.rel({href:a,isExternal:s,target:r}):s?"noreferrer":void 0;return{href:a,target:r,rel:null==u?void 0:u}}return{}}},77328:(e,t,r)=>{e.exports=r(29269)},77588:(e,t,r)=>{"use strict";r.d(t,{De:()=>f,hF:()=>a,yD:()=>c});var n=r(82936),i=r(1978),o=r(702);let a="baggage",s="sentry-",u=/^sentry-/,l=8192;function c(e){if(!(0,i.Kg)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>
5{let r=d(t);for(let t of Object.keys(r))e[t]=r[t];return e},{});else{if(!e)return;t=d(e)}let r=Object.entries(t).reduce((e,[t,r])=>(t.match(u)&&(e[t.slice(s.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function f(e){if(e)return h(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e),{}))}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(e[t]=r,e),{})}function h(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===i?a:`${e},${a}`;return s.length>l?(n.T&&o.vF.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}},77692:(e,t,r)=>{"use strict";var n,i,o=Object.defineProperty,a=e=>{throw TypeError(e)},s=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t,r)=>s(e,"symbol"!=typeof t?t+"":t,r),l=(e,t,r)=>t.has(e)||a("Cannot "+r),c=(e,t,r)=>t.has(e)?a("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),f=(e,t,r)=>(l(e,t,"access private method"),r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let d=r(67607),h=r(26967),p=r(79301),m=r(37959),g=r(12368),y=r(73966),b=r(15845);class v{constructor(){c(this,n),u(this,"_assets",new Map),u(this,"_documents",[])}createAsset(e,t,{notes:r,credits:n,alt:i,tags:o}={}){var a;let s,u;if("object"==typeof e&&"url"in e)if("dimensions"in e||"link_type"in e){let t=e.url.split("?")[0],r="name"in e?e.name:t.split("/").pop().split("_").pop(),n="copyright"in e&&e.copyright?e.copyright:void 0,i="alt"in e&&e.alt?e.alt:void 0;"dimensions"in e&&(u=e),s={id:e.id,file:t,filename:r,notes:void 0,credits:n,alt:i,tags:void 0}}else s={id:e.id,file:e.url,filename:e.filename,notes:e.notes,credits:e.credits,alt:e.alt,tags:null==(a=e.tags)?void 0:a.map(({name:e})=>e)};else s={id:e,file:e,filename:t,notes:r,credits:n,alt:i,tags:o};p.validateAssetMetadata(s);let l=new m.PrismicMigrationAsset(s,u),c=this._assets.get(s.id);return c?(c.config.notes=c.config.notes||s.notes,c.config.credits=c.config.credits||s.credits,c.config.alt=c.config.alt||s.alt,c.config.tags=Array.from(new Set([...c.config.tags||[],...s.tags||[]]))):this._assets.set(s.id,l),l}createDocument(e,t,r){let n=new g.PrismicMigrationDocument(e,t,r);return this._documents.push(n),n}updateDocument(e,t){let r=new g.PrismicMigrationDocument(e,t);return this._documents.push(r),r}createDocumentFromPrismic(e,t){let r=new g.PrismicMigrationDocument(f(this,n,i).call(this,{type:e.type,lang:e.lang,uid:e.uid,tags:e.tags,data:e.data}),t,{originalPrismicDocument:e});return this._documents.push(r),r}getByUID(e,t){return this._documents.find(r=>r.document.type===e&&r.document.uid===t)}getSingle(e){return this._documents.find(t=>t.document.type===e)}_getByOriginalID(e){return this._documents.find(t=>{var r;return(null==(r=t.originalPrismicDocument)?void 0:r.id)===e})}}n=new WeakSet,i=function(e){if(d.filledContentRelationship(e)){let t=h.getOptionalLinkProperties(e);return e.isBroken?{...t,link_type:y.LinkType.Document,id:"_____broken_____",isBroken:!0}:{...t,link_type:y.LinkType.Document,id:()=>this._getByOriginalID(e.id)}}if(d.filledLinkToMedia(e))return{...h.getOptionalLinkProperties(e),link_type:y.LinkType.Media,id:this.createAsset(e)};if(d.rtImageNode(e)){let t={type:b.RichTextNodeType.image,id:this.createAsset(e)};return e.linkTo&&(t.linkTo=f(this,n,i).call(this,e.linkTo)),t}if(d.filledImage(e)){let t={id:this.createAsset(e)},{id:r,url:n,dimensions:i,edit:o,alt:a,copyright:s,...u}=e;for(let e in u)d.filledImage(u[e])&&(t[e]=this.createAsset(u[e]));return t}if(Array.isArray(e))return e.map(e=>f(this,n,i).call(this,e));if(e&&"object"==typeof e){let t={};for(let r in e)t[r]=f(this,n,i).call(this,e[r]);return t}return e},t.Migration=v},77785:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},77966:(e,t,r)=>{"use strict";r.d(t,{_C:()=>l,so:()=>s});var n=r(36854),i=r(14232),o=(0,i.createContext)({client:n.Ay,bootstrap:void 0});function a(e,t,r){if(void 0===r&&(r=new WeakMap),e===t)return!0;
5if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(r.has(e)&&r.get(e)===t)return!0;r.set(e,t);var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=0,s=n;o<s.length;o++){var u=s[o];if(!i.includes(u)||!a(e[u],t[u],r))return!1}return!0}function s(e){var t,r,s=e.children,u=e.client,l=e.apiKey,c=e.options,f=(0,i.useRef)(null),d=(0,i.useMemo)(function(){return u?(l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),c&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),u):(l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),n.Ay)},[u,l,JSON.stringify(c)]);return(0,i.useEffect)(function(){if(!u){var e=f.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),c&&!a(c,e.options)&&n.Ay.set_config(c)):(n.Ay.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),n.Ay.init(l,c)),f.current={apiKey:l,options:null!=c?c:{}}}},[u,l,JSON.stringify(c)]),i.createElement(o.Provider,{value:{client:d,bootstrap:null!=(t=null==c?void 0:c.bootstrap)?t:null==(r=null==u?void 0:u.config)?void 0:r.bootstrap}},s)}var u=function(e){return"function"==typeof e};function l(e){var t,r=(0,i.useContext)(o),n=r.client,a=r.bootstrap,s=(0,i.useState)(function(){return n.getFeatureFlag(e)}),u=s[0],l=s[1];return((0,i.useEffect)(function(){return n.onFeatureFlags(function(){l(n.getFeatureFlag(e))})},[n,e]),!(null==(t=null==n?void 0:n.featureFlags)?void 0:t.hasLoadedFlags)&&(null==a?void 0:a.featureFlags))?a.featureFlags[e]:u}var c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}"function"==typeof SuppressedError&&SuppressedError;var d={componentStack:null,exceptionEvent:null,error:null},h={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){function t(t){var r=e.call(this,t)||this;return r.state=d,r}f(t,e),t.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;u(n)?r=n(e):"object"==typeof n&&(r=n);var i=this.context.client.captureException(e,r),o=t.componentStack;this.setState({error:e,componentStack:null!=o?o:null,exceptionEvent:i})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return u(t)?t():t;var o=u(r)?i.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):r;return i.isValidElement(o)?o:(console.warn(h.INVALID_FALLBACK),i.createElement(i.Fragment,null))},t.contextType=o}(i.Component)},78121:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},78212:(e,t,r)=>{var n=r(12883).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},78384:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(84848);t.findRefByID=(e,t)=>n.findRef(e,e=>e.id===t)},78637:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,u=i?40*i:r,l=s&&u?"viewBox='0 0 "+s+" "+u+"'":"",c=l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
5ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+c+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},78723:(e,t,r)=>{"use strict";r.d(t,{$t:()=>g,BN:()=>d,D1:()=>v,HU:()=>x,JW:()=>S,Jq:()=>y,NA:()=>k,VP:()=>b,YM:()=>p,Ze:()=>E,gb:()=>_,pP:()=>m,qJ:()=>h,xS:()=>w});var n=r(37876),i=r(14232),o=r(10553),a=r(74380),s=r(18528),u=r(97047),l=r(59432);let c=(0,i.createContext)({survey:{surveyId:0,surveyQuestions:[]},surveyState:{currentIndex:0,translateDirection:"forwards",surveyProgress:0},nextQuestion:()=>{},previousQuestion:()=>{},surveySubmissions:[],handleSurveySubmission:()=>{},handleSurveySkipSubmission:()=>{},handleSubmitSurvey:()=>{},animateInReady:!0,setAnimateInReady:()=>{},nextButtonDisabled:!1,setNextButtonDisabled:()=>{}});function f(e){let{addSurveyAnswerToCartAttributes:t}=(0,a.Ay)()||{},{surveyId:r,surveyQuestions:n}=e||{},[o,s]=(0,i.useReducer)((e,t)=>{var r,i,o,a;let{currentIndex:s}=e;switch(t.type){case"NEXT":{if((null==n||null==(r=n[s])?void 0:r.id)===(null==n||null==(i=n[n.length-1])?void 0:i.id))return e;let t=(s+2)/(((null==n?void 0:n.length)||0)+1);return{currentIndex:s+1,translateDirection:"forwards",surveyProgress:t}}case"PREVIOUS":{if((null==n||null==(o=n[s])?void 0:o.id)===(null==n||null==(a=n[0])?void 0:a.id))return e;let t=s/(((null==n?void 0:n.length)||0)+1);return{currentIndex:s-1,translateDirection:"backwards",surveyProgress:t}}default:return e}},{currentIndex:0,translateDirection:"forwards",surveyProgress:1/(((null==n?void 0:n.length)||0)+1)}),u=(0,i.useCallback)(()=>{s({type:"NEXT"})},[]),c=(0,i.useCallback)(()=>{s({type:"PREVIOUS"})},[]),[f,d]=(0,i.useState)(null==n?void 0:n.map(e=>{let{id:t,body:r}=e;return{question:r,questionId:t,response:[],optionId:[],additionalData:""}})),h=(0,i.useCallback)((e,t)=>{d(r=>{if((null==e?void 0:e.type)==="multiselect"&&Array.isArray(t)){var n,i;let o=null==t||null==(n=t.filter(e=>{let{active:t}=e;return t}))?void 0:n.map(e=>{let{id:t}=e;return t}),a=null==t||null==(i=t.filter(e=>{let{active:t}=e;return t}))?void 0:i.map(e=>{let{optionValue:t}=e;return t}),s=r.map(t=>{let{question:r,questionId:n,response:i,optionId:s,additionalData:u}=t;return{question:r,questionId:n,response:(null==e?void 0:e.id)===n?a:i,optionId:(null==e?void 0:e.id)===n?o:s,additionalData:u}});return console.log("handleSurveySubmission newSurveySubmissionsState",s),s}let o=r.map(r=>{let{question:n,questionId:i,response:o,optionId:a,additionalData:s}=r;return{question:n,questionId:i,response:(null==e?void 0:e.id)===i?[null==t?void 0:t.optionValue]:o,optionId:(null==e?void 0:e.id)===i?[null==t?void 0:t.id]:a,additionalData:s}});return console.log("handleSurveySubmission newState",o),o})},[d]),p=(0,i.useCallback)(e=>{d(t=>t.map(t=>{let{question:r,questionId:n,response:i,additionalData:o,optionId:a}=t;return{question:r,questionId:n,response:e===n?[]:i,optionId:a,additionalData:o}}))},[d]),[m,g]=(0,i.useState)(!0),[y,b]=(0,i.useState)(!1),v=(0,i.useCallback)(async e=>{if(e){let e=f.map(e=>{let{questionId:t,response:r}=e;return{question_id:t,answer:r.toString()}});await t(e),(0,l.A)("bbSurveySubmitted","true",48)}},[r,f]);return{survey:e,surveyState:o,nextQuestion:u,previousQuestion:c,surveySubmissions:f,handleSurveySubmission:h,handleSurveySkipSubmission:p,handleSubmitSurvey:v,animateInReady:m,setAnimateInReady:g,nextButtonDisabled:y,setNextButtonDisabled:b}}function d(e){let{children:t,surveyType:r}=e,{data:a}=(0,o.useSession)(),{customer:l}=(0,s.A)()||{},[c,f]=(0,i.useState)(null);return(0,i.useEffect)(()=>("none"===r||c||(async()=>{f((0,u.A)())})(),()=>{}),[l,a]),c?(0,n.jsx)(h,{surveyData:c,children:t}):null}function h(e){let{children:t,surveyData:r}=e;return(0,n.jsx)(c.Provider,{value:f(r),children:t})}let p=()=>{let{survey:e}=(0,i.useContext)(c);return e},m=()=>{let{surveyState:e}=(0,i.useContext)(c);return e},g=()=>{let{nextQuestion:e}=(0,i.useContext)(c);return e},y=()=>{let{previousQuestion:e}=(0,i.useContext)(c);return e},b=()=>{let{surveySubmissions:e}=(0,i.useContext)(c);return e},v=()=>{let{handleSurveySubmission:e}=(0,i.useContext)(c);return e},_=()=>{let{handleSubmitSurvey:e}=(0,i.useContext)(c);return e},w=()=>{let{handleSurveySkipSubmission:e}=(0,i.useContext)(c);return e},x=()=>{let{animateInReady:e}=(0,i.useContext)(c);return e},S=()=>{let{setAnimateInReady:e}=(0,i.useContext)(c);return e},E=()=>{let{nextButtonDisabled:e}=(0,i.useContext)(c);return e},k=()=>{let{setNextButtonDisabled:e}=(0,i.useContext)(c);return e}},78799:(e,t,r)=>{"use strict";r.d(t,{BA:()=>p,H$:()=>h,pd:()=>m,AM:()=>b,eb:()=>T,yN:()=>O,p5:()=>k,PI:()=>v,$R:()=>y,_8:()=>M,PF:()=>A,z_:()=>s,tH:()=>u,om:()=>c,r$:()=>g,fZ:()=>x,uE:()=>w,fN:()=>_,eh:()=>S,$l:()=>E,O1:()=>P,fq:()=>j,vV:()=>a,NG:()=>R,Eq:()=>C});let n=new Map([["en-us",{currencyCode:"USD",amount:"50"}],["en-gb",{currencyCode:"GBP",amount:"30"}],["es-es",{currencyCode:"EUR",amount:"35"}]]),i=new Map([["en-us",{currencyCode:"USD",amount:"150"}],["en-gb",{currencyCode:"GBP",amount:"99999"}],["es-es",{currencyCode:"EUR",amount:"99999"}]]);var o=r(99742);let a="en-us",s="shopify_cartId",u="shopify_checkoutUrl",l="us-birchbox-staging.myshopify.com",c=30,f="2024-10",d="2024-04",h="https://".concat(l,"/api/").concat(f,"/graphql.json");"https://".concat(l,"/admin/api/").concat(d,"/graphql.json"),o.env.SHOPIFY_ADMIN_ACCESS_TOKEN;let p="6a26f9599fa321042fc564b284b9b7e7",m=new Map([["USD","$"],["EUR","â¬"],["ARS","$"],["GBP","\xa3"]]),g="https://cdn.shopify.com/s/files",y=6,b="en-gb"===a?"subscribe":"membership",v="en-us"===a,_=500,w={n
5ame:"Account Holder",minPoints:0,id:"holder"},x={name:"Birchbox Ace",minPoints:3e3,id:"ace",image:"/images/bbx-gold-diamond.svg"},S=[w,x],E={GRAMS:"g",KILOGRAMS:"kg",OUNCES:"oz",POUNDS:"lb"},k={ATTEMPTED_DELIVERY:"Attempted delivery",CANCELED:"Canceled",CONFIRMED:"Confirmed",DELIVERED:"Delivered",FAILURE:"Failure",FULFILLED:"Shipped",IN_TRANSIT:"In transit",LABEL_PRINTED:"Label printed",LABEL_PURCHASED:"Label purchased",LABEL_VOIDED:"Label voided",MARKED_AS_FULFILLED:"Marked as fulfilled",NOT_DELIVERED:"Not delivered",OUT_FOR_DELIVERY:"Out for delivery",READY_FOR_PICKUP:"Ready for pickup",PICKED_UP:"Picked up",SUBMITTED:"Submitted"},A={UNFULFILLED:"Order Placed",PARTIALLY_FULFILLED:"Partially fulfilled",FULFILLED:"Shipped",RESTOCKED:"Restocked",PENDING_FULFILLMENT:"Order Placed",OPEN:"Open",IN_PROGRESS:"In progress",ON_HOLD:"On hold",SCHEDULED:"Scheduled"},M="Only one subscription box is allowed per account. Create a new account to add another box.",T=n.get(a),O=i.get(a),C="es-es"===a?"/buscar":"/search",P="es-es"===a?"/categorias":"/collections",R="es-es"===a?"/producto":"/products",j="es-es"===a?"/categorias":"/collections"},79151:(e,t)=>{"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},79301:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779),i=500,o=500,a=500,s=3,u=20;t.validateAssetMetadata=({notes:e,credits:t,alt:r,tags:l})=>{let c=[];if(e&&e.length>i&&c.push(`\`notes\` must be at most ${i} characters`),t&&t.length>o&&c.push(`\`credits\` must be at most ${o} characters`),r&&r.length>a&&c.push(`\`alt\` must be at most ${a} characters`),l&&l.length&&l.some(e=>e.length<s||e.length>u)&&c.push("tags must be at least 3 characters long and 20 characters at most"),c.length)throw new n.PrismicError(`Errors validating asset metadata: ${c.join(", ")}`,void 0,{notes:e,credits:t,alt:r,tags:l})}},79684:(e,t,r)=>{"use strict";r.d(t,{pl:()=>V,Nr:()=>z,Yj:()=>D,UF:()=>U,rC:()=>F,F5:()=>W,Eg:()=>$,jG:()=>q,Jr:()=>G,X4:()=>B,wC:()=>N,AZ:()=>L,dN:()=>H,sn:()=>J});let n=new Map;async function i(){return Array.from(n.keys()).forEach(e=>n.delete(e))}let o={storeIdentifier:"",environment:"prod"};function a(e){o=e}function s(){return o}r(56508);let u="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",l=(e=21)=>{let t="",r=e;for(;r--;)t+=u[64*Math.random()|0];return t};var c=r(61044),f=r.n(c);let d=(e,t="")=>{switch(e){case"prod":return"https://api.rechargeapps.com";case"stage":return"https://api.stage.rechargeapps.com";case"preprod":case"prestage":return`${t}/api`}},h=(e,t="")=>{switch(e){case"prod":return"https://admin.rechargeapps.com";case"stage":return"https://admin.stage.rechargeapps.com";case"preprod":case"prestage":return t}};class p{constructor(e,t){this.name="RechargeRequestError",this.message=e,this.status=t}}function m(e){return f()(e,{encode:!1,indices:!1,arrayFormat:"comma"})}function g(e,t){return{...e,internalFnCall:e.internalFnCall??t,internalRequestId:e.internalRequestId??l()}}async function y(e,t,{id:r,query:n,data:i,headers:o}={},a){let{environment:u,environmentUri:l,storeIdentifier:c,loginRetryFn:f,appName:h,appVersion:m}=s();if(!c)throw Error("InitRecharge has not been called and/or no store identifier has been defined.");let g=a.apiToken;if(!g)throw Error("No API token defined on session.");let v=d(u,l),_={"X-Recharge-Access-Token":g,"X-Recharge-Version":"2021-11","X-Recharge-Sdk-Fn":a.internalFnCall,...h?{"X-Recharge-Sdk-App-Name":h}:{},...m?{"X-Recharge-Sdk-App-Version":m}:{},"X-Recharge-Sdk-Version":"1.38.0","X-Request-Id":a.internalRequestId,...a.tmp_fn_identifier?{"X-Recharge-Sdk-Fn-Identifier":a.tmp_fn_identifier}:{},...o||{}},w={shop_url:c,...n};try{return await b(e,`${v}${t}`,{id:r,query:w,data:i,headers:_})}catch(n){if(f&&n instanceof p&&401===n.status)return f().then(o=>{if(o)return b(e,`${v}${t}`,{id:r,query:w,data:i,headers:{..._,"X-Recharge-Access-Token":o.apiToken}});throw n});throw n}}async function b(e,t,{id:r,query:n,data:i,headers:o}={}){let a,s,u=t.trim();if(r&&(u=[u,`${r}`.trim()].join("/")),n){let e;[u,e]=u.split("?");let t=[e,m(n)].join("&").replace(/^&/,"");u=`${u}${t?`?${t}`:""}`}i&&"get"!==e&&(a=JSON.stringify(i));let l={Accept:"application/json","Content-Type":"application/json","X-Recharge-App":"storefront-client",...o||{}},c=await fetch(u,{method:e,headers:l,body:a});try{s=await c.json()}catch(e){}if(!c.ok)if(502===c.status||504===c.status)throw new p("A gateway error occurred while making the request",c.status);else if(s&&s.error)throw new p(s.error,c.status);else if(s&&s.errors)throw new p(JSON.stringify(s.errors),c.status);else throw new p("A connection error occurred while making the request");return s}function v(e){if(e)return e;if(window?.Shopify?.shop)return window.Shopify.shop;let t=window?.domain;if(!t){let e=location?.href.match(/(?:http[s]*:\/\/)*(.*?)\.(?=admin\.re
5chargeapps\.com)/i)?.[1].replace(/-sp$/,"");e&&(t=`${e}.myshopify.com`)}if(t)return t;throw Error("No storeIdentifier was passed into init.")}function _(e={}){let t=e,{storefrontAccessToken:r}=e;if(r&&!r.startsWith("strfnt"))throw Error("Incorrect storefront access token used. See https://storefront.rechargepayments.com/client/docs/getting_started/package_setup/#initialization-- for more information.");a({storeIdentifier:v(e.storeIdentifier),loginRetryFn:e.loginRetryFn,storefrontAccessToken:r,appName:e.appName,appVersion:e.appVersion,environment:t.environment?t.environment:"prod",environmentUri:t.environmentUri,customerHash:t.customerHash}),i()}async function w(e,t){if(!e)throw Error("Shopify storefront token is required");let{storeIdentifier:r}=s();if(!r)throw Error("InitRecharge has not been called and/or no store identifier has been defined.");let{api_token:n,customer_id:i,message:o}=await x("post","/shopify_storefront_access",{data:{customer_token:t,storefront_token:e,shop_url:r}});return n?{apiToken:n,customerId:i,message:o}:null}async function x(e,t,{id:r,query:n,data:i,headers:o}={}){let{environment:a,environmentUri:u,storefrontAccessToken:l,appName:c,appVersion:f}=s(),d=h(a,u);return b(e,`${d}${t}`,{id:r,query:n,data:i,headers:{...l?{"X-Recharge-Storefront-Access-Token":l}:{},...c?{"X-Recharge-Sdk-App-Name":c}:{},...f?{"X-Recharge-Sdk-App-Version":f}:{},"X-Recharge-Sdk-Version":"1.38.0",...o||{}}})}async function S(e,t){let r=e.customerId;if(!r)throw Error("Not logged in.");let{customer:n}=await y("get","/customers",{id:r,query:{include:t?.include}},g(e,"getCustomer"));return n}async function E(e,t){return y("get","/portal_access",{query:t},g(e,"getCustomerPortalAccess"))}async function k(e,t,r){if(void 0===t||""===t)throw Error("Subscription ID is required");let{base_url:n,customer_hash:i,temp_token:o}=await E(g(e,"getActiveChurnLandingPageURL"));return`${n.replace("portal","pages")}${i}/subscriptions/${t}/cancel?token=${o}&subscription=${t}&redirect_to=${r}`}async function A(e,t,r){if(void 0===t||""===t)throw Error("ID is required");let{subscription:n}=await y("get","/subscriptions",{id:t,query:{include:r?.include}},g(e,"getSubscription"));return n}function M(e,t){return y("get","/subscriptions",{query:t},g(e,"listSubscriptions"))}async function T(e,t,r,n){if(void 0===t||""===t)throw Error("ID is required");let{subscription:i}=await y("post",`/subscriptions/${t}/cancel`,{data:r,query:n},g(e,"cancelSubscription"));return i}async function O(e,t,r){if(void 0===t||""===t)throw Error("ID is required");let{subscription:n}=await y("post",`/subscriptions/${t}/activate`,{query:r},g(e,"activateSubscription"));return n}async function C(e,t,r){if(void 0===t||""===t)throw Error("ID is required");let{address:n}=await y("get","/addresses",{id:t,query:{include:r?.include}},g(e,"getAddress"));return n}async function P(e,t,r,n){if(void 0===t||""===t)throw Error("ID is required");let{address:i}=await y("put","/addresses",{id:t,data:r,query:n},g(e,"updateAddress"));return i}function R(e,t){return y("get","/orders",{query:t},g(e,"listOrders"))}function j(e,t){return y("get","/charges",{query:t},g(e,"listCharges"))}r(91373);var I=r(18559);let N=e=>{_({storeIdentifier:"us-birchbox-staging.myshopify.com",storefrontAccessToken:"strfnt_bf4a5b2e770c2ef1434b086d5ed487decf8f2c0779c56ff547e60c5c32b3cc35",loginRetryFn:async()=>(console.log("Retrying Recharge login..."),L(e))})},L=async e=>{if(!e)return;let t="6a26f9599fa321042fc564b284b9b7e7";try{let r=await w(t,e);return null!=r?r:void 0}catch(e){console.log("Unable to login with Shopify: ",e),I.Cp(e);return}},D=async(e,t,r)=>{if(e)try{let n=await k(e,t,r);return null!=n?n:void 0}catch(t){console.log("Unable to retrieve URL: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},B=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)try{var r;let n={sort_by:"id-desc",limit:25};return t&&(n.include=["address"]),null!=(r=(await M(e,n)).subscriptions)?r:void 0}catch(t){console.log("Unable to retrieve subscriptions: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},F=async e=>{if(e)try{let t=await S(e);return null!=t?t:void 0}catch(e){I.Cp(e);return}},U=async e=>{if(e)try{let t=await M(e,{sort_by:"id-desc",status:"active",limit:1});return t.subscriptions&&t.subscriptions.length?t.subscriptions[0]:void 0}catch(t){console.log("Unable to retrieve subscriptions: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},q=async(e,t)=>{if(e)try{return await A(e,t)}catch(t){console.log("Unable to retrieve subscriptions: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},$=async(e,t)=>{if(e)try{let r=await C(e,t);return null!=r?r:void 0}catch(t){console.log("Unable to retrieve address: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},z=async(e,t,r)=>{if(e)try{return await T(e,t,{cancellation_reason:r})}catch(t){console.log("Unable to cancel the subscription: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},V=async(e,t)=>{if(e)try{return await O(e,t)}catch(t){console.log("Unable to activate the subscription: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},H=async(e,t,r)=>{if(e)try{var n;let i={address1:r.address1,address2:r.address2,city:r.city,company:r.company,country_code:r.country_code,first_name:r.first_name,last_name:r.last_name,phone:r.phone,province:r.province,zip:null!=(n=r.zip)?n:void 0};return await P(e,t,i)}catch(t){throw console.log("Unable to update the address: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t),t}},G=async(e,t,r,n)=>{if(e)try{var i;return null!=(i=(await R(e,{purchase_item_id:t,created_at_min:null!=r?r:void 0,status:null!=n?n:void 0,sort_by:"processed_at-desc"})).orders)?i:void 0}catch(t){throw console.log("Unable to retrieve orders: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t),t}},W=async(e,t)=>{if(e)try{let r=await j(e,{status:["success","refunded","partially_refunded"],purchase_item_id:t,sort_by:"scheduled_at-desc",limit:1});return r.charges&&r.charges.length?r.charges[0]:void 0}catch(t){console.log("Unable to retrieve orders: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t);return}},J=async(e,t,r)=>{if(e)try{let n=await C(e,t);if(!n)throw Error("Address not found");return await P(e,t,{address1:n.address1,address2:n.address2,city:n.city,company:n.company,country_code:n.country_code,first_name:n.first_name,last_name:n.last_name,phone:n.phone,province:n.province,zip:n.zip,order_attributes:r})}catch(t){throw console.log("Unable to update address order attributes: ",t),console.log("session:",JSON.stringify(e)),I.Cp(t),t}}},80426:(e,t,r)=>{"use strict";var n=r(27496);
vendor: 5,918 bytes, line 5
5e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},80611:(e,t,r)=>{"use strict";var n=r(93023);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},81073:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"==typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,k=Array.prototype.slice,A=Math.floor,M="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var N=r(42634),L=N.custom,D=Z(L)?L:null,B={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=B[r.quoteStyle||t];return n+e+n}function q(e){return v.call(String(e),/"/g,""")}function $(e){return!P||!("object"==typeof e&&(P in e||void 0!==e[P]))}function z(e){return"[object Array]"===ee(e)&&$(e)}function V(e){return"[object Date]"===ee(e)&&$(e)}function H(e){return"[object RegExp]"===ee(e)&&$(e)}function G(e){return"[object Error]"===ee(e)&&$(e)}function W(e){return"[object String]"===ee(e)&&$(e)}function J(e){return"[object Number]"===ee(e)&&$(e)}function K(e){return"[object Boolean]"===ee(e)&&$(e)}function Z(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}function X(e){if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u=n||{};if(Q(u,"quoteStyle")&&!Q(B,u.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(Q(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!Q(u,"customInspect")||u.customInspect;if("boolean"!=typeof f&&"symbol"!==f)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return el(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return d?I(t,h):h}if("bigint"==typeof t){var m=String(t)+"n";return d?I(t,m):m}var g=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=g&&g>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var y=em(u,i);if(void 0===s)s=[];else if(er(s,t)>=0)return"[Circular]";function _(t,r,n){if(r&&(s=k.call(s)).push(r),n){var o={depth:u.depth};return Q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!H(t)){var x=et(t),A=ey(t,_);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(A.length>0?" { "+E.call(A,", ")+" }":"")}if(Z(t)){var T=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||C?T:ef(T)}if(eu(t)){for(var L="<"+w.call(String(t.nodeName)),F=t.attributes||[],$=0;$<F.length;$++)L+=" "+F[$].name+"="+U(q(F[$].value),"double",u);return L+=">",t.childNodes&&t.childNodes.length&&(L+="..."),L+="</"+w.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var Y=ey(t,_);return y&&!ep(Y)?"["+eg(Y,y)+"]":"[ "+E.call(Y,", ")+" ]"}if(G(t)){var ec=ey(t,_);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ec.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ec,", ")+" }":"{ ["+String(t)+"] "+E.call(S.call("[cause]: "+_(t.cause),ec),", ")+" }"}if("object"==typeof t&&f){if(D&&"function"==typeof t[D]&&N)return N(t,{depth:g-i});else if("symbol"!==f&&"function"==typeof t.inspect)return t.inspect()}if(en(t)){var eb=[];return a&&a.call(t,function(e,r){eb.push(_(r,t,!0)+" => "+_(e,t))}),eh("Map",o.call(t),eb,y)}if(ea(t)){var ev=[];return c&&c.call(t,function(e){ev.push(_(e,t))}),eh("Set",l.call(t),ev,y)}if(ei(t))return ed("WeakMap");if(es(t))return ed("WeakSet");if(eo(t))return ed("WeakRef");if(J(t))return ef(_(Number(t)));
5if(X(t))return ef(_(M.call(t)));if(K(t))return ef(p.call(t));if(W(t))return ef(_(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!V(t)&&!H(t)){var e_=ey(t,_),ew=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ew&&P&&Object(t)===t&&P in t?b.call(ee(t),8,-1):ex?"Object":"",eE=(ew||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+E.call(S.call([],eS||[],ex||[]),": ")+"] ":"");return 0===e_.length?eE+"{}":y?eE+"{"+eg(e_,y)+"}":eE+"{ "+E.call(e_,", ")+" }"}return String(t)};var Y=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return Y.call(e,t)}function ee(e){return m.call(e)}function et(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function er(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function en(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}function ei(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}function eo(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}function ea(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}function es(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}function eu(e){return!!e&&"object"==typeof e&&(!!("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function el(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return el(b.call(e,0,t.maxStringLength),t)+n}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,U(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,ec),"single",t)}function ec(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function ef(e){return"Object("+e+")"}function ed(e){return e+" { ? }"}function eh(e,t,r,n){return e+" ("+t+") {"+(n?eg(r,n):E.call(r,", "))+"}"}function ep(e){for(var t=0;t<e.length;t++)if(er(e[t],"\n")>=0)return!1;return!0}function em(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}function eg(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function ey(e,t){var r,n=z(e),i=[];if(n){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=Q(e,o)?t(e[o],e):""}var a="function"==typeof T?T(e):[];if(C){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var u in e)if(Q(e,u)&&(!n||String(Number(u))!==u||!(u<e.length)))if(C&&r["$"+u]instanceof Symbol)continue;else x.call(/[^\w$]/,u)?i.push(t(u,e)+": "+t(e[u],e)):i.push(u+": "+t(e[u],e));if("function"==typeof T)for(var l=0;l<a.length;l++)R.call(e,a[l])&&i.push("["+t(a[l])+"]: "+t(e[a[l]],e));return i}},81175:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(84645);let i="\n mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {\n cartLinesAdd(cartId: $cartId, lines: $lines) {\n userErrors {\n code\n field\n message\n }\n cart {\n ...cartDetails\n }\n }\n }\n\n ".concat(n.X,"\n")},81370:(e,t)=>{"use strict";t.byteLength=l,t.toByteArray=f,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function l(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function c(e,t,r){return(t+r)*3/4-r}function f(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i(c(e,a,s)),f=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[f++]=t>>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(d((e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function p(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(h(e,s,s+a>u?u:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n[45]=62,n[95]=63},81868:(e,t,r)=>{"use strict";r.d(t,{S8:()=>s,cd:()=>u});var n=r(1978);function i(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(let e=0;e<t.length;e++)if(t[e]===r){t.splice(e,1);break}}]}var o=r(30937),a=r(55043);function s(e,t=100,r=Infinity){try{return l("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function u(e,t=3,r=102400){let n=s(e,t);return h(n)>r?u(e,t-1,r):n}function l(e,t,r=Infinity,a=Infinity,s=i()){let[u,f]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,n.yr)(t))return t;let d=c(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;let h="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===h)return d.replace("object ","");if(u(t))return"[Circular ~]";let p=t;if(p&&"function"==typeof p.toJSON)try{let e=p.toJSON();return l("",e,h-1,a,s)}catch(e){}let m=Array.isArray(t)?[]:{},g=0,y=(0,o.W4)(t);for(let e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(g>=a){m[e]="[MaxProperties ~]";break}let t=y[e];m[e]=l(e,t,h-1,a,s),g++}return f(t),m}function c(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return"[VueViewModel]";if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,a.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let i=f(t);
5if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}function f(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function d(e){return~-encodeURI(e).split(/%..|./).length}function h(e){return d(JSON.stringify(e))}},82020:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15568);t.typeFilter=e=>n.filter.at("document.type",e)},82431:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CustomTypeModelFieldType={Boolean:"Boolean",Color:"Color",Date:"Date",Embed:"Embed",GeoPoint:"GeoPoint",Group:"Group",Image:"Image",Integration:"IntegrationFields",Link:"Link",Number:"Number",Select:"Select",Slices:"Slices",StructuredText:"StructuredText",Table:"Table",Text:"Text",Timestamp:"Timestamp",UID:"UID",IntegrationFields:"IntegrationFields",Range:"Range",Separator:"Separator",LegacySlices:"Choice"}},82763:(e,t,r)=>{"use strict";let n;r.d(t,{k3:()=>u,lu:()=>a,zf:()=>s});var i=r(92501);let o=1e3;function a(){return Date.now()/o}let s=function(){let{performance:e}=i.OW;if(!e||!e.now)return a;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/o}(),u=(()=>{let{performance:e}=i.OW;if(!e||!e.now){n="none";return}let t=36e5,r=e.now(),o=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,s=a<t,u=e.timing&&e.timing.navigationStart,l="number"==typeof u?Math.abs(u+r-o):t,c=l<t;if(s||c)if(a<=l)return n="timeOrigin",e.timeOrigin;else return n="navigationStart",u;return n="dateNow",o})()},82909:(e,t,r)=>{"use strict";let n=r(81370),i=r(87247),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;let a=0x7fffffff;function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ea(e,ArrayBuffer)||e&&ea(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ea(e,SharedArrayBuffer)||e&&ea(e.buffer,SharedArrayBuffer)))return y(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return l.from(n,t,r);let i=b(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,r){return(f(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return f(e),u(e<0?0:0|v(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|w(e,t),n=u(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){let t=e.length<0?0:0|v(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e){if(ea(e,Uint8Array)){let t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function y(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),l.prototype),n}function b(e){if(l.isBuffer(e)){let t=0|v(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||es(e.length)?u
vendor: 18,527 bytes, line 5
5(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function v(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),l.alloc(+e)}function w(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ea(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ei(e).length;default:if(i)return n?-1:et(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function S(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),es(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return k(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function k(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return -1}function A(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(es(n))break;e[r+i]=n}return i}function M(e,t,r,n){return eo(et(t,e.length-r),e,r,n)}function T(e,t,r,n){return eo(er(t),e,r,n)}function O(e,t,r,n){return eo(ei(t),e,r,n)}function C(e,t,r,n){return eo(en(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(o=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return I(n)}t.kMaxLength=0x7fffffff,l.TYPED_ARRAY_SUPPORT=s(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return d(e,t,r)},l.allocUnsafe=function(e){return h(e)},l.allocUnsafeSlow=function(e){return h(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(ea(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),ea(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(ea(t,Uint8Array))i+t.length>n.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(l.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},l.byteLength=w,l.prototype._isBuffer=!0,l.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)S(this,t,t+1);return this},l.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},l.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},l.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?R(this,0,e):x.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,i){if(ea(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==c[e]){o=u[e],a=c[e];break}return o<a?-1:+(a<o)},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return M(this,e,t,r);case"ascii":case"latin1":case"binary":return T(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let j=4096;function I(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}function N(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function L(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function D(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=eu[e[n]];return i}function B(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,i,o){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function q(e,t,r,n,i){Z(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function $(e,t,r,n,i){Z(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function z(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function V(e,t,r,n,o){return t*=1,r>>>=0,o||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function H(e,t,r,n,o){return t*=1,r>>>=0,o||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=el(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Y(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=el(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Y(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return(e>>>=0,t||F(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=el(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Y(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),l.prototype.readBigInt64BE=el(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Y(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=el(function(e,t=0){return q(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=el(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||U(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=el(function(e,t=0){return q(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=el(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,r){return V(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return V(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return H(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return H(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},l.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=l.isBuffer(e)?e:l.from(e,n),a=o.length;
5if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let G={};function W(e,t,r){G[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function J(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function K(e,t,r){X(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&Y(t,e.length-(r+1))}function Z(e,t,r,n,i,o){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new G.ERR_OUT_OF_RANGE("value",n,e)}K(n,i,o)}function X(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,r){if(Math.floor(e)!==e)throw X(e,r),new G.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=J(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=J(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let Q=/[^+/0-9A-Za-z-_]/g;function ee(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function et(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function er(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function en(e,t){let r,n,i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function ei(e){return n.toByteArray(ee(e))}function eo(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ea(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function es(e){return e!=e}let eu=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function el(e){return"undefined"==typeof BigInt?ec:e}function ec(){throw Error("BigInt not supported")}},82936:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},83031:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.asText=(e,t=" ")=>{let r="";for(let n=0;n<e.length;n++)"text"in e[n]&&(r+=(r?t:"")+e[n].text);return r}},83395:(e,t,r)=>{"use strict";var n=r(27496),i=r(72442),o=r(42493),a=r(52597);function s(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r.create=function(t){return s(a(e,t))},r}var u=s(r(8630));u.Axios=o,u.CanceledError=r(52801),u.CancelToken=r(92125),u.isCancel=r(56992),u.VERSION=r(17915).version,u.toFormData=r(30910),u.AxiosError=r(47418),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=r(52818),u.isAxiosError=r(4093),e.exports=u,e.exports.default=u},83562:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(84848);t.findMasterRef=e=>n.findRef(e,e=>e.isMasterRef)},83782:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(74380),i=r(94772),o=r(85391),a=r(93028),s=r(4650);async function u(e){let{id:t}=e,r=[t],n=(0,i.A)();if(!n)return null;let{cartLinesRemove:u}=await (0,o.Ay)({query:a.A,variables:{cartId:n,lineIds:r}});
5return window.onwardApp&&window.onwardClient&&window.onwardApp.cartChanged(s.U.parseCart(u.cart)),u}function l(){let{revalidate:e}=(0,n.Ay)();return async t=>{let{id:r}=t;await e(async e=>{if(!e)return{cart:null,items:null,itemCount:0};let t=await u({id:r});return(0,n.Ko)(t)},{rollbackOnError:!0,revalidate:!1,optimisticData:e=>{var t;return e?{...e,items:null==e||null==(t=e.items)?void 0:t.filter(e=>e.id!==r)}:{cart:null,items:[],itemCount:0}}})}}},84084:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},84096:(e,t,r)=>{var n=r(66713),i=r(46968),o=r(33468),a=r(50466),s=r(56202),u=r(66788),l=r(85318);function c(){"use strict";var t=i(),r=t.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,l(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,r,n,i){return t.w(p(e),r,n,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:s,async:function(e,t,r,n,i){return(d(t)?a:o)(p(e),t,r,n,i)},keys:u,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},84620:(e,t,r)=>{var n=r(31365);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},84645:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,X:()=>n});let n="\n fragment cartDetails on Cart {\n id\n checkoutUrl\n estimatedCost {\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n totalTaxAmount {\n amount\n currencyCode\n }\n totalDutyAmount {\n amount\n currencyCode\n }\n }\n discountCodes {\n applicable\n code\n }\n appliedGiftCards {\n id\n balance {\n amount\n currencyCode\n }\n presentmentAmountUsed {\n amount\n currencyCode\n }\n lastCharacters\n amountUsed {\n amount\n currencyCode\n }\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n targetType\n }\n lines(first: 250) {\n edges {\n node {\n id\n attributes {\n key\n value\n }\n sellingPlanAllocation {\n sellingPlan {\n name\n id\n }\n }\n estimatedCost {\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n targetType\n }\n merchandise {\n ... on ProductVariant {\n id\n sku\n title\n selectedOptions {\n name\n value\n }\n requiresShipping\n quantityAvailable\n image {\n url\n altText\n width\n height\n }\n product {\n handle\n title\n vendor\n id\n # Used for discount codes\n collections(first: 10) {\n nodes {\n id\n # Used for GTM categories\n handle\n }\n }\n tags\n }\n }\n }\n quantity\n }\n }\n }\n }\n",i="\n query getCart($cartId: ID!) {\n cart(id: $cartId) {\n ...cartDetails\n }\n }\n ".concat(n,"\n")},84848:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779);t.findRef=(e,t)=>{let r=e.find(e=>t(e));if(!r)throw new n.PrismicError("Ref could not be found.",void 0,void 0);return r}},85318:(e,t,r)=>{var n=r(12883).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
5if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},85391:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n=r(8145),i=r.n(n),o=r(78799),a=r(11728);let s=async function(e){let{url:t=o.H$,method:r="POST",variables:n,query:s,headers:u}=e,{locale:l,...c}=null!=n?n:{},f=await i()(t,{method:r,data:JSON.stringify({query:s,variables:c}),headers:{"X-Shopify-Storefront-Access-Token":null!==o.BA&&void 0!==o.BA?o.BA:null,"Content-Type":"application/json",...l&&{"Accept-Language":l},...u}});return(0,a._T)(f)}},85403:(e,t,r)=>{var n=r(7162);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).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)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},85453:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(29454),i=r(78799),o=r(85391),a=r(84645);let s="\n mutation cartCreate($input: CartInput = {}) {\n cartCreate(input: $input) {\n cart {\n ...cartDetails\n }\n }\n }\n\n ".concat(a.X,"\n");var u=r(4650);let l=async function(e){let{cartCreate:t}=await (0,o.Ay)({query:s,variables:{input:{lines:e}}}),r=null==t?void 0:t.cart;if(r){let e={expires:i.om};n.A.set(i.z_,null==r?void 0:r.id,e),(null==r?void 0:r.webUrl)&&n.A.set(i.tH,r.webUrl,e)}return window.onwardApp&&window.onwardClient&&window.onwardApp.cartChanged(u.U.parseCart(r)),r}},85460:(e,t,r)=>{"use strict";r.d(t,{E0:()=>s,TC:()=>l,kM:()=>u});var n=r(77588),i=r(27426);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){let t;if(!e)return;let r=e.match(o);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}function s(e,t){let r=a(e),o=(0,n.yD)(t),{traceId:s,parentSpanId:u,parentSampled:l}=r||{};return r?{traceparentData:r,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.eJ)(),parentSpanId:u||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:l,dsc:o||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}}function u(e,t){let r=a(e),o=(0,n.yD)(t),{traceId:s,parentSpanId:u,parentSampled:l}=r||{};return r?{traceId:s||(0,i.eJ)(),parentSpanId:u||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:l,dsc:o||{}}:{traceId:s||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}function l(e=(0,i.eJ)(),t=(0,i.eJ)().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},85673:(e,t,r)=>{"use strict";var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>i(e,"symbol"!=typeof t?t+"":t,r);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=r(87548),s=r(72711),u=r(54026);class l{constructor(e){o(this,"baseURL"),this.baseURL=e.baseURL}buildURLForPath(e,t={}){return s.buildURL(`${new URL(e,this.baseURL)}`,t)}buildWidthSrcSetForPath(e,t){return u.buildWidthSrcSet(`${new URL(e,this.baseURL)}`,t)}buildPixelDensitySrcSetForPath(e,t){return a.buildPixelDensitySrcSet(`${new URL(e,this.baseURL)}`,t)}}t.Client=l},86140:(e,t,r)=>{"use strict";r.d(t,{k:()=>l,l:()=>u});var n=r(30937),i=r(6649),o=r(18559),a=r(28450),s=r(72451);function u(e,t,r){let o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},u=(0,n.Ce)({environment:o.environment||i.U,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",u),u}function l(e){let t=(0,o.KU)();if(!t)return{};let r=u((0,s.et)(e).trace_id||"",t,(0,o.o5)()),n=(0,a.z)(e);if(!n)return r;let i=n&&n._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:l,source:c}=n.metadata;null!=l&&(r.sample_rate=`${l}`);let f=(0,s.et)(n);return c&&"url"!==c&&(r.transaction=f.description),r.sampled=String((0,s.pK)(n)),t.emit&&t.emit("createDsc",r),r}},86465:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(37876),i=r(14232),o=r(92260),a=r(78723),s=r(51211),u=r(63043);function l(e){var t,r,o;let{surveyQuestion:s,isRequired:l,index:c}=e,{currentIndex:f,translateDirection:d}=(0,a.pP)(),h=(0,a.HU)(),p=(0,a.JW)(),m=(0,a.D1)(),g=(0,a.NA)(),y=(0,a.VP)(),b=(0,i.useRef)(!1),v=(0,i.useRef)([]),[_,w]=(0,i.useState)(null==s||null==(t=s.surveyAnswerOptions)?void 0:t.map(e=>{let{optionValue:t,optionLabel:r,id:n}=e;return{optionValue:t,optionLabel:r,active:!1,id:n}})),x=e=>{b.current=!0,w(t=>t.map(t=>{let{optionValue:r,active:n,...i}=t;return{optionValue:r,active:e===r?!n:n,...i}}))};return(0,i.useEffect)(()=>{var e;if(b.current)return;let t=y.find(e=>e.questionId===s.id);if(null==t||null==(e=t.response)?void 0:e.length)JSON.stringify([...t.response].sort())!==JSON.stringify([...v.current].sort())&&(w(e=>e.map(e=>({...e,active:t.response.includes(e.optionValue)}))),v.current=[...t.response])},[y,s.id]),(0,i.useEffect)(()=>{c===f&&m(s,_)},[_,c,f,m,s]),(0,i.useEffect)(()=>{var e;if(c!==f)return;let t=null==_?void 0:_.filter(e=>{let{active:t}=e;return t}),r=null==s||null==(e=s.displayOptions)?void 0:e.minNumSelected;return r?void g(t.length<r):l&&0===t.length?void g(!0):void g(!1)},[_,s,c,f,g,l]),(0,n.jsxs)(u.e,{show:c===f&&h,as:"div",afterLeave:()=>p(!0),enter:"transition ease-in-out duration-[400ms] delay-[400ms]",enterFrom:"opacity-0 ".concat("forwards"===d?"translate-x-1/3":"-translate-x-1/3"),enterTo:"opacity-100 translate-x-0",leave:"transition ease-in-out duration-[400ms]",leaveFrom:"opacity-100 translate-x-0",leaveTo:"opacity-0 ".concat("forwards"===d?"-translate-x-1/3":"translate-x-1/3"),className:"flex flex-col",children:[(null==s?void 0:s.body)&&(0,n.jsx)("h3",{className:"text-lg font-medium text-center md:text-xl",children:s.body}),(null==s||null==(r=s.displayOptions)?void 0:r.minNumSelected)&&(0,n.jsxs)("p",{className:"mt-4 font-medium text-center md:mt-16 text-gray-500 max-md:text-sm",children:["Choose at least ",null==s||null==(o=s.displayOptions)?void 0:o.minNumSelected]}),Array.isArray(null==s?void 0:s.surveyAnswerOptions)&&(0,n.jsx)("ul",{className:"max-w-[800px] flex flex-wrap justify-center self-center sm:justify-items-center mt-8 md:mt-12",children:null==_?void 0:_.map(e=>{let{optionLabel:t,optionValue:r,active:i,id:o}=e;return t?(0,n.jsx)("li",{className:"m-2 md:m-3 max-sm:w-full",children:(0,n.jsx)("button",{type:"button",className:"px-4 py-3 md:py-2 font-medium border rounded-sm transition-colors duration-200 ease-in-out max-md:text-xs w-full ".concat(i?"border-bbx-spark bg-bbx-pearl-light text-bbx-spark":"border-gray-200 bg-gray-100 text-gray-500 font-medium"),onClick:()=>x(r),children:t})},o):null})})]})}var c=r(54587),f=r.n(c);
5function d(e){let{surveyQuestion:t,isRequired:r,index:o}=e,{currentIndex:s,translateDirection:l}=(0,a.pP)(),c=(0,a.VP)(),d=(0,a.D1)(),h=(0,a.HU)(),p=(0,a.JW)(),m=(0,a.NA)(),g=(e,r)=>{e&&d(t,{optionValue:e,id:r})};return(0,i.useEffect)(()=>{if(o===s){var e;!r||(null==(e=c[s])?void 0:e.response)?m(!1):m(!0)}},[c,s,r,o]),(0,n.jsxs)(u.e,{show:o===s&&h,as:"div",afterLeave:()=>p(!0),enter:"transition ease-in-out duration-[400ms] delay-[400ms]",enterFrom:"opacity-0 ".concat("forwards"===l?"translate-x-1/3":"-translate-x-1/3"),enterTo:"opacity-100 translate-x-0",leave:"transition ease-in-out duration-[400ms]",leaveFrom:"opacity-100 translate-x-0",leaveTo:"opacity-0 ".concat("forwards"===l?"-translate-x-1/3":"translate-x-1/3"),children:[(null==t?void 0:t.body)&&(0,n.jsx)("h3",{className:"text-lg font-medium text-center md:text-xl",children:t.body}),Array.isArray(null==t?void 0:t.surveyAnswerOptions)&&(0,n.jsx)("ul",{className:"flex flex-wrap self-center justify-center mt-8 mb-2 md:mt-10",children:t.surveyAnswerOptions.map(e=>{var t;let{optionLabel:r,optionValue:i,optionImage:o,id:a}=e,u=(null==c||null==(t=c[s])?void 0:t.response[0])===i;return(0,n.jsx)("li",{className:"\n ".concat(o?"m-4 md:m-5":"m-1.5 md:m-3 max-sm:w-full"),children:o?(0,n.jsxs)("button",{type:"button",className:"flex flex-col items-center gap-6 max-w-[100px] md:max-w-[180px]",onClick:()=>g(i,a),children:[(0,n.jsx)(f(),{className:"rounded-full",src:o,alt:"Survey question image: ".concat(r),width:96,height:96}),(0,n.jsxs)("div",{className:"relative inline-block px-0.5 md:px-2.5 pb-1 md:pb-2 transition-colors duration-300 ease-in-out",children:[r&&(0,n.jsx)("p",{className:"font-medium text-center ".concat(u?"":"text-gray-450"),children:r}),(0,n.jsx)("div",{"aria-hidden":"true",className:"absolute inset-x-0 bottom-0 h-0.5 bg-bbx-spark rounded-full transition-opacity duration-75 ease-in-out ".concat(u?"opacity-100":"opacity-0")})]})]}):(0,n.jsx)("button",{type:"button",className:"gap-8 px-4 py-3 md:py-2 font-medium border rounded-sm transition-colors duration-200 ease-in-out max-md:text-xs max-sm:w-full ".concat(u?"border-bbx-spark bg-bbx-pearl-light text-bbx-spark":"border-gray-200 bg-gray-100 text-gray-500 font-medium"),onClick:()=>g(i,a),children:r})},a)})})]})}function h(e,t){return Array.isArray(e)&&t?t/(e.length-1):1}function p(e){var t,r,o;let{surveyQuestion:s,isRequired:l,index:c}=e,{currentIndex:f,translateDirection:d}=(0,a.pP)(),p=(0,a.D1)(),m=(0,a.HU)(),g=(0,a.JW)(),y=(0,a.NA)(),{displayOptions:b}=s||{},{rangeMaxValue:v,rangeMinValue:_,steps:w}=b||{},x=h(w,v),S=e=>{let t=null==w?void 0:w.find(t=>"".concat(null==t?void 0:t.value)===e);return(null==t?void 0:t.label)||""},E=Math.round((w.length-1)/2),k=Array.isArray(w)?"".concat(null==(t=w[E])?void 0:t.value):"0",[A,M]=(0,i.useState)(k),[T,O]=(0,i.useState)(S(k));(0,i.useEffect)(()=>{c===f&&p(s,{optionValue:A})},[A,p,c,f]),(0,i.useEffect)(()=>{c===f&&y(!1)},[c,f,y]);let C=e=>{let t=null==e?void 0:e.target;(null==t?void 0:t.value)&&(M(t.value),O(S(t.value)))};return(0,n.jsxs)(u.e,{show:c===f&&m,as:"div",afterLeave:()=>{g(!0)},enter:"transition ease-in-out duration-[400ms] delay-[400ms]",enterFrom:"opacity-0 ".concat("forwards"===d?"translate-x-1/3":"-translate-x-1/3"),enterTo:"opacity-100 translate-x-0",leave:"transition ease-in-out duration-[400ms]",leaveFrom:"opacity-100 translate-x-0",leaveTo:"opacity-0 ".concat("forwards"===d?"-translate-x-1/3":"translate-x-1/3"),className:"flex flex-col skin-sensitivity",children:[(null==s?void 0:s.body)&&(0,n.jsx)("h3",{className:"text-lg font-medium text-center md:text-xl",children:s.body}),T&&(0,n.jsx)("p",{className:"mt-12 text-sm font-medium text-center text-gray-500 lg:mt-16 sm:text-base md:text-lg",children:T}),(null==s?void 0:s.displayOptions)&&(0,n.jsxs)("div",{className:"relative mt-10 mb-40 md:my-20 max-w-[800px] w-full self-center h-8 flex items-center",children:[(0,n.jsx)("input",{type:"range",min:_,max:v,step:x,value:A,onChange:C,className:"range-slider"}),(0,n.jsx)("ul",{className:"absolute inset-x-0 flex items-center justify-between bg-bbx-spark h-0.5 mx-4 z-10","aria-hidden":"true",children:null==s||null==(o=s.displayOptions)||null==(r=o.steps)?void 0:r.map((e,t)=>(0,n.jsx)("li",{className:"w-2 h-2 rounded-full bg-bbx-spark"},t))})]})]})}function m(e){var t,r,u;let{callBack:c=null,customFinishText:f}=e,{surveyQuestions:h}=(0,a.YM)()||{},{surveyProgress:m,currentIndex:g}=(0,a.pP)(),y=(0,a.$t)(),b=(0,a.Jq)(),v=(0,a.JW)(),_=(0,a.xS)(),w=(0,a.Ze)(),x=(0,o.xN)(),S=(0,i.useRef)(null),E=()=>{var e;return null==S||null==(e=S.current)?void 0:e.scrollIntoView({behavior:"smooth"})},k=async()=>{var e,t;(null==h||null==(e=h[g])?void 0:e.id)===(null==h||null==(t=h[h.length-1])?void 0:t.id)&&c?c():(E(),v(!1),y())};return(0,n.jsx)("div",{className:"flex justify-center w-full px-4",children:(0,n.jsxs)("div",{className:"relative bg-white rounded shadow-lg max-w-[1200px] w-full overflow-hidden",children:[(0,n.jsx)("div",{className:"relative w-full h-2 overflow-hidden bg-gray-100 rounded-t","aria-hidden":"true",ref:S,
5children:(0,n.jsx)("div",{className:"absolute inset-x-0 top-0 w-full h-full transition-transform duration-[800ms] ease-in-out origin-left bg-bbx-spark",style:{transform:"scaleX(".concat(m,")")}})}),(0,n.jsxs)("div",{className:"flex flex-col p-8 md:p-12 lg:py-20",children:[(null==h||null==(t=h[g])?void 0:t.isRequired)?null:(0,n.jsx)("button",{type:"button",className:"self-end mb-5 text-gray-500 md:mb-11 max-md:text-sm",onClick:()=>{var e;_(null==h||null==(e=h[g])?void 0:e.id),k()},children:s.survey.skip}),Array.isArray(h)&&h.map((e,t)=>(null==e?void 0:e.type)==="radio_select"?(0,n.jsx)(d,{surveyQuestion:e,isRequired:null==e?void 0:e.isRequired,index:t},null==e?void 0:e.id):(null==e?void 0:e.type)==="range_slider"?(0,n.jsx)(p,{surveyQuestion:e,isRequired:null==e?void 0:e.isRequired,index:t},null==e?void 0:e.id):(null==e?void 0:e.type)==="multiselect"?(0,n.jsx)(l,{surveyQuestion:e,isRequired:null==e?void 0:e.isRequired,index:t},null==e?void 0:e.id):null),(0,n.jsxs)("div",{className:"flex gap-6 mt-14 md:mt-32 max-md:flex-col-reverse md:self-end",children:[(0,n.jsx)("button",{type:"button",className:"button button-secondary",onClick:()=>{0===g?x():(E(),v(!1),b())},disabled:0===g,children:s.survey.back}),(0,n.jsx)("button",{type:"button",className:"button button-primary",disabled:w,onClick:k,children:(null==h||null==(r=h[g])?void 0:r.id)===(null==h||null==(u=h[h.length-1])?void 0:u.id)?f||s.survey.finish:s.survey.next})]})]})]})})}},86558:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},86581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(72687)._(r(14232)).default.createContext(null)},86701:e=>{e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},86881:(e,t,r)=>{"use strict";let n,i,o,a,s,u,l,c,f,d,h,p,m,g,y,b,v;var _,w={};r.r(w),r.d(w,{FunctionToString:()=>V,InboundFilters:()=>Z,LinkedErrors:()=>ev});var x={};r.r(x),r.d(x,{Breadcrumbs:()=>tJ,Dedupe:()=>rr,GlobalHandlers:()=>e4,HttpContext:()=>t7,LinkedErrors:()=>t8,TryCatch:()=>ts});var S=r(41156);function E(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:S.M})),version:S.M}),e._metadata=i}var k=r(30937),A=r(18559),M=r(27426),T=r(702),O=r(91654),C=r(7209),P=r(14431);let R=[];function j(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.keys(t).map(e=>t[e])}function I(e){let t,r=e.defaultIntegrations||[],n=e.integrations;r.forEach(e=>{e.isDefaultInstance=!0});let i=j(t=Array.isArray(n)?[...r,...n]:"function"==typeof n?(0,M.k9)(n(r)):r),o=B(i,e=>"Debug"===e.name);if(-1!==o){let[e]=i.splice(o,1);i.push(e)}return i}function N(e,t){let r={};return t.forEach(t=>{t&&D(e,t,r)}),r}function L(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function D(e,t,r){if(r[t.name]){O.T&&T.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===R.indexOf(t.name)&&(t.setupOnce(C.lb,P.BF),R.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}O.T&&T.vF.log(`Integration installed: ${t.name}`)}function B(e,t){for(let r=0;r<e.length;r++)if(!0===t(e[r]))return r;return -1}function F(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}function U(e){return e}let q="FunctionToString",$=new WeakMap,z=U(()=>({name:q,setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,k.sp)(this),r=$.has((0,A.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){$.set(e,!0)}})),V=F(q,z);var H=r(56523);let G=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],W=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],J="InboundFilters",K=U((e={})=>({name:J,setupOnce(){},processEvent:(t,r,n)=>Y(t,X(e,n.getOptions()))?null:t})),Z=F(J,K);function X(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:G],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:W],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}function Y(e,t){return t.ignoreInternal&&ei(e)?(O.T&&T.vF.warn(`Event dropped due to being internal Sentry Error. 6Event: ${(0,M.$X)(e)}`),!0):Q(e,t.ignoreErrors)?(O.T&&T.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 7Event: ${(0,M.$X)(e)}`),!0):ee(e,t.ignoreTransactions)?(O.T&&T.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 8Event: ${(0,M.$X)(e)}`),!0):et(e,t.denyUrls)?(O.T&&T.vF.warn(`Event dropped due to being matched by \`denyUrls\` option. 9Event: ${(0,M.$X)(e)}. 10Url: ${ea(e)}`),!0):!er(e,t.allowUrls)&&(O.T&&T.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option. 11Event: ${(0,M.$X)(e)}. 12Url: ${ea(e)}`),!0)}function Q(e,t){return!e.type&&!!t&&!!t.length&&en(e).some(e=>(0,H.Xr)(e,t))}function ee(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&(0,H.Xr)(r,t)}function et(e,t){if(!t||!t.length)return!1;let r=ea(e);return!!r&&(0,H.Xr)(r,t)}function er(e,t){if(!t||!t.length)return!0;let r=ea(e);return!r||(0,H.Xr)(r,t)}function en(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),O.T&&0===r.length&&T.vF.error(`Could not extract message for event ${(0,M.$X)(e)}`),r}function ei(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}function eo(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function ea(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?eo(t):null}catch(t){return O.T&&T.vF.error(`Cannot extract url for event ${(0,M.$X)(e)}`),null}}var es=r(1978);function eu(e,t,r=250,n,i,o,a){if(!o.exception||!o.exception.values||!a||!(0,es.tH)(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=ed(el(e,t,i,a.originalException,n,o.exception.values,s,0),r))}
12function el(e,t,r,n,i,o,a,s){if(o.length>=r+1)return o;let u=[...o];if((0,es.tH)(n[i],Error)){ec(a,s);let o=e(t,n[i]),l=u.length;ef(o,i,l,s),u=el(e,t,r,n[i],i,[o,...u],o,l)}return Array.isArray(n.errors)&&n.errors.forEach((n,o)=>{if((0,es.tH)(n,Error)){ec(a,s);let l=e(t,n),c=u.length;ef(l,`errors[${o}]`,c,s),u=el(e,t,r,n,i,[l,...u],l,c)}}),u}function ec(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function ef(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function ed(e,t){return e.map(e=>(e.value&&(e.value=(0,H.xv)(e.value,t)),e))}function eh(e,t){return e(t.stack||"",1)}function ep(e,t){let r={type:t.name||t.constructor.name,value:t.message},n=eh(e,t);return n.length&&(r.stacktrace={frames:n}),r}let em="cause",eg=5,ey="LinkedErrors",eb=U((e={})=>{let t=e.limit||eg,r=e.key||em;return{name:ey,setupOnce(){},preprocessEvent(e,n,i){let o=i.getOptions();eu(ep,o.stackParser,o.maxValueLength,r,t,e,n)}}}),ev=F(ey,eb),e_=w;var ew=r(92501);let ex=ew.OW,eS=0;function eE(){return eS>0}function ek(){eS++,setTimeout(()=>{eS--})}function eA(e,t={},r){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,k.sp)(e))return e}catch(t){return e}let n=function(){let n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);let i=n.map(e=>eA(e,t));return e.apply(this,i)}catch(e){throw ek(),(0,A.v4)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,M.gO)(e,void 0,void 0),(0,M.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,A.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}(0,k.pO)(n,e),(0,k.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}var eM=r(82936),eT=r(55043);let eO={},eC={};function eP(e,t){eO[e]=eO[e]||[],eO[e].push(t)}function eR(e,t){eC[e]||(t(),eC[e]=!0)}function ej(e,t){let r=e&&eO[e];if(r)for(let n of r)try{n(t)}catch(t){eM.T&&T.vF.error(`Error while triggering instrumentation handler. 13Type: ${e} 14Name: ${(0,eT.qQ)(n)} 15Error:`,t)}}let eI=null;function eN(e){let t="error";eP(t,e),eR(t,eL)}function eL(){eI=ew.OW.onerror,ew.OW.onerror=function(e,t,r,n,i){return ej("error",{column:n,error:i,line:r,msg:e,url:t}),!!eI&&!eI.__SENTRY_LOADER__&&eI.apply(this,arguments)},ew.OW.onerror.__SENTRY_INSTRUMENTED__=!0}let eD=null;function eB(e){let t="unhandledrejection";eP(t,e),eR(t,eF)}function eF(){eD=ew.OW.onunhandledrejection,ew.OW.onunhandledrejection=function(e){return ej("unhandledrejection",e),!eD||!!eD.__SENTRY_LOADER__||eD.apply(this,arguments)},ew.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var eU=r(11418);let eq=!1;var e$=r(81868),ez=r(51298);function eV(e,t){let r=eW(e,t),n={type:t&&t.name,value:eZ(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eH(e,t,r,n){let i=(0,A.KU)(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,es.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:e1(t,{isUnhandledRejection:n})}]},extra:{__serialized__:(0,e$.cd)(t,o)}};if(r){let t=eW(e,r);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}function eG(e,t){return{exception:{values:[eV(e,t)]}}}function eW(e,t){let r=t.stacktrace||t.stack||"",n=eK(t);try{return e(r,n)}catch(e){}return[]}let eJ=/Minified React error #\d+;/i;function eK(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(eJ.test(e.message))return 1}return 0}function eZ(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function eX(e,t,r,n){let i=eQ(e,t,r&&r.syntheticException||void 0,n);return(0,M.M6)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,ez.XW)(i)}function eY(e,t,r="info",n,i){let o=e0(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,ez.XW)(o)}function eQ(e,t,r,n,i){let o;if((0,es.T2)(t)&&t.error)return eG(e,t.error);if((0,es.BD)(t)||(0,es.W6)(t)){let i=t;if("stack"in t)o=eG(e,t);else{let t=i.name||((0,es.BD)(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=e0(e,a,r,n),(0,M.gO)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,es.bJ)(t)?eG(e,t):((0,es.Qd)(t)||(0,es.xH)(t)?o=eH(e,t,r,i):(o=e0(e,t,r,n),(0,M.gO)(o,`${t}`,void 0)),(0,M.M6)(o,{synthetic:!0}),o)}function e0(e,t,r,n){let i={};if(n&&r){let n=eW(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}
15if((0,es.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function e1(e,{isUnhandledRejection:t}){let r=(0,k.HF)(e),n=t?"promise rejection":"exception";if((0,es.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,es.xH)(e)){let t=e2(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}function e2(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}let e3="GlobalHandlers",e6=U((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:e3,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(e8(e),tr("onerror")),t.onunhandledrejection&&(e5(e),tr("onunhandledrejection"))}}}),e4=F(e3,e6);function e8(e){eN(t=>{let{stackParser:r,attachStacktrace:n}=tn();if((0,A.KU)()!==e||eE())return;let{msg:i,url:o,line:a,column:s,error:u}=t,l=void 0===u&&(0,es.Kg)(i)?te(i,o,a,s):tt(eQ(r,u||i,void 0,n,!1),o,a,s);l.level="error",(0,A.r)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function e5(e){eB(t=>{let{stackParser:r,attachStacktrace:n}=tn();if((0,A.KU)()!==e||eE())return;let i=e9(t),o=(0,es.sO)(i)?e7(i):eQ(r,i,void 0,n,!0);o.level="error",(0,A.r)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function e9(e){if((0,es.sO)(e))return e;let t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}function e7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function te(e,t,r,n){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=(0,es.T2)(e)?e.message:e,a="Error",s=o.match(i);return s&&(a=s[1],o=s[2]),tt({exception:{values:[{type:a,value:o}]}},t,r,n)}function tt(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,f=(0,es.Kg)(t)&&t.length>0?t:(0,eU.$N)();return 0===u.length&&u.push({colno:l,filename:f,function:"?",in_app:!0,lineno:c}),e}function tr(e){eq&&T.vF.log(`Global Handler attached: ${e}`)}function tn(){let e=(0,A.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let ti=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],to="TryCatch",ta=U((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:to,setupOnce(){t.setTimeout&&(0,k.GS)(ex,"setTimeout",tu),t.setInterval&&(0,k.GS)(ex,"setInterval",tu),t.requestAnimationFrame&&(0,k.GS)(ex,"requestAnimationFrame",tl),t.XMLHttpRequest&&"XMLHttpRequest"in ex&&(0,k.GS)(XMLHttpRequest.prototype,"send",tc);let e=t.eventTarget;e&&(Array.isArray(e)?e:ti).forEach(tf)}}}),ts=F(to,ta);function tu(e){return function(...t){let r=t[0];return t[0]=eA(r,{mechanism:{data:{function:(0,eT.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tl(e){return function(t){return e.apply(this,[eA(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,eT.qQ)(e)},handled:!1,type:"instrument"}})])}}function tc(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,k.GS)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,eT.qQ)(t)},handled:!1,type:"instrument"}},n=(0,k.sp)(t);return n&&(r.mechanism.data.handler=(0,eT.qQ)(n)),eA(t,r)})}),e.apply(this,t)}}function tf(e){let t=ex,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,k.GS)(r,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=eA(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,eT.qQ)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,eA(n,{mechanism:{data:{function:"addEventListener",handler:(0,eT.qQ)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,k.GS)(r,"removeEventListener",function(e){return function(t,r,n){let i=r;try{let r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}}))}function td(e){let t="console";eP(t,e),eR(t,th)}
15function th(){"console"in ew.OW&&T.Ow.forEach(function(e){e in ew.OW.console&&(0,k.GS)(ew.OW.console,e,function(t){return T.Z9[e]=t,function(...t){ej("console",{args:t,level:e});let r=T.Z9[e];r&&r.apply(ew.OW.console,t)}})})}let tp=ew.OW,tm=1e3;function tg(e){let t="dom";eP(t,e),eR(t,ty)}function ty(){if(!tp.document)return;let e=ej.bind(null,"dom"),t=t_(e,!0);tp.document.addEventListener("click",t,!1),tp.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tp[t]&&tp[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,k.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this,o=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},a=o[r]=o[r]||{refCount:0};if(!a.handler){let n=t_(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch(e){}return t.call(this,r,n,i)}}),(0,k.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this,i=r.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function tb(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}function tv(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}function t_(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=tw(r);if(tv(r.type,n))return;(0,k.my)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,k.my)(n,"_sentryId",(0,M.eJ)());let s="keypress"===r.type?"input":r.type;tb(r)||(e({event:r,name:s,global:t}),o=r.type,a=n?n._sentryId:void 0),clearTimeout(i),i=tp.setTimeout(()=>{a=void 0,o=void 0},tm)}}function tw(e){try{return e.target}catch(e){return null}}let tx=ew.OW,tS="__sentry_xhr_v3__";function tE(e){let t="xhr";eP(t,e),eR(t,tk)}function tk(){if(!tx.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,k.GS)(e,"open",function(e){return function(...t){let r=Date.now(),n=(0,es.Kg)(t[0])?t[0].toUpperCase():void 0,i=tA(t[1]);if(!n||!i)return e.apply(this,t);this[tS]={method:n,url:i,request_headers:{}},"POST"===n&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[tS];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}ej("xhr",{args:[n,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,k.GS)(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),(0,k.GS)(this,"setRequestHeader",function(e){return function(...t){let[r,n]=t,i=this[tS];return i&&(0,es.Kg)(r)&&(0,es.Kg)(n)&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}}),e.apply(this,t)}}),(0,k.GS)(e,"send",function(e){return function(...t){let r=this[tS];return r&&(void 0!==t[0]&&(r.body=t[0]),ej("xhr",{args:[r.method,r.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}function tA(e){if((0,es.Kg)(e))return e;try{return e.toString()}catch(e){}}let tM=(0,ew.VZ)();function tT(){if(!("fetch"in tM))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function tO(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tC(){if("string"==typeof EdgeRuntime)return!0;if(!tT())return!1;if(tO(tM.fetch))return!0;let e=!1,t=tM.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=tO(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){eM.T&&T.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function tP(e){let t="fetch";eP(t,e),eR(t,tR)}function tR(){tC()&&(0,k.GS)(ew.OW,"fetch",function(e){return function(...t){let{method:r,url:n}=tN(t),i={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return ej("fetch",{...i}),e.apply(ew.OW,t).then(e=>(ej("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw ej("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function tj(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tI(e){return"string"==typeof e?e:e?tj(e,"url")?e.url:e.toString?e.toString():"":""}function tN(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tI(t),method:tj(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:tI(t),method:tj(t,"method")?String(t.method).toUpperCase():"GET"}}let tL=(0,ew.VZ)();function tD(){let e=tL.chrome,t=e&&e.app&&e.app.runtime,r="history"in tL&&!!tL.history.pushState&&!!tL.history.replaceState;return!t&&r}let tB=ew.OW;function tF(e){let t="history";eP(t,e),eR(t,tU)}function tU(){if(!tD())return;let e=tB.onpopstate;function t(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let e=s,t=String(r);s=t,ej("history",{from:e,to:t})}return e.apply(this,t)}}tB.onpopstate=function(...t){let r=tB.location.href,n=s;if(s=r,ej("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,k.GS)(tB.history,"pushState",t),(0,k.GS)(tB.history,"replaceState",t)}let tq=["fatal","error","warning","log","info","debug"];function t$(e){return"warn"===e?"warning":tq.includes(e)?e:"log"}function tz(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}
15function tV(e){return e.split(/[\?#]/,1)[0]}let tH=1024,tG="Breadcrumbs",tW=U((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tG,setupOnce(){},setup(e){t.console&&td(tX(e)),t.dom&&tg(tZ(e,t.dom)),t.xhr&&tE(tY(e)),t.fetch&&tP(tQ(e)),t.history&&tF(t0(e)),t.sentry&&e.on&&e.on("beforeSendEvent",tK(e))}}}),tJ=F(tG,tW);function tK(e){return function(t){(0,A.KU)()===e&&(0,A.ZQ)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,M.$X)(t)},{event:t})}}function tZ(e,t){return function(r){let n,i;if((0,A.KU)()!==e)return;let o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>tH&&(eq&&T.vF.warn(`\`dom.maxStringLength\` cannot exceed ${tH}, but a value of ${a} was configured. Sentry will use ${tH} instead.`),a=tH),"string"==typeof o&&(o=[o]);try{let e=r.event,t=t1(e)?e.target:e;n=(0,eU.Hd)(t,{keyAttrs:o,maxStringLength:a}),i=(0,eU.xE)(t)}catch(e){n="<unknown>"}if(0===n.length)return;let s={category:`ui.${r.name}`,message:n};i&&(s.data={"ui.component_name":i}),(0,A.ZQ)(s,{event:r.event,name:r.name,global:r.global})}}function tX(e){return function(t){if((0,A.KU)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:t$(t.level),message:(0,H.gt)(t.args," ")};if("assert"===t.level)if(!1!==t.args[0])return;else r.message=`Assertion failed: ${(0,H.gt)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1);(0,A.ZQ)(r,{input:t.args,level:t.level})}}function tY(e){return function(t){if((0,A.KU)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[tS];if(!r||!n||!i)return;let{method:o,url:a,status_code:s,body:u}=i,l={method:o,url:a,status_code:s},c={xhr:t.xhr,input:u,startTimestamp:r,endTimestamp:n};(0,A.ZQ)({category:"xhr",data:l,type:"http"},c)}}function tQ(e){return function(t){if((0,A.KU)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n};(0,A.ZQ)({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:r,endTimestamp:n};(0,A.ZQ)({category:"fetch",data:i,type:"http"},o)}}}function t0(e){return function(t){if((0,A.KU)()!==e)return;let r=t.from,n=t.to,i=tz(ex.location.href),o=r?tz(r):void 0,a=tz(n);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),(0,A.ZQ)({category:"navigation",data:{from:r,to:n}})}}function t1(e){return!!e&&!!e.target}let t2="cause",t3=5,t6="LinkedErrors",t4=U((e={})=>{let t=e.limit||t3,r=e.key||t2;return{name:t6,setupOnce(){},preprocessEvent(e,n,i){let o=i.getOptions();eu(eV,o.stackParser,o.maxValueLength,r,t,e,n)}}}),t8=F(t6,t4),t5="HttpContext",t9=U(()=>({name:t5,setupOnce(){},preprocessEvent(e){if(!ex.navigator&&!ex.location&&!ex.document)return;let t=e.request&&e.request.url||ex.location&&ex.location.href,{referrer:r}=ex.document||{},{userAgent:n}=ex.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}})),t7=F(t5,t9),re="Dedupe",rt=U(()=>{let e;return{name:re,setupOnce(){},processEvent(t){if(t.type)return t;try{if(rn(t,e))return eq&&T.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}),rr=F(re,rt);function rn(e,t){return!!t&&!!(ri(e,t)||ro(e,t))}function ri(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!rs(e,t)&&!!ra(e,t)&&!0}function ro(e,t){let r=ru(t),n=ru(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!rs(e,t)&&!!ra(e,t)}function ra(e,t){let r=rl(e),n=rl(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function rs(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;
15if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch(e){return!1}}function ru(e){return e.exception&&e.exception.values&&e.exception.values[0]}function rl(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}let rc={};ex.Sentry&&ex.Sentry.Integrations&&(rc=ex.Sentry.Integrations);let rf={...rc,...e_,...x};function rd(e,t){!0===t.debug&&(O.T?T.vF.enable():(0,T.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,A.o5)().update(t.initialScope);let r=new e(t);rh(r),rp(r)}function rh(e){let t=(0,P.BF)().getStackTop();t.client=e,t.scope.setClient(e)}function rp(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}let rm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function rg(e){return"http"===e||"https"===e}function ry(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function rb(e){let t=rm.exec(e);if(!t)return void(0,T.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,i="",o,a="",s]=t.slice(1),u="",l=s,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return rv({host:o,pass:i,path:u,projectId:l,port:a,protocol:r,publicKey:n})}function rv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function r_(e){if(!eM.T)return!0;let{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(T.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?rg(n)?!(t&&isNaN(parseInt(t,10)))||(T.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(T.vF.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(T.vF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}function rw(e){let t="string"==typeof e?rb(e):rv(e);if(t&&r_(t))return t}function rx(e,t=[]){return[e,t]}function rS(e,t){let[r,n]=e;return[r,[...n,t]]}function rE(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function rk(e,t){return(t||new TextEncoder).encode(e)}function rA(e,t){let[r,n]=e,i=JSON.stringify(r);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[rk(i,t),e]:i.push("string"==typeof e?rk(e,t):e)}for(let e of n){let[t,r]=e;if(o(` 16${JSON.stringify(t)} 17`),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,e$.S8)(r))}o(e)}}return"string"==typeof i?i:rM(i)}function rM(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function rT(e,t){let r="string"==typeof e.data?rk(e.data,t):e.data;return[(0,k.Ce)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}let rO={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function rC(e){return rO[e]}function rP(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function rR(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:ry(n)},...i&&{trace:(0,k.Ce)({...i})}}}class rj extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}let rI="7";function rN(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function rL(e){return`${rN(e)}${e.projectId}/envelope/`}function rD(e,t){return(0,k.u4)({sentry_key:e.publicKey,sentry_version:rI,...t&&{sentry_client:`${t.name}/${t.version}`}})}function rB(e,t={}){let r="string"==typeof t?t:t.tunnel,n="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${rL(e)}?${rD(e,n)}`}function rF(e,t){return t&&(e.sdk=e.sdk||{}
17,e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function rU(e,t,r,n){let i=rP(r);return rx({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:ry(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function rq(e,t,r,n){let i=rP(r),o=e.type&&"replay_event"!==e.type?e.type:"event";rF(e,r&&r.sdk);let a=rR(e,i,n,t);return delete e.sdkProcessingMetadata,rx(a,[[{type:o},e]])}function r$(e){let t="";for(let r of e){let e=Object.entries(r.tags),n=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp} 18`}return t}function rz(e,t,r,n){let i={sent_at:new Date().toISOString()};return r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=ry(t)),rx(i,[rV(e)])}function rV(e){let t=r$(e);return[{type:"statsd",length:t.length},t]}var rH=r(14380),rG=r(86140),rW=r(35687);let rJ="Not capturing exception because it's already been captured.";class rK{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=rw(e.dsn):O.T&&T.vF.warn("No DSN provided, client will not send events."),this._dsn){let t=rB(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){if((0,M.GR)(e)){O.T&&T.vF.log(rJ);return}let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,r)).then(e=>{n=e})),n}captureMessage(e,t,r,n){let i=r&&r.event_id,o=(0,es.NF)(e)?e:String(e),a=(0,es.sO)(e)?this.eventFromMessage(o,t,r):this.eventFromException(e,r);return this._process(a.then(e=>this._captureEvent(e,r,n)).then(e=>{i=e})),i}captureEvent(e,t,r){if(t&&t.originalException&&(0,M.GR)(t.originalException)){O.T&&T.vF.log(rJ);return}let n=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||r).then(e=>{n=e})),n}captureSession(e){"string"!=typeof e.release?O.T&&T.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,rH.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,ez.XW)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return O.T&&T.vF.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];D(this,e,this._integrations),t||L(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=rq(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=rS(r,rT(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let n=this._sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=rU(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let n="number"==typeof r?r:1,i=`${e}:${t}`;O.T&&T.vF.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}captureAggregateMetrics(e){O.T&&T.vF.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=rz(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}
18emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=N(this,e),L(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,rH.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ez.T2(t=>{let r=0,n=1,i=setInterval(()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(r+=n,e&&r>=e&&(clearInterval(i),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=(0,P.rm)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),(0,rW.mG)(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:n,span_id:i,parent_span_id:o},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:a||(0,rG.l)(n,this,r),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{if(O.T){let t=e;"log"===t.logLevel?T.vF.log(t.message):T.vF.warn(t)}})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=rQ(e),a=rY(e),s=e.type||"error",u=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,ez.xg)(new rj(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l="replay_event"===s?"replay":s,c=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,c).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",l,e),new rj("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:rZ(rX(n,r,t),u)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",l,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new rj(`${u} returned \`null\`, will not send event.`,"log")}let i=r&&r.getSession();if(!o&&i&&this._updateSessionFromEvent(i,n),o){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let a=n.transaction_info;if(o&&a&&n.transaction!==e.transaction){let e="custom";n.transaction_info={...a,source:e}}return this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof rj)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new rj(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 19Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{O.T&&T.vF.error("Error while sending event:",e)});O.T&&T.vF.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}})}}function rZ(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,es.Qg)(e))return e.then(e=>{if(!(0,es.Qd)(e)&&null!==e)throw new rj(r);return e},e=>{throw new rj(`${t} rejected with ${e}`)});if(!(0,es.Qd)(e)&&null!==e)throw new rj(r);return e}function rX(e,t,r){let{beforeSend:n,beforeSendTransaction:i}=e;if(rY(t)&&n)return n(t,r);if(rQ(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,r)}return t}function rY(e){return void 0===e.type}function rQ(e){return"transaction"===e.type}function r0(){return"npm"}var r1=r(82763);function r2(e,t,r){return rx(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:r||(0,r1.lu)(),discarded_events:e}]])}function r3(e,{metadata:t,tunnel:r,dsn:n}){return rx({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:ry(n)}},[r6(e)])}function r6(e){return[{type:"user_report"},e]}class r4 extends rK{constructor(e){E(e,"browser",["browser"],ex.SENTRY_SDK_SOURCE||r0()),super(e),e.sendClientReports&&ex.document&&ex.document.addEventListener("visibilitychange",()=>{"hidden"===ex.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return eX(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return eY(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){eq&&T.vF.warn("SDK not enabled, will not capture user feedback.");return}let t=r3(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length){eq&&T.vF.log("No outcomes to send");return}if(!this._dsn){eq&&T.vF.log("No dsn provided, will not send outcomes");return}eq&&T.vF.log("Sending outcomes:",e);let t=r2(e,this._options.tunnel&&ry(this._dsn));this._sendEnvelope(t)}}let r8="?";
19function r5(e,t,r,n){let i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let r9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r7=/\((\S*)(?::(\d+))(?::(\d+))\)/,ne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nn=[[30,e=>{let t=r9.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=r7.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,r]=no(t[1]||r8,t[2]);return r5(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=ne.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=nt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||r8;return[r,e]=no(r,e),r5(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=nr.exec(e);return t?r5(t[2],t[1]||r8,+t[3],t[4]?+t[4]:void 0):void 0}]],ni=(0,eT.gd)(...nn),no=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:r8,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function na(e){let t=[];function r(){return void 0===e||t.length<e}function n(e){return t.splice(t.indexOf(e),1)[0]}function i(e){if(!r())return(0,ez.xg)(new rj("Not adding Promise because buffer limit was reached."));let i=e();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i}function o(e){return new ez.T2((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,ez.XW)(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}return{$:t,add:i,drain:o}}let ns=6e4;function nu(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?ns:n-t}function nl(e,t){return e[t]||e.all||0}function nc(e,t,r=Date.now()){return nl(e,t)>r}function nf(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+s):i[e]=n+s;else i.all=n+s}else a?i.all=n+nu(a,n):429===t&&(i.all=n+6e4);return i}let nd=30;function nh(e,t,r=na(e.bufferSize||nd)){let n={},i=e=>r.drain(e);function o(i){let o=[];if(rE(i,(t,r)=>{let i=rC(r);if(nc(n,i)){let n=np(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return(0,ez.XW)();let a=rx(i[0],o),s=t=>{rE(a,(r,n)=>{let i=np(r,n);e.recordDroppedEvent(t,rC(n),i)})},u=()=>t({body:rA(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&O.T&&T.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=nf(n,e),e),e=>{throw s("network_error"),e});return r.add(u).then(e=>e,e=>{if(e instanceof rj)return O.T&&T.vF.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,ez.XW)();throw e})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function np(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function nm(){if(y)return y;if(tO(ex.fetch))return y=ex.fetch.bind(ex);let e=ex.document,t=ex.fetch;if(e&&"function"==typeof e.createElement)try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);let n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){eq&&T.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return y=t.bind(ex)}function ng(){y=void 0}function ny(e,t=nm()){let r=0,n=0;function i(i){let o=i.body.length;r+=o,n++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return ng(),r-=o,n--,(0,ez.xg)(e)}}return nh(e,i)}let nb=4;function nv(e){function t(t){return new ez.T2((r,n)=>{let i=new XMLHttpRequest;for(let t in i.onerror=n,i.onreadystatechange=()=>{i.readyState===nb&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})}return nh(e,t)}let n_=[K(),z(),ta(),tW(),e6(),t4(),rt(),t9()];function nw(e){return[...n_]}function nx(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=nw()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),ex.SENTRY_RELEASE&&ex.SENTRY_RELEASE.id&&(e.release=ex.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),rd(r4,{...e,stackParser:(0,eT.vk)(e.stackParser||ni),integrations:I(e),transport:e.transport||(tT()?ny:nv)}),e.autoSessionTracking&&nS()}function nS(){if(void 0===ex.document){eq&&T.vF.warn("Session tracking in non-browser environment with @
19sentry/browser is not supported.");return}(0,A.J0)({ignoreDuration:!0}),(0,A.J5)(),tF(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,A.J0)({ignoreDuration:!0}),(0,A.J5)())})}function nE(e){let t={...e};E(t,"react"),nx(t)}var nk=r(99742);function nA(e){let t=e?"production":nk.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}var nM=r(72451);function nT(e){return u?u.get(e):void 0}function nO(e){let t=nT(e);if(!t)return;let r={};for(let[,[e,n]]of t)r[e]||(r[e]=[]),r[e].push((0,k.Ce)(n));return r}let nC="sentry.source",nP="sentry.sample_rate",nR="sentry.op",nj="sentry.origin",nI="profile_id";var nN=r(28450);function nL(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function nD(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let r=nL(t);"unknown_error"!==r&&e.setStatus(r)}!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(_||(_={}));class nB{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class nF{constructor(e={}){this._traceId=e.traceId||(0,M.eJ)(),this._spanId=e.spanId||(0,M.eJ)().substring(16),this._startTime=e.startTimestamp||(0,r1.zf)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[nj]:e.origin||"manual",[nR]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[nR]}set op(e){this.setAttribute(nR,e)}get origin(){return this._attributes[nj]}set origin(e){this.setAttribute(nj,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?nM.aO:nM.CC}}startChild(e){let t=new nF({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);let r=(0,nN.z)(this);if(t.transaction=r,O.T&&r){let n=e&&e.op||"< unknown op >",i=(0,nM.et)(t).description||"< unknown name >",o=r.spanContext().spanId,a=`[Tracing] Starting '${n}' span on transaction '${i}' (${o}).`;T.vF.log(a),this._logMessage=a}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return nD(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;let t=(0,nN.z)(this);if(O.T&&t&&t.spanContext().spanId!==this._spanId){let e=this._logMessage;e&&T.vF.log(e.replace("Starting","Finishing"))}this._endTime=(0,nM.cI)(e)}toTraceparent(){return(0,nM.Qh)(this)}toContext(){return(0,k.Ce)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,nM.kX)(this)}getSpanJSON(){return(0,k.Ce)({data:this._getData(),description:this._name,op:this._attributes[nR],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[nj],_metrics_summary:nO(this),profile_id:this._attributes[nI],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
19toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,r=Object.keys(e).length>0,n=Object.keys(t).length>0;if(r||n)return r&&n?{...e,...t}:r?e:t}}function nU(e){return!1}function nq(e){if(!nU())return;let t=nV(e),r=(0,P.BF)(),n=e.scope?e.scope.getSpan():n$();if(e.onlyIfParent&&!n)return;let i=(e.scope||(0,A.o5)()).clone();return nz(r,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function n$(){return(0,A.o5)().getSpan()}function nz(e,{parentSpan:t,spanContext:r,forceTransaction:n,scope:i}){let o;if(!nU())return;let a=(0,P.rm)();if(t&&!n)o=t.startChild(r);else if(t){let n=(0,rG.k)(t),{traceId:i,spanId:a}=t.spanContext(),s=(0,nM.pK)(t);o=e.startTransaction({traceId:i,parentSpanId:a,parentSampled:s,...r,metadata:{dynamicSamplingContext:n,...r.metadata}})}else{let{traceId:t,dsc:n,parentSpanId:s,sampled:u}={...a.getPropagationContext(),...i.getPropagationContext()};o=e.startTransaction({traceId:t,parentSpanId:s,parentSampled:u,...r,metadata:{dynamicSamplingContext:n,...r.metadata}})}return i.setSpan(o),nW(o,i,a),o}function nV(e){if(e.startTime){let t={...e};return t.startTimestamp=(0,nM.cI)(e.startTime),delete t.startTime,t}return e}let nH="_sentryScope",nG="_sentryIsolationScope";function nW(e,t,r){e&&((0,k.my)(e,nG,r),(0,k.my)(e,nH,t))}function nJ(e){return{scope:e[nH],isolationScope:e[nG]}}class nK extends nF{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,P.BF)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[nC]&&{source:this._attributes[nC]},...this._attributes[nP]&&{sampleRate:this._attributes[nP]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(nC,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new nB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,r=""){this._measurements[e]={value:t,unit:r}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let t=(0,nM.cI)(e),r=this._finishTransaction(t);if(r)return this._hub.captureEvent(r)}toContext(){let e=super.toContext();return(0,k.Ce)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,rG.k)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(O.T&&T.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled){O.T&&T.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let r=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&(0,nM.et)(e).timestamp):[];if(this._trimEnd&&r.length>0){let e=r.map(e=>(0,nM.et)(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}let{scope:n,isolationScope:i}=nJ(this),{metadata:o}=this,{source:a}=o,s={contexts:{...this._contexts,trace:(0,nM.kX)(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:n,capturedSpanIsolationScope:i,...(0,k.Ce)({dynamicSamplingContext:(0,rG.k)(this)})},_metrics_summary:nO(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(O.T&&T.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),O.T&&T.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}let nZ={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},nX="finishReason",nY=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class nQ extends nB{constructor(e,t,r,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let t=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),t.apply(e,r)),void 0===(0,nM.et)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class n0 extends nK{constructor(e,t,r=nZ.idleTimeout,n=nZ.finalTimeout,i=nZ.heartbeatInterval,o=!1,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=n,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=nY[4],this._autoFinishAllowed=!a,o&&(O.T&&T.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=nY[3],this.end())},this._finalTimeout)}end(e){let t=(0,nM.cI)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute(nX,this._finishReason),this.spanRecorder){for(let e of(O.T&&T.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;!(0,nM.et)(e).timestamp&&(e.setStatus("cancelled"),e.end(t),O.T&&T.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let{start_timestamp:r,timestamp:n}=(0,nM.et)(e),i=r&&r<t,o=(this._finalTimeout+this._idleTimeout)/1e3,a=n&&r&&n-r<o;if(O.T){let t=JSON.stringify(e,void 0,2);i?a||T.vF.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):T.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return i&&a}),O.T&&T.vF.log("[Tracing] flushing IdleTransaction")}else O.T&&T.vF.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=e=>{this._finished||this._pushActivity(e)}
19,r=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new nQ(t,r,this.spanContext().spanId,e),O.T&&T.vF.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=nY[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(O.T&&T.vF.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=nY[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),O.T&&T.vF.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,O.T&&T.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(O.T&&T.vF.log(`[Tracing] popActivity ${e}`),delete this.activities[e],O.T&&T.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=(0,r1.zf)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=nY[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(O.T&&T.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=nY[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){O.T&&T.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function n1(e){return(e||(0,P.BF)()).getScope().getTransaction()}let n2=!1;function n3(){n2||(n2=!0,eN(n6),eB(n6))}function n6(){let e=n1();if(e){let t="internal_error";O.T&&T.vF.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function n4(e,t,r){let n;return nU(t)?void 0!==e.sampled?e.setAttribute(nP,Number(e.sampled)):("function"==typeof t.tracesSampler?(n=t.tracesSampler(r),e.setAttribute(nP,Number(n))):void 0!==r.parentSampled?n=r.parentSampled:void 0!==t.tracesSampleRate?(n=t.tracesSampleRate,e.setAttribute(nP,Number(n))):(n=1,e.setAttribute(nP,n)),n8(n))?n?(e.sampled=Math.random()<n,e.sampled)?O.T&&T.vF.log(`[Tracing] starting ${e.op} transaction - ${(0,nM.et)(e).description}`):O.T&&T.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`):(O.T&&T.vF.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1):(O.T&&T.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):e.sampled=!1,e}function n8(e){return(0,es.yr)(e)||"number"!=typeof e&&"boolean"!=typeof e?(O.T&&T.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0)&&!(e>1)||(O.T&&T.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function n5(){let e=this.getScope().getSpan();return e?{"sentry-trace":(0,nM.Qh)(e)}:{}}function n9(e,t){let r=this.getClient(),n=r&&r.getOptions()||{},i=n.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(O.T&&T.vF.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter. 20The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new nK(e,this);return(a=n4(a,n,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t})).isRecording()&&a.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",a),a}function n7(e,t,r,n,i,o,a,s=!1){let u=e.getClient(),l=u&&u.getOptions()||{},c=new n0(t,e,r,n,a,i,s);return(c=n4(c,l,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o})).isRecording()&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",c),c}function ie(){let e=(0,P.EU)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=n9),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=n5),n3())}n6.tag="sentry_tracingErrorCallback";var it=r(85460);let ir=!1,ii=ew.OW;function io(){ii.document?ii.document.addEventListener("visibilitychange",()=>{let e=n1();if(ii.document.hidden&&e){let t="cancelled",{op:r,status:n}=(0,nM.et)(e);ir&&T.vF.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${r}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ir&&T.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")}let ia=(e,t,r)=>{let n,i;return o=>{t.value>=0&&(o||r)&&((i=t.value-(n||0))||void 0===n)&&(n=t.value,t.delta=i,e(t))}},is=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,iu=()=>{let e=ii.performance.timing,t=ii.performance.navigation.type,r={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(r[t]=Math.max(e[t]-e.navigationStart,0));return r},il=()=>ii.__WEB_VITALS_POLYFILL__?ii.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||iu()):ii.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ic=()=>{let e=il();return e&&e.activationStart||0},id=(e,t)=>{let r=il(),n="navigate";return r&&(n=ii.document&&ii.document.prerendering||ic()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:is(),navigationType:n}},ih=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},ip=(e,t)=>{let r=n=>{("pagehide"===n.type||"hidden"===ii.document.visibilityState)&&(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};ii.document&&(addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0))},im=(e,t={})=>{let r,n=id("CLS",0),i=0,o=[],a=e=>
20{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],a=o[o.length-1];i&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e]),i>n.value&&(n.value=i,n.entries=o,r&&r())}})},s=ih("layout-shift",a);if(s){r=ia(e,n,t.reportAllChanges);let i=()=>{a(s.takeRecords()),r(!0)};return ip(i),i}},ig=-1,iy=()=>{ii.document&&ii.document.visibilityState&&(ig="hidden"!==ii.document.visibilityState||ii.document.prerendering?1/0:0)},ib=()=>{ip(({timeStamp:e})=>{ig=e},!0)},iv=()=>(ig<0&&(iy(),ib()),{get firstHiddenTime(){return ig}}),i_=e=>{let t,r=iv(),n=id("FID"),i=e=>{e.startTime<r.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),t(!0))},o=e=>{e.forEach(i)},a=ih("first-input",o);t=ia(e,n),a&&ip(()=>{o(a.takeRecords()),a.disconnect()},!0)},iw=0,ix=1/0,iS=0,iE=e=>{e.forEach(e=>{e.interactionId&&(ix=Math.min(ix,e.interactionId),iw=(iS=Math.max(iS,e.interactionId))?(iS-ix)/7+1:0)})},ik=()=>l?iw:performance.interactionCount||0,iA=()=>{"interactionCount"in performance||l||(l=ih("event",iE,{type:"event",buffered:!0,durationThreshold:0}))},iM=()=>ik(),iT=10,iO=[],iC={},iP=e=>{let t=iO[iO.length-1],r=iC[e.interactionId];if(r||iO.length<iT||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};iC[t.id]=t,iO.push(t)}iO.sort((e,t)=>t.latency-e.latency),iO.splice(iT).forEach(e=>{delete iC[e.id]})}},iR=()=>{let e=Math.min(iO.length-1,Math.floor(iM()/50));return iO[e]},ij=(e,t)=>{let r;t=t||{},iA();let n=id("INP"),i=e=>{e.forEach(e=>{e.interactionId&&iP(e),"first-input"===e.entryType&&(iO.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||iP(e))});let t=iR();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=ih("event",i,{durationThreshold:t.durationThreshold||40});r=ia(e,n,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),ip(()=>{i(o.takeRecords()),n.value<0&&iM()>0&&(n.value=0,n.entries=[]),r(!0)}))},iI={},iN=e=>{let t,r=iv(),n=id("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-ic(),0);e<r.firstHiddenTime&&(n.value=e,n.entries=[i],t())}},o=ih("largest-contentful-paint",i);if(o){t=ia(e,n);let r=()=>{iI[n.id]||(i(o.takeRecords()),o.disconnect(),iI[n.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{ii.document&&addEventListener(e,r,{once:!0,capture:!0})}),ip(r,!0),r}},iL=e=>{ii.document&&(ii.document.prerendering?addEventListener("prerenderingchange",()=>iL(e),!0):"complete"!==ii.document.readyState?addEventListener("load",()=>iL(e),!0):setTimeout(e,0))},iD=(e,t)=>{t=t||{};let r=id("TTFB"),n=ia(e,r,t.reportAllChanges);iL(()=>{let e=il();if(e){if(r.value=Math.max(e.responseStart-ic(),0),r.value<0||r.value>performance.now())return;r.entries=[e],n(!0)}})},iB={},iF={};function iU(e,t=!1){return iY("cls",e,iW,c,t)}function iq(e,t=!1){return iY("lcp",e,iK,d,t)}function i$(e){return iY("ttfb",e,iZ,h)}function iz(e){return iY("fid",e,iJ,f)}function iV(e){return iY("inp",e,iX,p)}function iH(e,t){return i0(e,t),iF[e]||(iQ(e),iF[e]=!0),i1(e,t)}function iG(e,t){let r=iB[e];if(r&&r.length)for(let n of r)try{n(t)}catch(t){ir&&T.vF.error(`Error while triggering instrumentation handler. 21Type: ${e} 22Name: ${(0,eT.qQ)(n)} 23Error:`,t)}}function iW(){return im(e=>{iG("cls",{metric:e}),c=e},{reportAllChanges:!0})}function iJ(){return i_(e=>{iG("fid",{metric:e}),f=e})}function iK(){return iN(e=>{iG("lcp",{metric:e}),d=e})}function iZ(){return iD(e=>{iG("ttfb",{metric:e}),h=e})}function iX(){return ij(e=>{iG("inp",{metric:e}),p=e})}function iY(e,t,r,n,i=!1){let o;return i0(e,t),iF[e]||(o=r(),iF[e]=!0),n&&t({metric:n}),i1(e,t,i?o:void 0)}function iQ(e){let t={};"event"===e&&(t.durationThreshold=0),ih(e,t=>{iG(e,{entries:t})},t)}function i0(e,t){iB[e]=iB[e]||[],iB[e].push(t)}function i1(e,t,r){return()=>{r&&r();let n=iB[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function i2(e,t){let r={sent_at:new Date().toISOString()};return t&&(r.dsn=ry(t)),rx(r,e.map(i3))}function i3(e){return[{type:"span"},e]}function i6(e,t,r){let n=n1();n&&n.setMeasurement(e,t,r)}function i4(e){return"number"==typeof e&&isFinite(e)}function i8(e,{startTimestamp:t,...r}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...r})}let i5=0x7fffffff;function i9(e){return e/1e3}function i7(){return ii&&ii.addEventListener&&ii.performance}let oe=0,ot={};function or(){let e=i7();if(e&&r1.k3){e.mark&&ii.performance.mark("sentry-tracing-init");
23let t=ou(),r=oa(),n=os(),i=ol();return()=>{t(),r(),n(),i()}}return()=>void 0}function on(){iH("longtask",({entries:e})=>{for(let t of e){let e=n1();if(!e)return;let r=i9(r1.k3+t.startTime),n=i9(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+n})}})}function oi(){iH("event",({entries:e})=>{for(let t of e){let e=n1();if(!e)return;if("click"===t.name){let r=i9(r1.k3+t.startTime),n=i9(t.duration),i={description:(0,eU.Hd)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+n},o=(0,eU.xE)(t.target);o&&(i.attributes={"ui.component_name":o}),e.startChild(i)}}})}function oo(e,t){if(i7()&&r1.k3){let r=of(e,t);return()=>{r()}}return()=>void 0}function oa(){return iU(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ir&&T.vF.log("[Measurements] Adding CLS"),ot.cls={value:e.value,unit:""},g=t)},!0)}function os(){return iq(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ir&&T.vF.log("[Measurements] Adding LCP"),ot.lcp={value:e.value,unit:"millisecond"},m=t)},!0)}function ou(){return iz(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let r=i9(r1.k3),n=i9(t.startTime);ir&&T.vF.log("[Measurements] Adding FID"),ot.fid={value:e.value,unit:"millisecond"},ot["mark.fid"]={value:r+n,unit:"second"}})}function ol(){return i$(({metric:e})=>{e.entries[e.entries.length-1]&&(ir&&T.vF.log("[Measurements] Adding TTFB"),ot.ttfb={value:e.value,unit:"millisecond"})})}let oc={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function of(e,t){return iV(({metric:r})=>{if(void 0===r.value)return;let n=r.entries.find(e=>e.duration===r.value&&void 0!==oc[e.name]),i=(0,A.KU)();if(!n||!i)return;let o=oc[n.name],a=i.getOptions(),s=i9(r1.k3+n.startTime),u=i9(r.value),l=void 0!==n.interactionId?e[n.interactionId]:void 0;if(void 0===l)return;let{routeName:c,parentContext:f,activeTransaction:d,user:h,replayId:p}=l,m=void 0!==h?h.email||h.id||h.ip_address:void 0,g=void 0!==d?d.getProfileId():void 0,y=new nF({startTimestamp:s,endTimestamp:s+u,op:`ui.interaction.${o}`,name:(0,eU.Hd)(n.target),attributes:{release:a.release,environment:a.environment,transaction:c,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==p?{replay_id:p}:{}},exclusiveTime:r.value,measurements:{inp:{value:r.value,unit:"millisecond"}}}),b=ox(f,a,t);if(b&&Math.random()<b){let e=y?i2([y],i.getDsn()):void 0,t=i&&i.getTransport();t&&e&&t.send(e).then(null,e=>{ir&&T.vF.error("Error while sending interaction:",e)});return}})}function od(e){let t=i7();if(!t||!ii.performance.getEntries||!r1.k3)return;ir&&T.vF.log("[Tracing] Adding & adjusting spans using Performance API");let r=i9(r1.k3),n=t.getEntries(),{op:i,start_timestamp:o}=(0,nM.et)(e);if(n.slice(oe).forEach(t=>{let n=i9(t.startTime),i=i9(t.duration);if("navigation"!==e.op||!o||!(r+n<o))switch(t.entryType){case"navigation":op(e,t,r);break;case"mark":case"paint":case"measure":{oh(e,t,n,i,r);let o=iv(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(ir&&T.vF.log("[Measurements] Adding FP"),ot.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(ir&&T.vF.log("[Measurements] Adding FCP"),ot.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":oy(e,t,t.name,n,i,r)}}),oe=Math.max(n.length-1,0),ob(e),"pageload"===i){ow(ot),["fcp","fp","lcp"].forEach(e=>{if(!ot[e]||!o||r>=o)return;let t=ot[e].value,n=Math.abs((r+i9(t)-o)*1e3),i=n-t;ir&&T.vF.log(`[Measurements] Normalized ${e} from ${t} to ${n} (${i})`),ot[e].value=n});let t=ot["mark.fid"];t&&ot.fid&&(i8(e,{description:"first input delay",endTimestamp:t.value+i9(ot.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete ot["mark.fid"]),"fcp"in ot||delete ot.cls,Object.keys(ot).forEach(e
23=>{i6(e,ot[e].value,ot[e].unit)}),ov(e)}m=void 0,g=void 0,ot={}}function oh(e,t,r,n,i){let o=i+r,a=o+n;return i8(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o}),o}function op(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{om(e,t,n,r)}),om(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),om(e,t,"fetch",r,"cache","domainLookupStart"),om(e,t,"domainLookup",r,"DNS"),og(e,t,r)}function om(e,t,r,n,i,o){let a=o?t[o]:t[`${r}End`],s=t[`${r}Start`];s&&a&&i8(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+i9(s),endTimestamp:n+i9(a)})}function og(e,t,r){t.responseEnd&&(i8(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+i9(t.requestStart),endTimestamp:r+i9(t.responseEnd)}),i8(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+i9(t.responseStart),endTimestamp:r+i9(t.responseEnd)}))}function oy(e,t,r,n,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=tz(r),s={};o_(s,t,"transferSize","http.response_transfer_size"),o_(s,t,"encodedBodySize","http.response_content_length"),o_(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=r.includes(ii.location.origin);let u=o+n,l=u+i;i8(e,{description:r.replace(ii.location.origin,""),endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})}function ob(e){let t=ii.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setTag("effectiveConnectionType",r.effectiveType),r.type&&e.setTag("connectionType",r.type),i4(r.rtt)&&(ot["connection.rtt"]={value:r.rtt,unit:"millisecond"})),i4(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),i4(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function ov(e){m&&(ir&&T.vF.log("[Measurements] Adding LCP Data"),m.element&&e.setTag("lcp.element",(0,eU.Hd)(m.element)),m.id&&e.setTag("lcp.id",m.id),m.url&&e.setTag("lcp.url",m.url.trim().slice(0,200)),e.setTag("lcp.size",m.size)),g&&g.sources&&(ir&&T.vF.log("[Measurements] Adding CLS Data"),g.sources.forEach((t,r)=>e.setTag(`cls.source.${r+1}`,(0,eU.Hd)(t.node))))}function o_(e,t,r,n){let i=t[r];null!=i&&i<i5&&(e[n]=i)}function ow(e){let t=il();if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(ir&&T.vF.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}function ox(e,t,r){let n;return!!nU(t)&&(n8(n=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:ii.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1)?!0===n?r:!1===n?0:n*r:(ir&&T.vF.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1))}var oS=r(77588);function oE(e,t,r,n,i="auto.http.browser"){if(!nU()||!e.fetchData)return;let o=t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(oM(r,e),delete n[t]);return}let a=(0,A.o5)(),s=(0,A.KU)(),{method:u,url:l}=e.fetchData,c=oA(l),f=c?tz(c).host:void 0,d=o?nq({name:`${u} ${l}`,onlyIfParent:!0,attributes:{url:l,type:"fetch","http.method":u,"http.url":c,"server.address":f,[nj]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,n[d.spanContext().spanId]=d),r(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let r=e.args[1];r.headers=ok(t,s,a,r,d)}return d}function ok(e,t,r,n,i){let o=i||r.getSpan(),{traceId:a,spanId:s,sampled:u,dsc:l}={...(0,P.rm)().getPropagationContext(),...r.getPropagationContext()},c=o?(0,nM.Qh)(o):(0,it.TC)(a,s,u),f=(0,oS.De)(l||(o?(0,rG.k)(o):(0,rG.l)(a,t,r))),d=n.headers||("undefined"!=typeof Request&&(0,es.tH)(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":c,baggage:f};if("undefined"!=typeof Headers&&(0,es.tH)(d,Headers)){let e=new Headers(d);return e.append("sentry-trace",c),f&&e.append(oS.hF,f),e}if(Array.isArray(d)){let e=[...d,["sentry-trace",c]];return f&&e.push([oS.hF,f]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),f&&t.push(f),{...d,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}function oA(e){try{return new URL(e).href}catch(e){return}}function oM(e,t){if(t.response){nD(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}let oT=["localhost",/^\/(?!\/)/],oO={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:oT,tracePropagationTargets:oT};function oC(e){let{traceFetch:t,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:oO.traceFetch,traceXHR:oO.traceXHR,...e},s="function"==typeof o?o:e=>!0,u=e=>oL(e,n||i),l={};t&&tP(e=>
23{let t=oE(e,s,u,l);if(t){let r=oF(e.fetchData.url),n=r?tz(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}a&&t&&oR(t)}),r&&tE(e=>{let t=oD(e,s,u,l);a&&t&&oR(t)})}function oP(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}function oR(e){let{url:t}=(0,nM.et)(e).data||{};if(!t||"string"!=typeof t)return;let r=iH("resource",({entries:n})=>{n.forEach(n=>{oP(n)&&n.name.endsWith(t)&&(oN(n).forEach(t=>e.setAttribute(...t)),setTimeout(r))})})}function oj(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}function oI(e=0){return((r1.k3||performance.timeOrigin)+e)/1e3}function oN(e){let{name:t,version:r}=oj(e.nextHopProtocol),n=[];return(n.push(["network.protocol.version",r],["network.protocol.name",t]),r1.k3)?[...n,["http.request.redirect_start",oI(e.redirectStart)],["http.request.fetch_start",oI(e.fetchStart)],["http.request.domain_lookup_start",oI(e.domainLookupStart)],["http.request.domain_lookup_end",oI(e.domainLookupEnd)],["http.request.connect_start",oI(e.connectStart)],["http.request.secure_connection_start",oI(e.secureConnectionStart)],["http.request.connection_end",oI(e.connectEnd)],["http.request.request_start",oI(e.requestStart)],["http.request.response_start",oI(e.responseStart)],["http.request.response_end",oI(e.responseEnd)]]:n}function oL(e,t){return(0,H.Xr)(e,t||oT)}function oD(e,t,r,n){let i=e.xhr,o=i&&i[tS];if(!nU()||!i||i.__sentry_own_request__||!o)return;let a=t(o.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&(nD(t,o.status_code),t.end(),delete n[e]);return}let s=(0,A.o5)(),u=(0,P.rm)(),l=oF(o.url),c=l?tz(l).host:void 0,f=a?nq({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":l,url:o.url,"server.address":c,[nj]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,n[i.__sentry_xhr_span_id__]=f);let d=(0,A.KU)();if(i.setRequestHeader&&r(o.url)&&d){let{traceId:e,spanId:t,sampled:r,dsc:n}={...u.getPropagationContext(),...s.getPropagationContext()};oB(i,f?(0,nM.Qh)(f):(0,it.TC)(e,t,r),(0,oS.De)(n||(f?(0,rG.k)(f):(0,rG.l)(e,d,s))))}return f}function oB(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(oS.hF,r)}catch(e){}}function oF(e){try{return new URL(e,ii.location.origin).href}catch(e){return}}function oU(e,t=!0,r=!0){let n;if(!ii||!ii.location){ir&&T.vF.warn("Could not initialize routing instrumentation due to invalid location");return}let i=ii.location.href;t&&(n=e({name:ii.location.pathname,startTimestamp:r1.k3?r1.k3/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&tF(({to:t,from:r})=>{if(void 0===r&&i&&-1!==i.indexOf(t)){i=void 0;return}r!==t&&(i=void 0,n&&(ir&&T.vF.log(`[Tracing] Finishing current transaction with op: ${n.op}`),n.end()),n=e({name:ii.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}let oq="BrowserTracing",o$={...nZ,markBackgroundTransactions:!0,routingInstrumentation:oU,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...oO},oz=10;class oV{constructor(e){this.name=oq,this._hasSetTracePropagationTargets=!1,ie(),ir&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...o$,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=or(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&oo(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&on(),this.options._experiments.enableInteractions&&oi(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;let r=t().getClient(),n=r&&r.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:a,markBackgroun
23dTransactions:s,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:c,enableHTTPTimings:f,_experiments:d}=this.options,h=n&&n.tracePropagationTargets,p=h||this.options.tracePropagationTargets;ir&&this._hasSetTracePropagationTargets&&h&&T.vF.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(e=>{let r=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(r,e,t),r},a,o),s&&io(),d.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),oC({traceFetch:u,traceXHR:l,tracePropagationTargets:p,shouldCreateSpanForRequest:c,enableHTTPTimings:f})}_createRouteTransaction(e){let t;if(!this._getCurrentHub){ir&&T.vF.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:o,heartbeatInterval:a}=this.options,s="pageload"===e.op;if(s){let r=s?oH("sentry-trace"):"",n=s?oH("baggage"):void 0,{traceId:i,dsc:o,parentSpanId:a,sampled:u}=(0,it.kM)(r,n);t={traceId:i,parentSpanId:a,parentSampled:u,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else t={trimEnd:!0,...e};let u="function"==typeof n?n(t):t,l=void 0===u?{...t,sampled:!1}:u;l.metadata=l.name!==t.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,!1===l.sampled&&ir&&T.vF.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),ir&&T.vF.log(`[Tracing] Starting ${l.op} transaction on scope`);let{location:c}=ii,f=n7(r,l,i,o,!0,{location:c},a,s);return s&&ii.document&&(ii.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(ii.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(ii.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(e=>{this._collectWebVitals(),od(e)}),f}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:r,heartbeatInterval:n}=this.options,i="ui.action.click",o=n1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ir&&T.vF.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){ir&&T.vF.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){ir&&T.vF.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let a=this._getCurrentHub(),{location:s}=ii;e=n7(a,{name:this._latestRoute.name,op:i,trimEnd:!0,data:{[nC]:this._latestRoute.context?oG(this._latestRoute.context):"url"}},t,r,!0,{location:s},n)};["click"].forEach(e=>{ii.document&&addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:e})=>{let t=(0,A.KU)(),r=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,n=void 0!==r?r.getReplayId():void 0,i=n1(),o=(0,A.o5)(),a=void 0!==o?o.getUser():void 0;e.forEach(e=>{if(oW(e)){let t=e.interactionId;if(void 0===t)return;let r=this._interactionIdToRouteNameMapping[t],o=e.duration,s=e.startTime,u=Object.keys(this._interactionIdToRouteNameMapping),l=u.length>0?u.reduce((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t):void 0;if(!("first-input"===e.entryType&&u.map(e=>this._interactionIdToRouteNameMapping[e]).some(e=>e.duration===o&&e.startTime===s))&&t){if(r)r.duration=Math.max(r.duration,o);else if(u.length<oz||void 0===l||o>this._interactionIdToRouteNameMapping[l].duration){let e=this._latestRoute.name,r=this._latestRoute.context;e&&r&&(l&&Object.keys(this._interactionIdToRouteNameMapping).length>=oz&&delete this._interactionIdToRouteNameMapping[l],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:o,parentContext:r,user:a,activeTransaction:i,replayId:n,startTime:s})}}}})};iH("event",e),iH("first-input",e)}}function oH(e){let t=(0,eU.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function oG(e){let t=e.attributes&&e.attributes[nC],r=e.data&&e.data[nC],n=e.metadata&&e.metadata.source;return t||r||n}function oW(e){return"duration"in e}let oJ="BrowserTracing",oK={...nZ,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
23dSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...oO},oZ=(e={})=>{let t=!!ir&&!!(e.tracePropagationTargets||e.tracingOrigins);ie(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let r={...oK,...e},n=or(),i={};r.enableInp&&oo(i,r.interactionsSampleRate),r.enableLongTask&&on(),r._experiments.enableInteractions&&oi();let o={name:void 0,context:void 0};function a(e){let t,i=(0,P.BF)(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:u,heartbeatInterval:l}=r,c="pageload"===e.op;if(c){let r=c?oQ("sentry-trace"):"",n=c?oQ("baggage"):void 0,{traceId:i,dsc:o,parentSpanId:a,sampled:s}=(0,it.kM)(r,n);t={traceId:i,parentSpanId:a,parentSampled:s,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else t={trimEnd:!0,...e};let f=a?a(t):t;f.metadata=f.name!==t.name?{...f.metadata,source:"custom"}:f.metadata,o.name=f.name,o.context=f,!1===f.sampled&&ir&&T.vF.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),ir&&T.vF.log(`[Tracing] Starting ${f.op} transaction on scope`);let{location:d}=ii,h=n7(i,f,s,u,!0,{location:d},l,c);return c&&ii.document&&(ii.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(ii.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(ii.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(e=>{n(),od(e)}),h}return{name:oJ,setupOnce:()=>{},afterAllSetup(e){let n,s=e.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:f,enableHTTPTimings:d,_experiments:h}=r,p=s&&s.tracePropagationTargets,m=p||r.tracePropagationTargets;ir&&t&&p&&T.vF.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=ii.location&&ii.location.href;e.on&&(e.on("startNavigationSpan",e=>{n&&(ir&&T.vF.log(`[Tracing] Finishing current transaction with op: ${(0,nM.et)(n).op}`),n.end()),n=a({op:"navigation",...e})}),e.on("startPageLoadSpan",e=>{n&&(ir&&T.vF.log(`[Tracing] Finishing current transaction with op: ${(0,nM.et)(n).op}`),n.end()),n=a({op:"pageload",...e})})),r.instrumentPageLoad&&e.emit&&ii.location&&oX(e,{name:ii.location.pathname,startTimestamp:r1.k3?r1.k3/1e3:void 0,origin:"auto.pageload.browser",attributes:{[nC]:"url"}}),r.instrumentNavigation&&e.emit&&ii.location&&tF(({to:t,from:r})=>{if(void 0===r&&g&&-1!==g.indexOf(t)){g=void 0;return}r!==t&&(g=void 0,oY(e,{name:ii.location.pathname,origin:"auto.navigation.browser",attributes:{[nC]:"url"}}))}),u&&io(),h.enableInteractions&&o0(r,o),r.enableInp&&o3(i,o),oC({traceFetch:l,traceXHR:c,tracePropagationTargets:m,shouldCreateSpanForRequest:f,enableHTTPTimings:d})},options:r}};function oX(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let r=n$();return"pageload"===(r&&(0,nM.et)(r).op)?r:void 0}function oY(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let r=n$();return"navigation"===(r&&(0,nM.et)(r).op)?r:void 0}function oQ(e){let t=(0,eU.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function o0(e,t){let r,n=()=>{let{idleTimeout:n,finalTimeout:i,heartbeatInterval:o}=e,a="ui.action.click",s=n1();if(s&&s.op&&["navigation","pageload"].includes(s.op)){ir&&T.vF.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(r&&(r.setFinishReason("interactionInterrupted"),r.end(),r=void 0),!t.name){ir&&T.vF.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let{location:u}=ii,l={name:t.name,op:a,trimEnd:!0,data:{[nC]:t.context?o6(t.context):"url"}};r=n7((0,P.BF)(),l,n,i,!0,{location:u},o)};["click"].forEach(e=>{ii.document&&addEventListener(e,n,{once:!1,capture:!0})})}function o1(e){return"duration"in e}let o2=10;function o3(e,t){let r=({entries:r})=>{let n=(0,A.KU)(),i=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,o=void 0!==i?i.getReplayId():void 0,a=n1(),s=(0,A.o5)(),u=void 0!==s?s.getUser():void 0;r.forEach(r=>{if(o1(r)){let n=r.interactionId;if(void 0===n)return;let i=e[n],s=r.duration,l=r.startTime,c=Object.keys(e),f=c.length>0?c.reduce((t,r)=>e[t].duration<e[r].duration?t:r):void 0;if(!("first-input"===r.entryType&&c.map(t=>e[t]).some(e=>e.duration===s&&e.startTime===l))&&n){if(i)i.duration=Math.max(i.duration,s);else if(c.length<o2||void 0===f||s>e[f].duration){let r=t.name,i=t.context;r&&i&&(f&&Object.keys(e).length>=o2&&delete e[f],e[n]={routeName:r,duration:s,parentContext:i,user:u,activeTransaction:a,replayId:o,startTime:l})}}}})};iH("event",r),iH("first-input",r)}function o6(e){let t=e.attributes&&e.attributes[nC],r=e.data&&e.data[nC],n=e.metadata&&e.metadata.source;return t||r||n}let o4={"routing.instrumentation":"next-app-router"};function o8(e,t=!0,r=!0,n,i){let o,a=ex.location.pathname;if(t){let t={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:o4,startTimestamp:r1.k3?r1.k3/1e3:void 0,metadata:{source:"url"}};o=e(t),n(t)}r&&tP(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let r=o5(t.args);if(null===r)return;let n=r.targetPathname,s={...o4,from:a};a=n,o&&o.end();let u={name:n,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:s,metadata:{source:"url"}};e(u),i(u)})}function o5(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1])
23)return null;try{let t=e[0],r=e[1].headers;if("1"!==r.RSC||"1"===r["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}var o9=r(89099),o7=r.n(o9);let ae=!1,at=ex;function ar(){let e,t=at.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){ae&&T.vF.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o&&o.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}let an={"routing.instrumentation":"next-pages-router"},ai=(0,A.KU)();function ao(e,t=!0,r=!0,n,i){let{route:o,params:a,sentryTrace:s,baggage:u}=ar(),{traceparentData:l,dynamicSamplingContext:c,propagationContext:f}=(0,it.E0)(s,u);if((0,A.o5)().setPropagationContext(f),v=o||at.location.pathname,t){let t=o?"route":"url",r={name:v,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:an,startTimestamp:r1.k3?r1.k3/1e3:void 0,...a&&ai&&ai.getOptions().sendDefaultPii&&{data:a},...l,metadata:{source:t,dynamicSamplingContext:l&&!c?{}:c}};b=e(r),n(r)}r&&o7().events.on("routeChangeStart",t=>{let r,n,o=tV(t),a=aa(o);a?(r=a,n="route"):(r=o,n="url");let s={...an,from:v};v=r,b&&b.end();let u={name:r,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:s,metadata:{source:n}},l=e(u);if(i(u),l){let e=l.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.end(),o7().events.off("routeChangeComplete",t)};o7().events.on("routeChangeComplete",t)}})}function aa(e){let t=(at.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let r=as(t);return e.match(r)})}function as(e){let t=e.split("/"),r="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}function au(e,t=!0,r=!0,n,i){ex.document.getElementById("__NEXT_DATA__")?ao(e,t,r,n||(()=>void 0),i||(()=>void 0)):o8(e,t,r,n||(()=>void 0),i||(()=>void 0))}class al extends oV{constructor(e){super({tracingOrigins:[...oO.tracingOrigins,/^(api\/)/],routingInstrumentation:au,...e})}}function ac(e){let t=oZ({tracingOrigins:[...oO.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1}),r={...t.options,instrumentPageLoad:!0,instrumentNavigation:!0,...e};return{...t,options:r,afterAllSetup(e){let n=t=>{oX(e,t)},i=t=>{oY(e,t)};au(()=>void 0,!1,r.instrumentNavigation,n,i),t.afterAllSetup(e),au(()=>void 0,r.instrumentPageLoad,!1,n,i)}}}function af(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],o=e[n+1];if(n+=2,("optionalAccess"===i||"optionalCall"===i)&&null==r)return;"access"===i||"optionalAccess"===i?(t=r,r=o(r)):("call"===i||"optionalCall"===i)&&(r=o((...e)=>r.call(t,...e)),t=void 0)}return r}function ad(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e}let ah=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ap(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=ah.exec(t);return r?r.slice(1):[]}function am(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=ad(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function ag(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function ay(e,t){e=am(e).slice(1),t=am(t).slice(1);let r=ag(e.split("/")),n=ag(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let a=[];for(let e=o;e<r.length;e++)a.push("..");return(a=a.concat(n.slice(o))).join("/")}function ab(e,t){let r=ap(e)[2];return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r}let av="RewriteFrames",a_=U((e={})=>{let t=e.root,r=e.prefix||"app:///",n=e.iteratee||(e=>{if(!e.filename)return e;let n=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(n||i){let i=n?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,o=t?ay(t,i):ab(i);e.filename=`${r}${o}`}return e});function i(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch(t){return e}}function o(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>n(e))}}return{name:av,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=i(t)),t}}});F(av,a_);let aw=ew.OW,ax=U(e=>{let t=aw.__rewriteFramesAssetPrefixPath__||"";return a_({iteratee:e=>{try{let{origin:r}=new URL(e.filename);e.filename=af([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(r,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})}),aS=ew.OW;function aE(e){let t=aS.__sentryRewritesTunnelPath__;if(t&&e.dsn){let r=rb(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],a=`${t}?o=${i}&p=${r.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,ae&&T.vF.info(`Tunneling events to "${a}"`)}else ae&&T.vF.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}function ak(e){let t={environment:nA(!0)||"production",defaultIntegrations:aO(e),...e};aA(t),aE(t),E(t,"nextjs",["nextjs","react"]),nE(t);let r=(0,A.o5)();r.setTag("runtime","browser");let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",r.addEventProcessor(n)}function aA(e){let{integrations:t}=e;t&&(Array.isArray(t)?e.integrations=aT(t):e.integrations=e=>aT(t(e)))}function aM(e){return!!e.afterAllSetup&&!!e.options}function aT(e){let t=e.find(e=>"BrowserTracing"===e.name);if(!t)return e;if(aM(t)){let{options:r}=t;e[e.indexOf(t)]=ac(r)}if(!(t instanceof al)){let r=t.options;delete r.routingInstrumentation,delete r.tracingOrigins,e[e.indexOf(t)]=new al(r)}return e}function aO(e){return[...nw(e),ax()]}({...rf,BrowserTracing:al});var aC=r(99742),aP=window;aP.__sentryRewritesTunnelPath__=void 0,aP.SENTRY_RELEASE={id:"38cf1c0c79f51441c0bdcf60e5aeff15757ef644"},aP.__sentryBasePath=void 0,aP.__rewriteFramesAssetPrefixPath__="",ak({dsn:aC.env.SENTRY_DSN||"https://[email protected]/6544427",tracesSampleRate:0,environment:"production",enabled:!0})},87247:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=l}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+h]=255&a,h+=p,a/=256,l-=8);e[r+h-p]|=128*m}},87548:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(72711);t.buildPixelDensitySrcSet=(e,{pixelDensities:t,...r})=>t.map(t=>`${n.buildURL(e,{...r,dpr:t})} ${t}x`).join(", ")},87962:e=>{"use strict";e.exports=Math.round},88181:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isRepositoryEndpoint=e=>{try{return new URL(e),!0}catch{return!1}}},88461:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},88784:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.asDate=e=>e?new Date(24===e.length?e.replace(/(\+|-)(\d{2})(\d{2})$/,".000$1$2:$3"):e):null},88992:(e,t,r)=>{"use strict";r.d(t,{mN:()=>eS});var n=r(14232),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var u=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),l=e=>u(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f=(e,t)=>e.has(c(t)),d=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t,r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);
23else if(!(!(h&&(e instanceof Blob||n))&&(r||u(e))))return e;else if(t=r?[]:{},r||d(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>/^\w*$/.test(e),g=e=>void 0===e,y=e=>Array.isArray(e)?e.filter(Boolean):[],b=e=>y(e.replace(/["|']|\]/g,"").split(/\.|\[/)),v=(e,t,r)=>{if(!t||!u(e))return r;let n=(m(t)?[t]:b(t)).reduce((e,t)=>a(e)?e:e[t],e);return g(n)||n===e?g(e[t])?r:e[t]:n},_=e=>"boolean"==typeof e,w=(e,t,r)=>{let n=-1,i=m(t)?[t]:b(t),o=i.length,a=o-1;for(;++n<o;){let t=i[n],o=r;if(n!==a){let r=e[t];o=u(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};let x={BLUR:"blur",FOCUS_OUT:"focusout"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},E={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};n.createContext(null).displayName="HookFormContext";var k=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>{let i=o;return t._proxyFormState[i]!==S.all&&(t._proxyFormState[i]=!n||S.all),r&&(r[i]=!0),e[i]}});return i};let A="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var M=e=>"string"==typeof e,T=(e,t,r,n,i)=>M(e)?(n&&t.watch.add(e),v(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),v(r,e))):(n&&(t.watchAll=!0),r),O=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},C=e=>Array.isArray(e)?e:[e],P=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},R=e=>a(e)||!s(e);function j(e,t,r=new WeakSet){if(R(e)||R(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;for(let a of(r.add(e),r.add(t),n)){let n=e[a];if(!i.includes(a))return!1;if("ref"!==a){let e=t[a];if(o(n)&&o(e)||u(n)&&u(e)||Array.isArray(n)&&Array.isArray(e)?!j(n,e,r):n!==e)return!1}}return!0}var I=e=>u(e)&&!Object.keys(e).length,N=e=>"file"===e.type,L=e=>"function"==typeof e,D=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},B=e=>"select-multiple"===e.type,F=e=>"radio"===e.type,U=e=>F(e)||i(e),q=e=>D(e)&&e.isConnected;function $(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=g(e)?n++:e[t[n++]];return e}function z(e){for(let t in e)if(e.hasOwnProperty(t)&&!g(e[t]))return!1;return!0}function V(e,t){let r=Array.isArray(t)?t:m(t)?[t]:b(t),n=1===r.length?e:$(e,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(u(n)&&I(n)||Array.isArray(n)&&z(n))&&V(e,r.slice(0,-1)),e}var H=e=>{for(let t in e)if(L(e[t]))return!0;return!1};function G(e,t={}){let r=Array.isArray(e);if(u(e)||r)for(let r in e)Array.isArray(e[r])||u(e[r])&&!H(e[r])?(t[r]=Array.isArray(e[r])?[]:{},G(e[r],t[r])):a(e[r])||(t[r]=!0);return t}function W(e,t,r){let n=Array.isArray(e);if(u(e)||n)for(let n in e)Array.isArray(e[n])||u(e[n])&&!H(e[n])?g(t)||R(r[n])?r[n]=Array.isArray(e[n])?G(e[n],[]):{...G(e[n])}:W(e[n],a(t)?{}:t[n],r[n]):r[n]=!j(e[n],t[n]);return r}var J=(e,t)=>W(e,t,G(t));let K={value:!1,isValid:!1},Z={value:!0,isValid:!0};var X=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?Z:{value:e[0].value,isValid:!0}:Z:K}return K},Y=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>g(e)?e:t?""===e?NaN:e?+e:e:r&&M(e)?new Date(e):n?n(e):e;let Q={isValid:!1,value:null};var ee=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Q):Q;function et(e){let t=e.ref;return N(t)?t.files:F(t)?ee(e.refs).value:B(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?X(e.refs).value:Y(g(t.value)?e.ref.value:t.value,e)}var er=(e,t,r,n)=>{let i={};for(let r of e){let e=v(t,r);e&&w(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},en=e=>e instanceof RegExp,ei=e=>g(e)?e:en(e)?e.source:u(e)?en(e.value)?e.value.source:e.value:e,eo=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched});let ea="AsyncFunction";var es=e=>!!e&&!!e.validate&&!!(L(e.validate)&&e.validate.constructor.name===ea||u(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ea)),eu=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),el=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ec=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=v(e,i);if(r){let{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(ec(o,t))break}else if(u(o)&&ec(o,t))break}}};function ef(e,t,r){let n=v(e,r);if(n||m(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=v(t,n),a=v(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};i.pop()}return{name:r}}var ed=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return I(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||S.all))},eh=(e,t,r)=>!e||!t||e===t||C(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),ep=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),em=(e,t)=>
vendor: 4,170 bytes, line 23
23!y(v(e,t)).length&&V(e,t),eg=(e,t,r)=>{let n=C(v(e,r));return w(n,"root",t[r]),w(e,r,n),e},ey=e=>M(e);function eb(e,t,r="validate"){if(ey(e)||Array.isArray(e)&&e.every(ey)||_(e)&&!e)return{type:r,message:ey(e)?e:"",ref:t}}var ev=e=>u(e)&&!en(e)?e:{value:e,message:""},e_=async(e,t,r,n,o,s)=>{let{ref:l,refs:c,required:f,maxLength:d,minLength:h,min:p,max:m,pattern:y,validate:b,name:w,valueAsNumber:x,mount:S}=e._f,k=v(r,w);if(!S||t.has(w))return{};let A=c?c[0]:l,T=e=>{o&&A.reportValidity&&(A.setCustomValidity(_(e)?"":e||""),A.reportValidity())},C={},P=F(l),R=i(l),j=P||R,B=(x||N(l))&&g(l.value)&&g(k)||D(l)&&""===l.value||""===k||Array.isArray(k)&&!k.length,U=O.bind(null,w,n,C),q=(e,t,r,n=E.maxLength,i=E.minLength)=>{let o=e?t:r;C[w]={type:e?n:i,message:o,ref:l,...U(e?n:i,o)}};if(s?!Array.isArray(k)||!k.length:f&&(!j&&(B||a(k))||_(k)&&!k||R&&!X(c).isValid||P&&!ee(c).isValid)){let{value:e,message:t}=ey(f)?{value:!!f,message:f}:ev(f);if(e&&(C[w]={type:E.required,message:t,ref:A,...U(E.required,t)},!n))return T(t),C}if(!B&&(!a(p)||!a(m))){let e,t,r=ev(m),i=ev(p);if(a(k)||isNaN(k)){let n=l.valueAsDate||new Date(k),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==l.type,s="week"==l.type;M(r.value)&&k&&(e=a?o(k)>o(r.value):s?k>r.value:n>new Date(r.value)),M(i.value)&&k&&(t=a?o(k)<o(i.value):s?k<i.value:n<new Date(i.value))}else{let n=l.valueAsNumber||(k?+k:k);a(r.value)||(e=n>r.value),a(i.value)||(t=n<i.value)}if((e||t)&&(q(!!e,r.message,i.message,E.max,E.min),!n))return T(C[w].message),C}if((d||h)&&!B&&(M(k)||s&&Array.isArray(k))){let e=ev(d),t=ev(h),r=!a(e.value)&&k.length>+e.value,i=!a(t.value)&&k.length<+t.value;if((r||i)&&(q(r,e.message,t.message),!n))return T(C[w].message),C}if(y&&!B&&M(k)){let{value:e,message:t}=ev(y);if(en(e)&&!k.match(e)&&(C[w]={type:E.pattern,message:t,ref:l,...U(E.pattern,t)},!n))return T(t),C}if(b){if(L(b)){let e=eb(await b(k,r),A);if(e&&(C[w]={...e,...U(E.validate,e.message)},!n))return T(e.message),C}else if(u(b)){let e={};for(let t in b){if(!I(e)&&!n)break;let i=eb(await b[t](k,r),A,t);i&&(e={...i,...U(t,i.message)},T(i.message),n&&(C[w]=e))}if(!I(e)&&(C[w]={ref:A,...e},!n))return C}}return T(!0),C};let ew={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function ex(e={}){let t,r={...ew,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:L(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},c=(u(r.defaultValues)||u(r.values))&&p(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:p(c),m={action:!1,mount:!1,watch:!1},b={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={...k},O={array:P(),state:P()},R=r.criteriaMode===S.all,F=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},$=async e=>{if(!r.disabled&&(k.isValid||A.isValid||e)){let e=r.resolver?I((await X()).errors):await ee(s,!0);e!==n.isValid&&O.state.next({isValid:e})}},z=(e,t)=>{!r.disabled&&(k.isValidating||k.validatingFields||A.isValidating||A.validatingFields)&&((e||Array.from(b.mount)).forEach(e=>{e&&(t?w(n.validatingFields,e,t):V(n.validatingFields,e))}),O.state.next({validatingFields:n.validatingFields,isValidating:!I(n.validatingFields)}))},H=(e,t=[],i,o,a=!0,u=!0)=>{if(o&&i&&!r.disabled){if(m.action=!0,u&&Array.isArray(v(s,e))){let t=i(v(s,e),o.argA,o.argB);a&&w(s,e,t)}if(u&&Array.isArray(v(n.errors,e))){let t=i(v(n.errors,e),o.argA,o.argB);a&&w(n.errors,e,t),em(n.errors,e)}if((k.touchedFields||A.touchedFields)&&u&&Array.isArray(v(n.touchedFields,e))){let t=i(v(n.touchedFields,e),o.argA,o.argB);a&&w(n.touchedFields,e,t)}(k.dirtyFields||A.dirtyFields)&&(n.dirtyFields=J(c,d)),O.state.next({name:e,isDirty:ea(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else w(d,e,t)},G=(e,t)=>{w(n.errors,e,t),O.state.next({errors:n.errors})},W=(e,t,r,n)=>{let i=v(s,e);if(i){let o=v(d,e,g(r)?v(c,e):r);g(o)||n&&n.defaultChecked||t?w(d,e,t?o:et(i._f)):eb(e,o),m.mount&&$()}},K=(e,t,i,o,a)=>{let s=!1,u=!1,l={name:e};
23if(!r.disabled){if(!i||o){(k.isDirty||A.isDirty)&&(u=n.isDirty,n.isDirty=l.isDirty=ea(),s=u!==l.isDirty);let r=j(v(c,e),t);u=!!v(n.dirtyFields,e),r?V(n.dirtyFields,e):w(n.dirtyFields,e,!0),l.dirtyFields=n.dirtyFields,s=s||(k.dirtyFields||A.dirtyFields)&&!r!==u}if(i){let t=v(n.touchedFields,e);t||(w(n.touchedFields,e,i),l.touchedFields=n.touchedFields,s=s||(k.touchedFields||A.touchedFields)&&t!==i)}s&&a&&O.state.next(l)}return s?l:{}},Z=(e,i,o,a)=>{let s=v(n.errors,e),u=(k.isValid||A.isValid)&&_(i)&&n.isValid!==i;if(r.delayError&&o?(t=F(()=>G(e,o)))(r.delayError):(clearTimeout(E),t=null,o?w(n.errors,e,o):V(n.errors,e)),(o?!j(s,o):s)||!I(a)||u){let t={...a,...u&&_(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},O.state.next(t)}},X=async e=>{z(e,!0);let t=await r.resolver(d,r.context,er(e||b.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return z(e),t},Q=async e=>{let{errors:t}=await X(e);if(e)for(let r of e){let e=v(t,r);e?w(n.errors,r,e):V(n.errors,r)}else n.errors=t;return t},ee=async(e,t,i={valid:!0})=>{for(let o in e){let a=e[o];if(a){let{_f:e,...s}=a;if(e){let s=b.array.has(e.name),u=a._f&&es(a._f);u&&k.validatingFields&&z([o],!0);let l=await e_(a,b.disabled,d,R,r.shouldUseNativeValidation&&!t,s);if(u&&k.validatingFields&&z([o]),l[e.name]&&(i.valid=!1,t))break;t||(v(l,e.name)?s?eg(n.errors,l,e.name):w(n.errors,e.name,l[e.name]):V(n.errors,e.name))}I(s)||await ee(s,t,i)}}return i.valid},en=()=>{for(let e of b.unMount){let t=v(s,e);t&&(t._f.refs?t._f.refs.every(e=>!q(e)):!q(t._f.ref))&&eI(e)}b.unMount=new Set},ea=(e,t)=>!r.disabled&&(e&&t&&w(d,e,t),!j(eM(),c)),ey=(e,t,r)=>T(e,b,{...m.mount?d:g(t)?c:M(e)?{[e]:t}:t},r,t),eb=(e,t,r={})=>{let n=v(s,e),o=t;if(n){let r=n._f;r&&(r.disabled||w(d,e,Y(t,r)),o=D(r.ref)&&a(t)?"":t,B(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):r.refs.forEach(e=>e.checked=e.value===o):N(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||O.state.next({name:e,values:p(d)})))}(r.shouldDirty||r.shouldTouch)&&K(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eA(e)},ev=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let i=t[n],a=e+"."+n,l=v(s,a);(b.array.has(e)||u(i)||l&&!l._f)&&!o(i)?ev(a,i,r):eb(a,i,r)}},eS=(e,t,r={})=>{let i=v(s,e),o=b.array.has(e),u=p(t);w(d,e,u),o?(O.array.next({name:e,values:p(d)}),(k.isDirty||k.dirtyFields||A.isDirty||A.dirtyFields)&&r.shouldDirty&&O.state.next({name:e,dirtyFields:J(c,d),isDirty:ea(e,u)})):!i||i._f||a(u)?eb(e,u,r):ev(e,u,r),el(e,b)&&O.state.next({...n}),O.state.next({name:m.mount?e:void 0,values:p(d)})},eE=async e=>{m.mount=!0;let i=e.target,a=i.name,u=!0,c=v(s,a),f=e=>{u=Number.isNaN(e)||o(e)&&isNaN(e.getTime())||j(e,v(d,a,e))},h=eo(r.mode),g=eo(r.reValidateMode);if(c){let o,m,y=i.type?et(c._f):l(e),_=e.type===x.BLUR||e.type===x.FOCUS_OUT,S=!eu(c._f)&&!r.resolver&&!v(n.errors,a)&&!c._f.deps||ep(_,v(n.touchedFields,a),n.isSubmitted,g,h),E=el(a,b,_);w(d,a,y),_?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);let M=K(a,y,_),T=!I(M)||E;if(_||O.state.next({name:a,type:e.type,values:p(d)}),S)return(k.isValid||A.isValid)&&("onBlur"===r.mode?_&&$():_||$()),T&&O.state.next({name:a,...E?{}:M});if(!_&&E&&O.state.next({...n}),r.resolver){let{errors:e}=await X([a]);if(f(y),u){let t=ef(n.errors,s,a),r=ef(e,s,t.name||a);o=r.error,a=r.name,m=I(e)}}else z([a],!0),o=(await e_(c,b.disabled,d,R,r.shouldUseNativeValidation))[a],z([a]),f(y),u&&(o?m=!1:(k.isValid||A.isValid)&&(m=await ee(s,!0)));u&&(c._f.deps&&eA(c._f.deps),Z(a,m,o,M))}},ek=(e,t)=>{if(v(n.errors,t)&&e.focus)return e.focus(),1},eA=async(e,t={})=>{let i,o,a=C(e);if(r.resolver){let t=await Q(g(e)?e:a);i=I(t),o=e?!a.some(e=>v(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=v(s,e);return await ee(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&$():o=i=await ee(s);return O.state.next({...!M(e)||(k.isValid||A.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!o&&ec(s,ek,e?a:b.mount),o},eM=e=>{let t={...m.mount?d:c};return g(e)?t:M(e)?v(t,e):e.map(e=>v(t,e))},eT=(e,t)=>
23({invalid:!!v((t||n).errors,e),isDirty:!!v((t||n).dirtyFields,e),error:v((t||n).errors,e),isValidating:!!v(n.validatingFields,e),isTouched:!!v((t||n).touchedFields,e)}),eO=e=>{e&&C(e).forEach(e=>V(n.errors,e)),O.state.next({errors:e?n.errors:{}})},eC=(e,t,r)=>{let i=(v(s,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:u,...l}=v(n.errors,e)||{};w(n.errors,e,{...l,...t,ref:i}),O.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eP=(e,t)=>L(e)?O.state.subscribe({next:r=>e(ey(void 0,t),r)}):ey(e,t,!0),eR=e=>O.state.subscribe({next:t=>{eh(e.name,t.name,e.exact)&&ed(t,e.formState||k,ez,e.reRenderRoot)&&e.callback({values:{...d},...n,...t})}}).unsubscribe,ej=e=>(m.mount=!0,A={...A,...e.formState},eR({...e,formState:A})),eI=(e,t={})=>{for(let i of e?C(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(V(s,i),V(d,i)),t.keepError||V(n.errors,i),t.keepDirty||V(n.dirtyFields,i),t.keepTouched||V(n.touchedFields,i),t.keepIsValidating||V(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||V(c,i);O.state.next({values:p(d)}),O.state.next({...n,...!t.keepDirty?{}:{isDirty:ea()}}),t.keepIsValid||$()},eN=({disabled:e,name:t})=>{(_(e)&&m.mount||e||b.disabled.has(t))&&(e?b.disabled.add(t):b.disabled.delete(t))},eL=(e,t={})=>{let n=v(s,e),i=_(t.disabled)||_(r.disabled);return w(s,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),n?eN({disabled:_(t.disabled)?t.disabled:r.disabled,name:e}):W(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){eL(e,t),n=v(s,e);let r=g(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=U(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(w(s,e,{_f:{...n._f,...o?{refs:[...a.filter(q),r,...Array.isArray(v(c,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),W(e,!1,void 0,r))}else(n=v(s,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(f(b.array,e)&&m.action)&&b.unMount.add(e)}}},eD=()=>r.shouldFocusError&&ec(s,ek,b.mount),eB=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=p(d);if(O.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await X();n.errors=e,a=p(t)}else await ee(s);if(b.disabled.size)for(let e of b.disabled)V(a,e);if(V(n.errors,"root"),I(n.errors)){O.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...n.errors},i),eD(),setTimeout(eD);if(O.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:I(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},eF=(e,t={})=>{v(s,e)&&(g(t.defaultValue)?eS(e,p(v(c,e))):(eS(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||V(n.touchedFields,e),t.keepDirty||(V(n.dirtyFields,e),n.isDirty=t.defaultValue?ea(e,p(v(c,e))):ea()),!t.keepError&&(V(n.errors,e),k.isValid&&$()),O.state.next({...n}))},eU=(e,t={})=>{let i=e?p(e):c,o=p(i),a=I(e),u=a?c:o;if(t.keepDefaultValues||(c=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...b.mount,...Object.keys(J(c,d))])))v(n.dirtyFields,e)?w(u,e,v(d,e)):eS(e,v(u,e));else{if(h&&g(e))for(let e of b.mount){let t=v(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(D(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of b.mount)eS(e,v(u,e));else s={}}d=r.shouldUnregister?t.keepDefaultValues?p(c):{}:p(u),O.array.next({values:{...u}}),O.state.next({values:{...u}})}b={mount:t.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},m.mount=!k.isValid||!!t.keepIsValid||!!t.keepDirtyValues,m.watch=!!r.shouldUnregister,O.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!a&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!j(e,c))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&d?J(c,d):n.dirtyFields:t.keepDefaultValues&&e?J(c,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eq=(e,t)=>
23eU(L(e)?e(d):e,t),e$=(e,t={})=>{let r=v(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&L(e.select)&&e.select())}},ez=e=>{n={...n,...e}},eV={control:{register:eL,unregister:eI,getFieldState:eT,handleSubmit:eB,setError:eC,_subscribe:eR,_runSchema:X,_focusError:eD,_getWatch:ey,_getDirty:ea,_setValid:$,_setFieldArray:H,_setDisabledField:eN,_setErrors:e=>{n.errors=e,O.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>y(v(m.mount?d:c,e,r.shouldUnregister?v(c,e,[]):[])),_reset:eU,_resetDefaultValues:()=>L(r.defaultValues)&&r.defaultValues().then(e=>{eq(e,r.resetOptions),O.state.next({isLoading:!1})}),_removeUnmounted:en,_disableForm:e=>{_(e)&&(O.state.next({disabled:e}),ec(s,(t,r)=>{let n=v(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:O,_proxyFormState:k,get _fields(){return s},get _formValues(){return d},get _state(){return m},set _state(value){m=value},get _defaultValues(){return c},get _names(){return b},set _names(value){b=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:ej,trigger:eA,register:eL,handleSubmit:eB,watch:eP,setValue:eS,getValues:eM,reset:eq,resetField:eF,clearErrors:eO,unregister:eI,setError:eC,setFocus:e$,getFieldState:eT};return{...eV,formControl:eV}}function eS(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[i,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:L(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:L(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!L(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:r,...n}=ex(e);t.current={...n,formState:i}}let a=t.current.control;return a._options=e,A(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),n.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),n.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),n.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),n.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),n.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==i.isDirty&&a._subjects.state.next({isDirty:e})}},[a,i.isDirty]),n.useEffect(()=>{e.values&&!j(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,o(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),n.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=k(i,a),t.current}},89099:(e,t,r)=>{e.exports=r(16296)},89203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14232);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90104:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(24679);class i extends n.ForbiddenError{}t.RefNotFoundError=i},90120:(e,t)=>{"use strict";let r;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=5e3,i=0;t.throttledLog=(e,t={})=>{let{level:o="log"}=t;if(e===r&&Date.now()-i<n){i=Date.now();return}i=Date.now(),r=e,console[o](e)}},90295:(e,t,r)=>{"use strict";
23Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(72687)._(r(14232)),i=r(86581);function o(e){return e&&e.default?e.default:e}let a=[],s=[],u=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}function c(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new f(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!u){let e=r.webpack&&1?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}function d(e,t){c();let i=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>i.loading||i.error?n.default.createElement(r.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:a.retry}):i.loaded?n.default.createElement(o(i.loaded),e):null,[e,i])}return d.preload=()=>l(),d.displayName="LoadableComponent",n.default.forwardRef(d)}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return c(l,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(u=!0,t());h(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},90528:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(78799),i=r(11728);function o(e,t){let r=a(e,t);return r?1===r.length?r[0]:r.sort((e,t)=>e.length>t.length?-1:+(e.length<t.length))[0]:null}function a(e,t){let r=[];for(let n of e){let e=s(n,t);e&&r.push(e)}return r}function s(e,t){if(e){let r=u(t,e);if(r)return r}return null}function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=(0,i.Uj)(t)||(0,i.wi)(t)?l:c;for(let i of e){var a;if(o(i,t))return[...r,f(i)];let e=null!=(a=i.items)?a:[];if(e.length>0){let o=u(e,t,[...r,f(i)]);if(o)return o.filter(e=>e.path!=="".concat(n.O1).concat(n.O1)&&!1===e.path.endsWith(".com#"))}}return null}let l=(e,t)=>e.title===t,c=(e,t)=>e.url.split("/").pop()===t;function f(e){let t=e.url.split("/").pop(),r="".concat(n.O1,"/").concat(t);return{title:e.title,path:r}}},90640:(e,t,r)=>{"use strict";var n=r(27496),i=r(93567),o=r(56992),a=r(8630),s=r(52801);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},90832:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},91373:(e,t,r)=>{var n="Expected a function",i="__lodash_placeholder__",o=1,a=2,s=4,u=8,l=16,c=32,f=64,d=128,h=512,p=1/0,m=0x1fffffffffffff,g=17976931348623157e292,y=0/0,b=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],v="[object Function]",_="[object GeneratorFunction]",w="[object Symbol]",x=/[\\^$.*+?()[\]{}|]/g,S=/^\s+|\s+$/g,E=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,k=/\{\n\/\* \[wrapped with (.+)\] \*/,A=/,? & /,M=/^[-+]0x[0-9a-f]+$/i,T=/^0b[01]+$/i,O=/^\[object .+?Constructor\]$/,C=/^0o[0-7]+$/i,P=/^(?:0|[1-9]\d*)$/,R=parseInt,j="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,N=j||I||Function("return this")();function L(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function D(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););return e}function B(e,t){return!!(e?e.length:0)&&U(e,t,0)>-1}function F(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}function U(e,t,r){if(t!=t)return F(e,q,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function q(e){return e!=e}function $(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}function z(e,t){return null==e?void 0:e[t]}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];(s===t||s===i)&&(e[r]=i,a[o++]=r)}return a}var G=Function.prototype,W=Object.prototype,J=N["__core-js_shared__"],K=function(){var e=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");
23return e?"Symbol(src)_1."+e:""}(),Z=G.toString,X=W.hasOwnProperty,Y=W.toString,Q=RegExp("^"+Z.call(X).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=Object.create,et=Math.max,er=Math.min,en=function(){var e=ey(Object,"defineProperty"),t=ey.name;return t&&t.length>2?e:void 0}();function ei(e){return eT(e)?ee(e):{}}function eo(e){return!(!eT(e)||ew(e))&&(eM(e)||V(e)?Q:O).test(eE(e))}function ea(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=et(o-a,0),c=Array(u+l),f=!n;++s<u;)c[s]=t[s];for(;++i<a;)(f||i<o)&&(c[r[i]]=e[i]);for(;l--;)c[s++]=e[i++];return c}function es(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=et(o-s,0),f=Array(c+l),d=!n;++i<c;)f[i]=e[i];for(var h=i;++u<l;)f[h+u]=t[u];for(;++a<s;)(d||i<o)&&(f[h+r[a]]=e[i++]);return f}function eu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function el(e,t,r){var n=t&o,i=ec(e);function a(){return(this&&this!==N&&this instanceof a?i:e).apply(n?r:this,arguments)}return a}function ec(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=ei(e.prototype),n=e.apply(r,t);return eT(n)?n:r}}function ef(e,t,r){var n=ec(e);function i(){for(var o=arguments.length,a=Array(o),s=o,u=eg(i);s--;)a[s]=arguments[s];var l=o<3&&a[0]!==u&&a[o-1]!==u?[]:H(a,u);return(o-=l.length)<r?ep(e,t,ed,i.placeholder,void 0,a,l,void 0,void 0,r-o):L(this&&this!==N&&this instanceof i?n:e,this,a)}return i}function ed(e,t,r,n,i,s,c,f,p,m){var g=t&d,y=t&o,b=t&a,v=t&(u|l),_=t&h,w=b?void 0:ec(e);function x(){for(var o=arguments.length,a=Array(o),u=o;u--;)a[u]=arguments[u];if(v)var l=eg(x),d=$(a,l);if(n&&(a=ea(a,n,i,v)),s&&(a=es(a,s,c,v)),o-=d,v&&o<m){var h=H(a,l);return ep(e,t,ed,x.placeholder,r,a,h,f,p,m-o)}var S=y?r:this,E=b?S[e]:e;return o=a.length,f?a=ex(a,f):_&&o>1&&a.reverse(),g&&p<o&&(a.length=p),this&&this!==N&&this instanceof x&&(E=w||ec(E)),E.apply(S,a)}return x}function eh(e,t,r,n){var i=t&o,a=ec(e);function s(){for(var t=-1,o=arguments.length,u=-1,l=n.length,c=Array(l+o),f=this&&this!==N&&this instanceof s?a:e;++u<l;)c[u]=n[u];for(;o--;)c[u++]=arguments[++t];return L(f,i?r:this,c)}return s}function ep(e,t,r,n,i,l,d,h,p,m){var g=t&u,y=g?d:void 0,b=g?void 0:d,v=g?l:void 0,_=g?void 0:l;t|=g?c:f,(t&=~(g?f:c))&s||(t&=~(o|a));var w=r(e,t,i,v,y,_,b,h,p,m);return w.placeholder=n,eS(w,e,t)}function em(e,t,r,i,s,d,h,p){var m=t&a;if(!m&&"function"!=typeof e)throw TypeError(n);var g=i?i.length:0;if(g||(t&=~(c|f),i=s=void 0),h=void 0===h?h:et(eR(h),0),p=void 0===p?p:eR(p),g-=s?s.length:0,t&f){var y=i,b=s;i=s=void 0}var v=[e,t,r,i,s,y,b,d,h,p];if(e=v[0],t=v[1],r=v[2],i=v[3],s=v[4],(p=v[9]=null==v[9]?m?0:e.length:et(v[9]-g,0))||!(t&(u|l))||(t&=~(u|l)),t&&t!=o)_=t==u||t==l?ef(e,t,p):t!=c&&t!=(o|c)||s.length?ed.apply(void 0,v):eh(e,t,r,i);else var _=el(e,t,r);return eS(_,e,t)}function eg(e){return e.placeholder}function ey(e,t){var r=z(e,t);return eo(r)?r:void 0}function eb(e){var t=e.match(k);return t?t[1].split(A):[]}function ev(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(E,"{\n/* [wrapped with "+t+"] */\n")}function e_(e,t){return!!(t=null==t?m:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function ew(e){return!!K&&K in e}function ex(e,t){for(var r=e.length,n=er(t.length,r),i=eu(e);n--;){var o=t[n];e[n]=e_(o,r)?i[o]:void 0}return e}var eS=en?function(e,t,r){var n=t+"";return en(e,"toString",{configurable:!0,enumerable:!1,value:eI(ev(n,ek(eb(n),r)))})}:eN;function eE(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ek(e,t){return D(b,function(r){var n="_."+r[0];t&r[1]&&!B(e,n)&&e.push(n)}),e.sort()}var eA=function(e,t){return t=et(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=et(r.length-t,0),o=Array(i);++n<i;)o[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=o,L(e,this,a)}}(function(e,t){var r=H(t,eg(eA));return em(e,c,void 0,t,r)});function eM(e){var t=eT(e)?Y.call(e):"";return t==v||t==_}function eT(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eO(e){return!!e&&"object"==typeof e}function eC(e){return"symbol"==typeof e||eO(e)&&Y.call(e)==w}function eP(e){return e?(e=ej(e))===p||e===-p?(e<0?-1:1)*g:e==e?e:0:0===e?e:0}function eR(e){var t=eP(e),r=t%1;return t==t?r?t-r:t:0}function ej(e){if("number"==typeof e)return e;if(eC(e))return y;if(eT(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eT(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S,"");var r=T.test(e);return r||C.test(e)?R(e.slice(2),r?2:8):M.test(e)?y:+e}function eI(e){return function(){return e}}function eN(e){return e}eA.placeholder={},e.exports=eA},91654:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},91963:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.exitPreview=function(e){e.res.clearPreviewData(),e.res.setHeader("C
23ache-Control","no-store"),e.res.json({success:!0})}},92125:(e,t,r)=>{"use strict";var n=r(52801);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},92260:(e,t,r)=>{"use strict";r.d(t,{BE:()=>s,L_:()=>a,pL:()=>u,xN:()=>l}),r(37876);var n=r(14232);let i=["home","curate","customize-your-box","view-and-edit-box","review-and-confirm"],o=(0,n.createContext)({subscriptionBoxStep:i[0],nextSubscriptionBoxStep:()=>{},previousSubscriptionBoxStep:()=>{},specificSubscriptionBoxStep:()=>{},customizableSelectionType:"CUSTOMIZED_BOX",setCustomizableSelectionType:()=>{},productPickerOverlayState:{open:!1,gridIndex:0},setProductPickerOverlayState:()=>{},homeScreenBoxState:""}),a=()=>{let{subscriptionBoxStep:e}=(0,n.useContext)(o);return e},s=()=>{let{homeScreenBoxState:e}=(0,n.useContext)(o);return e},u=()=>{let{nextSubscriptionBoxStep:e}=(0,n.useContext)(o);return e},l=()=>{let{previousSubscriptionBoxStep:e}=(0,n.useContext)(o);return e}},92501:(e,t,r)=>{"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{BY:()=>a,OW:()=>i,VZ:()=>o});let i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){let n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},92918:e=>{"use strict";e.exports=JSON.parse('[{"pricePerBox":25,"compareAtPricePerBox":25,"pricePerMonth":25,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407984265","productId":"gid://shopify/Product/6881519403145","variantId":"gid://shopify/ProductVariant/40293251022985","name":"Rebillable Monthly Membership","sellingPlanTypes":["all","featured1"],"priceHeader":"$25.00","savingsDisplayText":"Save $10.00","frequencyText":"month"},{"pricePerBox":19,"compareAtPricePerBox":null,"pricePerMonth":19,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4408934537","productId":"gid://shopify/Product/6937129746569","variantId":"gid://shopify/ProductVariant/40483421356169","name":"Rebillable 3-Month Membership, Billed Monthly","sellingPlanTypes":["all"],"priceHeader":"$19.00","savingsDisplayText":"Save $4.00","frequencyText":"month"},{"pricePerBox":18,"compareAtPricePerBox":null,"pricePerMonth":18,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4408967305","productId":"gid://shopify/Product/6937130795145","variantId":"gid://shopify/ProductVariant/40483437445257","name":"Rebillable 6-Month Membership, Billed Monthly","sellingPlanTypes":["all"],"priceHeader":"$18.00","savingsDisplayText":"Save $3.00","frequencyText":"month"},{"pricePerBox":17,"compareAtPricePerBox":null,"pricePerMonth":17,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4411261065","productId":"gid://shopify/Product/6937131483273","variantId":"gid://shopify/ProductVariant/40483452354697","name":"Rebillable 12-Month Membership, Billed Monthly","sellingPlanTypes":["all"],"priceHeader":"$17.00","savingsDisplayText":"Save $2.00","frequencyText":"month"},{"pricePerBox":24,"compareAtPricePerBox":24,"pricePerMonth":24,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407918729","productId":"gid://shopify/Product/6937131548809","variantId":"gid://shopify/ProductVariant/40483452780681","name":"Rebillable 3-Month Membership, Prepaid","sellingPlanTypes":["all","featured1"],"priceHeader":"$24.00","savingsDisplayText":"Save $27.00","frequencyText":"per box"},{"pricePerBox":18,"compareAtPricePerBox":null,"pricePerMonth":18,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407951497","productId":"gid://shopify/Product/6937131712649","variantId":"gid://shopify/ProductVariant/40483453468809","name":"Rebillable 6-Month Membership, Prepaid","sellingPlanTypes":["all"],"priceHeader":"$18.00","savingsDisplayText":"Save $18.00","frequencyText":"per box"},{"pricePerBox":22,"compareAtPricePerBox":22,"pricePerMonth":22,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407885961","productId":"gid://shopify/Product/6937131810953","variantId":"gid://shopify/ProductVariant/40483453862025","
23name":"Rebillable 12-Month Membership, Prepaid","sellingPlanTypes":["all","featured1"],"priceHeader":"$22.00","savingsDisplayText":"Save $84.00","frequencyText":"per box"},{"pricePerBox":15,"compareAtPricePerBox":null,"pricePerMonth":15,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4408180873","productId":"gid://shopify/Product/7029374550153","variantId":"gid://shopify/ProductVariant/40800229851273","name":"Rebillable Ace Membership, Billed Monthly","sellingPlanTypes":["ace"],"priceHeader":"$15.00","savingsDisplayText":"Save $0.00","frequencyText":"month"},{"pricePerBox":17.041666666666668,"compareAtPricePerBox":null,"pricePerMonth":17.041666666666668,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407394441","productId":"gid://shopify/Product/7633542447241","variantId":"gid://shopify/ProductVariant/42358794780809","name":"(TEST2) Rebillable 12-Month Membership, Prepaid","sellingPlanTypes":["all"],"priceHeader":"$17.04","savingsDisplayText":"Save $24.50","frequencyText":"per box"},{"pricePerBox":25.5,"compareAtPricePerBox":null,"pricePerMonth":25.5,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4407296137","productId":"gid://shopify/Product/7633803346057","variantId":"gid://shopify/ProductVariant/42359298588809","name":"(TEST) Rebillable Monthly Membership","sellingPlanTypes":["all"],"priceHeader":"$25.50","savingsDisplayText":"Save $10.50","frequencyText":"month"},{"pricePerBox":66.91666666666667,"compareAtPricePerBox":null,"pricePerMonth":66.91666666666667,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4428628105","productId":"gid://shopify/Product/7682636087433","variantId":"gid://shopify/ProductVariant/42485560672393","name":"(TEST2) Rebillable 3-Month Membership, Prepaid","sellingPlanTypes":["all"],"priceHeader":"$66.92","savingsDisplayText":"Save $155.75","frequencyText":"per box"},{"pricePerBox":6.333333333333333,"compareAtPricePerBox":null,"pricePerMonth":6.333333333333333,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4866146441","productId":"gid://shopify/Product/8076389580937","variantId":"gid://shopify/ProductVariant/43883395088521","name":"TEST Premium 3-Month Membership","sellingPlanTypes":["all"],"priceHeader":"$6.33","savingsDisplayText":"Save $26.00","frequencyText":"per box"},{"pricePerBox":19,"compareAtPricePerBox":null,"pricePerMonth":19,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4866179209","productId":"gid://shopify/Product/8076390531209","variantId":"gid://shopify/ProductVariant/43883399020681","name":"TEST Premium monthly Membership","sellingPlanTypes":["all"],"priceHeader":"$19.00","savingsDisplayText":"Save $4.00","frequencyText":"month"},{"pricePerBox":50,"compareAtPricePerBox":null,"pricePerMonth":50,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4868735113","productId":"gid://shopify/Product/8079731523721","variantId":"gid://shopify/ProductVariant/43888978133129","name":"Signature Rebillable Bi-Monthly Membership","sellingPlanTypes":["all"],"priceHeader":"$50.00","savingsDisplayText":"Save $35.00","frequencyText":"month"},{"pricePerBox":48,"compareAtPricePerBox":null,"pricePerMonth":48,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4868767881","productId":"gid://shopify/Product/8079744204937","variantId":"gid://shopify/ProductVariant/43888998383753","name":"Signature Rebillable 3-Box Prepaid Membership","sellingPlanTypes":["all"],"priceHeader":"$48.00","savingsDisplayText":"Save $99.00","frequencyText":"per box"},{"pricePerBox":44,"compareAtPricePerBox":null,"pricePerMonth":44,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/4868800649","productId":"gid://shopify/Product/8079750987913","variantId":"gid://shopify/ProductVariant/43889006870665","name":"Signature Rebillable 6-Box Prepaid Membership","sellingPlanTypes":["all"],"priceHeader":"$44.00","savingsDisplayText":"Save $174.00","frequencyText":"per box"},{"pricePerBox":25,"compareAtPricePerBox":25,"pricePerMonth":25,"currencyCode":"USD","sellingPlanId":"gid://shopify/SellingPlan/5826576521","productId":"gid://shopify/Product/8651554029705","variantId":"gid://shopify/ProductVariant/46838899769481","name":"Referral - Rebillable Monthly Membership","sellingPlanTypes":["all"],"priceHeader":"$25.00","savingsDisplayText":"Save $10.00","frequencyText":"month"}]')},93023:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},93028:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(84645);let i="\n mutation cartLinesRemoveMutation($cartId: ID!, $lineIds: [ID!]!) {\n cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n userErrors {\n code\n field\n message\n }\n cart {\n ...cartDetails\n }\n }\n }\n\n ".concat(n.X,"\n")},93331:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(37876),i=r(14232),o=r(54587),a=r(51541),s=r(41180);r(52836);let u=r(1721),l=r(37385),c=e=>{if("number"==typeof e||void 0===e)return e;{let t=Number.parseInt(e);if(Number.isNaN(t))return;return t}};t.PrismicNextImage=i.forwardRef(function({field:e,imgixParams:t={},alt:r,fallbackAlt:i,fill:f,width:d,height:h,fallback:p=null,loader:m=l.imgixLoader,...g},y){if(!s.isFilled.imageThumbnail(e))return n.jsx(n.Fragment,{children:p});let b=t;for(let e in t)null===b[e]&&(b[e]=void 0);let v=a.buildURL(e.url,t),_=e.dimensions.width/e.dimensions.height,w=c(d),x=c(h),S=w??e.dimensions.width,E=x??e.dimensions.height;null!=w&&null==x?E=w/_:null==w&&null!=x&&(S=x*_);let k=r??(e.alt||i),A=u.resolveDefaultExport(o);return n.jsx(A,{ref:y,src:v,width:f?void 0:S,height:f?void 0:E,alt:k,fill:f,loader:null===m?void 0:m,...g})})},93567:(e,t,r)=>{"use strict";var n=r(27496),i=r(8630);e.exports=function(e,t,r){var o=this||i;
23return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},93890:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});let n="\n fragment metafield on Metafield {\n id\n description\n key\n namespace\n type\n value\n }\n"},94147:e=>{function t(r,n,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}e.exports=t=function(e,r,n,i){if(r)a?a(e,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[r]=n;else{var o=function(r,n){t(e,r,function(e){return this._invoke(r,n,e)})};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94772:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(29454),i=r(78799);let o=()=>n.A.get(i.z_)},95295:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(77785);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},95518:(e,t)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isInternalURL=e=>{let t=/^(\/(?!\/)|#)/.test(e),r=!t&&!/^https?:\/\//.test(e);return t&&!r}},95852:(e,t,r)=>{var n=r(88461),i=r(56057),o=r(86701),a=r(66143);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},96081:(e,t,r)=>{var n=r(82909),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},96096:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});let n={Any:"Any",Document:"Document",Media:"Media",Web:"Web"},i=e=>{var t;return{link_type:n.Document,id:e.id,uid:e.uid||void 0,type:e.type,tags:e.tags,lang:e.lang,url:null==e.url?void 0:e.url,slug:null==(t=e.slugs)?void 0:t[0],...e.data&&Object.keys(e.data).length>0?{data:e.data}:{}}},o=(e,...t)=>{let r;if(!e)return null;let o="link_type"in e?e:i(e),[a]=t;switch(r="function"==typeof a||null==a?{linkResolver:a}:{...a},o.link_type){case n.Media:case n.Web:return"url"in o?o.url:null;case n.Document:if("id"in o&&r.linkResolver){let e=r.linkResolver(o);if(null!=e)return e}if("url"in o&&o.url)return o.url;return null;case n.Any:default:return null}}},96442:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779),i=r(31943);t.getGraphQLEndpoint=e=>{if(i.isRepositoryName(e))return`https://${e}.cdn.prismic.io/graphql`;throw new n.PrismicError(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)}},96777:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},97047:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n=JSON.parse('{"r":[{"primary":{"question_id":"skin_tone","question":[{"type":"paragraph","text":"What is your skin tone?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Fair Warm","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTCUaF0TcGJEl0_SkinTone-FairWarm.jpg?auto=format,compress","id":"ZsOTCUaF0TcGJEl0","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Fair Warm","option_id":"fair_warm"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Fair Cool","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTC0aF0TcGJEl2_SkinTone-FairCool.jpg?auto=format,compress","id":"ZsOTC0aF0TcGJEl2","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Fair Cool","option_id":"fair_cool"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Fair Neutral","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTCkaF0TcGJEl1_SkinTone-FairNeutral.jpg?auto=format,compress","id":"ZsOTCkaF0TcGJEl1","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Fair Neutral","option_id":"fair_neutral"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Medium Warm","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTBkaF0TcGJElx_SkinTone-MediumWarm.jpg?auto=format,compress","id":"ZsOTBkaF0TcGJElx","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Medium Warm","option_id":"medium_warm"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Medium Cool","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTCEaF0TcGJElz_SkinTone-MediumCool.jpg?auto=format,compress","id":"ZsOTCEaF0TcGJElz","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Medium Cool","option_id":"medium_cool"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Medium Neutral","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTB0aF0TcGJEly_SkinTone-MediumNeutral.jpg?auto=format,compress","id":"ZsOTB0aF0TcGJEly","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Medium Neutral","option_id":"medium_neutral"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Deep Warm","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTDEaF0TcGJEl3_SkinTone-DeepWarm.jpg?auto=format,compress","id":"ZsOTDEaF0TcGJEl3","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Deep Warm","option_id":"deep_warm"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Deep Cool","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTAkaF0TcGJElt_SkinTone-DeepCool.jpg?auto=format,compress","id":"ZsOTAkaF0TcGJElt","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Deep Cool","option_id":"deep_cool"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Deep Neutral","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTDUaF0TcGJEl4_SkinTone-DeepNeutral.jpg?auto=format,compress","id":"ZsOTDUaF0TcGJEl4","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Deep Neutral","option_id":"deep_neutral"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Very Deep Warm","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTA0aF0TcGJElu_SkinTone-VeryDeepWarm.jpg?auto=format,compress","id":"ZsOTA0aF0TcGJElu","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Very Deep Warm","option_id":"very_deep_warm"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Very Deep Cool","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTBUaF0TcGJElw_SkinTone-VeryDeepCool.jpg?auto=format,compress","id":"ZsOTBUaF0TcGJElw","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Very Deep Cool","option_id":"very_deep_cool"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Very Deep Neutral","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTBEaF0TcGJElv_SkinTone-VeryDeepNeutral.jpg?auto=format,compress","id":"ZsOTBEaF0TcGJElv","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Very Deep Neutral","option_id":"very_deep_neutral"}],"id":"survey_question$ad53959c-b0b7-46c8-b8b8-1e16a0128755","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"eye_color","question":[{"type":"paragraph","text":"What is your eye color?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Brown","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVIEaF0TcGJEmo_EyeColor-Brown.jpg?auto=format,compress","id":"ZsOVIEaF0TcGJEmo","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Brown","option_id":"brown"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Blue","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVIUaF0TcGJEmp_EyeColor-Blue.jpg?auto=format,compress","id":"ZsOVIUaF0TcGJEmp","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}}
23,"option_name":"Blue","option_id":"blue"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Green","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVHkaF0TcGJEmm_EyeColor-Green.jpg?auto=format,compress","id":"ZsOVHkaF0TcGJEmm","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Green","option_id":"green"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Hazel","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVHUaF0TcGJEml_EyeColor-Hazel.jpg?auto=format,compress","id":"ZsOVHUaF0TcGJEml","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Hazel","option_id":"hazel"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Gray","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVH0aF0TcGJEmn_EyeColor-Gray.jpg?auto=format,compress","id":"ZsOVH0aF0TcGJEmn","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Gray","option_id":"gray"}],"id":"survey_question$3aaf6010-6970-4c05-bfb8-f3237cd204a0","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"hair_color","question":[{"type":"paragraph","text":"What is the color of your hair?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Light Brown","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVdEaF0TcGJEm0_HairColor-LightBrown.jpg?auto=format,compress","id":"ZsOVdEaF0TcGJEm0","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Light Brown","option_id":"light_brown"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Medium Brown","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVc0aF0TcGJEmz_HairColor-MediumBrown.jpg?auto=format,compress","id":"ZsOVc0aF0TcGJEmz","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Medium Brown","option_id":"medium_brown"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Dark Brown","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVd0aF0TcGJEm3_HairColor-DarkBrown.jpg?auto=format,compress","id":"ZsOVd0aF0TcGJEm3","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Dark Brown","option_id":"dark_brown"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Black","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVekaF0TcGJEm7_HairColor-Black.jpg?auto=format,compress","id":"ZsOVekaF0TcGJEm7","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Black","option_id":"black"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Platinum Blonde","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVckaF0TcGJEmy_HairColor-PlatinumBlonde.jpg?auto=format,compress","id":"ZsOVckaF0TcGJEmy","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Platinum Blonde","option_id":"platinum_blonde"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Blonde","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVeUaF0TcGJEm5_HairColor-Blonde.jpg?auto=format,compress","id":"ZsOVeUaF0TcGJEm5","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Blonde","option_id":"blonde"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Dirty Blonde","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVdkaF0TcGJEm2_HairColor-DirtyBlonde.jpg?auto=format,compress","id":"ZsOVdkaF0TcGJEm2","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Dirty Blonde","option_id":"dirty_blonde"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Strawberry Blonde","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVcEaF0TcGJEmw_HairColor-StrawberryBlonde.jpg?auto=format,compress","id":"ZsOVcEaF0TcGJEmw","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Strawberry Blonde","option_id":"strawberry_blonde"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Red","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVcUaF0TcGJEmx_HairColor-Red.jpg?auto=format,compress","id":"ZsOVcUaF0TcGJEmx","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Red","option_id":"red"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Gray","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVdUaF0TcGJEm1_HairColor-Gray.jpg?auto=format,compress","id":"ZsOVdUaF0TcGJEm1","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Gray","option_id":"gray"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Colored","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOVeEaF0TcGJEm4_HairColor-Colored.jpg?auto=format,compress","id":"ZsOVeEaF0TcGJEm4","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Colored (Pink / Purple / Blue / Etc.)","option_id":"colored"}],"id":"survey_question$8c6ce29f-0b32-443e-8f4e-758fd18f273f","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"hair_type","question":[{"type":"paragraph","text":"How would you describe your hair?","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Straight","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOWR0aF0TcGJEnX_HairType-Straight.jpg?auto=format,compress","id":"ZsOWR0aF0TcGJEnX","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Straight","option_id":"straight"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Wavy","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOWRkaF0TcGJEnW_HairType-Wavy.jpg?auto=format,compress","id":"ZsOWRkaF0TcGJEnW","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Wavy","option_id":"wavy"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Curly","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOWSEaF0TcGJEnY_HairType-Curly.jpg?auto=format,compress","id":"ZsOWSEaF0TcGJEnY","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Curly","option_id":"curly"}],"id":"survey_question$8397dcb9-ca59-49a3-a321-d9673800dc62","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"skin_type","question":[{"type":"paragraph","text":"What is your primary skin type?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Dry","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTMEaF0TcGJEmB_SkinType-Dry.jpg?auto=format,compress","id":"ZsOTMEaF0TcGJEmB","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Dry","option_id":"dry"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Combination","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTMUaF0TcGJEmC_SkinType-Combination.jpg?auto=format,compress","id":"ZsOTMUaF0TcGJEmC","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Combination","option_id":"combination"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Oily","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTL0aF0TcGJEmA_SkinType-Oily.jpg?auto=format,compress","id":"ZsOTL0aF0TcGJEmA","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Oily","option_id":"oily"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Sensitive","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTLkaF0TcGJEl9_SkinType-Sensitive.jpg?auto=format,compress","id":"ZsOTLkaF0TcGJEl9","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Sensitive","option_id":"sensitive"},{"option_image":{"dimensions":{"width":300,"height":300},"alt":"Aging","copyright":null,"url":"https://images.prismic.io/birchbox/ZsOTMkaF0TcGJEmD_SkinType-Aging.jpg?auto=format,compress","id":"ZsOTMkaF0TcGJEmD","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"option_name":"Aging","option_id":"aging"}],"id":"survey_question$8bae0bd0-a459-42e6-b65b-34378af00276","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"beauty_products","question":[{"type":"paragraph","text":"Select the following beauty products you are most interested in receiving","spans":[],"direction":"ltr"}],"option_type":"Multiple Choice","display":true},"items":[{"option_image":{},"option_name":"Makeup, Skincare, Hair, Body","option_id":"makeup_skincare_hair_body"},{"option_image":{},"option_name":"Makeup - Face","option_id":"makeup_face"},{"option_image":{},"option_name":"Makeup - Lip","option_id":"makeup_lip"},{"option_image":{},"option_name":"Makeup - Cheek","option_id":"makeup_cheek"},{"option_image":{},"option_name":"Makeup - Eye","option_id":"makeup_eye"},{"option_image":{},"option_name":"Skincare - Cleansers","option_id":"skincare_cleansers"},{"option_image":{},"option_name":"Skincare - Moisturizers","option_id":"skincare_moisturizers"},{"option_image":{},"option_name":"Skincare - Treatments","option_id":"skincare_treatments"},{"option_image":{},"option_name":"Skincare - Masks","option_id":"skincare_masks"},{"option_image":{},"option_name":"Skincare - Eye Care","option_id":"skincare_eye_care"},{"option_image":{},"option_name":"Skincare - Lip Care","option_id":"skincare_lip_care"},{"option_image":{},"option_name":"Skincare - Sunscreen","option_id":"skincare_sunscreen"},{"option_image":{},"option_name":"Wellness","option_id":"wellness"},{"option_image":{},"option_name":"Skin Care Tools","option_id":"skin_care_tools"},{"option_image":{},"option_name":"Nails","option_id":"nails"},{"option_image":{},"option_name":"Hair - Shampoo & Conditioner","option_id":"hair_shampoo_conditioner"},{"option_image":{},"option_name":"Hair - Treatment","option_id":"hair_treatment"},{"option_image":{},"option_name":"Hair - Styling","option_id":"hair_styling"},{"option_image":{},"option_name":"Body Care - Bath & Shower","option_id":"body_care_bath_shower"},{"option_image":{},"option_name":"Body Care - Moisturizers & Lotions","option_id":"body_care_moisturizers_lotions"},{"option_image":{}
23,"option_name":"Body Care - Deodorant","option_id":"body_care_deodorant"},{"option_image":{},"option_name":"Fragrance","option_id":"fragrance"}],"id":"survey_question$dad2c8f3-83a9-40af-b306-f5a58070e103","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"preferred_product_brands","question":[{"type":"paragraph","text":"Do you prefer receiving products from well-known brands or discovering products from emerging brands?","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{},"option_name":"Mostly well-known brands","option_id":"mostly_well_known_brands"},{"option_image":{},"option_name":"Mixture","option_id":"mixture"},{"option_image":{},"option_name":"Mostly emerging brands","option_id":"mostly_emerging_brands"}],"id":"survey_question$faee473c-bcd9-4e54-8426-2bdb1247d2af","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"subscription_reason","question":[{"type":"paragraph","text":"What is the main reason you subscribe to Birchbox?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{},"option_name":"As a discovery tool for cool, new brands","option_id":"discovery_tool_for_new_brands"},{"option_image":{},"option_name":"To try new product launches from your favorite brands","option_id":"try_new_product_launches"},{"option_image":{},"option_name":"To receive staple products from your favorite brands","option_id":"receive_staple_products"},{"option_image":{},"option_name":"For the cost-value, regardless of brand","option_id":"cost_value"}],"id":"survey_question$6f8a663c-6be4-4b40-a894-9086e0e2a4c6","slice_type":"survey_question","slice_label":null},{"primary":{"question_id":"product_size","question":[{"type":"paragraph","text":"What product size do you prefer to receive?\xa0","spans":[],"direction":"ltr"}],"option_type":"Single Choice","display":true},"items":[{"option_image":{},"option_name":"Full","option_id":"full"},{"option_image":{},"option_name":"Deluxe/Travel","option_id":"deluxe_travel"},{"option_image":{},"option_name":"Sample","option_id":"sample"}],"id":"survey_question$7f5bb8ef-201b-4fbe-854b-0ccdefafd2ed","slice_type":"survey_question","slice_label":null}]}'),i=()=>({surveyId:1,surveyQuestions:n.r.filter(e=>e.primary.display).map((e,t)=>({id:e.primary.question_id,displayOptions:null,type:"Single Choice"===e.primary.option_type?"radio_select":"multiselect",body:e.primary.question[0].text,surveyAnswerOptions:e.items.map((e,r)=>({id:100*t+r+1,optionLabel:e.option_name,optionValue:e.option_id||e.option_name.toLowerCase().replaceAll(" ","_"),optionImage:e.option_image.url||null,position:t+1,status:"enabled"}))}))})},97091:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(37876),i=r(14232),o=r(10553),a=r(18847),s=r.n(a),u=r(36854),l=r(78723);let c=JSON.parse('{"X":{"Ff":"Help our beauty team understand your needs","J7":"Letâs save your profile","RX":"Youâll be able to customize your box after checking out to make sure you get exactly what you want","$E":"Create an account for easier checkout."}}');var f=r(18528),d=r(11752),h=r(86465);let p=s()(()=>Promise.all([r.e(4529),r.e(269)]).then(r.bind(r,70269)),{loadableGenerated:{webpack:()=>[70269]}}),m=s()(()=>Promise.all([r.e(9376),r.e(4522),r.e(4660)]).then(r.bind(r,94660)),{loadableGenerated:{webpack:()=>[94660]}});function g(e){let{isModalOpen:t,closeModal:r}=e,[a,s]=(0,i.useState)("survey"),{surveyId:g}=(0,l.YM)()||{},{customer:y}=(0,f.A)(),[b,v]=(0,i.useState)(!1),_=(0,l.gb)(),{data:w}=(0,o.useSession)();return(0,i.useEffect)(()=>{t&&u.Ay.capture("subscription_survey_started",{flow:"control",type:"modal"})},[t]),(0,i.useEffect)(()=>{b&&u.Ay.capture("subscription_survey_completed",{flow:"control",type:"modal"})},[b]),(0,i.useEffect)(()=>{"sign-up"===a&&(null==w?void 0:w.shopifyAccessToken)&&s("curate")},[a,null==w?void 0:w.shopifyAccessToken]),(0,i.useEffect)(()=>{(null==y?void 0:y.id)&&b&&(_(y.id),s("curate"))},[y,b,_]),(0,n.jsx)(d.A,{isOpen:t,closeModal:r,desktopStyle:"full-screen",children:(0,n.jsxs)("div",{className:"flex flex-col items-center pb-20 pt-7 lg:pt-20",children:["curate"!==a&&(0,n.jsxs)("div",{className:"flex flex-col gap-2 px-4 mb-10",children:[(0,n.jsx)("h1",{className:"text-xl md:text-3xl text-center font-serif",children:"survey"===a?c.X.Ff:c.X.J7}),(0,n.jsx)("p",{className:"font-medium text-center text-gray-500 max-md:text-sm",children:"survey"===a?c.X.RX:c.X.$E})]}),g&&"survey"===a&&(0,n.jsx)(h.A,{callBack:()=>{v(!0),s("sign-up")}}),"sign-up"!==a||w?null:(0,n.jsx)(p,{subscriptionBox:!0,step:"sign-up"}),"curate"===a&&(0,n.jsx)(m,{})]})})}},98571:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Ww:()=>l});var n=r(37876),i=r(14232),o=r(89099);let a=e=>{var t,r,n;if(null==e||null==(r=e.user)||null==(t=r.customer)?void 0:t.id){let t=e.user.customer.id;return t.includes("gid://shopify/Customer/")?t.split("/").pop():t}return(null==e||null==(n=e.user)?void 0:n.email)?e.user.email:null},s=(0,i.createContext)({brazeFunction:async()=>void 0,getBrazeExternalId:a});function u(){let{brazeFunction:e}=(0,i.useContext)(s);return{brazeFunction:e,getBrazeExternalId:a}}function l(e){let{children:t}=e,[u,l]=(0,i.useState)();(0,o.useRouter)();let c=(0,i.useCallback)(async()=>{let e=u;if(!u){if(e)return e;(e=await r.e(5720).then(r.bind(r,35720))).initialize("3ec28a51-0cc1-4c0c-b2aa-2b296c36cb65",{baseUrl:"sdk.iad-05.braze.com",enableSdkAuthentication:!0,allowUserSuppliedJavascript:!0,enableLogging:!1}),e.automaticallyShowInAppMessages(),l(e)}return e},[u]),f=(0,i.useMemo)(()=>({brazeFunction:c,getBrazeExternalId:a}),[c]);return(0,n.jsx)(s.Provider,{value:f,children:t})}},98640:e=>{"use strict";e.exports=JSON.parse('{"title":"Categories","itemsCount":3,"items":[{"id":"gid://shopify/MenuItem/427793744009","title":"Featured","url":"https://checkout.birchbox.com/collections/all","items":[]},{"id":"gid://shopify/MenuItem/427793481865","title":"Makeup","url":"https://checkout.birchbox.com/collections/makeup","items":[{"id":"gid://shopify/MenuItem/432899
23031177","title":"Cheek","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899260553","title":"Lip","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[{"id":"gid://shopify/MenuItem/432899293321","title":"Lipsticks","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899326089","title":"Lip Balms","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899358857","title":"Lip Glosses","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899391625","title":"Lip Masks & Treatments","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899424393","title":"Lip Liners","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899457161","title":"Lip & Cheek Multi-taskers","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]},{"id":"gid://shopify/MenuItem/432899489929","title":"Lip Palettes & Sets","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[]}]},{"id":"gid://shopify/MenuItem/432899522697","title":"Best of Makeup","url":"https://checkout.birchbox.com/collections","type":"COLLECTIONS","items":[{"id":"gid://shopify/MenuItem/432899555465","title":"Best Sellers","url":"https://checkout.birchbox.com/collections/best-sellers","type":"COLLECTION","items":[]}]}]},{"id":"gid://shopify/MenuItem/432397582473","title":"Skincare","url":"https://checkout.birchbox.com/collections/skincare","items":[]}]}')},98678:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68779);class i extends n.PrismicError{}t.ParsingError=i},98857:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},99116:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(37876);function i(e){let{className:t="fill-black w-6"}=e;return(0,n.jsx)("svg",{viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 0H15.4077C18.7724 0 21.5 2.72759 21.5 6.09225C21.5 8.42243 20.1918 10.4471 18.2698 11.4718C20.7389 12.3803 22.5 14.7533 22.5 17.5376C22.5 21.1062 19.6071 23.9991 16.0385 23.9991H0.5V12.1845V11.0762V0ZM15.1507 11.919L10.6211 7.38477L6.09153 11.919L10.6211 16.4532L15.1507 11.919Z"})})}},99219:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876),i=r(78799);let o={minimumFractionDigits:2,maximumFractionDigits:2};function a(e){let{price:t}=e;return(0,n.jsxs)(n.Fragment,{children:["es-es"!==i.vV&&i.pd.get(t.currencyCode),Number(t.amount).toLocaleString(i.vV,o),"es-es"===i.vV&&i.pd.get(t.currencyCode)]})}},99742:e=>{var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw 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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function u(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],c=!1,f=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):f=-1,l.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++f<t;)n&&n[f].run();f=-1,t=l.length}n=null,c=!1,u(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},99783:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,D:()=>n});let n="loyal-excluded",i={"es-es":[{month:0,discount:5,tag:"5OFFLOYALTY",message:"5% de descuento en todos los productos"},{month:2,discount:10,tag:"10OFFLOYALTY",message:"10% de descuento en todos los productos"},{month:4,discount:15,tag:"15OFFLOYALTY",message:"15% de descuento en todos los productos"},{month:8,discount:18,tag:"18OFFLOYALTY",message:"18% de descuento en todos los productos"},{month:12,discount:20,tag:"20OFFLOYALTY",message:"20% de descuento en todos los productos"}],"en-gb":[{month:0,discount:0},{month:6,discount:15,tag:"VIPLOYALTY",message:"15% discount for all products"}]}},99838:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},99996:(e,t,r)=>{"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(21196);t.createWriteClient=(e,t)=>
23new n.WriteClient(e,t)}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(86881),t(92),t(16296))),_N_E=e.O()}]); 24//# sourceMappingURL=_app-2ec0f9e0c247cd20.js.map
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.