(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888,1432],{28506:function(e,t,n){"use strict";n.d(t,{W$:function(){return Et},jW:function(){return kt},pw:function(){return _n},xl:function(){return In}});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},i={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",c="[object Function]",l="[object GeneratorFunction]",u="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",A="[object Int8Array]",x="[object Int16Array]",E="[object Int32Array]",N="[object Uint8Array]",C="[object Uint8ClampedArray]",_="[object Uint16Array]",O="[object Uint32Array]",I=/\w*$/,T=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[w]=P[a]=P[s]=P[k]=P[S]=P[A]=P[x]=P[E]=P[u]=P[d]=P[f]=P[h]=P[m]=P[g]=P[v]=P[N]=P[C]=P[_]=P[O]=!0,P["[object Error]"]=P[c]=P[y]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,D="object"==typeof self&&self&&self.Object===Object&&self,R=j||D||Function("return this")(),L=t&&!t.nodeType&&t,F=L&&e&&!e.nodeType&&e,z=F&&F.exports===L;function B(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}function $(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i-1},Ne.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||Ne),string:new Ee}},Ce.prototype.delete=function(e){return Re(this,e).delete(e)},Ce.prototype.get=function(e){return Re(this,e).get(e)},Ce.prototype.has=function(e){return Re(this,e).has(e)},Ce.prototype.set=function(e,t){return Re(this,e).set(e,t),this},_e.prototype.clear=function(){this.__data__=new Ne},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ne){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var Fe=le?Q(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function Be(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=i}(e.length)&&!He(e)}var Ge=ue||function(){return!1};function He(e){var t=We(e)?ee.call(e):"";return t==c||t==l}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ze(e){return Qe(e)?Oe(e):function(e){if(!Ve(e))return de(e);var t=[];for(var n in Object(e))X.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Me(e,!0,!0)}}(i,i.exports);var o=i.exports,a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}class p extends Error{constructor(e="Unsupported"){super(e)}}function h(e){return new p(e)}function m(){return this._qualifierModel||{error:h(`unsupported qualifier ${this.constructor.name}`)}}class g extends class{constructor(){this._qualifierModel={}}toJson(){return m.apply(this)}}{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof f?this.qualifierValue=t:(this.qualifierValue=new f,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class v extends g{constructor(e,t){let n;n=t?new f([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}}function y(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:h(`unsupported action ${this.constructor.name}`)}}class b extends class{constructor(){this._actionModel={}}toJson(){return y.apply(this)}}{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"===typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new v(n)):this.qualifiers.set(t,new g(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"===typeof e?this.flags.push(new v(e)):e instanceof v&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class w extends b{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class k extends w{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new g("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new g("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new g("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new g("h",e)),this}static fromJson(e){const t=new k;return e.width&&t.width(e.width),e.height&&t.height(e.height),e.x&&t.x(e.x),e.y&&t.y(e.y),t}}function S(){return new w("faces")}class A extends b{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";if("_region"in this){this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new g("e",`blur_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new g("e",`blur_region${e}`)),this.addQualifier(new g("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new g("e",`blur_faces${e}`))}else this.addQualifier(new g("e",`blur${e}`))}static fromJson(e){const{strength:t,region:n}=e,r=new this(t);return t&&r.strength(t),n&&"faces"===n.regionType&&r.region(S()),n&&"ocr_text"===n.regionType&&r.region(new w("ocr_text")),n&&"custom"===n.regionType&&r.region(k.fromJson(n)),r}}function x(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}const E={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},N={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},C={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},_={444:"CHROMA_444",420:"CHROMA_420"},O=x(_);x({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const I=x(E),T=x({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),M=x(N);x(C),x({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class P extends b{constructor(e,t){super(),this._actionModel={},this._actionModel.actionType=M[e]||e;const n=this.createEffectQualifier(e,t);this.addQualifier(n)}createEffectQualifier(e,t){let n;return n=t?new f([e,`${t}`]).setDelimiter(":"):new f(e),new g("e",n)}static fromJson(e){const{actionType:t,level:n,strength:r}=e;return new this(N[t]||t,n||r)}}class j extends P{constructor(e,t){super(e,t),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=M[e]||e,t&&this.setLevel(t)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const t=this.createEffectQualifier(this.effectType,e);return this.addQualifier(t),this}}function D(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}class R extends b{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new f(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new f(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new f(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new f(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new f(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new g("e",e))}static fromJson(e){const{actionType:t,paths:n,cornersLevel:r,despeckleLevel:i,detailLevel:o,numOfColors:a}=e,s=new this;return n&&s.paths(n),r&&s.cornersLevel(r),i&&s.despeckleLevel(i),o&&s.detailsLevel(o),a&&s.numOfColors(a),s}}class L extends j{level(e){return this._actionModel.level=e,this.setLevel(e)}}class F extends b{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new g("e",new f("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new g("e",new f(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new g("e",new f(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:t,type:n,stripesStrength:r}=e,i=new this;return"xray"===n&&i.xray(),"stripes"===n&&r&&i.stripesStrength(r),i}}class z extends L{color(e){return this._actionModel.color=e,this.addQualifier(new g("co",new f(D(e))))}static fromJson(e){const{actionType:t,level:n,color:r}=e,i=new this(t,n);return r&&i.color(r),i}}class B extends b{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";if("_region"in this){this._region.qualifiers.forEach((e=>this.addQualifier(e))),"custom"===this._region.regionType&&this.addQualifier(new g("e",`pixelate_region${e}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new g("e",`pixelate_region${e}`)),this.addQualifier(new g("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new g("e",`pixelate_faces${e}`))}else this.addQualifier(new g("e",`pixelate${e}`))}static fromJson(e){const{region:t,squareSize:n}=e,r=new this(n);return n&&r.squareSize(n),t&&"faces"===t.regionType&&r.region(S()),t&&"custom"===t.regionType&&r.region(new k),r}}function V(e){return new z("colorize",e)}class $ extends b{constructor(e){super(),this._actionModel={},this.addQualifier(new g("b",new f(D(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}class U{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:h(`unsupported action ${this.constructor.name}`)}}}class q extends f{constructor(e){super(e),this.val=e}getValue(){return this.val}}class Q extends b{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof q?t.getValue():t,this._actionModel.actionType=T[e],this._actionModel[n]=r,this.addQualifier(new g(e,t))}}class G extends v{constructor(e){super("progressive",e)}}class H extends Q{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new v("lossy")),this}progressive(e){return e instanceof G?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(function(e){return new v("progressive",e)}(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new v("preserve_transparency")),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let o;return o=t?new this("f",t):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}}class W{constructor(){this.actions=[]}addAction(e){let t;if("string"===typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new U(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof W?this.actions=this.actions.concat(e.actions):this.actions.push(new U(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new H("q",e)),this}format(e){return this.addAction(new H("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new $(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new b;let n=e;return"string"===typeof e&&(n=new v(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}}function Z(e){const t=e.toString();if(t.match(/[A-Z]/gi))return t;if(t.length>1&&"0"===t[0])return t;return!isNaN(parseFloat(t))&&-1===t.indexOf(":")&&-1===t.indexOf(".")?`${t}.0`:t}class K extends f{}class Y extends b{constructor(e,t,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=I[e]||e,this.addQualifier(new g("c",e)),t&&this.width(t),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new g("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new g("w",e))}aspectRatio(e){return e instanceof K?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new g("ar",e))):"number"===typeof e||"string"===typeof e?(this._actionModel.dimensions.aspectRatio=Z(e),this.addQualifier(new g("ar",Z(e)))):e instanceof v?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new v("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new v("region_relative"))}static fromJson(e){const{actionType:t,dimensions:n,relative:r,regionRelative:i}=e,{aspectRatio:o,width:a,height:s}=n,c=new this(E[t]||t,a,s);return o&&c.aspectRatio("ignore_aspect_ratio"===o?new v("ignore_aspect_ratio"):o),r&&c.relative(),i&&c.regionRelative(),c}}class J extends g{constructor(e){super("g",new f(e))}}class X extends J{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class ee extends J{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class te extends J{constructor(e){super(e)}}function ne(...e){const t=[...e];return new ee(t)}function re(){return new X}class ie extends f{constructor(e){super(),this.name=e}toString(){return this.name}}function oe(e){return`${e}`.replace("g_","")}function ae(e){const t=e.toString().split("_"),n={object:t[0]};return t.length>1&&("avoid"===t[1]?n.avoid=!0:n.weight=+t[1]),n}function se(e){let t;const n="auto"===e?new X:e;t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):n.qualifierValue.values.filter((e=>"auto"!==e));return{gravityType:"auto",autoFocus:t.map(ae)}}function ce(e){return function(e){const t=oe(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?function(e){return{compass:oe(e),gravityType:"direction"}}(e):function(e){return"ocr_text"===oe(e)}(e)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?se(e):function(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,r={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map((e=>`${e}`))};if(t){const e=n[n.length-1].values.slice(1),t=re().autoFocus(...e);r.fallbackGravity=se(t)}return r}("string"===typeof e?function(e){const t=e.split(":").map((e=>new ie(e)));return new ee(t)}(e):e)}class le extends f{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){return new le(e,t)}shouldAddWeight(){return"number"===typeof this._weight||"string"===typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class ue extends f{constructor(e){super(),this.val=e}toString(){return this.val}}function de(e){const{object:t,weight:n,avoid:r}=e,i=new le(new ie(t));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function fe(e){const t=(e.autoFocus||[]).map(de);return re().autoFocus(...t)}function pe(e){return function(e){return"direction"===e.gravityType}(e)?new te(new ue(e.compass)):function(e){return"ocr"===e.gravityType}(e)?ne(new ie("ocr_text")):function(e){return"auto"===e.gravityType}(e)?fe(e):function(e){const t=ne(...(e.focusOnObjects||[]).map((e=>new ie(e))));if(e.fallbackGravity){const n=fe(e.fallbackGravity);t.fallbackGravity(n)}return t}(e)}class he extends Y{gravity(e){this._actionModel.gravity=ce(e);const t="string"===typeof e?new g("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(pe(e.gravity)),t}}class me extends g{constructor(e){super("b"),e&&this.addValue(e)}}var ge=class extends me{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class ve extends me{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>D(e))),this}}class ye extends ve{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class be extends ve{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class we extends be{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class ke extends be{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Se extends ve{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Ae extends me{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function xe(e){return`${e}`.replace("b_","")}function Ee(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Ne(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Ee(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Ce(e){return"auto"===xe(e)?{backgroundType:"auto"}:e instanceof ge?function(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||0===t)&&(r.intensity=t),(n||0===n)&&(r.brightness=n),r}(e):e instanceof ye?function(e){return Object.assign(Object.assign({},Ee(e)),{backgroundType:"border"})}(e):e instanceof we?function(e){return Object.assign(Object.assign({},Ne(e)),{backgroundType:"borderGradient"})}(e):e instanceof Se?function(e){return Object.assign(Object.assign({},Ee(e)),{backgroundType:"predominant"})}(e):e instanceof ke?function(e){return Object.assign(Object.assign({},Ne(e)),{backgroundType:"predominantGradient"})}(e):e instanceof Ae?function(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:xe(e)}}(e)}function _e(){return new q("auto")}function Oe(){return new ye}function Ie(){return new me("auto")}function Te(){return new we}function Me(){return new ke}function Pe(){return new Se}function je(e){return new me(D(e))}function De(){return new Ae}const Re={auto:Ie,border:Oe,borderGradient:Te,predominantGradient:Me,predominant:Pe,color:je,blurred:function(){return new ge},generativeFill:De};function Le(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function Fe(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function ze(e){const{backgroundType:t}=e;switch(t){case"auto":return Ie();case"blurred":return function(e){const{brightness:t,intensity:n}=e,r=Re.blurred();return r.brightness(null!==t&&void 0!==t?t:0),r.intensity(null!==n&&void 0!==n?n:100),r}(e);case"border":return Fe(Oe(),e);case"borderGradient":return Le(Te(),e);case"predominant":return Fe(Pe(),e);case"predominantGradient":return Le(Me(),e);case"generativeFill":return function(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}(De(),e);default:return je(e.color)}}class Be extends he{background(e){return this._actionModel.background=Ce(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new g("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new g("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(ze(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}class Ve extends Y{liquidRescaling(){return this.addQualifier(new J("liquid"))}}class $e extends he{x(e){return this._actionModel.x=e,this.addQualifier(new g("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new g("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new g("z",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),e.zoom&&t.zoom(e.zoom),t}}class Ue extends he{x(e){return this._actionModel.x=e,this.addQualifier(new g("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new g("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class qe extends Q{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=_[e];const t=new f([this._actionModel.level,e]);return t.setDelimiter(":"),this.addQualifier(new g("q",t))}quantization(e){this._actionModel.quantization=e;const t=new f([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new g("q",t))}static fromJson(e){const{level:t,chromaSubSampling:n,quantization:r}=e,i=new this(C[t]||t);if(n){const e=O[n.toUpperCase()];e&&i.chromaSubSampling(+e)}return r&&i.quantization(r),i}}function Qe(e){return new H("f",e)}function Ge(e){return new qe(e)}V(70).color("black"),V(40).color("white"),new P("grayscale"),new F;var He,We,Ze,Ke,Ye,Je={vectorize:(new W).effect(new R).delivery(Ge("auto")).delivery(Qe(new q("svg"))),pixelate:(new W).effect(new B(He)).delivery(Ge("auto")).delivery(Qe(_e())),blur:(new W).effect((We=2e3,new A(We))).delivery(Ge("auto")).delivery(Qe(_e())),"predominant-color":(new W).resize((Ke="iw_div_2",new Be("pad",Ke,Ye)).aspectRatio(1).background(Re.auto())).resize(function(e,t){return new $e("crop",e,t)}(1,1).gravity((Ze=new ue("north_east"),new te(Ze)))).resize(function(e,t){return new Ue("fill",e,t)}().height("ih").width("iw")).delivery(Ge("auto")).delivery(Qe(_e()))},Xe="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",et={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},tt="?_a=",nt=function(){function e(e,t,n,r,i,a,s){var c=this;this.mimeType="video",this.mimeSubTypes=et,this.videoElement=e,this.originalVideo=t,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=o(t);l(e,t,r,this.htmlPluginState).then((function(){c.htmlPluginState.pluginEventSubscription.forEach((function(e){e()})),c.setVideoAttributes(i,a),c.handleSourceToVideo(u,n)}))}return e.prototype.handleSourceToVideo=function(e,t){var n=this;if(t)this.generateUserSources(e,t);else{["webm","mp4","ogv"].forEach((function(t){n.appendSourceTag(o(e),t)}))}},e.prototype.generateUserSources=function(e,t){var n=this;t.map((function(t){var r=t.type,i=t.codecs,a=t.transcode;return n.appendSourceTag(o(e).transcode(a),r,n.buildMimeType(r,i))}))},e.prototype.appendSourceTag=function(e,t,n){var r,i=document.createElement("source"),o=null===(r=this.videoOptions)||void 0===r?void 0:r.useFetchFormat;o&&e.format(t);var a=e.toURL().split(tt),s=a[1]?"".concat(tt).concat(a[1]):"",c=o?"":".".concat(t);i.src="".concat(a[0]).concat(c).concat(s),i.type=n||"video/".concat(et[t]||t),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(e,t){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return t&&(n+="; codecs="+(Array.isArray(t)?t.join(", "):t)),n},e.prototype.setVideoAttributes=function(e,t){var n;if(void 0===e&&(e={}),"auto"===t){var r=o(this.originalVideo);e.poster=r.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else t&&(e.poster=null===(n=t.toURL)||void 0===n?void 0:n.call(t));for(var i=0,a=Object.entries(e);i=t||n<0||d&&e-l>=o}function g(){var e=ht();if(m(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?pt(n,o-(e-l)):n}(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=ht(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return h(c);if(d)return s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=gt(t)||0,mt(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ft(gt(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},y.flush=function(){return void 0===s?a:v(ht())},y};function yt(){return"undefined"!==typeof window}function bt(e){return e instanceof HTMLImageElement}var wt={accessibility:!1,lazyload:!1,placeholder:!1,responsive:!1};function kt(e){var t=(void 0===e?{}:e).steps;return St.bind(null,t)}function St(e,t,n,r,i,o){return!yt()||(bt(t)?new Promise((function(s){r.cleanupCallbacks.push((function(){window.removeEventListener("resize",l),s("canceled")}));var c=u(i,{responsive:!0});n.addAction((new b).setActionTag("responsive"));var l,d=!function(e,t){return void 0===e&&(e=[]),e.reduce((function(e,t){var n,r=t.name;return a(a({},e),((n={})[function(e){return e.replace("bound ","").replace("Plugin","")}(r)]=!0,n))}),wt)[t]}(o,"placeholder");d?At(e,t,n,c):xt(e,t,n),r.pluginEventSubscription.push((function(){window.addEventListener("resize",l=vt((function(){At(e,t,n,c)}),100))})),s({responsive:!0})})):void 0)}function At(e,t,n,r){xt(e,t,n),t.src=n.toURL(r)}function xt(e,t,n){var r=t.parentElement.clientWidth;if("number"===typeof e){var i=e;r=Math.ceil(r/i)*i}else Array.isArray(e)&&(r=e.reduce((function(e,t){return Math.abs(t-r)pn.length&&pn.push(e)}function gn(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Vt:case $t:o=!0}}if(o)return n(r,e,""===t?"."+yn(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a0?u(w,--y):0,g--,10===b&&(g=1,m--),b}function x(){return b=y2||_(b)>3?"":" "}function P(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return C(e,N()+(t<6&&32==E()&&32==x()))}function j(e){for(;x();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&j(b);break;case 40:41===e&&j(e);break;case 92:x()}return y}function D(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+C(t,y-1)+"*"+o(47===e?e:x())}function R(e){for(;!_(E());)x();return C(e,y)}var L="-ms-",F="-moz-",z="-webkit-",B="comm",V="rule",$="decl",U="@keyframes";function q(e,t){for(var n="",r=p(e),i=0;i0&&f(F)-v&&h(b>32?K(F+";",r,n,v-1):K(c(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(L=W(F,t,n,m,g,i,d,O,I=[],j=[],v),a),123===_)if(0===g)H(F,t,L,L,I,a,v,d,j);else switch(99===y&&110===u(F,3)?100:y){case 100:case 108:case 109:case 115:H(e,L,L,r&&h(W(e,L,L,0,0,i,d,O,i,I=[],v),j),i,j,v,d,r?I:j);break;default:H(F,L,L,L,[""],j,0,d,j)}}m=g=b=0,k=C=1,O=F="",v=s;break;case 58:v=1+f(F),b=w;default:if(k<1)if(123==_)--k;else if(125==_&&0==k++&&125==A())continue;switch(F+=o(_),_*k){case 38:C=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*C,C=1;break;case 64:45===E()&&(F+=T(x())),y=E(),g=v=f(O=F+=R(N())),_++;break;case 45:45===w&&2==f(F)&&(k=0)}}return a}function W(e,t,n,r,o,a,l,u,f,h,m){for(var g=o-1,v=0===o?a:[""],y=p(v),b=0,w=0,S=0;b0?v[A]+" "+x:c(x,/&\f/g,v[A])))&&(f[S++]=E);return k(e,t,n,0===o?V:u,f,h,m)}function Z(e,t,n){return k(e,t,n,B,o(b),d(e,2,-2),0)}function K(e,t,n,r){return k(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!_(i);)x();return C(e,y)},J=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(_(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=x());return e}(O(e),t))},X=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,c=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?ne(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":-webkit-")+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===u(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+L+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+L+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+L+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case U:return q([S(e,{value:c(e.value,"@","@-webkit-")})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([S(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return q([S(e,{props:[c(t,/:(plac\w+)/,":-webkit-input-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,s={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return{name:l,styles:i,next:g}},b=!!i.useInsertionEffect&&i.useInsertionEffect,w=b||function(e){return e()},k=(b||r.useLayoutEffect,{}.hasOwnProperty),S=r.createContext("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);S.Provider;var A=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(S);return e(t,i,n)}))};var x=r.createContext({});var E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",N=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[E]=e,n},C=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return a(t,n,r),w((function(){return function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)})),null};var _=A((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[E],a=[i],s="";"string"===typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var c=y(a,void 0,r.useContext(x));s+=t.key+"-"+c.name;var l={};for(var u in e)k.call(e,u)&&"css"!==u&&u!==E&&(l[u]=e[u]);return l.ref=n,l.className=s,r.createElement(r.Fragment,null,r.createElement(C,{cache:t,serialized:c,isStringTag:"string"===typeof o}),r.createElement(o,l))})),O=(n(73463),function(e,t){var n=arguments;if(null==t||!k.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=_,o[1]=N(e,t);for(var a=2;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){s();var t=JSON.stringify(e);return o()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function s(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return s({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return s({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return s({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return s({caches:t}).clear()}))}}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function l(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===m.WithinHeaders?r:{}},queryParameters:function(){return e===m.WithinQueryParameters?r:{}}}}function u(e){var t=0;return e((function n(){return t++,new Promise((function(r){setTimeout((function(){r(e(n))}),Math.min(100*t,1e3))}))}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(n){return d(e.then((function(e){return Promise.all([t(e,n),e])})).then((function(e){return e[1]})))}})}function f(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function p(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var v={Read:1,Write:2,Any:3},y=1,b=2,w=3;function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function S(e){return"string"==typeof e?{protocol:"https",url:e,accept:v.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||v.Any}}var A="DELETE",x="GET",E="POST",N="PUT";function C(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(k(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===y||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===w&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return S(e)})):t}}))}function _(e,t,r,i){var a=[],s=function(e,t){if(e.method!==x&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),c=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),l=r.method,u=r.method!==x?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),f=0,p=function t(n,o){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:P(a)};var p={data:s,headers:c,method:l,url:T(u,r.path,d),connectTimeout:o(f,e.timeouts.connect),responseTimeout:o(f,i.timeout)},h=function(e){var t={request:p,response:e,host:u,triesLeft:n.length};return a.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",j(i)),e.hostsCache.set(u,k(u,r.isTimedOut?w:b))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,P(a))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return C(e.hostsCache,t).then((function(e){return p(o(e.statelessHosts).reverse(),e.getTimeout)}))}function O(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,c=e.userAgent,l=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:a,timeouts:s,userAgent:c,headers:e.headers,queryParameters:u,hosts:l.map((function(e){return S(e)})),read:function(e,t){var n=g(t,d.timeouts.read),r=function(){return _(d,d.hosts.filter((function(e){return 0!=(e.accept&v.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return _(d,d.hosts.filter((function(e){return 0!=(e.accept&v.Write)})),e,g(t,d.timeouts.write))}};return d}function I(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function T(e,t,n){var r=M(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function M(e){return Object.keys(e).map((function(t){return h("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function P(e){return e.map((function(e){return j(e)}))}function j(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var D=function(e){return function(t,n){return e.transporter.write({method:E,path:"2/abtests",data:t},n)}},R=function(e){return function(t,n){return e.transporter.write({method:A,path:h("2/abtests/%s",t)},n)}},L=function(e){return function(t,n){return e.transporter.read({method:x,path:h("2/abtests/%s",t)},n)}},F=function(e){return function(t){return e.transporter.read({method:x,path:"2/abtests"},t)}},z=function(e){return function(t,n){return e.transporter.write({method:E,path:h("2/abtests/%s/stop",t)},n)}},B=function(e){return function(t){return e.transporter.read({method:x,path:"1/strategies/personalization"},t)}},V=function(e){return function(t,n){return e.transporter.write({method:E,path:"1/strategies/personalization",data:t},n)}};function $(e){return function t(n){return e.request(n).then((function(r){if(void 0!==e.batch&&e.batch(r.hits),!e.shouldStop(r))return r.cursor?t({cursor:r.cursor}):t({page:(n.page||0)+1})}))}({})}var U=function(e){return function(t,i){var o=i||{},a=o.queryParameters,s=r(o,["queryParameters"]),c=n({acl:t},void 0!==a?{queryParameters:a}:{});return d(e.transporter.write({method:E,path:"1/keys",data:c},s),(function(t,n){return u((function(r){return ee(e)(t.key,n).catch((function(e){if(404!==e.status)throw e;return r()}))}))}))}},q=function(e){return function(t,n,r){var i=g(r);return i.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:E,path:"1/clusters/mapping",data:{cluster:n}},i)}},Q=function(e){return function(t,n,r){return e.transporter.write({method:E,path:"1/clusters/mapping/batch",data:{users:t,cluster:n}},r)}},G=function(e){return function(t,n){return d(e.transporter.write({method:E,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},n),(function(t,n){return Ee(e)(t.taskID,n)}))}},H=function(e){return function(t,n,r){return d(e.transporter.write({method:E,path:h("1/indexes/%s/operation",t),data:{operation:"copy",destination:n}},r),(function(n,r){return se(e)(t,{methods:{waitTask:dt}}).waitTask(n.taskID,r)}))}},W=function(e){return function(t,r,i){return H(e)(t,r,n(n({},i),{},{scope:[pt.Rules]}))}},Z=function(e){return function(t,r,i){return H(e)(t,r,n(n({},i),{},{scope:[pt.Settings]}))}},K=function(e){return function(t,r,i){return H(e)(t,r,n(n({},i),{},{scope:[pt.Synonyms]}))}},Y=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},J=function(e){return function(t,n){return d(e.transporter.write({method:A,path:h("1/keys/%s",t)},n),(function(n,r){return u((function(n){return ee(e)(t,r).then(n).catch((function(e){if(404!==e.status)throw e}))}))}))}},X=function(e){return function(t,n,r){var i=n.map((function(e){return{action:"deleteEntry",body:{objectID:e}}}));return d(e.transporter.write({method:E,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},r),(function(t,n){return Ee(e)(t.taskID,n)}))}},ee=function(e){return function(t,n){return e.transporter.read({method:x,path:h("1/keys/%s",t)},n)}},te=function(e){return function(t,n){return e.transporter.read({method:x,path:h("1/task/%s",t.toString())},n)}},ne=function(e){return function(t){return e.transporter.read({method:x,path:"/1/dictionaries/*/settings"},t)}},re=function(e){return function(t){return e.transporter.read({method:x,path:"1/logs"},t)}},ie=function(e){return function(t){return e.transporter.read({method:x,path:"1/clusters/mapping/top"},t)}},oe=function(e){return function(t,n){return e.transporter.read({method:x,path:h("1/clusters/mapping/%s",t)},n)}},ae=function(e){return function(t){var n=t||{},i=n.retrieveMappings,o=r(n,["retrieveMappings"]);return!0===i&&(o.getClusters=!0),e.transporter.read({method:x,path:"1/clusters/mapping/pending"},o)}},se=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},ce=function(e){return function(t){return e.transporter.read({method:x,path:"1/keys"},t)}},le=function(e){return function(t){return e.transporter.read({method:x,path:"1/clusters"},t)}},ue=function(e){return function(t){return e.transporter.read({method:x,path:"1/indexes"},t)}},de=function(e){return function(t){return e.transporter.read({method:x,path:"1/clusters/mapping"},t)}},fe=function(e){return function(t,n,r){return d(e.transporter.write({method:E,path:h("1/indexes/%s/operation",t),data:{operation:"move",destination:n}},r),(function(n,r){return se(e)(t,{methods:{waitTask:dt}}).waitTask(n.taskID,r)}))}},pe=function(e){return function(t,n){return d(e.transporter.write({method:E,path:"1/indexes/*/batch",data:{requests:t}},n),(function(t,n){return Promise.all(Object.keys(t.taskID).map((function(r){return se(e)(r,{methods:{waitTask:dt}}).waitTask(t.taskID[r],n)})))}))}},he=function(e){return function(t,n){return e.transporter.read({method:E,path:"1/indexes/*/objects",data:{requests:t}},n)}},me=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:M(e.params||{})})}));return e.transporter.read({method:E,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},ge=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,a=o.facetName,s=o.facetQuery,c=r(o,["facetName","facetQuery"]);return se(e)(t.indexName,{methods:{searchForFacetValues:st}}).searchForFacetValues(a,s,n(n({},i),c))})))}},ve=function(e){return function(t,n){var r=g(n);return r.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:A,path:"1/clusters/mapping"},r)}},ye=function(e){return function(t,n,r){var i=n.map((function(e){return{action:"addEntry",body:e}}));return d(e.transporter.write({method:E,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:i}},r),(function(t,n){return Ee(e)(t.taskID,n)}))}},be=function(e){return function(t,n){return d(e.transporter.write({method:E,path:h("1/keys/%s/restore",t)},n),(function(n,r){return u((function(n){return ee(e)(t,r).catch((function(e){if(404!==e.status)throw e;return n()}))}))}))}},we=function(e){return function(t,n,r){var i=n.map((function(e){return{action:"addEntry",body:e}}));return d(e.transporter.write({method:E,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},r),(function(t,n){return Ee(e)(t.taskID,n)}))}},ke=function(e){return function(t,n,r){return e.transporter.read({method:E,path:h("/1/dictionaries/%s/search",t),data:{query:n},cacheable:!0},r)}},Se=function(e){return function(t,n){return e.transporter.read({method:E,path:"1/clusters/mapping/search",data:{query:t}},n)}},Ae=function(e){return function(t,n){return d(e.transporter.write({method:N,path:"/1/dictionaries/*/settings",data:t},n),(function(t,n){return Ee(e)(t.taskID,n)}))}},xe=function(e){return function(t,n){var i=Object.assign({},n),o=n||{},a=o.queryParameters,s=r(o,["queryParameters"]),c=a?{queryParameters:a}:{},l=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return d(e.transporter.write({method:N,path:h("1/keys/%s",t),data:c},s),(function(n,r){return u((function(n){return ee(e)(t,r).then((function(e){return function(e){return Object.keys(i).filter((function(e){return-1!==l.indexOf(e)})).every((function(t){if(Array.isArray(e[t])&&Array.isArray(i[t])){var n=e[t];return n.length===i[t].length&&n.every((function(e,n){return e===i[t][n]}))}return e[t]===i[t]}))}(e)?Promise.resolve():n()}))}))}))}},Ee=function(e){return function(t,n){return u((function(r){return te(e)(t,n).then((function(e){return"published"!==e.status?r():void 0}))}))}},Ne=function(e){return function(t,n){return d(e.transporter.write({method:E,path:h("1/indexes/%s/batch",e.indexName),data:{requests:t}},n),(function(t,n){return dt(e)(t.taskID,n)}))}},Ce=function(e){return function(t){return $(n(n({shouldStop:function(e){return void 0===e.cursor}},t),{},{request:function(n){return e.transporter.read({method:E,path:h("1/indexes/%s/browse",e.indexName),data:n},t)}}))}},_e=function(e){return function(t){var r=n({hitsPerPage:1e3},t);return $(n(n({shouldStop:function(e){return e.hits.length0&&void 0!==arguments[0]?arguments[0]:0;i=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()}))}()}},Ue=function(e){return function(t,n){return e.transporter.read({method:x,path:h("1/indexes/%s/%s",e.indexName,t)},n)}},qe=function(){return function(e,t){for(var n=0,r=Object.entries(e.hits);nn.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=gt,{debug:function(e,t){return ht>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return mt>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:s({caches:[a({key:"".concat("4.23.2","-").concat(e)}),c()]}),userAgent:I("4.23.2").add({segment:"Browser"})},u=n(n({},o),r),d=function(){return function(e){return function(e){var t=e.region||"us",r=l(m.WithinHeaders,e.appId,e.apiKey),i=O(n(n({hosts:[{url:"personalization.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return p({appId:e.appId,transporter:i},e.methods)}(n(n(n({},o),e),{},{methods:{getPersonalizationStrategy:B,setPersonalizationStrategy:V}}))}};return function(e){var t=e.appId,r=l(void 0!==e.authMode?e.authMode:m.WithinHeaders,t,e.apiKey),i=O(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:v.Read},{url:"".concat(t,".algolia.net"),accept:v.Write}].concat(f([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return p({transporter:i,appId:t,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},e.methods)}(n(n({},u),{},{methods:{search:me,searchForFacetValues:ge,multipleBatch:pe,multipleGetObjects:he,multipleQueries:me,copyIndex:H,copySettings:Z,copySynonyms:K,copyRules:W,moveIndex:fe,listIndices:ue,getLogs:re,listClusters:le,multipleSearchForFacetValues:ge,getApiKey:ee,addApiKey:U,listApiKeys:ce,updateApiKey:xe,deleteApiKey:J,restoreApiKey:be,assignUserID:q,assignUserIDs:Q,getUserID:oe,searchUserIDs:Se,listUserIDs:de,getTopUserIDs:ie,removeUserID:ve,hasPendingMappings:ae,clearDictionaryEntries:G,deleteDictionaryEntries:X,getDictionarySettings:ne,getAppTask:te,replaceDictionaryEntries:ye,saveDictionaryEntries:we,searchDictionaryEntries:ke,setDictionarySettings:Ae,waitAppTask:Ee,customRequest:Y,initIndex:function(e){return function(t){return se(e)(t,{methods:{batch:Ne,delete:De,findAnswers:Ve,getObject:Ue,getObjects:Qe,saveObject:et,saveObjects:tt,search:at,searchForFacetValues:st,waitTask:dt,setSettings:ut,getSettings:He,partialUpdateObject:Ze,partialUpdateObjects:Ke,deleteObject:Re,deleteObjects:Le,deleteBy:je,clearObjects:Te,browseObjects:Ce,getObjectPosition:qe,findObject:$e,exists:Be,saveSynonym:it,saveSynonyms:ot,getSynonym:We,searchSynonyms:lt,browseSynonyms:Oe,deleteSynonym:ze,clearSynonyms:Pe,replaceAllObjects:Ye,replaceAllSynonyms:Xe,searchRules:ct,getRule:Ge,deleteRule:Fe,saveRule:nt,saveRules:rt,replaceAllRules:Je,browseRules:_e,clearRules:Me}})}},initAnalytics:function(){return function(e){return function(e){var t=e.region||"us",r=l(m.WithinHeaders,e.appId,e.apiKey),i=O(n(n({hosts:[{url:"analytics.".concat(t,".algolia.com")}]},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return p({appId:e.appId,transporter:i},e.methods)}(n(n(n({},o),e),{},{methods:{addABTest:D,getABTest:L,getABTests:F,stopABTest:z,deleteABTest:R}}))}},initPersonalization:d,initRecommendation:function(){return function(e){return u.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),d()(e)}},getRecommendations:vt,getFrequentlyBoughtTogether:yt,getLookingSimilar:St,getRecommendedForYou:At,getRelatedProducts:bt,getTrendingFacets:wt,getTrendingItems:kt}}))}return xt.version="4.23.2",xt}()},95766:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=c(e),a=o[0],s=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";const r=n(95766),i=n(62333),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||K(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n);for(let c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function D(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){P(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J((function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);P(this,e,t,n,r-1,-r)}let i=n-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+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J((function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function $(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!==typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Q=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function W(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},62680:function(e,t,n){"use strict";var r=n(67286),i=n(89429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},89429:function(e,t,n){"use strict";var r=n(4090),i=n(67286),o=n(47669),a=n(5408),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(c,s),u=n(70999),d=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=l(r,c,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},92469:function(e,t,n){var r=n(48834).Buffer;n(34406);self,e.exports=function(){var e={343:function(e,t,n){"use strict";var r=n(897),i=n(179),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},179:function(e,t,n){"use strict";var r=n(499),i=n(897),o=n(973),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(c,s),u=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=l(r,c,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},20:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},780:function(e,t,n){"use strict";var r=n(889),i=n(735),o=n(20);e.exports={formats:o,parse:i,stringify:r}},735:function(e,t,n){"use strict";var r=n(285),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=o(g)?[g]:g),i.call(l,m)?l[m]=r.combine(l[m],g):l[m]=g}return l}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p0?x.join(",")||null:void 0}];else if(c(f))O=f;else{var T=Object.keys(x);O=m?T.sort(m):T}for(var M=a&&c(x)&&1===x.length?n+"[]":n,P=0;P0?k+w:""}},285:function(e,t,n){"use strict";var r=n(20),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,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},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 n=[],r=0;r3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!c&&c(e,t);if(o)o(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||l))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},792:function(e,t,n){e.exports=function(){"use strict";var e=Function.prototype.toString,t=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,c=Object.prototype,l=c.hasOwnProperty,u=c.propertyIsEnumerable,d="function"==typeof a,f="function"==typeof WeakMap,p=function(){if(f)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),h=function(n,r){var i=n.__proto__||s(n);if(!i)return t(null);var o=i.constructor;if(o===r.Object)return i===r.Object.prototype?{}:t(i);if(~e.call(o).indexOf("[native code]"))try{return new o}catch(e){}return t(i)},m=function(e,t,n,r){var i=h(e,t);for(var o in r.set(e,i),e)l.call(e,o)&&(i[o]=n(e[o],r));if(d)for(var s=a(e),c=0,f=s.length,p=void 0;c1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,C,(function(e,t,n,i){r[r.length]=n?x(i,_,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(r=d[0],A(n,S([0,1],d)));for(var f=1,p=!0;f=n.length){var y=c(l,h);l=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[h]}else p=k(l,h),l=l[h];p&&!u&&(g[s]=l)}}return l}},399:function(e,t,n){"use strict";var r=n(897)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},900:function(e,t,n){"use strict";var r=n(897)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},372:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},923:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(361);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},361: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"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},313:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(499);e.exports=o.call(r,i)},78:function(e,t){function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(i,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,i):r.push(i),~n.indexOf(o)&&(o=t.call(this,i,o))}else n.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,r,i){return JSON.stringify(e,n(t,i),r)}).getSerialize=n},501:function(e){var t,n,r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,s=o.call(Object),c=i.toString,l=(t=Object.getPrototypeOf,n=Object,function(e){return t(n(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=c.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=l(e);if(null===t)return!0;var n=a.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&o.call(n)==s}},567:function(e){var t=Object.prototype.toString,n=Array.isArray;e.exports=function(e){return"string"==typeof e||!n(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},527:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,k=String.prototype.toLowerCase,S=RegExp.prototype.test,A=Array.prototype.concat,x=Array.prototype.join,E=Array.prototype.slice,N=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-N(-e):N(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var D=n(966),R=D.custom,L=$(R)?R:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function z(e){return b.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==Q(e)||T&&"object"==typeof e&&T in e)}function V(e){return!("[object RegExp]"!==Q(e)||T&&"object"==typeof e&&T in e)}function $(e){if(I)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}e.exports=function e(t,r,i,s){var c=r||{};if(q(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.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 H(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?j(t,S):S}if("bigint"==typeof t){var N=String(t)+"n";return w?j(t,N):N}var _=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=_&&_>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var R,U=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(c,i);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function W(t,n,r){if(n&&(s=E.call(s)).push(n),r){var o={depth:c.depth};return q(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"==typeof t&&!V(t)){var ee=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,W);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+x.call(te,", ")+" }":"")}if($(t)){var ne=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||I?ne:Z(ne)}if((R=t)&&"object"==typeof R&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var re="<"+k.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe"}if(B(t)){if(0===t.length)return"[]";var ae=X(t,W);return U&&!function(e){for(var t=0;t=0)return!1;return!0}(ae)?"["+J(ae,U)+"]":"[ "+x.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==Q(e)||T&&"object"==typeof e&&T in e)}(t)){var se=X(t,W);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(se,", ")+" }":"{ ["+String(t)+"] "+x.call(A.call("[cause]: "+W(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(L&&"function"==typeof t[L]&&D)return D(t,{depth:_-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(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}(t)){var ce=[];return a&&a.call(t,(function(e,n){ce.push(W(n,t,!0)+" => "+W(e,t))})),Y("Map",o.call(t),ce,U)}if(function(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}(t)){var le=[];return u&&u.call(t,(function(e){le.push(W(e,t))})),Y("Set",l.call(t),le,U)}if(function(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 WeakMap}catch(e){}return!1}(t))return K("WeakMap");if(function(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 WeakSet}catch(e){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return K("WeakRef");if(function(e){return!("[object Number]"!==Q(e)||T&&"object"==typeof e&&T in e)}(t))return Z(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return Z(W(C.call(t)));if(function(e){return!("[object Boolean]"!==Q(e)||T&&"object"==typeof e&&T in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==Q(e)||T&&"object"==typeof e&&T in e)}(t))return Z(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==Q(e)||T&&"object"==typeof e&&T in e)}(t)&&!V(t)){var ue=X(t,W),de=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&T&&Object(t)===t&&T in t?y.call(Q(t),8,-1):fe?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+x.call(A.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":U?he+"{"+J(ue,U)+"}":he+"{ "+x.call(ue,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return U.call(e,t)}function Q(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return H(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):x.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var i=0;i{if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw new TypeError("Expected `interval` to be a finite number");const i=new Map;let o=0,a=0;const s=[],c=r?function(){const t=Date.now();if(s.length=r?(s.push(t),0):(s.push(r),r-t)}:function(){const t=Date.now();return t-o>n?(a=1,o=t,0):(a{const n=function(...t){if(!n.isEnabled)return(async()=>e.apply(this,t))();let r;return new Promise(((n,o)=>{r=setTimeout((()=>{n(e.apply(this,t)),i.delete(r)}),c()),i.set(r,o)}))};return n.abort=()=>{for(const e of i.keys())clearTimeout(e),i.get(e)(new t);i.clear(),s.splice(0,s.length)},n.isEnabled=!0,n}},e.exports.AbortError=t},973:function(e,t,n){"use strict";var r=n(897),i=n(381),o=n(900)(),a=n(399),s=r("%TypeError%"),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},588:function(e,t,n){"use strict";var r=n(897),i=n(343),o=n(527),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(c){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(c){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,i)):c?(t||(t=new c),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},966:function(){}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,i),o.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";i.r(o),i.d(o,{createClient:function(){return Zt},createGlobalOptions:function(){return xt}});var e={};function t(e,t){return function(){return e.apply(t,arguments)}}i.r(e),i.d(e,{hasBrowserEnv:function(){return ie},hasStandardBrowserEnv:function(){return oe},hasStandardBrowserWebWorkerEnv:function(){return se}});const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,c=(l=Object.create(null),e=>{const t=a.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:f}=Array,p=d("undefined"),h=u("ArrayBuffer"),m=d("string"),g=d("function"),v=d("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==c(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},w=u("Date"),k=u("File"),S=u("Blob"),A=u("FileList"),x=u("URLSearchParams");function E(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),f(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,_=e=>!p(e)&&e!==C,O=(I="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>I&&e instanceof I);var I;const T=u("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P=u("RegExp"),j=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};E(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},D="abcdefghijklmnopqrstuvwxyz",R="0123456789",L={DIGIT:R,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+R},F=u("AsyncFunction");var z={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isUndefined:p,isDate:w,isFile:k,isBlob:S,isRegExp:P,isFunction:g,isStream:e=>y(e)&&g(e.pipe),isURLSearchParams:x,isTypedArray:O,isFileList:A,forEach:E,merge:function e(){const{caseless:t}=_(this)&&this||{},n={},r=(r,i)=>{const o=t&&N(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):f(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i(E(n,((n,i)=>{r&&g(n)?e[i]=t(n,r):e[i]=n}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:T,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:j,freezeMethods:e=>{j(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:N,global:C,isContextDefined:_,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=f(e)?[]:{};return E(e,((e,t)=>{const o=n(e,r+1);!p(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch)};function B(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}z.inherits(B,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V=B.prototype,$={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$[e]={value:e}})),Object.defineProperties(B,$),Object.defineProperty(V,"isAxiosError",{value:!0}),B.from=(e,t,n,r,i,o)=>{const a=Object.create(V);return z.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),B.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var U=B;function q(e){return z.isPlainObject(e)||z.isArray(e)}function Q(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,n){return e?e.concat(t).map((function(e,t){return e=Q(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const H=z.toFlatObject(z,{},null,(function(e){return/^is[A-Z]/.test(e)}));var W=function(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!z.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,a=n.dots,s=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(z.isDate(e))return e.toISOString();if(!c&&z.isBlob(e))throw new U("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(e)||z.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):r.from(e):e}function u(e,n,r){let o=e;if(e&&!r&&"object"==typeof e)if(z.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(z.isArray(e)&&function(e){return z.isArray(e)&&!e.some(q)}(e)||(z.isFileList(e)||z.endsWith(n,"[]"))&&(o=z.toArray(e)))return n=Q(n),o.forEach((function(e,r){!z.isUndefined(e)&&null!==e&&t.append(!0===s?G([n],r,a):null===s?n:n+"[]",l(e))})),!1;return!!q(e)||(t.append(G(r,n,a),l(e)),!1)}const d=[],f=Object.assign(H,{defaultVisitor:u,convertValue:l,isVisitable:q});if(!z.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!z.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),z.forEach(n,(function(n,i){!0===(!(z.isUndefined(n)||null===n)&&o.call(t,n,z.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function Z(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function K(e,t){this._pairs=[],e&&W(e,this,t)}const Y=K.prototype;Y.append=function(e,t){this._pairs.push([e,t])},Y.toString=function(e){const t=e?function(t){return e.call(this,t,Z)}:Z;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var J=K;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,n){if(!t)return e;const r=n&&n.encode||X,i=n&&n.serialize;let o;if(o=i?i(t,n):z.isURLSearchParams(t)?t.toString():new J(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var te=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){z.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:J,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ie="undefined"!=typeof window&&"undefined"!=typeof document,oe=(ae="undefined"!=typeof navigator&&navigator.product,ie&&["ReactNative","NativeScript","NS"].indexOf(ae)<0);var ae;const se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ce={...e,...re},le=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&z.isArray(r)?r.length:o,s?(z.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&z.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&z.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ue={transitional:ne,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=z.isObject(e);if(i&&z.isHTMLForm(e)&&(e=new FormData(e)),z.isFormData(e))return r?JSON.stringify(le(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return W(e,new ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ce.isNode&&z.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=z.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return W(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(z.isString(e))try{return(0,JSON.parse)(e),z.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&z.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw U.from(e,U.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:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],(e=>{ue.headers[e]={}}));var de=ue;const fe=z.toObjectSet(["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"]),pe=Symbol("internals");function he(e){return e&&String(e).trim().toLowerCase()}function me(e){return!1===e||null==e?e:z.isArray(e)?e.map(me):String(e)}function ge(e,t,n,r,i){return z.isFunction(r)?r.call(this,t,n):(i&&(t=n),z.isString(t)?z.isString(r)?-1!==t.indexOf(r):z.isRegExp(r)?r.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=he(t);if(!i)throw new Error("header name must be a non-empty string");const o=z.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=me(e))}const o=(e,t)=>z.forEach(e,((e,n)=>i(e,n,t)));return z.isPlainObject(e)||e instanceof this.constructor?o(e,t):z.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&fe[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=he(e)){const n=z.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(z.isFunction(t))return t.call(this,e,n);if(z.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=he(e)){const n=z.findKey(this,e);return!(!n||void 0===this[n]||t&&!ge(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=he(e)){const i=z.findKey(n,e);!i||t&&!ge(0,n[i],i,t)||(delete n[i],r=!0)}}return z.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!ge(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return z.forEach(this,((r,i)=>{const o=z.findKey(n,i);if(o)return t[o]=me(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=me(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return z.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&z.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[pe]=this[pe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=he(e);t[r]||(function(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return z.isArray(e)?e.forEach(r):r(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(ve.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),z.freezeMethods(ve);var ye=ve;function be(e,t){const n=this||de,r=t||n,i=ye.from(r.headers);let o=r.data;return z.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function we(e){return!(!e||!e.__CANCEL__)}function ke(e,t,n){U.call(this,null==e?"canceled":e,U.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(ke,U,{__CANCEL__:!0});var Se=ke,Ae=ce.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(r)&&a.push("path="+r),z.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Ee=ce.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=z.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Ne(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];i||(i=c),n[o]=s,r[o]=c;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Ce={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=ye.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(z.isFormData(r))if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const d=xe(e.baseURL,e.url);function f(){if(!u)return;const r=ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),ee(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new U("Request aborted",U.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new U("Network Error",U.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ne;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new U(t,r.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,e,u)),u=null},ce.hasStandardBrowserEnv&&(c&&z.isFunction(c)&&(c=c(e)),c||!1!==c&&Ee(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Ae.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&z.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),z.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Ne(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ne(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(n(!t||t.type?new Se(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===ce.protocols.indexOf(p)?n(new U("Unsupported protocol "+p+":",U.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};z.forEach(Ce,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _e=e=>`- ${e}`,Oe=e=>z.isFunction(e)||null===e||!1===e;var Ie=e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(_e).join("\n"):" "+_e(e[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function Me(e){return Te(e),e.headers=ye.from(e.headers),e.data=be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ie(e.adapter||de.adapter)(e).then((function(t){return Te(e),t.data=be.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return we(t)||(Te(e),t&&t.response&&(t.response.data=be.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}const Pe=e=>e instanceof ye?{...e}:e;function je(e,t){t=t||{};const n={};function r(e,t,n){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:n},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function i(e,t,n){return z.isUndefined(t)?z.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!z.isUndefined(t))return r(void 0,t)}function a(e,t){return z.isUndefined(t)?z.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Pe(e),Pe(t),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=c[r]||i,a=o(e[r],t[r],r);z.isUndefined(a)&&o!==s||(n[r]=a)})),n}const De={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Re={};De.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new U(r(i," has been removed"+(t?" in "+t:"")),U.ERR_DEPRECATED);return t&&!Re[i]&&(Re[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Le={assertOptions:function(e,t,n){if("object"!=typeof e)throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new U("option "+o+" must be "+n,U.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new U("Unknown option "+o,U.ERR_BAD_OPTION)}},validators:De};const Fe=Le.validators;class ze{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Le.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),null!=r&&(z.isFunction(r)?t.paramsSerializer={serialize:r}:Le.assertOptions(r,{encode:Fe.function,serialize:Fe.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&z.merge(i.common,i[t.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=ye.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Me.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Se(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ve((function(t){e=t})),cancel:e}}}var $e=Ve;const Ue={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ue).forEach((([e,t])=>{Ue[t]=e}));var qe=Ue;const Qe=function e(n){const r=new Be(n),i=t(Be.prototype.request,r);return z.extend(i,Be.prototype,r,{allOwnKeys:!0}),z.extend(i,r,null,{allOwnKeys:!0}),i.create=function(t){return e(je(n,t))},i}(de);Qe.Axios=Be,Qe.CanceledError=Se,Qe.CancelToken=$e,Qe.isCancel=we,Qe.VERSION="1.6.8",Qe.toFormData=W,Qe.AxiosError=U,Qe.Cancel=Qe.CanceledError,Qe.all=function(e){return Promise.all(e)},Qe.spread=function(e){return function(t){return e.apply(null,t)}},Qe.isAxiosError=function(e){return z.isObject(e)&&!0===e.isAxiosError},Qe.mergeConfig=je,Qe.AxiosHeaders=ye,Qe.formToJSON=e=>le(z.isHTMLForm(e)?new FormData(e):e),Qe.getAdapter=Ie,Qe.HttpStatusCode=qe,Qe.default=Qe;var Ge=Qe,He=i(792),We=i.n(He),Ze=i(780),Ke=i.n(Ze),Ye=i(567),Je=i.n(Ye),Xe=i(370),et=i.n(Xe),tt=i(501),nt=i.n(tt);function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},at.apply(this,arguments)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}function ct(e,t){if(e){if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:7,n=t;if(pt.test(e)){var r,i=null===(r=e.match(pt))||void 0===r?void 0:r.groups;if(i&&i.value){var o=parseInt(i.value)/100;n=Math.round(t*o)}}return Math.min(30,Math.max(1,n))}function mt(e,t){return t("info","Throttle request to ".concat(e,"/s")),et()({limit:e,interval:1e3,strict:!1})}var gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=e.defaults.logHandler,r=void 0===n?ut:n,i=Je()(t)?ht(t):ht("auto",t),o=mt(i,r),a=!1,s=e.interceptors.request.use((function(e){return o((function(){return e}))()}),(function(e){return Promise.reject(e)})),c=e.interceptors.response.use((function(n){if(!a&&Je()(t)&&("auto"===t||pt.test(t))&&n.headers&&n.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(n.headers["x-contentful-ratelimit-second-limit"]),l=ht(t,c);l!==i&&(s&&e.interceptors.request.eject(s),i=l,o=mt(l,r),s=e.interceptors.request.use((function(e){return o((function(){return e}))()}),(function(e){return Promise.reject(e)}))),a=!0}return n}),(function(e){return Promise.reject(e)}));return function(){e.interceptors.request.eject(s),e.interceptors.response.eject(c)}},vt=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function yt(e,t){var n=it(it({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var n=[t.name,t.message].filter((function(e){return e})).join(" - ");return console.error("[error] ".concat(n)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824}),t);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var i,o,a=n.insecure?"http":"https",s=n.space?"".concat(n.space,"/"):"",c=n.defaultHostname,l=n.insecure?80:443;if(n.host&&vt.test(n.host)){var u=n.host.split(":");if(2===u.length){var d=(o=2,function(e){if(Array.isArray(e))return e}(i=u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(i,o)||ct(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());c=d[0],l=d[1]}else c=u[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var f=t.baseURL||"".concat(a,"://").concat(c,":").concat(l).concat(n.basePath,"/spaces/").concat(s);n.headers.Authorization||"function"==typeof n.accessToken||(n.headers.Authorization="Bearer "+n.accessToken);var p={baseURL:f,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,maxBodyLength:n.maxBodyLength,paramsSerializer:{serialize:function(e){return Ke().stringify(e)}},logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},h=e.create(p);return h.httpClientParams=t,h.cloneWithNewParams=function(n){return yt(e,it(it({},We()(t)),n))},n.onBeforeRequest&&h.interceptors.request.use(n.onBeforeRequest),"function"==typeof n.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((function(t){return e.headers.set("Authorization","Bearer ".concat(t)),e}))}))}(h,n.accessToken),n.throttle&>(h,n.throttle),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,r=n.responseLogger,i=void 0===r?ut:r,o=n.requestLogger,a=void 0===o?ut:o;e.interceptors.request.use((function(e){return a(e),e}),(function(e){return a(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return i(e),e}),(function(n){var r=n.response,o=n.config;if(i(n),!o||!e.defaults.retryOnError)return Promise.reject(n);var a=o.attempts||1;if(a>t)return n.attempts=o.attempts,Promise.reject(n);var s=null,c=ft(a);return r?r.status>=500&&r.status<600?s="Server ".concat(r.status):429===r.status&&(s="Rate limit",r.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(c=r.headers["x-contentful-ratelimit-reset"])):s="Connection",s?(c=Math.floor(1e3*c+200*Math.random()+500),e.defaults.logHandler("warning","".concat(s," error occurred. Waiting for ").concat(c," ms before retrying...")),o.attempts=a+1,delete o.httpAgent,delete o.httpsAgent,dt(c).then((function(){return e(o)}))):Promise.reject(n)}))}(h,n.retryLimit),n.onError&&h.interceptors.response.use((function(e){return e}),n.onError),h}function bt(e){var t=e.query,n={};return delete t.resolveLinks,n.params=We()(t),n}function wt(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ct(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(Object.getOwnPropertyNames(e));try{for(n.s();!(t=n.n()).done;){var r=e[t.value];r&&"object"===ot(r)&&wt(r)}}catch(e){n.e(e)}finally{n.f()}return Object.freeze(e)}function kt(){var e=window;if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(n)?"macOS":-1!==["iPhone","iPad","iPod"].indexOf(n)?"iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(n)?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function St(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return We()(this)}})}function At(e){var t,n=e.config,r=e.response;if(n&&n.headers&&n.headers.Authorization){var i="...".concat(n.headers.Authorization.toString().substr(-5));n.headers.Authorization="Bearer ".concat(i)}if(!nt()(r)||!nt()(n))throw e;var o,a=null==r?void 0:r.data,s={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};n&&nt()(n)&&(s.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),a&&"object"===ot(a)&&("requestId"in a&&(s.requestId=a.requestId||"UNKNOWN"),"message"in a&&(s.message=a.message||""),"details"in a&&(s.details=a.details||{}),t=null===(o=a.sys)||void 0===o?void 0:o.id);var c=new Error;c.name=t&&"Unknown"!==t?t:"".concat(null==r?void 0:r.status," ").concat(null==r?void 0:r.statusText);try{c.message=JSON.stringify(s,null," ")}catch(e){var l;c.message=null!==(l=null==s?void 0:s.message)&&void 0!==l?l:""}throw c}function xt(e){return function(t){return Object.assign({},e,t)}}var Et="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};function Nt(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t({sys:{type:"Link",linkType:"Entry",id:t.sys.id,circular:!0}})))}})}async function Dt(e,t,n){if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t.content_type&&!t.type)t.type="Entry";else if(t.content_type&&t.type&&"Entry"!==t.type)throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const{withoutLinkResolution:r,withoutUnresolvableLinks:i,paginate:o}={withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0,...n},a=await Rt(e,[],t,{paginate:o});r||(a.items=Tt(a,{removeUnresolved:i,itemEntryPoints:["fields"]}));const s=function(e){const t=e=>(t,n)=>(n.sys.type===e&&t.push(St(n)),t);return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}(a.items);return a.nextSyncToken&&(s.nextSyncToken=a.nextSyncToken),a.nextPageToken&&(s.nextPageToken=a.nextPageToken),wt((c=jt(St(s))).sys||{}),c;var c}async function Rt(e,t,n,{paginate:r}){const i=(o=n).nextPageToken?{sync_token:o.nextPageToken}:o.nextSyncToken?{sync_token:o.nextSyncToken}:o.sync_token?{sync_token:o.sync_token}:o;var o;const a=(await e.get("sync",bt({query:i}))).data||{};return t=t.concat(a.items||[]),a.nextPageUrl?r?(delete i.initial,i.sync_token=Lt(a.nextPageUrl),Rt(e,t,i,{paginate:r})):{items:t,nextPageToken:Lt(a.nextPageUrl)}:a.nextSyncUrl?{items:t,nextSyncToken:Lt(a.nextSyncUrl)}:{items:[]}}function Lt(e){const t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function Ft(e){const t={};let n=!1;for(const r in e)Array.isArray(e[r])&&(t[r]=e[r].join(","),n=!0);return n?{...e,...t}:e}function zt(e){if(!e.select)return e;const t=Array.isArray(e.select)?e.select:e.select.split(",").map((e=>e.trim())),n=new Set(t);return n.has("sys")?e:(n.add("sys.id"),n.add("sys.type"),{...e,select:[...n].join(",")})}function Bt(e,{resolveLinks:t,removeUnresolved:n}){const r=jt(e);return t&&(r.items=Tt(r,{removeUnresolved:n,itemEntryPoints:["fields"]})),r}class Vt extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name="ValidationError"}}function $t(e,t){t?function(e){if(e.locale)throw new Vt("locale","The `locale` parameter is not allowed")}(e):function(e){if("*"===e.locale)throw new Vt("locale","The use of locale='*' is no longer supported.To fetch an entry in all existing locales, \n use client.withAllLocales instead of the locale='*' parameter.")}(e)}function Ut(e){if("resolveLinks"in e)throw new Vt("resolveLinks","The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. \n If you do not want to resolve links, use client.withoutLinkResolution.")}function qt(e){if("removeUnresolved"in e)throw new Vt("removeUnresolved","The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects.\n If you do not want to include unresolved links, use client.withoutUnresolvableLinks.")}function Qt(e){for(const t in e){const n=e[t];if("object"==typeof n&&null!==n&&!Array.isArray(n))throw new Error(`Objects are not supported as value for the "${t}" query parameter.`)}}class Gt extends Error{sys;details;constructor(e,t,n){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:e,environment:t,space:n}}}function Ht({http:e,getGlobalOptions:t},n){const r=(e="unknown")=>new Gt(e,t().environment,t().space),i=e=>{let n="space"===e?t().spaceBaseUrl:t().environmentBaseUrl;if(!n)throw new Error("Please define baseUrl for "+e);return n.endsWith("/")||(n+="/"),n};async function o({context:t,path:n,config:r}){const o=i(t);try{return(await e.get(o+n,r)).data}catch(e){At(e)}}async function a(e,t){const{withoutLinkResolution:n,withoutUnresolvableLinks:r}=t;try{return Bt(await o({context:"environment",path:"entries",config:bt({query:Ft(zt(e))})}),{resolveLinks:!n??!0,removeUnresolved:r??!1})}catch(e){At(e)}}return{version:"10.8.8",getSpace:async function(){return o({context:"space",path:""})},getContentType:async function(e){return o({context:"environment",path:`content_types/${e}`})},getContentTypes:async function(e={}){return o({context:"environment",path:"content_types",config:bt({query:e})})},getAsset:async function(e,t={}){return async function(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:r}=n;return $t(t,r),Qt(t),async function(e,t){try{return o({context:"environment",path:`assets/${e}`,config:bt({query:zt(t)})})}catch(e){At(e)}}(e,r?{...t,locale:"*"}:t)}(e,t,n)},getAssets:async function(e={}){return async function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:n}=t;return $t(e,n),Qt(e),async function(e){try{return o({context:"environment",path:"assets",config:bt({query:Ft(zt(e))})})}catch(e){At(e)}}(n?{...e,locale:"*"}:e)}(e,n)},getTag:async function(e){return o({context:"environment",path:`tags/${e}`})},getTags:async function(e={}){return Qt(e),o({context:"environment",path:"tags",config:bt({query:Ft(zt(e))})})},getLocales:async function(e={}){return Qt(e),o({context:"environment",path:"locales",config:bt({query:zt(e)})})},parseEntries:function(e){return function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){return function(e,t){const{withoutLinkResolution:n,withoutUnresolvableLinks:r}=t;return Bt(e,{resolveLinks:!n??!0,removeUnresolved:r??!1})}(e,t)}(e,n)},sync:async function(r,i={paginate:!0}){return async function(n,r,i={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){Ut(n),qt(n);const o={...r,...i};return function(e){e.defaults.baseURL=t().environmentBaseUrl}(e),Dt(e,n,o)}(r,i,n)},getEntry:async function(e,t={}){return async function(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:i}=n;return $t(t,i),Ut(t),qt(t),Qt(t),async function(e,t,n){if(!e)throw r(e);try{const i=await a({"sys.id":e,...t},n);if(i.items.length>0)return i.items[0];throw r(e)}catch(e){At(e)}}(e,i?{...t,locale:"*"}:t,n)}(e,t,n)},getEntries:async function(e={}){return async function(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:n}=t;return $t(e,n),Ut(e),qt(e),Qt(e),a(n?{...e,locale:"*"}:e,t)}(e,n)},createAssetKey:async function(t){try{const e=Math.floor(Date.now()/1e3);!function(e,t,n){if(n=n||{},"number"!=typeof t)throw new Vt(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new Vt(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&t{function n(r){return function({http:e,getGlobalOptions:t},n,r){const i=Ht({http:e,getGlobalOptions:t},n);return Object.defineProperty(i,"withAllLocales",{get:()=>r({...n,withAllLocales:!0})}),Object.defineProperty(i,"withoutLinkResolution",{get:()=>r({...n,withoutLinkResolution:!0})}),Object.defineProperty(i,"withoutUnresolvableLinks",{get:()=>r({...n,withoutUnresolvableLinks:!0})}),Object.create(i)}({http:e,getGlobalOptions:t},r,n)}return{...Ht({http:e,getGlobalOptions:t},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1}),get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}}};function Zt(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");Ut(e),qt(e);const t={resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master",...e},n=function(e,t,n,r){var i=[];t&&i.push("app ".concat(t)),n&&i.push("integration ".concat(n)),r&&i.push("feature "+r),i.push("sdk ".concat(e));var o=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(o=kt(),i.push("platform ReactNative")):(o=kt(),i.push("platform browser"))}catch(e){o=null}return o&&i.push("os ".concat(o)),"".concat(i.filter((function(e){return""!==e})).join("; "),";")}("contentful.js/10.8.8",t.application,t.integration);t.headers={...t.headers,"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":n};const r=yt(Ge,t);if(!r.defaults.baseURL)throw new Error("Please define a baseURL");const i=xt({space:t.space,environment:t.environment,spaceBaseUrl:r.defaults.baseURL,environmentBaseUrl:`${r.defaults.baseURL}environments/${t.environment}`});return r.defaults.baseURL=i({}).environmentBaseUrl,Wt({http:r,getGlobalOptions:i})}}(),o}()},99798:function(e,t,n){"use strict";var r,i=n(34406),o=function(){function e(e,t){if("function"!==typeof e)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){if(e&&!1===e.batch)return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if("number"!==typeof t||t<1)throw new TypeError("maxBatchSize must be a positive number: "+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return a;if("function"!==typeof t)throw new TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!==typeof t)throw new TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){if(e&&!1===e.cache)return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!==t){var n=["get","set","delete","clear"].filter((function(e){return t&&"function"!==typeof t[e]}));if(0!==n.length)throw new TypeError("Custom cacheMap missing methods: "+n.join(", "))}return t}(t),this._batch=null,this.name=function(e){if(e&&e.name)return e.name;return null}(t)}var t=e.prototype;return t.load=function(e){if(null===e||void 0===e)throw new TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length and returns Promise>, but the function errored synchronously: "+String(r)+"."))}if(!n||"function"!==typeof n.then)return s(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: "+String(n)+"."));n.then((function(e){if(!l(e))throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));c(t);for(var n=0;n but got: "+e+".");for(var t=[],n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=o},99058:function(e){"use strict";function t(e){return"function"===typeof e?e():e}function n(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=void 0,a=void 0,s=void 0,c=[];return function(){var u=t(r),d=(new Date).getTime(),f=!o||d-o>u;o=d;for(var p=arguments.length,h=Array(p),m=0;m3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===c&&d?d.writable:!c});else{if(!u&&(s||c||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},70999:function(e,t,n){"use strict";var r=n(67286)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(i){r=!1}e.exports=r},69654:function(e){"use strict";e.exports=EvalError},42321:function(e){"use strict";e.exports=Error},48205:function(e){"use strict";e.exports=RangeError},2976:function(e){"use strict";e.exports=ReferenceError},48342:function(e){"use strict";e.exports=SyntaxError},5408:function(e){"use strict";e.exports=TypeError},82885:function(e){"use strict";e.exports=URIError},22699:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){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,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},86534:function(){!function(){"use strict";function e(e){var t=!0,n=!1,r=null,i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!i[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}function s(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function l(n){n.metaKey||n.altKey||n.ctrlKey||(o(e.activeElement)&&s(e.activeElement),t=!0)}function u(e){t=!1}function d(e){o(e.target)&&(t||a(e.target))&&s(e.target)}function f(e){o(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(r),r=window.setTimeout((function(){n=!1}),100),c(e.target))}function p(e){"hidden"===document.visibilityState&&(n&&(t=!0),h())}function h(){document.addEventListener("mousemove",g),document.addEventListener("mousedown",g),document.addEventListener("mouseup",g),document.addEventListener("pointermove",g),document.addEventListener("pointerdown",g),document.addEventListener("pointerup",g),document.addEventListener("touchmove",g),document.addEventListener("touchstart",g),document.addEventListener("touchend",g)}function m(){document.removeEventListener("mousemove",g),document.removeEventListener("mousedown",g),document.removeEventListener("mouseup",g),document.removeEventListener("pointermove",g),document.removeEventListener("pointerdown",g),document.removeEventListener("pointerup",g),document.removeEventListener("touchmove",g),document.removeEventListener("touchstart",g),document.removeEventListener("touchend",g)}function g(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,m())}document.addEventListener("keydown",l,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",p,!0),h(),e.addEventListener("focus",d,!0),e.addEventListener("blur",f,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!==typeof window&&"undefined"!==typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(n){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!==typeof document&&e(document)}()},83243:function(e,t,n){"use strict";var r=n(9680),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,i=e.length;r=3&&(o=n),"[object Array]"===i.call(e)?a(e,t,o):"string"===typeof e?s(e,t,o):c(e,t,o)}},37795:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(e,t){for(var n=[],r=0;r1&&"boolean"!==typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=j(e),r=n.length>0?n[0]:"",i=D("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],_(n,C([0,1],u)));for(var d=1,f=!0;d=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=N(a,h),a=a[h];f&&!s&&(k[o]=a)}}return a}},50326:function(e,t,n){"use strict";var r=n(67286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},89130:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ie},Ps:function(){return Y}});var r=n(22970);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"===typeof a.index||i(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let r=0;r["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+c([[a-1+" |",d[i-1]],[`${a} |`,f],["|","^".padStart(l)],[`${a+1} |`,d[i+1]]])}function c(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:c,path:d,originalError:f,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!==d&&void 0!==d?d:void 0,this.originalError=null!==f&&void 0!==f?f:void 0,this.nodes=u(Array.isArray(o)?o:o?[o]:void 0);const h=u(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==s&&void 0!==s?s:null===h||void 0===h||null===(r=h[0])||void 0===r?void 0:r.source,this.positions=null!==c&&void 0!==c?c:null===h||void 0===h?void 0:h.map((e=>e.start)),this.locations=c&&s?c.map((e=>a(s,e))):null===h||void 0===h?void 0:h.map((e=>a(e.source,e.start)));const m="object"==typeof(g=null===f||void 0===f?void 0:f.extensions)&&null!==g?null===f||void 0===f?void 0:f.extensions:void 0;var g;this.extensions=null!==(i=null!==p&&void 0!==p?p:m)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==f&&void 0!==f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+s((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const n of this.locations)e+="\n\n"+s(this.source,n);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function u(e){return void 0===e||0===e.length?void 0:e}function d(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}var f,p=n(90781);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(f||(f={}));var h,m=n(95115),g=n(85717),v=n(51591);!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(h||(h={}));class y{constructor(e){const t=new p.WU(h.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==h.EOF)do{if(e.next)e=e.next;else{const t=E(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===h.COMMENT);return e}}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function w(e,t){return k(e.charCodeAt(t))&&S(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function S(e){return e>=56320&&e<=57343}function A(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return h.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function x(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new p.WU(t,n,r,o,a,i)}function E(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function j(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function D(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o0||(0,L.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,L.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class V{constructor(e,t={}){const n=function(e){return z(e,B)}(e)?e:new B(e);this._lexer=new y(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(h.NAME);return this.node(e,{kind:m.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:m.h.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===h.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(e,{kind:m.h.OPERATION_DEFINITION,operation:p.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(h.NAME)&&(n=this.parseName()),this.node(e,{kind:m.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(h.NAME);switch(e.value){case"query":return p.ku.QUERY;case"mutation":return p.ku.MUTATION;case"subscription":return p.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:m.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:m.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:m.h.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(h.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:m.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:m.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(h.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?this.node(e,{kind:m.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:m.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this.advanceLexer(),this.node(t,{kind:m.h.INT,value:t.value});case h.FLOAT:return this.advanceLexer(),this.node(t,{kind:m.h.FLOAT,value:t.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:m.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:m.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:m.h.NULL});default:return this.node(t,{kind:m.h.ENUM,value:t.value})}case h.DOLLAR:if(e){if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){const e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:m.h.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:m.h.LIST,values:this.any(h.BRACKET_L,(()=>this.parseValueLiteral(e)),h.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:m.h.OBJECT,fields:this.any(h.BRACE_L,(()=>this.parseObjectField(e)),h.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:m.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(h.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(h.AT),this.node(t,{kind:m.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(h.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(h.BRACKET_R),t=this.node(e,{kind:m.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(e,{kind:m.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:m.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:m.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);const n=this.parseNamedType();return this.node(e,{kind:m.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:m.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(h.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:m.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(h.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:m.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:m.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:m.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:m.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${$(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===h.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:m.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:m.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:m.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw d(this._lexer.source,t.start,`Expected ${U(e)}, found ${$(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==h.NAME||t.value!==e)throw d(this._lexer.source,t.start,`Expected "${e}", found ${$(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${$(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==h.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw d(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function $(e){const t=e.value;return U(e.kind)+(null!=t?` "${t}"`:"")}function U(e){return function(e){return e===h.BANG||e===h.DOLLAR||e===h.AMP||e===h.PAREN_L||e===h.PAREN_R||e===h.SPREAD||e===h.COLON||e===h.EQUALS||e===h.AT||e===h.BRACKET_L||e===h.BRACKET_R||e===h.BRACE_L||e===h.PIPE||e===h.BRACE_R}(e)?`"${e}"`:e}var q=new Map,Q=new Map,G=!0,H=!1;function W(e){return e.replace(/[\s,]+/g," ").trim()}function Z(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=W((a=e.loc).source.body.substring(a.start,a.end)),o=Q.get(r);o&&!o.has(i)?G&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Q.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function K(e){var t=W(e);if(!q.has(t)){var n=function(e,t){return new V(e,t).parseDocument()}(e,{experimentalFragmentVariables:H,allowLegacyFragmentVariables:H});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");q.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Z(n)))}return q.get(t)}function Y(e){for(var t=[],n=1;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"AmiiboFields")},5373:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ContentDescriptorFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentDescriptor"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}],loc:{start:0,end:87}};t.loc.source={body:"fragment ContentDescriptorFields on ContentDescriptor {\n id\n locale\n label\n type\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ContentDescriptorFields")},61847:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ContentRatingFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ContentRating"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiresAgeGate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"system"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"order"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highestRating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:163}};t.loc.source={body:"fragment ContentRatingFields on ContentRating {\n id\n locale\n code\n label\n requiresAgeGate\n system\n order\n highestRating {\n id\n code\n locale\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ContentRatingFields")},79230:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DirectHeadlineFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NintendoDirectHeadline"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtitle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"video"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ctaLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaDestination"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelatedProductsFields"},directives:[]}]}}]}}],loc:{start:0,end:406}};t.loc.source={body:"fragment DirectHeadlineFields on NintendoDirectHeadline {\n id\n locale\n title\n subtitle\n thumbnail {\n publicId\n resourceType\n type\n url\n }\n video {\n publicId\n resourceType\n type\n url\n }\n ctaLabel\n ctaDestination {\n tags {\n name\n id\n }\n url\n externalUrl\n }\n\n description {\n json\n text\n }\n relatedProducts {\n ...RelatedProductsFields\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"DirectHeadlineFields")},15500:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OrderItem"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OrderItem"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bundleOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"productSalePrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productSku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"platinumPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:488}};t.loc.source={body:"fragment OrderItem on OrderItem {\n bundleOptions {\n id\n label\n values {\n id\n product {\n sku\n locale\n name\n }\n }\n }\n productSalePrice\n productSku\n product {\n sku\n locale\n name\n platform {\n label\n }\n platinumPoints\n prices(personalized: $personalized) {\n minimum {\n discounted\n regularPrice\n }\n }\n productImage {\n publicId\n type\n resourceType\n }\n urlKey\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"OrderItem")},38388:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OrderShipment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OrderShipment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"parentSku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productSalePrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderItem"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderItem"},directives:[]},{kind:"Field",name:{kind:"Name",value:"quantityShipped"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tracking"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"carrier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:220}};t.loc.source={body:"fragment OrderShipment on OrderShipment {\n id\n items {\n parentSku\n productSalePrice\n orderItem {\n ...OrderItem\n quantityShipped\n }\n }\n number\n tracking {\n carrier\n number\n title\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"OrderShipment")},94291:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PriceFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CartPrices"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grandTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"appliedTaxes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subtotalExcludingTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtotalIncludingTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtotalWithDiscountExcludingTax"},arguments:[],directives:[]}]}}],loc:{start:0,end:225}};t.loc.source={body:"fragment PriceFields on CartPrices {\n grandTotal\n appliedTaxes {\n amount\n label\n }\n currency\n discounts {\n amount\n label\n }\n subtotalExcludingTax\n subtotalIncludingTax\n subtotalWithDiscountExcludingTax\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"PriceFields")},34303:function(e,t,n){var r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProductTileFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentDescriptors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentDescriptorFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentRating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentRatingFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"demoNsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dlcType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"eshopDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountPriceEnd"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goldPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseGoldPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goldPointOfferValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goldPointOfferType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"exclusive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSalableQty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"manufacturer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"platinumPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"productImageSquare"},name:{kind:"Name",value:"productImage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shape"},value:{kind:"StringValue",value:"square",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"releaseDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDateDisplay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"softwarePublisher"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topLevelCategory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]}]}}],loc:{start:0,end:1035}};r.loc.source={body:'#import "./ContentRatingFields.gql"\n#import "./ContentDescriptorFields.gql"\n\nfragment ProductTileFields on StoreProduct {\n availability\n color {\n id\n label\n code\n }\n contentDescriptors {\n ...ContentDescriptorFields\n }\n contentRating {\n ...ContentRatingFields\n }\n demoNsuid\n dlcType {\n id\n label\n }\n eshopDetails(personalized: false) {\n discountPriceEnd\n goldPoints\n baseGoldPoints\n goldPointOfferValue\n goldPointOfferType\n }\n exclusive\n isSalableQty\n locale\n manufacturer\n name\n nsuid\n platform {\n id\n label\n code\n }\n platinumPoints\n prices(personalized: false) {\n minimum {\n amountOff\n currency\n discounted\n finalPrice\n percentOff\n regularPrice\n }\n }\n productImage {\n publicId\n resourceType\n type\n }\n productImageSquare: productImage(shape: "square") {\n url\n }\n releaseDate\n releaseDateDisplay\n size {\n id\n label\n }\n sku\n softwarePublisher\n topLevelCategory {\n id\n code\n label\n }\n urlKey\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(61847).definitions)),r.definitions=r.definitions.concat(o(n(5373).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}(r,"ProductTileFields")},26894:function(e,t,n){var r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RecommendationFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Recommendation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"basedOn"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"recommendations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}}]}}],loc:{start:0,end:205}};r.loc.source={body:'#import "./ProductTileFields.gql"\n\nfragment RecommendationFields on Recommendation {\n basedOn {\n sku\n locale\n name\n }\n products: recommendations(limit: $limit) {\n ...ProductTileFields\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(34303).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"RecommendationFields")},97547:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RelatedProductsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"demoNsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dlcType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"exclusive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"facets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"corePlatforms"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSalableQty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"releaseDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDateDisplay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topLevelCategory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]}]}}],loc:{start:0,end:513}};t.loc.source={body:"fragment RelatedProductsFields on StoreProduct {\n availability\n demoNsuid\n dlcType {\n id\n label\n }\n exclusive\n facets {\n corePlatforms\n }\n id\n isSalableQty\n locale\n name\n nsuid\n platform {\n id\n label\n code\n }\n prices(personalized: false) {\n minimum {\n discounted\n finalPrice\n regularPrice\n }\n }\n productImage {\n publicId\n resourceType\n type\n }\n releaseDate\n releaseDateDisplay\n sku\n topLevelCategory {\n id\n code\n label\n }\n urlKey\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"RelatedProductsFields")},20877:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyCouponToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cartId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"couponCode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"data"},name:{kind:"Name",value:"applyCouponToCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"cartId"}}},{kind:"Argument",name:{kind:"Name",value:"couponCode"},value:{kind:"Variable",name:{kind:"Name",value:"couponCode"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"appliedCoupons"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PriceFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:301}};r.loc.source={body:"#import '../fragments/PriceFields.gql'\n\nmutation ApplyCouponToCart(\n $cartId: ID!\n $couponCode: String!\n $locale: Locale\n) {\n data: applyCouponToCart(\n cartId: $cartId\n couponCode: $couponCode\n locale: $locale\n ) {\n id\n appliedCoupons\n prices {\n ...PriceFields\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(94291).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"ApplyCouponToCart")},74743:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DownloadDemo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nsuid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"downloadDemo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"nsuid"},value:{kind:"Variable",name:{kind:"Name",value:"nsuid"}}}],directives:[]}]}}],loc:{start:0,end:81}};t.loc.source={body:"mutation DownloadDemo($nsuid: String!) {\n result: downloadDemo(nsuid: $nsuid)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"DownloadDemo")},65882:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CompletedInStoreDemo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"token"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"missionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"missionStatus"},name:{kind:"Name",value:"completedInStoreDemo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"token"},value:{kind:"Variable",name:{kind:"Name",value:"token"}}},{kind:"Argument",name:{kind:"Name",value:"missionId"},value:{kind:"Variable",name:{kind:"Name",value:"missionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mission"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"points"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"platinum"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:229}};t.loc.source={body:"mutation CompletedInStoreDemo($token: String!, $missionId: ID!) {\n missionStatus: completedInStoreDemo(token: $token, missionId: $missionId) {\n state\n mission {\n id\n points {\n platinum\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"CompletedInStoreDemo")},49044:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ProgressMission"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"missionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"status"},name:{kind:"Name",value:"progressMission"},arguments:[{kind:"Argument",name:{kind:"Name",value:"missionId"},value:{kind:"Variable",name:{kind:"Name",value:"missionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mission"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countries"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:186}};t.loc.source={body:"mutation ProgressMission($missionId: ID!) {\n status: progressMission(missionId: $missionId) {\n state\n mission {\n id\n title\n description\n countries\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ProgressMission")},67347:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveCouponsFromCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cartId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeCouponsFromCart"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"cartId"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"appliedCoupons"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PriceFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:236}};r.loc.source={body:"#import '../fragments/PriceFields.gql'\n\nmutation RemoveCouponsFromCart($cartId: ID!, $locale: Locale) {\n removeCouponsFromCart(cartId: $cartId, locale: $locale) {\n id\n appliedCoupons\n prices {\n ...PriceFields\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(94291).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"RemoveCouponsFromCart")},54188:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SuggestedAddress"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NamedType",name:{kind:"Name",value:"SuggestedAddressInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"address"},name:{kind:"Name",value:"suggestedAddress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availableRegions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"twoLetterAbbreviation"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formattedAddress"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SuggestedAddresses"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"countries"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"addresses"},name:{kind:"Name",value:"suggestedAddresses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"Argument",name:{kind:"Name",value:"countries"},value:{kind:"Variable",name:{kind:"Name",value:"countries"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"value"},name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highlight"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CountryById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availableRegions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:854}};t.loc.source={body:"query SuggestedAddress(\n $id: String\n $address: SuggestedAddressInput\n $locale: Locale\n) {\n address: suggestedAddress(id: $id, address: $address, locale: $locale) {\n id\n city\n country {\n locale\n availableRegions {\n id\n code\n name\n }\n id\n twoLetterAbbreviation\n }\n postcode\n region {\n code\n id\n name\n }\n street\n formattedAddress\n }\n}\n\nquery SuggestedAddresses(\n $address: String!\n $countries: String\n $locale: Locale\n) {\n addresses: suggestedAddresses(\n address: $address\n countries: $countries\n locale: $locale\n ) {\n id\n label: text\n value: id\n highlight\n }\n}\n\nquery CountryById($id: String!, $locale: Locale) {\n country(id: $id, locale: $locale) {\n id\n locale\n availableRegions {\n id\n code\n name\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.SuggestedAddress=o(t,"SuggestedAddress"),e.exports.SuggestedAddresses=o(t,"SuggestedAddresses"),e.exports.CountryById=o(t,"CountryById")},16986:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Amiibos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"AmiiboFilter"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amiibos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"skip"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AmiiboFields"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AmiiboBySlug"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amiibo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AmiiboFields"},directives:[]}]}}]}}],loc:{start:0,end:373}};r.loc.source={body:'#import "../fragments/AmiiboFields.gql"\n\nquery Amiibos(\n $limit: Int\n $locale: Locale\n $offset: Int\n $where: AmiiboFilter\n) {\n amiibos(limit: $limit, locale: $locale, skip: $offset, where: $where) {\n items {\n ...AmiiboFields\n }\n }\n}\n\nquery AmiiboBySlug($locale: Locale!, $slug: String!) {\n amiibo(locale: $locale, slug: $slug) {\n ...AmiiboFields\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(74129).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}r.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),a[e.name.value]=t}})),e.exports=r,e.exports.Amiibos=c(r,"Amiibos"),e.exports.AmiiboBySlug=c(r,"AmiiboBySlug")},13542:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ContentRatingById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentRating"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentRatingFields"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ContentDescriptorsById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"contentDescriptors"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"id"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"in"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentDescriptorFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:479}};r.loc.source={body:'#import "../fragments/ContentDescriptorFields.gql"\n#import "../fragments/ContentRatingFields.gql"\n\nquery ContentRatingById($locale: Locale!, $id: ID!) {\n contentRating(locale: $locale, id: $id) {\n ...ContentRatingFields\n }\n}\n\nquery ContentDescriptorsById($locale: Locale!, $ids: [String!]!, $limit: Int!) {\n collection: contentDescriptors(\n locale: $locale\n limit: $limit\n where: { id: { in: $ids } }\n ) {\n items {\n ...ContentDescriptorFields\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(5373).definitions)),r.definitions=r.definitions.concat(o(n(61847).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}r.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),s[e.name.value]=t}})),e.exports=r,e.exports.ContentRatingById=l(r,"ContentRatingById"),e.exports.ContentDescriptorsById=l(r,"ContentDescriptorsById")},65120:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EstimatedTax"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cartId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postcode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"estimatedTax"},arguments:[{kind:"Argument",name:{kind:"Name",value:"cartId"},value:{kind:"Variable",name:{kind:"Name",value:"cartId"}}},{kind:"Argument",name:{kind:"Name",value:"postcode"},value:{kind:"Variable",name:{kind:"Name",value:"postcode"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"appliedTaxes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shippingInclTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtotalInclTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxAmount"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:220}};t.loc.source={body:"query EstimatedTax($cartId: ID!, $postcode: String!) {\n estimatedTax(cartId: $cartId, postcode: $postcode) {\n appliedTaxes {\n amount\n label\n }\n shippingInclTax\n subtotalInclTax\n taxAmount\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"EstimatedTax")},24438:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Features"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"project"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"features"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}},{kind:"Argument",name:{kind:"Name",value:"project"},value:{kind:"Variable",name:{kind:"Name",value:"project"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"impressionData"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"strategies"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"constraints"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contextName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"operator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"values"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inverted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"caseInsensitive"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parameters"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"groupId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hostNames"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rollout"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stickiness"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userIds"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"overrides"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payload"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"string"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stickiness"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"weight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"weightType"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:558}};t.loc.source={body:"query Features($ids: [ID!]!, $project: String!) {\n features(ids: $ids, project: $project) {\n id\n impressionData\n stale\n strategies {\n constraints {\n contextName\n operator\n values\n inverted\n caseInsensitive\n }\n name\n parameters {\n groupId\n hostNames\n rollout\n stickiness\n userIds\n }\n }\n type\n variants {\n name\n overrides\n payload {\n string\n json\n }\n stickiness\n weight\n weightType\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"Features")},8679:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GuestOrder"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postcode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lastname"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"personalized"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"guestOrder"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderNumber"},value:{kind:"Variable",name:{kind:"Name",value:"orderNumber"}}},{kind:"Argument",name:{kind:"Name",value:"postcode"},value:{kind:"Variable",name:{kind:"Name",value:"postcode"}}},{kind:"Argument",name:{kind:"Name",value:"lastname"},value:{kind:"Variable",name:{kind:"Name",value:"lastname"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"last4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grandTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalShipping"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderItem"},directives:[]},{kind:"Field",name:{kind:"Name",value:"quantityOrdered"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shippingAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullNameEnglish"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"billingAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullNameEnglish"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"shipments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderShipment"},directives:[]}]}}]}}]}}],loc:{start:0,end:1046}};r.loc.source={body:"#import '../fragments/OrderItem.gql'\n#import '../fragments/OrderShipment.gql'\n\nquery GuestOrder(\n $orderNumber: ID!\n $postcode: String!\n $lastname: String!\n $personalized: Boolean = false\n $locale: Locale\n) {\n guestOrder(\n orderNumber: $orderNumber\n postcode: $postcode\n lastname: $lastname\n locale: $locale\n ) {\n number\n orderDate\n shippingMethod\n status\n paymentMethod {\n last4\n type\n }\n total {\n grandTotal\n subtotal\n totalTax\n totalShipping\n }\n items {\n ...OrderItem\n quantityOrdered\n }\n shippingAddress {\n firstName\n lastName\n street\n city\n postcode\n country {\n id\n locale\n fullNameEnglish\n }\n region {\n name\n }\n }\n billingAddress {\n firstName\n lastName\n street\n city\n postcode\n country {\n id\n locale\n fullNameEnglish\n }\n region {\n name\n }\n }\n shipments {\n ...OrderShipment\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(15500).definitions)),r.definitions=r.definitions.concat(o(n(38388).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}(r,"GuestOrder")},14394:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LatestNintendoDirect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"nintendoDirects"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"startDate_DESC"}]}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NintendoDirects"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"0"},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"nintendoDirects"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"skip"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"startDate_DESC"}]}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"offset"},name:{kind:"Name",value:"skip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:633}};t.loc.source={body:"query LatestNintendoDirect($locale: Locale!) {\n collection: nintendoDirects(\n limit: 1\n sort: [startDate_DESC]\n locale: $locale\n ) {\n items {\n id\n locale\n name\n startDate\n url(relative: true)\n }\n }\n}\n\nquery NintendoDirects($locale: Locale!, $limit: Int!, $offset: Int = 0) {\n collection: nintendoDirects(\n limit: $limit\n skip: $offset\n sort: [startDate_DESC]\n locale: $locale\n ) {\n total\n offset: skip\n items {\n id\n locale\n name\n description {\n json\n }\n startDate\n slug\n thumbnail {\n publicId\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.LatestNintendoDirect=o(t,"LatestNintendoDirect"),e.exports.NintendoDirects=o(t,"NintendoDirects")},74175:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MissionStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"missionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"missionStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"missionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mission"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countries"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:234}};t.loc.source={body:"query MissionStatus($missionId: ID!, $locale: Locale!) {\n customer(locale: $locale) {\n missionStatus(id: $missionId) {\n state\n mission {\n id\n title\n description\n countries\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"MissionStatus")},15995:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LatestNewsArticles"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"0"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tags"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"newsArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"skip"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"publishDate_DESC"},{kind:"EnumValue",value:"priority_DESC"}]}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"tags"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"all"},value:{kind:"Variable",name:{kind:"Name",value:"tags"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"offset"},name:{kind:"Name",value:"skip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"snippet"},name:{kind:"Name",value:"text"},arguments:[{kind:"Argument",name:{kind:"Name",value:"characterLimit"},value:{kind:"IntValue",value:"250"}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publishDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NewsArticleBySlug"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"article"},name:{kind:"Name",value:"newsArticle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"structuredContent"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publishDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publishedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transforms"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"resize"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"FILL"}},{kind:"ObjectField",name:{kind:"Name",value:"width"},value:{kind:"StringValue",value:"1200",block:!1}}]}}]}]}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mediaBackground"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"repeat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ctaLabel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ctaDestination"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"snippet"},name:{kind:"Name",value:"text"},arguments:[{kind:"Argument",name:{kind:"Name",value:"characterLimit"},value:{kind:"IntValue",value:"250"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"links"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"block"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"YouTubeVideo"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"videoId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nocookie"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Media"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MediaGallery"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hyperlink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NintendoDirect"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"disclaimers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailPageUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentOff"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"contentDescriptors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentDescriptorFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentRating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentRatingFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"gamesShown"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"localeAlternates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:2706}};r.loc.source={body:'#import "../fragments/ContentDescriptorFields.gql"\n#import "../fragments/ContentRatingFields.gql"\n\nquery LatestNewsArticles(\n $locale: Locale!\n $limit: Int!\n $offset: Int = 0\n $tags: [String!]!\n) {\n collection: newsArticles(\n limit: $limit\n skip: $offset\n locale: $locale\n sort: [publishDate_DESC, priority_DESC]\n where: { tags: { all: $tags } }\n ) {\n total\n offset: skip\n items {\n id\n locale\n tags {\n id\n }\n title\n body {\n snippet: text(characterLimit: 250)\n }\n media {\n publicId\n resourceType\n }\n publishDate\n url(relative: true)\n }\n }\n}\n\nquery NewsArticleBySlug($slug: String!, $locale: Locale!) {\n article: newsArticle(slug: $slug, locale: $locale) {\n id\n locale\n tags {\n id\n name\n }\n title\n seo {\n id\n locale\n title\n description\n structuredContent\n }\n publishDate\n publishedAt\n priority\n media {\n publicId\n resourceType\n url(transforms: [{ resize: { type: FILL, width: "1200" } }])\n }\n mediaBackground {\n id\n locale\n image {\n url\n }\n repeat\n color\n position\n }\n ctaLabel\n ctaDestination {\n id\n locale\n url\n }\n body {\n snippet: text(characterLimit: 250)\n json\n links {\n entries {\n block {\n id\n locale\n ... on YouTubeVideo {\n videoId\n nocookie\n }\n ... on Media {\n asset {\n publicId\n resourceType\n }\n }\n ... on MediaGallery {\n items {\n publicId\n resourceType\n }\n }\n }\n hyperlink {\n id\n locale\n ... on NewsArticle {\n url(relative: true)\n }\n ... on NintendoDirect {\n url(relative: true)\n }\n }\n }\n }\n }\n disclaimers {\n json\n }\n relatedProducts {\n sku\n nsuid\n locale\n name\n detailPageUrl(relative: true)\n platform {\n code\n label\n }\n productImage {\n publicId\n resourceType\n type\n }\n prices {\n minimum {\n currency\n discounted\n regularPrice\n finalPrice\n percentOff\n }\n }\n }\n contentDescriptors {\n ...ContentDescriptorFields\n }\n contentRating {\n ...ContentRatingFields\n }\n gamesShown\n localeAlternates {\n id\n locale\n url\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(5373).definitions)),r.definitions=r.definitions.concat(o(n(61847).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}r.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),s[e.name.value]=t}})),e.exports=r,e.exports.LatestNewsArticles=l(r,"LatestNewsArticles"),e.exports.NewsArticleBySlug=l(r,"NewsArticleBySlug")},2932:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NintendoDirect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"direct"},name:{kind:"Name",value:"nintendoDirect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liveStream"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"structuredContent"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"video"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"featuredBackground"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repeat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"textColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"headlinesBackground"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repeat"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"textColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"featuredHeadlines"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DirectHeadlineFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headlines"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DirectHeadlineFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelatedProductsFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"extraHeadlines"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DirectHeadlineFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentRating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentRatingFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentDescriptors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentDescriptorFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"disclaimers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"localeAlternates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1347}};r.loc.source={body:'#import "../fragments/RelatedProductsFields.gql"\n#import "../fragments/DirectHeadlineFields.gql"\n#import "../fragments/ContentRatingFields.gql"\n#import "../fragments/ContentDescriptorFields.gql"\n\nquery NintendoDirect($slug: String!, $locale: Locale) {\n direct: nintendoDirect(slug: $slug, locale: $locale) {\n id\n locale\n name\n slug\n startDate\n liveStream\n seo {\n id\n locale\n structuredContent\n }\n description {\n json\n text\n }\n video {\n publicId\n resourceType\n }\n logo {\n publicId\n }\n thumbnail {\n publicId\n }\n featuredBackground {\n id\n color\n repeat\n position\n textColor\n image {\n publicId\n url\n }\n }\n headlinesBackground {\n id\n color\n repeat\n position\n textColor\n image {\n publicId\n url\n }\n }\n featuredHeadlines {\n ...DirectHeadlineFields\n }\n headlines {\n ...DirectHeadlineFields\n }\n relatedProducts {\n ...RelatedProductsFields\n }\n extraHeadlines {\n ...DirectHeadlineFields\n }\n contentRating {\n ...ContentRatingFields\n }\n contentDescriptors {\n ...ContentDescriptorFields\n }\n disclaimers {\n json\n }\n localeAlternates {\n id\n locale\n url\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(97547).definitions)),r.definitions=r.definitions.concat(o(n(79230).definitions)),r.definitions=r.definitions.concat(o(n(61847).definitions)),r.definitions=r.definitions.concat(o(n(5373).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}(r,"NintendoDirect")},32027:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomerOrderHistory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"OrderFilterInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeTotals"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"personalized"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderHistory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totals"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeTotals"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"digital"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"physical"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orders"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"15"}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grandTotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtotal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalTax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalShipping"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderItem"},directives:[]},{kind:"Field",name:{kind:"Name",value:"quantityOrdered"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StoreOrder"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"couponCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shippingMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shipments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderShipment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"billingAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"telephone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullNameEnglish"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"shippingAddress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"telephone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullNameEnglish"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last4"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EshopOrder"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contentName"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:1818}};r.loc.source={body:"#import '../fragments/OrderItem.gql'\n#import '../fragments/OrderShipment.gql'\n\nquery CustomerOrderHistory(\n $page: Int\n $where: OrderFilterInput\n $includeTotals: Boolean! = false\n $personalized: Boolean! = false\n $locale: Locale\n) {\n customer(locale: $locale) {\n email\n orderHistory(locale: $locale) {\n totals @include(if: $includeTotals) {\n digital\n physical\n }\n orders(page: $page, pageSize: 15, where: $where) {\n currency\n orderDate\n total {\n grandTotal\n subtotal\n taxes {\n amount\n label\n }\n totalTax\n totalShipping\n discounts {\n amount\n label\n }\n }\n items {\n ...OrderItem\n quantityOrdered\n }\n ... on StoreOrder {\n couponCode\n number\n status\n shippingMethod\n shipments {\n ...OrderShipment\n }\n billingAddress {\n firstName\n lastName\n street\n city\n postcode\n region {\n name\n }\n telephone\n country {\n id\n locale\n fullNameEnglish\n }\n }\n shippingAddress {\n firstName\n lastName\n street\n telephone\n city\n postcode\n region {\n name\n }\n country {\n id\n locale\n fullNameEnglish\n }\n }\n paymentMethod {\n method\n type\n last4\n }\n }\n ... on EshopOrder {\n id\n contentName\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(15500).definitions)),r.definitions=r.definitions.concat(o(n(38388).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}(r,"CustomerOrderHistory")},75925:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductsByNsuidForRedirect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nsuid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"storeProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"nsuid"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"match"},value:{kind:"Variable",name:{kind:"Name",value:"nsuid"}}}]}}]}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"2"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailPageUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}}]}}],loc:{start:0,end:254}};t.loc.source={body:"query ProductsByNsuidForRedirect($locale: Locale!, $nsuid: String!) {\n products: storeProducts(\n locale: $locale\n where: { nsuid: { match: $nsuid } }\n pageSize: 2\n ) {\n sku\n locale\n productType\n detailPageUrl(relative: true)\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ProductsByNsuidForRedirect")},64581:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductColors"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"skus"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"sku"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"in"},value:{kind:"Variable",name:{kind:"Name",value:"skus"}}}]}}]}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"IntValue",value:"1000"}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:364}};t.loc.source={body:"query ProductColors($skus: [String!]!, $locale: Locale!) {\n storeProducts(\n where: { sku: { in: $skus } }\n page: 1\n pageSize: 1000\n locale: $locale\n ) {\n sku\n locale\n color {\n code\n label\n }\n variations {\n product {\n sku\n locale\n color {\n code\n label\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ProductColors")},10483:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductByUrlKeyForPDP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"urlKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"personalized"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"},arguments:[{kind:"Argument",name:{kind:"Name",value:"urlKey"},value:{kind:"Variable",name:{kind:"Name",value:"urlKey"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MarketingProduct"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"richTextDescription"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"richTextDisclaimer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"json"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ageGate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"appStoreUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseSoftware"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bundleItems"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canChangeQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"configurableOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributeCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"capacity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"configurableOptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributeCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"configurableProduct"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"containsBattery"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"crossSellProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"countryOfManufacture"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryOfOrigin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"demoNsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"demoType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"disclaimer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayChokingHazard"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayProp65"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dlcType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"enableRetailCrawler"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eshopDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPurchased"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}]}]},{kind:"Field",name:{kind:"Name",value:"isPreordered"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}]}]},{kind:"Field",name:{kind:"Name",value:"isPreorderable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPurchasable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goldPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"purchaseUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountPriceEnd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"exclusive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"facets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"corePlatforms"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"gamesShown"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"googlePlayUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSalableQty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"manufacturer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxQtyAllowedInCart"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaKeyword"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaTitle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numberOfPlayers"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platinumPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prePurchase"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"maximum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"relatedArticles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publishDate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"qtyAllowedPerCustomer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relatedProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"5"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelatedProductsFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"requiresLogin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiresCoupon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiresSubscription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"romFileSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"series"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"shipDateDisplay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sizeChart"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"soldOutTemporary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldOutPermanent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startShippingDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"switchRequired"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topLegalDisclaimer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"upc"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"upsellProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nsuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSalableQty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"Variable",name:{kind:"Name",value:"personalized"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"soldOutPermanent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"soldOutTemporary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"voucherNsuid"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contentDescriptors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentDescriptorFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"contentRating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ContentRatingFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"descriptionImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"genres"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"localeAlternates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nsoFeatures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"officialSite"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"playersMax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playersMaxLocal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playersMaxOnline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playersMin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playersMinLocal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playersMinOnline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"playModes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productGallery"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"releaseDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"releaseDateDisplay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"softwareDeveloper"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"softwarePublisher"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"supportedLanguages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topLevelCategory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlKey"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductBySkuForDigitalPDP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sku"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"product"},name:{kind:"Name",value:"storeProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sku"},value:{kind:"Variable",name:{kind:"Name",value:"sku"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eshopDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPurchased"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPreordered"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPreorderable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPurchasable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goldPoints"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"purchaseUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountPriceEnd"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"maximum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amountOff"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"personalized"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minimum"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discounted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"finalPrice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"regularPrice"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductByUrlKeyForDLC"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"urlKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"product"},name:{kind:"Name",value:"storeProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"urlKey"},value:{kind:"Variable",name:{kind:"Name",value:"urlKey"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelatedProductsFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:6475}};r.loc.source={body:'#import "../fragments/RelatedProductsFields.gql"\n#import "../fragments/ContentDescriptorFields.gql"\n#import "../fragments/ContentRatingFields.gql"\n#import "../fragments/ProductTileFields.gql"\n\nquery ProductByUrlKeyForPDP(\n $urlKey: String!\n $locale: Locale\n $personalized: Boolean! = false\n) {\n product(urlKey: $urlKey, locale: $locale) {\n ... on MarketingProduct {\n richTextDescription {\n json\n text\n }\n richTextDisclaimer {\n json\n text\n }\n }\n ... on StoreProduct {\n ageGate\n appStoreUrl\n availability\n baseSoftware {\n locale\n sku\n urlKey\n productImage {\n publicId\n }\n name\n }\n bundleItems {\n id\n options {\n id\n isDefault\n label\n canChangeQuantity\n price\n priceType\n quantity\n product {\n ...ProductTileFields\n size {\n id\n code\n }\n configurableOptions {\n label\n attributeCode\n }\n variations {\n id\n label\n value\n product {\n ...ProductTileFields\n }\n }\n }\n }\n required\n title\n type\n }\n capacity {\n id\n label\n }\n configurableOptions {\n label\n position\n attributeCode\n }\n configurableProduct {\n sku\n locale\n }\n containsBattery\n crossSellProducts {\n ...ProductTileFields\n }\n countryOfManufacture\n countryOfOrigin\n demoNsuid\n demoType {\n id\n code\n label\n }\n description\n disclaimer\n displayChokingHazard\n displayProp65\n dlcType {\n id\n code\n label\n }\n edition {\n id\n label\n }\n enableRetailCrawler\n eshopDetails(personalized: $personalized) {\n isPurchased @include(if: $personalized)\n isPreordered @include(if: $personalized)\n isPreorderable\n isPurchasable\n goldPoints\n purchaseUrl\n discountPriceEnd\n }\n exclusive\n facets {\n corePlatforms\n }\n gamesShown\n googlePlayUrl\n isSalableQty\n manufacturer\n maxQtyAllowedInCart\n metaDescription\n metaKeyword\n metaTitle\n nsuid\n numberOfPlayers\n productType\n platinumPoints\n prePurchase\n productCode\n prices(personalized: $personalized) {\n minimum {\n amountOff\n currency\n discounted\n finalPrice\n regularPrice\n }\n maximum {\n amountOff\n currency\n discounted\n finalPrice\n regularPrice\n }\n }\n relatedArticles {\n id\n locale\n title\n url\n media {\n publicId\n resourceType\n }\n publishDate\n }\n qtyAllowedPerCustomer\n relatedProducts(limit: 5) {\n ...RelatedProductsFields\n }\n requiresLogin\n requiresCoupon\n requiresSubscription\n romFileSize\n series {\n id\n label\n }\n shipDateDisplay\n size {\n id\n label\n }\n sizeChart {\n id\n label\n code\n }\n soldOutTemporary\n soldOutPermanent\n startShippingDate\n switchRequired\n topLegalDisclaimer\n upc\n upsellProducts {\n ...ProductTileFields\n }\n variations {\n label\n value\n product {\n nsuid\n name\n urlKey\n isSalableQty\n locale\n prices(personalized: $personalized) {\n minimum {\n discounted\n finalPrice\n regularPrice\n }\n }\n productImage {\n publicId\n }\n size {\n id\n code\n }\n soldOutPermanent\n soldOutTemporary\n sku\n url(relative: true)\n urlKey\n }\n }\n voucherNsuid\n }\n backgroundColor\n contentDescriptors {\n ...ContentDescriptorFields\n }\n contentRating {\n ...ContentRatingFields\n }\n descriptionImage {\n publicId\n resourceType\n type\n }\n genres {\n id\n code\n label\n }\n headline\n id\n locale\n localeAlternates {\n sku\n locale\n url\n }\n name\n nsoFeatures {\n id\n code\n label\n }\n officialSite\n platform {\n id\n label\n code\n }\n playersMax\n playersMaxLocal\n playersMaxOnline\n playersMin\n playersMinLocal\n playersMinOnline\n playModes {\n id\n code\n label\n }\n productGallery {\n publicId\n resourceType\n type\n }\n productImage {\n publicId\n resourceType\n type\n }\n releaseDate\n releaseDateDisplay\n sku\n softwareDeveloper\n softwarePublisher\n supportedLanguages\n topLevelCategory {\n id\n code\n label\n }\n url(relative: true)\n urlKey\n }\n}\n\nquery ProductBySkuForDigitalPDP($sku: String!, $locale: Locale) {\n product: storeProduct(sku: $sku, locale: $locale) {\n sku\n locale\n eshopDetails(personalized: true) {\n isPurchased\n isPreordered\n isPreorderable\n isPurchasable\n goldPoints\n purchaseUrl\n discountPriceEnd\n }\n prices(personalized: true) {\n minimum {\n amountOff\n currency\n discounted\n finalPrice\n regularPrice\n }\n maximum {\n amountOff\n currency\n discounted\n finalPrice\n regularPrice\n }\n }\n variations {\n label\n value\n product {\n sku\n locale\n prices(personalized: true) {\n minimum {\n discounted\n finalPrice\n regularPrice\n }\n }\n }\n }\n }\n}\n\nquery ProductByUrlKeyForDLC($urlKey: String!, $locale: Locale) {\n product: storeProduct(urlKey: $urlKey, locale: $locale) {\n sku\n locale\n url(relative: true)\n backgroundColor\n name\n productImage {\n publicId\n resourceType\n type\n }\n platform {\n label\n code\n }\n relatedProducts {\n ...RelatedProductsFields\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)}))}function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}r.definitions=r.definitions.concat(o(n(97547).definitions)),r.definitions=r.definitions.concat(o(n(5373).definitions)),r.definitions=r.definitions.concat(o(n(61847).definitions)),r.definitions=r.definitions.concat(o(n(34303).definitions));var s={};function c(e,t){for(var n=0;n0;){var a=o;o=new Set,a.forEach((function(e){i.has(e)||(i.add(e),(s[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=c(e,t);r&&n.definitions.push(r)})),n}r.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),s[e.name.value]=t}})),e.exports=r,e.exports.ProductByUrlKeyForPDP=l(r,"ProductByUrlKeyForPDP"),e.exports.ProductBySkuForDigitalPDP=l(r,"ProductBySkuForDigitalPDP"),e.exports.ProductByUrlKeyForDLC=l(r,"ProductByUrlKeyForDLC")},51272:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StoreProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProductFilterInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"products"},name:{kind:"Name",value:"storeProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]},{kind:"Field",alias:{kind:"Name",value:"amiibo"},name:{kind:"Name",value:"amiiboSeries"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"character"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"facets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessory"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"apparel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseColors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"collectible"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"collectionPriceRange"},name:{kind:"Name",value:"priceRange"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ALL"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"controller"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"corePlatforms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentSystems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"editions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"franchises"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hardwareType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"homeOffice"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plush"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceRange"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"replacementPart"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topLevelFilters"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"toy"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"franchise"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"genres"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"nsoFeatures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"playerCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productGallery"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1042}};r.loc.source={body:'#import "../fragments/ProductTileFields.gql"\n\nquery StoreProducts(\n $locale: Locale\n $where: ProductFilterInput\n $pageSize: Int\n) {\n products: storeProducts(locale: $locale, where: $where, pageSize: $pageSize) {\n ...ProductTileFields\n amiibo: amiiboSeries\n backgroundColor\n categories {\n id\n name\n }\n character\n edition {\n id\n label\n }\n facets {\n accessory\n apparel\n baseColors\n collectible\n collectionPriceRange: priceRange(type: ALL)\n controller\n corePlatforms\n currentSystems\n editions\n franchises\n hardwareType\n homeOffice\n plush\n priceRange\n replacementPart\n topLevelFilters\n toy\n }\n franchise\n genres {\n id\n code\n label\n }\n nsoFeatures {\n id\n code\n label\n }\n playerCount\n productGallery {\n publicId\n resourceType\n type\n }\n variations {\n label\n value\n product {\n ...ProductTileFields\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(34303).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"StoreProducts")},35456:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomerRecommendationsv2"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"devices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deviceId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"recommendations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"basedOn"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productGallery"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourceType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:531}};r.loc.source={body:"#import '../fragments/ProductTileFields.gql'\n\nquery CustomerRecommendationsv2($limit: Int, $locale: Locale!) {\n customer(locale: $locale) {\n devices {\n deviceId\n }\n recommendations(limit: $limit, locale: $locale) {\n basedOn {\n ...ProductTileFields\n }\n description\n id\n name\n products {\n ...ProductTileFields\n headline\n backgroundColor\n productGallery {\n publicId\n resourceType\n type\n }\n }\n slug\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(34303).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"CustomerRecommendationsv2")},46374:function(e,t,n){var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UpsellProducts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sku"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sku"},value:{kind:"Variable",name:{kind:"Name",value:"sku"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"upsellProducts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductTileFields"},directives:[]}]}}]}}]}}],loc:{start:0,end:224}};r.loc.source={body:"#import '../fragments/ProductTileFields.gql'\n\nquery UpsellProducts($sku: String, $locale: Locale) {\n storeProduct(sku: $sku, locale: $locale) {\n sku\n locale\n upsellProducts {\n ...ProductTileFields\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}r.definitions=r.definitions.concat(n(34303).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!i[t]&&(i[t]=!0,!0)})));var a={};function s(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach((function(e){i.has(e)||(i.add(e),(a[e]||new Set).forEach((function(e){o.add(e)})))}))}return i.forEach((function(t){var r=s(e,t);r&&n.definitions.push(r)})),n}(r,"UpsellProducts")},85044:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"WaitingRooms"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"waitingRooms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"detailPageUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"relative"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"locale"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:152}};t.loc.source={body:"query WaitingRooms {\n waitingRooms {\n items {\n products {\n detailPageUrl(relative: true)\n locale\n sku\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"WaitingRooms")},81181:function(e,t,n){"use strict";var r=n(70999),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},18486:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},32636:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(66679);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},66679: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"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},67226:function(e,t,n){"use strict";var r=n(66679);e.exports=function(){return r()&&!!Symbol.toStringTag}},72196:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(4090);e.exports=o.call(r,i)},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=c(t),m=c(n),g=0;g>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}},91285: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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},73756:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},65279:function(e,t,n){"use strict";var r=n(73756),i=n(61278);e.exports=function(e){return r(e)||i(e)}},52635:function(e,t,n){"use strict";var r=n(67226)(),i=n(62680)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9680:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(p){p!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(l)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},61278:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},43138:function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(67226)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if("undefined"===typeof r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},48833:function(e){"use strict";e.exports=function(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},50198:function(e,t,n){"use strict";var r=n(32094);e.exports=function(e){return!!r(e)}},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n(r,i)&&e1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},86874:function(e){e.exports=function(e){return function(){return e}}},54073:function(e,t,n){var r=n(29259),i=n(61100),o=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,l,u,d,f,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,r=l;return c=l=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(k,t),m?y(e):d}function w(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=u}function k(){var e=i();if(w(e))return S(e);f=setTimeout(k,function(e){var n=t-(e-p);return g?s(n,u-(e-h)):n}(e))}function S(e){return f=void 0,v&&c?y(e):(c=l=void 0,d)}function A(){var e=i(),n=w(e);if(c=arguments,l=this,p=e,n){if(void 0===f)return b(p);if(g)return clearTimeout(f),f=setTimeout(k,t),y(p)}return void 0===f&&(f=setTimeout(k,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=l=f=void 0},A.flush=function(){return void 0===f?d:S(i())},A}},41225:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},23059:function(e){e.exports=function(e){return e}},264:function(e,t,n){var r=n(78222),i=n(5707),o=n(7642);e.exports=function(e,t,n){return t=i(t),void 0===n?(n=t,t=0):n=i(n),e=o(e),r(e,t,n)}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},98537:function(e,t,n){var r=n(84565),i=n(97263)((function(e,t,n){r(e,t,n)}));e.exports=i},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},36330:function(e){e.exports=function(){return!1}},6040:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},5707:function(e,t,n){var r=n(7642),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},63329:function(e,t,n){var r=n(752),i=n(18582);e.exports=function(e){return r(e,i(e))}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},74930:function(e,t,n){var r=n(66188),i=0;e.exports=function(e){var t=++i;return r(e)+t}},12041:function(e,t,n){e.exports=n(81432)},21800:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ae},reportWebVitals:function(){return W.U9}});var r=n(98537),i=n.n(r),o=n(12041),a=n(25237),s=n.n(a),c=n(13980),l=n.n(c),u=n(2784),d=n(29434),f=n(68106),p=n(7307),h=n(52322),m=n(96447),g=n(25544),v=n(10723),y=n(23896),b=n(60424),w=n(18019),k=n(86719);const S=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"YoutubeIcon",...e,children:(0,h.jsx)("path",{d:"M31.33 8.3a4 4 0 0 0-2.83-2.83C26 4.8 16 4.8 16 4.8s-10 0-12.5.67A4 4 0 0 0 .67 8.3 41.51 41.51 0 0 0 0 16a41.51 41.51 0 0 0 .67 7.7 4 4 0 0 0 2.83 2.83c2.5.67 12.5.67 12.5.67s10 0 12.5-.67a4 4 0 0 0 2.83-2.83A41.51 41.51 0 0 0 32 16a41.51 41.51 0 0 0-.67-7.7zM12.8 20.8v-9.6l8.31 4.8z",fill:e.color})});S.propTypes={className:l().string,color:l().string,size:l().oneOfType([l().number,l().string])},S.defaultProps={color:"currentColor",size:24};const A="https://www.nintendo.com".replace(/\/$/,"");var x={"en-us":[{categoryTitle:"About Nintendo",categoryUrl:"/about/",categoryLinks:[{text:"Careers",url:"https://careers.nintendo.com/"},{text:"Corporate Social Responsibility",url:"/about/csr/"}]},{categoryTitle:"Shop",categoryUrl:"/store/",categoryLinks:[{text:"Games",url:"/store/games/"},{text:"Hardware",url:"/store/hardware/"},{text:"Merchandise",url:"/store/merchandise/"},{text:"Sales & deals",url:"/store/sales-and-deals/"},{text:"Exclusives",url:"/store/exclusives/"},{text:"Online service",url:"/switch/online/"},{text:"Nintendo NY store",url:"https://www.nintendonyc.com/"}]},{categoryTitle:"My Nintendo Store orders",categoryUrl:"/orders/",categoryLinks:[{text:"Order details",url:"/orders/"},{text:"Shipping info",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/15575"},{text:"Returns & exchanges",url:"/returns-exchanges/"},{text:"FAQ",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/15578"}]},{categoryTitle:"Support",categoryUrl:"https://en-americas-support.nintendo.com/app/home",categoryLinks:[{text:"Nintendo Switch",url:"https://en-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Nintendo Account",url:"https://en-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Other systems",url:"https://en-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Repairs",url:"https://en-americas-support.nintendo.com/app/products/detail/p/995"},{text:"Nintendo product recycling",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/10276/"}]},{categoryTitle:"Parents",categoryUrl:"https://play.nintendo.com/parents/",categoryLinks:[{text:"Info for parents",url:"https://play.nintendo.com/parents/crash-courses/"},{text:"Parental controls",url:"https://play.nintendo.com/parents/crash-courses/parental-controls/"}]},{categoryTitle:"Community",categoryUrl:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/43419",categoryLinks:[{text:"Community guidelines",url:"/code-of-conduct/"},{text:"Online safety principles",url:"/online-safety-principles/"}]},{categoryTitle:"Privacy",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Privacy policy",url:"/privacy-policy/"},{text:"Cookies and interest-based ads",url:"/privacy-request/#cookies"}]}],"en-ca":[{categoryTitle:"About Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Careers",url:"https://careers.nintendo.com/"},{text:"Corporate Social Responsibility",url:`${A}/us/about/csr/`,locale:!1}]},{categoryTitle:"Shop",categoryUrl:"/store/",categoryLinks:[{text:"Games",url:"/store/games/"},{text:"Hardware",url:"/store/hardware/"},{text:"Merchandise",url:"/store/merchandise/"},{text:"Sales & deals",url:"/store/sales-and-deals/"},{text:"Exclusives",url:"/store/exclusives/"},{text:"Online service",url:"/switch/online/"},{text:"Nintendo NY store",url:"https://www.nintendonyc.com/"}]},{categoryTitle:"My Nintendo Store orders",categoryUrl:"/orders/",categoryLinks:[{text:"Order details",url:"/orders/"},{text:"Shipping info",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/15575"},{text:"Returns & exchanges",url:"/returns-exchanges/"},{text:"FAQ",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/15578"}]},{categoryTitle:"Support",categoryUrl:"https://en-americas-support.nintendo.com/app/home",categoryLinks:[{text:"Nintendo Switch",url:"https://en-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Nintendo Account",url:"https://en-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Other systems",url:"https://en-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Repairs",url:"https://en-americas-support.nintendo.com/app/products/detail/p/995"},{text:"Nintendo product recycling",url:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/10276/"}]},{categoryTitle:"Parents",categoryUrl:"https://play.nintendo.com/parents/",categoryLinks:[{text:"Info for parents",url:"https://play.nintendo.com/parents/crash-courses/"},{text:"Parental controls",url:"https://play.nintendo.com/parents/crash-courses/parental-controls/"}]},{categoryTitle:"Community",categoryUrl:"https://en-americas-support.nintendo.com/app/answers/detail/a_id/43419",categoryLinks:[{text:"Community guidelines",url:"/code-of-conduct/"},{text:"Online safety principles",url:"/online-safety-principles/"}]},{categoryTitle:"Privacy",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Privacy policy",url:"/privacy-policy/"},{text:"Cookies and interest-based ads",url:"/privacy-request/#cookies"}]}],"fr-ca":[{categoryTitle:"\xc0 propos de Nintendo (en anglais)",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Carri\xe8res",url:"https://careers.nintendo.com/"},{text:"Responsabilit\xe9 sociale d'entreprise (en anglais)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Magasiner",categoryUrl:"/store/",categoryLinks:[{text:"Jeux",url:"/store/games/"},{text:"Mat\xe9riel",url:"/store/hardware/"},{text:"Marchandise",url:"/store/merchandise/"},{text:"Offres et rabais",url:"/store/sales-and-deals/"},{text:"Exclusivit\xe9s",url:"/store/exclusives/"},{text:"Service en ligne",url:"/switch/online/"},{text:"Boutique Nintendo NY (en anglais)",url:"https://www.nintendonyc.com/"}]},{categoryTitle:"Mes commandes de la boutique Nintendo",categoryUrl:"/orders/",categoryLinks:[{text:"D\xe9tails de la commande",url:"/orders/"},{text:"Informations sur la livraison",url:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/46326"},{text:"Retours et \xe9changes",url:"/returns-exchanges/"},{text:"FAQ",url:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/46328"}]},{categoryTitle:"Soutien",categoryUrl:"https://fr-americas-support.nintendo.com/app/home",categoryLinks:[{text:"Nintendo Switch",url:"https://fr-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Compte Nintendo",url:"https://fr-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Autres consoles",url:"https://fr-americas-support.nintendo.com/app/products/detail/p/172"},{text:"R\xe9parations",url:"https://fr-americas-support.nintendo.com/app/products/detail/p/995"},{text:"Recyclage de produits Nintendo",url:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/55561"}]},{categoryTitle:"Parents",categoryUrl:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/26811",categoryLinks:[{text:"Info pour les parents",url:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/26811"},{text:"Contr\xf4le parental",url:"/switch/parental-controls/"}]},{categoryTitle:"Communaut\xe9",categoryUrl:"https://fr-americas-support.nintendo.com/app/answers/detail/a_id/26811",categoryLinks:[{text:"R\xe8gles communautaires",url:"/code-of-conduct/"},{text:"Principes de s\xe9curit\xe9 en ligne",url:"/online-safety-principles/"}]},{categoryTitle:"Confidentialit\xe9",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Politique de confidentialit\xe9",url:"/privacy-policy/"},{text:"T\xe9moins et publicit\xe9 cibl\xe9e par centres d'int\xe9r\xeat",url:"/privacy-request/#cookies"}]}],"es-mx":[{categoryTitle:"Acerca de Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidad social corporativa (en ingl\xe9s)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Tienda",categoryUrl:"/store/games/",categoryLinks:[{text:"Juegos",url:"/store/games/"},{text:"Equipo",url:"/switch/"},{text:"Ventas y ofertas",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Ofertas"},{text:"Servicio en l\xednea",url:"/switch/online/"}]},{categoryTitle:"Asistencia",categoryUrl:"https://es-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://es-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Cuenta Nintendo",url:"https://es-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Otras consolas",url:"https://es-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparaciones",url:"https://es-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Padres",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Informaci\xf3n para padres",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900"},{text:"Control parental",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/23154"}]},{categoryTitle:"Comunidad",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Directrices de la comunidad",url:"/code-of-conduct/"},{text:"Directrices para la seguridad en l\xednea",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidad",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidad",url:"/privacy-policy/"},{text:"Cookies y anuncios basados en intereses",url:"/privacy-request/#cookies"}]}],"pt-br":[{categoryTitle:"Sobre a Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidade social corporativa (em ingl\xeas)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Loja",categoryUrl:"/store/games/",categoryLinks:[{text:"Jogos",url:"/store/games/"},{text:"Hardware",url:"/switch/"},{text:"Ofertas e promo\xe7\xf5es",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Promo\xe7\xf5es"},{text:"Online service",url:"/switch/online/"}]},{categoryTitle:"Assist\xeancia",categoryUrl:"https://pt-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://pt-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Conta Nintendo",url:"https://pt-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Outros consoles",url:"https://pt-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparos",url:"https://pt-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Pais",categoryUrl:"https://pt-americas-support.nintendo.com/app/answers/detail/a_id/41507",categoryLinks:[{text:"Informa\xe7\xe3o para os pais",url:"https://pt-americas-support.nintendo.com/app/answers/detail/a_id/41507"},{text:"Controle dos pais",url:"/switch/parental-controls/"}]},{categoryTitle:"Comunidade",categoryUrl:"https://pt-americas-support.nintendo.com/app/answers/detail/a_id/41507",categoryLinks:[{text:"Diretrizes comunit\xe1rias",url:"/code-of-conduct/"},{text:"Princ\xedpios de seguran\xe7a online",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidade",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidade",url:"/privacy-policy/"},{text:"Cookies e an\xfancios com base em interesses",url:"/privacy-request/#cookies"}]}],"es-ar":[{categoryTitle:"Acerca de Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidad social corporativa (en ingl\xe9s)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Tienda",categoryUrl:"/store/games/",categoryLinks:[{text:"Juegos",url:"/store/games/"},{text:"Equipo",url:"/switch/"},{text:"Ventas y ofertas",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Ofertas"},{text:"Servicio en l\xednea",url:"/switch/online/"}]},{categoryTitle:"Asistencia",categoryUrl:"https://es-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://es-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Cuenta Nintendo",url:"https://es-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Otras consolas",url:"https://es-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparaciones",url:"https://es-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Padres",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Informaci\xf3n para padres",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900"},{text:"Control parental",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/23154"}]},{categoryTitle:"Comunidad",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Directrices de la comunidad",url:"/code-of-conduct/"},{text:"Directrices para la seguridad en l\xednea",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidad",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidad",url:"/privacy-policy/"},{text:"Cookies y anuncios basados en intereses",url:"/privacy-request/#cookies"}]}],"es-cl":[{categoryTitle:"Acerca de Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidad social corporativa (en ingl\xe9s)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Tienda",categoryUrl:"/store/games/",categoryLinks:[{text:"Juegos",url:"/store/games/"},{text:"Equipo",url:"/switch/"},{text:"Ventas y ofertas",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Ofertas"},{text:"Servicio en l\xednea",url:"/switch/online/"}]},{categoryTitle:"Asistencia",categoryUrl:"https://es-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://es-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Cuenta Nintendo",url:"https://es-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Otras consolas",url:"https://es-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparaciones",url:"https://es-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Padres",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Informaci\xf3n para padres",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900"},{text:"Control parental",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/23154"}]},{categoryTitle:"Comunidad",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Directrices de la comunidad",url:"/code-of-conduct/"},{text:"Directrices para la seguridad en l\xednea",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidad",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidad",url:"/privacy-policy/"},{text:"Cookies y anuncios basados en sintereses",url:"/privacy-request/#cookies"}]}],"es-co":[{categoryTitle:"Acerca de Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidad social corporativa (en ingl\xe9s)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Tienda",categoryUrl:"/store/games/",categoryLinks:[{text:"Juegos",url:"/store/games/"},{text:"Equipo",url:"/switch/"},{text:"Ventas y ofertas",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Ofertas"},{text:"Servicio en l\xednea",url:"/switch/online/"}]},{categoryTitle:"Asistencia",categoryUrl:"https://es-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://es-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Cuenta Nintendo",url:"https://es-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Otras consolas",url:"https://es-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparaciones",url:"https://es-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Padres",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Informaci\xf3n para padres",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900"},{text:"Control parental",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/23154"}]},{categoryTitle:"Comunidad",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Directrices de la comunidad",url:"/code-of-conduct/"},{text:"Directrices para la seguridad en l\xednea",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidad",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidad",url:"/privacy-policy/"},{text:"Cookies y anuncios basados en intereses",url:"/privacy-request/#cookies"}]}],"es-pe":[{categoryTitle:"Acerca de Nintendo",categoryUrl:`${A}/us/about/`,categoryLinks:[{text:"Responsabilidad social corporativa (en ingl\xe9s)",url:`${A}/us/about/csr/`}]},{categoryTitle:"Tienda",categoryUrl:"/store/games/",categoryLinks:[{text:"Juegos",url:"/store/games/"},{text:"Equipo",url:"/switch/"},{text:"Ventas y ofertas",url:"/store/games/#p=1&sort=df&f=topLevelFilters&topLevelFilters=Ofertas"},{text:"Servicio en l\xednea",url:"/switch/online/"}]},{categoryTitle:"Asistencia",categoryUrl:"https://es-americas-support.nintendo.com/",categoryLinks:[{text:"Nintendo Switch",url:"https://es-americas-support.nintendo.com/app/products/detail/p/989"},{text:"Cuenta Nintendo",url:"https://es-americas-support.nintendo.com/app/products/detail/p/992"},{text:"Otras consolas",url:"https://es-americas-support.nintendo.com/app/products/detail/p/172"},{text:"Reparaciones",url:"https://es-americas-support.nintendo.com/app/products/detail/p/995"}]},{categoryTitle:"Padres",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Informaci\xf3n para padres",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900"},{text:"Control parental",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/23154"}]},{categoryTitle:"Comunidad",categoryUrl:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/26900",categoryLinks:[{text:"Directrices de la comunidad",url:"/code-of-conduct/"},{text:"Directrices para la seguridad en l\xednea",url:"/online-safety-principles/"}]},{categoryTitle:"Privacidad",categoryUrl:"/privacy-policy/",categoryLinks:[{text:"Pol\xedtica de privacidad",url:"/privacy-policy/"},{text:"Cookies y anuncios basados en intereses",url:"/privacy-request/#cookies"}]}]},E={"en-us":{brand:[{name:"Nintendo",url:"https://www.nintendo.com",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"Nintendo Homepage"},{name:"Facebook",url:"https://www.facebook.com/NintendoAmerica/",iconName:"facebook",alt:"Nintendo on Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendoamerica/",iconName:"instagram",alt:"Nintendo on Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoAmerica",iconName:"twitter",alt:"Nintendo on Twitter"},{name:"YouTube",url:"https://www.youtube.com/nintendo",iconName:"youtube",alt:"Nintendo on YouTube"}],copyright:["\xa9 Nintendo. ","Games are property of their respective owners. ","Nintendo of America Inc. Headquarters are in Redmond, Washington, USA"],esrbPrivacyUrl:"https://www.esrb.org/EPCConfirm/891/",esrbPrivacyAlt:"ESRB Privacy Certified",main:[{name:"Contact us",url:"https://en-americas-support.nintendo.com/app/contact"},{name:"Website feedback",url:"https://nintendoofamerica.co1.qualtrics.com/jfe/form/SV_dp1F1wielOUu20t"},{name:"Terms of Use",url:"https://www.nintendo.com/terms-of-use/"},{name:"Documents & Policies",url:"https://en-americas-support.nintendo.com/app/legal/a_id/48057/"}]},"en-ca":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/en-ca/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"Nintendo Homepage"},{name:"Facebook",url:"https://www.facebook.com/nintendoofcanada/",iconName:"facebook",alt:"Nintendo on Facebook"},{name:"Instagram",url:"https://instagram.com/nintendoamerica",iconName:"instagram",alt:"Nintendo on Instagram"},{name:"Twitter",url:"https://twitter.com/nintendocanada",iconName:"twitter",alt:"Nintendo on Twitter"},{name:"YouTube",url:"https://www.youtube.com/nintendo",iconName:"youtube",alt:"Nintendo on YouTube"}],copyright:["\xa9 Nintendo. ","Games are property of their respective owners. ","Nintendo of Canada, Ltd. Headquarters are in Vancouver, BC, Canada"],esrbPrivacyUrl:"https://www.esrb.org/EPCConfirm/891/",esrbPrivacyAlt:"ESRB Privacy Certified",main:[{name:"Contact us",url:"https://en-americas-support.nintendo.com/app/contact"},{name:"Website feedback",url:"https://nintendoofamerica.co1.qualtrics.com/jfe/form/SV_dp1F1wielOUu20t"},{name:"Terms of Use",url:"https://www.nintendo.com/en_CA/terms-of-use/"},{name:"Documents & Policies",url:"https://en-americas-support.nintendo.com/app/legal/a_id/48057/"}]},"fr-ca":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/fr-ca/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"Accueil Nintendo"},{name:"Facebook",url:"https://www.facebook.com/nintendoswitchcanfr/",iconName:"facebook",alt:"Nintendo sur Facebook"},{name:"Instagram",url:"https://instagram.com/nintendoamerica",iconName:"instagram",alt:"Nintendo sur Instagram"},{name:"Twitter",url:"https://twitter.com/nintendocanada",iconName:"twitter",alt:"Nintendo sur Twitter"},{name:"YouTube",url:"https://www.youtube.com/nintendo",iconName:"youtube",alt:"Nintendo sur YouTube"}],esrbPrivacyUrl:"https://www.esrb.org/EPCConfirm/891/fr-FR/",esrbPrivacyAlt:"ESRB Privacy Certified",copyright:["\xa9 Nintendo. ","Les jeux appartiennent \xe0 leurs propri\xe9taires respectifs. ","Nintendo du Canada lt\xe9e. Le si\xe8ge social est situ\xe9 \xe0 Vancouver, BC, Canada"],main:[{name:"Nous contacter",url:"https://fr-americas-support.nintendo.com/app/contact"},{name:"Conditions d'utilisation",url:"https://www.nintendo.com/fr_CA/terms-of-use/"},{name:"Documents et politiques",url:"https://fr-americas-support.nintendo.com/app/legal/a_id/54963"}]},"es-mx":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/es-mx/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina de inicio de Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoLatAm",iconName:"facebook",alt:"Nintendo en Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendolatam/",iconName:"instagram",alt:"Nintendo en Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoLatam",iconName:"twitter",alt:"Nintendo en Twitter"}],copyright:["\xa9 Nintendo. ","Los juegos son propiedad de sus respectivos due\xf1os. ","Nintendo of America Inc. La sede se encuentra en Redmond, Washington, USA"],main:[{name:"Cont\xe1ctanos",url:"https://es-americas-support.nintendo.com/app/contact"},{name:"Condiciones de Uso",url:"https://www.nintendo.com/es-mx/terms-of-use/"},{name:"Documentos y Pol\xedtica",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/50798/"}]},"pt-br":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/pt-br/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina da Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoBrazil",iconName:"facebook",alt:"Nintendo no Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendo_brasil",iconName:"instagram",alt:"Nintendo no Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoBrasil",iconName:"twitter",alt:"Nintendo no Twitter"}],copyright:["\xa9 Nintendo. ","Os jogos s\xe3o propriedade de seus respectivos donos. ","Nintendo of America Inc. A sede est\xe1 localizada em Redmond, Washington (EUA)."],main:[{name:"Fale conosco",url:"https://pt-americas-support.nintendo.com/app/contact"},{name:"Termos de uso",url:"https://www.nintendo.com/pt-br/terms-of-use/"},{name:"Documentos e Pol\xedticas",url:"https://pt-americas-support.nintendo.com/app/legal/a_id/50328"}]},"es-cl":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/es-cl/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina de inicio de Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoLatAm",iconName:"facebook",alt:"Nintendo en Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendolatam/",iconName:"instagram",alt:"Nintendo en Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoLatam",iconName:"twitter",alt:"Nintendo en Twitter"}],copyright:["\xa9 Nintendo. ","Los juegos son propiedad de sus respectivos due\xf1os. ","Nintendo of America Inc. La sede se encuentra en Redmond, Washington, USA"],main:[{name:"Cont\xe1ctanos",url:"https://es-americas-support.nintendo.com/app/contact"},{name:"Condiciones de Uso",url:"https://www.nintendo.com/es-cl/terms-of-use/"},{name:"Documentos y Pol\xedtica",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/50798/"}]},"es-co":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/es-co/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina de inicio de Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoLatAm",iconName:"facebook",alt:"Nintendo en Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendolatam/",iconName:"instagram",alt:"Nintendo en Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoLatam",iconName:"twitter",alt:"Nintendo en Twitter"}],copyright:["\xa9 Nintendo. ","Los juegos son propiedad de sus respectivos due\xf1os. ","Nintendo of America Inc. La sede se encuentra en Redmond, Washington, USA"],main:[{name:"Cont\xe1ctanos",url:"https://es-americas-support.nintendo.com/app/contact"},{name:"Condiciones de Uso",url:"https://www.nintendo.com/es-co/terms-of-use/"},{name:"Documentos y Pol\xedtica",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/50798/"}]},"es-pe":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/es-pe/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina de inicio de Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoLatAm",iconName:"facebook",alt:"Nintendo en Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendolatam/",iconName:"instagram",alt:"Nintendo en Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoLatam",iconName:"twitter",alt:"Nintendo en Twitter"}],copyright:["\xa9 Nintendo. ","Los juegos son propiedad de sus respectivos due\xf1os. ","Nintendo of America Inc. La sede se encuentra en Redmond, Washington, USA"],main:[{name:"Cont\xe1ctanos",url:"https://es-americas-support.nintendo.com/app/contact"},{name:"Condiciones de Uso",url:"https://www.nintendo.com/es-pe/terms-of-use/"},{name:"Documentos y Pol\xedtica",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/50798/"}]},"es-ar":{brand:[{name:"Nintendo",url:"https://www.nintendo.com/es-ar/",target:"_self",iconName:"nintendo-racetrack-logo",iconSize:"195",alt:"P\xe1gina de inicio de Nintendo"},{name:"Facebook",url:"https://www.facebook.com/NintendoLatAm",iconName:"facebook",alt:"Nintendo en Facebook"},{name:"Instagram",url:"https://www.instagram.com/nintendolatam/",iconName:"instagram",alt:"Nintendo en Instagram"},{name:"Twitter",url:"https://twitter.com/NintendoLatam",iconName:"twitter",alt:"Nintendo en Twitter"}],copyright:["\xa9 Nintendo. ","Los juegos son propiedad de sus respectivos due\xf1os. ","Nintendo of America Inc. La sede se encuentra en Redmond, Washington, USA"],main:[{name:"Cont\xe1ctanos",url:"https://es-americas-support.nintendo.com/app/contact"},{name:"Condiciones de Uso",url:"https://www.nintendo.com/es-ar/terms-of-use/"},{name:"Documentos y Pol\xedtica",url:"https://es-americas-support.nintendo.com/app/answers/detail/a_id/50798/"}]}};const N=p.default.svg.withConfig({componentId:"sc-er5ggs-0"})([".cls-1{fill:#fff;}.cls-2{fill:#231f20;}.cls-3{fill:#085ea9;}.cls-4{fill:#151011;}"]);var C=()=>(0,h.jsxs)(N,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 114.03 154.33",children:[(0,h.jsx)("defs",{}),(0,h.jsx)("title",{children:"ESRB Privacy Certified"}),(0,h.jsx)("path",{className:"cls-1",d:"M127.75,8.27h-114V162.6h114V8.27Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("polyline",{className:"cls-2",points:"112.38 1.66 112.38 152.67 1.66 152.67 1.66 1.66 112.38 1.66"}),(0,h.jsx)("rect",{className:"cls-1",x:"7.67",y:"7.31",width:"98.75",height:"23.03"}),(0,h.jsx)("rect",{className:"cls-1",x:"7.85",y:"36.03",width:"98.57",height:"89.82"}),(0,h.jsx)("path",{className:"cls-2",d:"M27.17,20c2.18,0,3.11.59,3.11,2.57v3c0,1.88-.89,2.59-3,2.59h-.51v6.12H25.06V20Zm-.35,6.71h.31c1.07,0,1.29-.42,1.29-1.71v-1.9c0-1.28-.22-1.68-1.29-1.68h-.31Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M33.67,20c2.1,0,3,.55,3,2.37v2.3c0,1.44-.52,2.07-2,2.23,1.58.12,2.05.77,2.05,2.38v5H34.83v-5c0-1.27-.17-1.62-1.46-1.62H33v6.61H31.19V20ZM33,26.2h.38c1.19,0,1.44-.37,1.44-1.62V23c0-1.24-.25-1.62-1.44-1.62H33Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M40.06,20V34.24H38.18V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M42.59,20l1.33,12h.14L45.3,20h1.63L45.11,34.24H42.75L40.77,20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M51.58,20l2.16,14.25H51.88l-.46-3.63H49.05l-.54,3.63H46.77L49.09,20Zm-2.34,9.18h2l-.89-7.64h-.08Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M59.75,23.91H57.91v-1c0-1.14-.15-1.72-.77-1.72-.81,0-.91.62-.91,2V31c0,1.37.08,2,.87,2s.81-.51.81-1.64V30.08h1.86v1.31c0,2.23-.61,3.09-2.71,3.09s-2.69-1.15-2.69-3.83V23.57c0-2.69.56-3.8,2.73-3.8s2.65.85,2.65,3.07Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M61.63,20,62.9,26.3H63L64.19,20h1.74l-2.2,8.31v5.94H61.89V28.3L59.75,20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M74.66,23.91H72.82v-1c0-1.14-.16-1.72-.77-1.72-.82,0-.91.62-.91,2V31c0,1.37.07,2,.87,2,.63,0,.81-.51.81-1.64V30.08h1.86v1.31c0,2.23-.61,3.09-2.71,3.09s-2.7-1.15-2.7-3.83V23.57c0-2.69.56-3.8,2.74-3.8s2.65.85,2.65,3.07Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M80,20v1.5H77.55V26h2.3v1.51h-2.3v5.18H80.1v1.51H75.71V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M83.71,20c2.09,0,3,.55,3,2.37v2.3c0,1.44-.52,2.07-2,2.23,1.58.12,2,.77,2,2.38v5H84.87v-5c0-1.27-.17-1.62-1.46-1.62H83v6.61H81.23V20ZM83,26.2h.38c1.19,0,1.44-.37,1.44-1.62V23c0-1.24-.25-1.62-1.44-1.62H83Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M92.65,20v1.5H90.93V34.24H89.07V21.49H87.35V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M95.25,20V34.24H93.37V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M101.05,20v1.5H98.63v4.65h2.28v1.51H98.63v6.59H96.79V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M103.86,20V34.24H102V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M109.66,20v1.5h-2.42V26h2.3v1.51h-2.3v5.18h2.55v1.51H105.4V20Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-2",d:"M112.86,20c3,0,3.62.81,3.62,4v6.34c0,3.13-.63,4-3.62,4h-1.94V20Zm-.1,12.78h.38c1.23,0,1.48-.34,1.48-1.56V23c0-1.22-.27-1.56-1.48-1.56h-.38Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("polygon",{className:"cls-1",points:"7.96 145.46 7.96 131.95 27.82 131.95 27.82 135.11 15.94 135.11 15.94 137.04 25.99 137.04 25.99 140.19 15.94 140.19 15.94 142.3 28.28 142.3 28.28 145.46 7.96 145.46"}),(0,h.jsx)("path",{className:"cls-1",d:"M58.86,144.15a1.52,1.52,0,0,0-1.15-.91,7.35,7.35,0,0,0-2.06-.25c-1.76,0-2.54.28-2.54.78,0,2,14,.75,14,5.66,0,3.13-4.7,4.66-11.39,4.66-6.42,0-10.61-2.08-10.78-4.53h7.64a1.87,1.87,0,0,0,1.32,1.07,7.07,7.07,0,0,0,2.27.34c2,0,3.32-.35,3.32-1,0-2-14-.64-14-5.79,0-2.87,4.47-4.31,10.55-4.31,6.76,0,9.84,1.92,10.42,4.27Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M79.05,146.07h3.14c2.46,0,3.79-.35,3.79-1.28s-1.35-1.41-3.21-1.41H79.05Zm0,3v4.71h-8V140.22h11.5c8.1,0,10.77,1.24,10.77,3.86,0,1.56-1.24,2.86-4.08,3.31,2.56.52,4.12.84,4.12,3.56,0,1.76-.1,2.36.84,2.36v.42H86.14a5.38,5.38,0,0,1-.4-2.37c0-1.77-.54-2.34-4.26-2.34Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M106.22,143.38v2.26h3.32c1.59,0,2.75-.41,2.75-1.18,0-1.06-1.58-1.08-3.25-1.08Zm0,4.71v2.48h3.48c2,0,3.46-.22,3.46-1.23,0-1.18-1.85-1.25-4.41-1.25Zm-8,5.64V140.22h11.63c5.49,0,9.84.73,9.84,3.41,0,1.39-1.63,2.4-3.18,2.93,2.64.38,4,1.64,4,3.09,0,3-4.15,4.08-10.48,4.08Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M32.69,74.15a6,6,0,0,0-3.16,5.62c.14,2.7,1.76,4.26,4.1,5.39-1.34,2.16-1.92,4.33-.73,6.65S36.25,95,38.76,95c0,.7,0,1.22,0,1.74a5.7,5.7,0,0,0,7.63,5.59c1.09-.37,1.42-.1,1.77.91a5.73,5.73,0,0,0,9.4,2.32c.31-.29.64-.55,1-.86,1.61,2.07,3.55,3.11,6.13,2.69s3.94-2.33,4.87-4.64c2.34,1.21,4.56,1.44,6.73,0s2.67-3.66,2.51-6.18c2.54,0,4.72-.51,6.12-2.72s1-4.5-.18-6.78c2.41-.94,4.11-2.35,4.5-5s-.86-4.52-2.85-6a3.07,3.07,0,0,1,.33-.49,5.89,5.89,0,0,0-2.64-10.11c-.8-.17-.69-.59-.6-1.24a9.62,9.62,0,0,0,.19-3.41c-.62-3-3-4.53-6.4-4.3-.94.06-1.31-.09-1.41-1.15A5.44,5.44,0,0,0,70,50.27a21.65,21.65,0,0,0-4.12,1.13c-1-1.94-2.6-3.53-5.25-3.63s-4.42,1.31-5.77,3.57c-2-1.68-4.14-2.38-6.56-1.43s-3.45,3-3.77,5.57l-.84-.16c-5.21-1.08-8.4,3.34-7.12,7.34.23.72-.1.94-.8,1.1-3.46.83-5.3,3.45-4.65,6.81A18.4,18.4,0,0,0,32.69,74.15Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M92.13,80.78a1.59,1.59,0,0,0-.13.39A8.78,8.78,0,0,1,88.7,88a1.77,1.77,0,0,0-.32,1.38,8.47,8.47,0,0,1-6,9.48,6.24,6.24,0,0,0-1.06.6,5.21,5.21,0,0,0,1,.93q9.4,5.07,18.85,10.09c.32.17.67.31,1,.46,0-3.89,0-7.65,0-11.41a2,2,0,0,1,.76-1.41c1.39-1,2.87-1.9,4.31-2.84l5.39-3.51Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M68.43,131.35c.35-.42.61-.7.86-1,2.12-2.65,4.23-5.33,6.39-8a1.83,1.83,0,0,1,1.25-.66c1.47.08,2.94.31,4.41.48l7.35.82-8.45-20.51c-2.72,3.21-4.61,4-8.62,3.81a2,2,0,0,0-1.34.66,8.1,8.1,0,0,1-6.71,3.13,29.33,29.33,0,0,1-4.2-.77C62.38,116.64,65.37,123.92,68.43,131.35Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M112.39,122.74a4.49,4.49,0,0,0-4.56,4.57,4.55,4.55,0,0,0,4.55,4.49,4.49,4.49,0,0,0,4.53-4.6A4.42,4.42,0,0,0,112.39,122.74Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M32.69,74.15a18.4,18.4,0,0,1-1.59-3.58c-.65-3.36,1.19-6,4.65-6.81.7-.16,1-.38.8-1.1-1.28-4,1.91-8.42,7.12-7.34l.84.16c.32-2.53,1.3-4.6,3.77-5.57s4.54-.25,6.56,1.43c1.35-2.26,3.09-3.67,5.77-3.57s4.2,1.69,5.25,3.63A21.65,21.65,0,0,1,70,50.27a5.44,5.44,0,0,1,5.89,5.08c.1,1.06.47,1.21,1.41,1.15,3.36-.23,5.78,1.34,6.4,4.3a9.62,9.62,0,0,1-.19,3.41c-.09.65-.2,1.07.6,1.24a5.89,5.89,0,0,1,2.64,10.11,3.07,3.07,0,0,0-.33.49c2,1.53,3.24,3.41,2.85,6s-2.09,4-4.5,5c1.18,2.28,1.61,4.53.18,6.78s-3.58,2.76-6.12,2.72c.16,2.52-.33,4.72-2.51,6.18s-4.39,1.22-6.73,0c-.93,2.31-2.23,4.21-4.87,4.64s-4.52-.62-6.13-2.69c-.38.31-.71.57-1,.86a5.73,5.73,0,0,1-9.4-2.32c-.35-1-.68-1.28-1.77-.91a5.7,5.7,0,0,1-7.63-5.59c0-.52,0-1,0-1.74-2.51,0-4.64-.83-5.86-3.19s-.61-4.49.73-6.65c-2.34-1.13-4-2.69-4.1-5.39A6,6,0,0,1,32.69,74.15Zm27,28.63a25.06,25.06,0,1,0-25-25.27A25.14,25.14,0,0,0,59.68,102.78Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M92.13,80.78l20.51,11-5.39,3.51c-1.44.94-2.92,1.82-4.31,2.84a2,2,0,0,0-.76,1.41c-.06,3.76,0,7.52,0,11.41-.33-.15-.68-.29-1-.46q-9.44-5-18.85-10.09a5.21,5.21,0,0,1-1-.93,6.24,6.24,0,0,1,1.06-.6,8.47,8.47,0,0,0,6-9.48A1.77,1.77,0,0,1,88.7,88a8.78,8.78,0,0,0,3.3-6.8A1.59,1.59,0,0,1,92.13,80.78Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M68.43,131.35c-3.06-7.43-6.05-14.71-9.06-22a29.33,29.33,0,0,0,4.2.77A8.1,8.1,0,0,0,70.28,107a2,2,0,0,1,1.34-.66c4,.18,5.9-.6,8.62-3.81L88.69,123l-7.35-.82c-1.47-.17-2.94-.4-4.41-.48a1.83,1.83,0,0,0-1.25.66c-2.16,2.63-4.27,5.31-6.39,8C69,130.65,68.78,130.93,68.43,131.35Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M59.68,102.78a25.06,25.06,0,1,1,25.21-25A25.08,25.08,0,0,1,59.68,102.78Zm-12-25.86.65-6.65a14.89,14.89,0,0,1-6.86-4.66c-2.09,2.6-3.88,8.27-3.59,11.31Zm-9.92,1.83a22.69,22.69,0,0,0,3.66,11.41c1.81-2.48,4.34-3.74,6.92-4.78l-.67-6.63ZM78.2,65.56a14.7,14.7,0,0,1-6.36,4.51,1.18,1.18,0,0,0-.51,1c.09,1.64.34,3.26.41,4.89,0,.84.3,1.12,1.13,1.1,1.92,0,3.84,0,5.76,0C82,77,82,77,81.46,73.68A20.6,20.6,0,0,0,78.2,65.56Zm0,24.58a21,21,0,0,0,3.49-10.76c0-.22-.6-.67-.93-.67-2.67-.06-5.36,0-8,0-.72,0-1,.25-1,1-.1,1.68-.33,3.34-.42,5a1.18,1.18,0,0,0,.52,1A14.67,14.67,0,0,1,78.22,90.14ZM67.07,62c-2.35.47-4.29.85-6.23,1.28-.26.06-.65.39-.66.61,0,2.11,0,4.21,0,6.66l9.52-1.3ZM69.59,86.7a31.74,31.74,0,0,0-9.39-1.32v6.74L67,93.78Zm-11-23.25-6-1.61L50,69.19l8.59,1.29Zm0,28.78v-7L50,86.51l2.68,7.32ZM60.21,77c3.22,0,6.33,0,9.45,0a1,1,0,0,0,.64-.74c-.08-1.59-.24-3.19-.45-4.77a.86.86,0,0,0-.72-.5c-2.95.44-5.89.94-8.92,1.43Zm0,6.28c3,.49,5.85.94,8.68,1.43.67.12,1,0,1-.73.11-1.35.26-2.7.41-4,.11-.9-.15-1.3-1.16-1.28-2.64.07-5.28,0-7.93,0a9.25,9.25,0,0,0-1,.11ZM49.79,70.93l-.55,6h9.31V72.27Zm0,13.8,8.79-1.33V78.79H49.23ZM71,68.46a11.34,11.34,0,0,0,5.76-3.73,1.21,1.21,0,0,0-.06-1.18C75,62,73.31,60.43,71.55,58.94a1.06,1.06,0,0,0-1,0c-.81.63-1.55,1.36-2.25,2Zm-2.72,26.3c.7.62,1.41,1.32,2.19,1.93a1.09,1.09,0,0,0,1,.07q2.68-2.27,5.27-4.65a1.06,1.06,0,0,0,.14-1A11.34,11.34,0,0,0,71,87.21ZM48.67,68.53c.59-1.77,1.09-3.36,1.65-4.93.31-.86,1.1-1.77,1-2.51S50,59.88,49.41,59.2s-.92-.68-1.49-.18L43,63.39c-.64.57-.46,1.08,0,1.65A13.86,13.86,0,0,0,48.67,68.53Zm-.05,18.65a12.48,12.48,0,0,0-5.56,3.49c-.25.3-.48,1-.32,1.22a19.64,19.64,0,0,0,5.95,5.21l2.66-2.35ZM60.2,99.29c2.63-.23,4.17-1.86,5.66-3.87a11.38,11.38,0,0,0-5.66-1.14Zm0-42.93V61.7L66,60.43C64.39,58.24,62.83,56.67,60.24,56.36Zm-1.69.13c-2.13.61-3.48,2-4.86,3.88l4.86,1.24Zm-4.87,38.8c1.41,1.93,2.77,3.31,4.86,3.89V94.07ZM50,57.66l2.27,1.79,3-3.36-.1-.21ZM50,98l5.22,1.78.08-.19-3-3.38Zm17.36-1.8-3.06,3.41.07.19L69.62,98Zm0-36.74,2.23-1.82-5.22-1.76,0,.22Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M47.71,76.92h-9.8c-.29-3,1.5-8.71,3.59-11.31a14.89,14.89,0,0,0,6.86,4.66Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M37.79,78.75H47.7l.67,6.63c-2.58,1-5.11,2.3-6.92,4.78A22.69,22.69,0,0,1,37.79,78.75Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M78.2,65.56a20.6,20.6,0,0,1,3.26,8.12C82,77,82,77,78.63,77c-1.92,0-3.84,0-5.76,0-.83,0-1.09-.26-1.13-1.1-.07-1.63-.32-3.25-.41-4.89a1.18,1.18,0,0,1,.51-1A14.7,14.7,0,0,0,78.2,65.56Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M78.22,90.14a14.67,14.67,0,0,0-6.37-4.53,1.18,1.18,0,0,1-.52-1c.09-1.67.32-3.33.42-5,0-.72.28-1,1-1,2.67,0,5.36,0,8,0,.33,0,.94.45.93.67A21,21,0,0,1,78.22,90.14Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M67.07,62l2.6,7.25-9.52,1.3c0-2.45,0-4.55,0-6.66,0-.22.4-.55.66-.61C62.78,62.84,64.72,62.46,67.07,62Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M69.59,86.7,67,93.78,60.2,92.12V85.38A31.74,31.74,0,0,1,69.59,86.7Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M58.57,63.45v7L50,69.19l2.64-7.35Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M58.55,92.23l-5.9,1.6L50,86.51l8.58-1.33Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M60.21,77V72.39c3-.49,6-1,8.92-1.43a.86.86,0,0,1,.72.5c.21,1.58.37,3.18.45,4.77a1,1,0,0,1-.64.74C66.54,77,63.43,77,60.21,77Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M60.21,83.28V78.79a9.25,9.25,0,0,1,1-.11c2.65,0,5.29,0,7.93,0,1,0,1.27.38,1.16,1.28-.15,1.35-.3,2.7-.41,4-.06.7-.36.85-1,.73C66.06,84.22,63.23,83.77,60.21,83.28Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M49.79,70.93l8.76,1.34v4.65H49.24Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M49.79,84.73l-.56-5.94h9.35V83.4Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M71,68.46l-2.72-7.53c.7-.63,1.44-1.36,2.25-2a1.06,1.06,0,0,1,1,0c1.76,1.49,3.49,3,5.16,4.61a1.21,1.21,0,0,1,.06,1.18A11.34,11.34,0,0,1,71,68.46Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M68.29,94.76,71,87.21a11.34,11.34,0,0,1,5.88,3.89,1.06,1.06,0,0,1-.14,1q-2.58,2.39-5.27,4.65a1.09,1.09,0,0,1-1-.07C69.7,96.08,69,95.38,68.29,94.76Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M48.67,68.53A13.86,13.86,0,0,1,43,65c-.49-.57-.67-1.08,0-1.65L47.92,59c.57-.5,1-.39,1.49.18s1.72,1.17,1.86,1.89-.64,1.65-1,2.51C49.76,65.17,49.26,66.76,48.67,68.53Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M48.62,87.18l2.73,7.57L48.69,97.1a19.64,19.64,0,0,1-5.95-5.21c-.16-.21.07-.92.32-1.22A12.48,12.48,0,0,1,48.62,87.18Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M60.2,99.29v-5a11.38,11.38,0,0,1,5.66,1.14C64.37,97.43,62.83,99.06,60.2,99.29Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M60.24,56.36c2.59.31,4.15,1.88,5.74,4.07L60.24,61.7Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M58.55,56.49v5.12l-4.86-1.24C55.07,58.48,56.42,57.1,58.55,56.49Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M53.68,95.29l4.86-1.22v5.11C56.45,98.6,55.09,97.22,53.68,95.29Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M50,57.66l5.18-1.78.1.21-3,3.36Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M50,98l2.27-1.79,3,3.38-.08.19Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M67.37,96.21,69.62,98l-5.24,1.8-.07-.19Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-3",d:"M67.38,59.47l-3-3.36,0-.22,5.22,1.76Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-1",d:"M111.35,126.86l.1-1.68c.67.19,1.24.34,1.79.54.06,0,.06.49,0,.52C112.69,126.46,112.12,126.62,111.35,126.86Z",transform:"translate(-13.71 -8.27)"}),(0,h.jsx)("path",{className:"cls-4",d:"M112.3,126.66c.8,0,1-.34,1-.71s-.19-.59-.87-.59h-1v1.3Zm-.9.8v2.17h-.85v-5.06h1.76c1,0,2,.25,2,1.4a1.19,1.19,0,0,1-1.09,1.19h0c.74.14.83.46.92,1a6.6,6.6,0,0,0,.32,1.45h-1.09c-.06-.28-.14-.62-.17-.9-.06-.44-.06-.85-.31-1.08a1.26,1.26,0,0,0-.8-.19h-.71m4.79-.3a3.82,3.82,0,1,0-3.8,3.56,3.67,3.67,0,0,0,3.8-3.56m-8.45,0a4.65,4.65,0,1,1,4.65,4.31,4.47,4.47,0,0,1-4.65-4.31",transform:"translate(-13.71 -8.27)"})]});const _=p.default.div.withConfig({componentId:"sc-a98dl2-0"})(["display:grid;grid-template-columns:",";margin:"," auto;grid-row-gap:",";justify-content:center;","{grid-template-columns:repeat(2,1fr);grid-column-gap:",";}","{grid-template-columns:repeat(3,1fr);}","{grid-template-columns:repeat(4,1fr);}","{grid-template-columns:repeat(6,1fr);margin-left:-1rem;}"],(({theme:e})=>e.pxToRem(250)),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[32]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.mediaQuery.desktopLarge)),O=p.default.div.withConfig({componentId:"sc-a98dl2-1"})(["border-left:1px solid ",";padding-left:",";&:first-child{grid-row:span 2;","{border-left-color:transparent;}}",""],(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.mediaQuery.desktopLarge),(({$verticalSpace:e})=>"double"==e&&(0,p.css)(["grid-row:span 2;"]))),I=p.default.h2.withConfig({componentId:"sc-a98dl2-2"})(["font-size:1rem;","{font-size:1.125rem;}"],(({theme:e})=>e.mediaQuery.tabletSmall)),T=(0,p.default)(m.L).withConfig({componentId:"sc-a98dl2-3"})(["span{color:",";font-size:",";border-bottom-color:transparent;","{font-size:",";}}&:focus-visible,&:hover{span{border-bottom-color:",";}}"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.font.size.h3Mobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h3Desktop),(({theme:e})=>e.color.darkGray2)),M=p.default.ul.withConfig({componentId:"sc-a98dl2-4"})(["list-style:none;padding:0;margin:0;"]),P=(0,p.default)(m.L).withConfig({componentId:"sc-a98dl2-5"})(["margin-bottom:0.5rem;span{border-bottom-color:transparent;}&:focus-visible,&:hover{span{border-bottom-color:unset;}}"]),j=p.default.div.withConfig({componentId:"sc-a98dl2-6"})(["max-width:",";width:100%;margin-left:auto;margin-right:auto;"],(({theme:e})=>e.page.maxWidth)),D=p.default.div.withConfig({componentId:"sc-a98dl2-7"})(["margin-bottom:",";"],(({theme:e})=>e.spacing[16])),R=p.default.div.withConfig({componentId:"sc-a98dl2-8"})(["display:inline-flex;justify-content:center;gap:1rem;","{justify-content:start;}"],(({theme:e})=>e.mediaQuery.desktop)),L=(0,p.default)(m.L).withConfig({componentId:"sc-a98dl2-9"})(["color:",";span{border-bottom-color:transparent;font-size:",";","{font-size:",";}}&:focus-visible,&:active{box-shadow:0 0 0 4px ","4c;}&:focus-visible,&:hover{color:",";span{border-bottom-color:",";}}"],(({theme:e})=>e.color.white),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.color.white),(({theme:e})=>e.color.white),(({theme:e})=>e.color.white)),F=p.default.section.withConfig({componentId:"sc-a98dl2-10"})(["background-color:",";padding:"," ",";"],(({theme:e})=>e.color.white),(({theme:e})=>e.spacing[32]),(({theme:e})=>e.spacing[16])),z=p.default.section.withConfig({componentId:"sc-a98dl2-11"})(["background-color:",";padding:"," "," 114px;color:",";text-align:center;","{padding:"," ",";}"],(({theme:e})=>e.color.darkGray1),(({theme:e})=>e.spacing[32]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.color.white),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.spacing[32]),(({theme:e})=>e.spacing[16])),B=p.default.div.withConfig({componentId:"sc-a98dl2-12"})(["display:grid;grid-template-columns:1fr;grid-gap:",";align-items:center;","{grid-template-columns:1fr auto auto;}"],(({theme:e})=>e.spacing[32]),(({theme:e})=>e.mediaQuery.desktop)),V=p.default.a.withConfig({componentId:"sc-a98dl2-13"})(["display:block;grid-column:span 1;justify-self:center;max-width:",";width:100%;margin-top:",";margin-bottom:",";","{justify-self:end;grid-column:span 3;","}"],(({theme:e})=>e.spacing[64]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.desktop),(({$singleton:e})=>e&&(0,p.css)(["justify-self:center;"]))),$=(0,p.default)(g.T).attrs({variant:"legal"}).withConfig({componentId:"sc-a98dl2-14"})(["text-align:center;max-width:60em;margin-left:auto;margin-right:auto;span{display:block;","{display:inline-block;}","{display:inline;}}","{max-width:unset;text-align:left;}"],(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.mediaQuery.desktop)),U=p.default.section.withConfig({componentId:"sc-a98dl2-15"})(["background-color:",";padding:"," ",";color:",";display:grid;justify-items:end;align-items:center;","{color:",";display:grid;justify-items:center;align-items:center;width:auto;& > *:first-child{grid-column:span ",";justify-self:center;","{justify-self:start;grid-column:span 1;}}.js-focus-visible .focus-visible,.js-focus-visible [data-focus-visible-added],button:focus-visible,a:focus-visible{outline:3px dashed ",";outline-offset:8px;}a svg{display:block;}grid-template-columns:repeat(",",1fr);grid-gap:2rem;","{width:100%;justify-items:end;grid-template-columns:auto repeat(",",58px);}}"],(({theme:e})=>e.color.primary),(({theme:e})=>e.spacing[36]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.color.white),j,(({theme:e})=>e.color.white),(({$social:e})=>e),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.color.white),(({$social:e})=>e),(({theme:e})=>e.mediaQuery.tablet),(({$social:e})=>e)),q={facebook:y.Z,instagram:b.Z,"nintendo-racetrack-logo":w.Z,twitter:k.Z,youtube:S},Q=({disclaimers:e,copyright:t,links:n,locale:r})=>{const i=(new Date).getFullYear(),{ProxyLink:o}=(0,u.useContext)(p.ThemeContext),{brand:a,esrbPrivacyUrl:s,esrbPrivacyAlt:c,copyright:l,main:d}=E[r],f=(e||[]).map((e=>(0,h.jsx)(g.T,{variant:"legal",children:e},e))),m=(n||x[r]).map((e=>{const t=e.categoryLinks.map((e=>(0,h.jsx)("li",{children:(0,h.jsx)(P,{href:e.url,locale:!!e.url.startsWith("/")&&void 0,children:e.text})},e.text)));return(0,h.jsxs)(O,{$verticalSpace:t.length<3?"single":"double",children:[(0,h.jsx)(I,{children:(0,h.jsx)(T,{href:e.categoryUrl,locale:!!e.categoryUrl.startsWith("/")&&void 0,children:e.categoryTitle})}),(0,h.jsx)(M,{children:t})]},e.categoryTitle)})),y=a.map((e=>{const t=q[e.iconName];return(0,h.jsx)(o,{href:e.url,children:(0,h.jsx)("a",{href:e.url,target:e.target?e.target:"_blank",rel:"_self"==e.target?"":"external",title:e.alt,"aria-label":e.alt,children:(0,h.jsx)(t,{size:e.iconSize?e.iconSize:"30"})},e.iconName+"_link")},e.iconName+"_proxy")})),b=(t||l).map(((e,t)=>(0,h.jsx)("span",{children:e.replace("{0}",i)},t))),w=d.map(((e,t)=>(0,h.jsx)(L,{href:e.url,children:e.name},t))),k=n?.length>0||null==n,S=e?.length>0;return(0,h.jsxs)("footer",{id:"footer",children:[(0,h.jsx)(U,{"data-testid":"brandbar",$social:a.length-1,children:(0,h.jsx)(j,{children:y})}),(0,h.jsx)(F,{"data-testid":"linkbar",children:(0,h.jsxs)(j,{children:[k&&(0,h.jsx)(_,{"data-testid":"linkgrid",children:m}),s&&(0,h.jsx)(B,{children:(0,h.jsx)(o,{href:s,children:(0,h.jsx)(V,{href:s,target:"_blank",$singleton:!k,title:c,"aria-label":c,children:(0,h.jsx)(C,{})})})})]})}),(0,h.jsx)(z,{"data-testid":"legalbar",children:(0,h.jsxs)(j,{children:[S&&(0,h.jsx)(D,{children:f}),(0,h.jsxs)(B,{children:[(0,h.jsx)($,{children:b}),(0,h.jsx)(R,{children:w}),(0,h.jsx)(v.R,{locale:r})]})]})})]})};Q.propTypes={disclaimers:l().array,copyright:l().array,links:l().array,locale:l().oneOf(["en-us","en-ca","fr-ca","es-mx","pt-br","es-co","es-cl","es-pe","es-ar"])},Q.defaultProps={locale:"en-us"};var G=Q,H=n(68622),W=n(32899),Z=n(48444),K=n(36447);var Y=n(97729),J=n.n(Y);var X=n(64897);n(5632);const ee="https://www.nintendo.com";let te=null;function ne(e){const{icons:t,meta:n,openGraph:r,analytics:i,linkedData:o,trackCustomer:a,localeAlternates:s=[]}=e,c=(0,W.ON)(),{consentedGroups:l}=(0,W.fP)(),d=(0,X.Z)(),[f,p]=d.locale.split("-"),m="GTM-WS6V89B,GTM-57PNCMD"?.split(","),g=m.map((e=>{return(t=e)?`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','${t}');`:null;var t})),v=(0,u.useMemo)((()=>{if(!c.data)return null;const{id:e,country:t,locale:n,gender:r,isChild:i,analyticsPermissions:o}=c.data;return{id:e,country:t,locale:n,gender:r,isChild:i,analyticsPermissions:o}}),[c.data]);(0,u.useEffect)((()=>{const e=d.locale+d.pathname;if([!a||!c.loading,i?.pageName,l?.has(W.ac.PERFORMANCE),e!==te].every(Boolean)){const{pageType:t,pageName:n,pageCategory:r,product:o}=i,a=Object.entries(W.ac).map((([e,t])=>l.has(t)?e:null)).filter(Boolean),s={event:"Page Loaded",page:{siteLanguage:d.locale,siteCountry:p,pageType:t,pageName:n,pageCategory:r},consentedGroups:a.join(",")};o&&(s.product=o),v&&(s.user=v),(window.AppEventData=window.AppEventData||[]).push(s),(window.dataLayer=window.dataLayer||[]).push(s),te=e}}),[i,l,p,v,c.loading,d.locale,d.pathname,a]),(0,u.useEffect)((()=>{const e=window.dataLayer?.reduce(((e,t)=>t&&null===t.user?null:e||t?.user?{...e,...t.user}:void 0),null);if(e?.id!==v?.id){const e=v?"Logged In":"Logged Out";window.dataLayer?.push({event:e,user:v}),window.AppEventData?.push({event:e,user:v})}}),[v]);const y=(0,u.useMemo)((()=>function({customUrl:e,router:t,origin:n}){if(e)return e;const r=(0,Z.g)(t.locale);return`${n}${r===t.defaultLocale?"":`/${r}`}${t.asPath}`.split("?")[0]}({customUrl:e.canonicalUrl,router:d,origin:"https://www.nintendo.com"})),[d,e.canonicalUrl]),b=d.locales?.map((e=>{if(e===d.defaultLocale)return{locale:"x-default",href:`${ee}/us/regionselector/`};return{locale:"us"===e?"en-us":e,href:new URL(`/${e}${d.asPath}`,ee).toString()}})),w=[...b,...s].reduce(((e,t)=>(t?.locale&&e.set(t.locale,t.href),e)),new Map),k=Array.from(w).map((([e,t])=>t&&(0,h.jsx)("link",{rel:"alternate",hrefLang:e,href:t},`alternate:${e}`))).filter(Boolean);return(0,h.jsxs)(J(),{children:[(0,h.jsx)("title",{children:n?.title},"title"),(0,h.jsx)("link",{rel:"canonical",href:y}),n?.noIndex&&(0,h.jsx)("meta",{name:"robots",content:"noindex"}),(0,h.jsx)("meta",{httpEquiv:"Accept-CH",content:"DPR, Width"}),(0,h.jsx)("meta",{name:"description",content:n?.description},"description"),(0,h.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,h.jsx)("meta",{name:"twitter:site",content:"@nintendoamerica"},"twitter:site"),(0,h.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,h.jsx)("meta",{property:"og:title",name:"twitter:title",content:r?.title??n?.title},"og:title"),(0,h.jsx)("meta",{property:"og:description",name:"twitter:description",content:r?.description??n?.description},"og:description"),(0,h.jsx)("meta",{property:"og:image",name:"twitter:image",content:r?.image??"https://assets.nintendo.com/image/upload/v1643742733/ncom/global/social-share.jpg"},"og:image"),(0,h.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, user-scalable=yes"},"viewport"),(0,h.jsx)("meta",{name:"msvalidate.01",content:"CD9A42A71E67EDC970DE6AD9919B5D79"},"msvalidate.01"),(0,h.jsx)("meta",{name:"google-site-verification",content:"lcC2m3GxLFXRpw4s4cKbn8Q6jDs8zHPXp9CC1xHn70c"},"google-site-verification"),(0,h.jsx)("meta",{name:"p:domain_verify",content:"5acad0d13ae7c1954a606b71572e61ea"},"p:domain_verify"),l?.has(W.ac.PERFORMANCE)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("meta",{name:"ps-key",content:"3623-5dc435df8b867f001f540866"},"ps-key"),(0,h.jsx)("meta",{name:"ps-country",content:p.toUpperCase()},"ps-country"),(0,h.jsx)("meta",{name:"ps-language",content:f},"ps-language")]}):null,(0,h.jsx)("meta",{property:"fb:app_id",content:"549513175162968"},"fb:app_id"),t,m?.length&&l?.has(W.ac.PERFORMANCE)&&g.map(((e,t)=>(0,h.jsx)("script",{dangerouslySetInnerHTML:{__html:e}},`gtm-script-${m[t]}`))),o&&(0,h.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/",...o})}}),k]})}ne.propTypes={localeAlternates:l().arrayOf(l().shape({locale:l().string.isRequired,href:l().string})),meta:l().shape({title:l().string,description:l().string,noIndex:l().bool}),openGraph:l().shape({description:l().string,image:l().string,title:l().string}),analytics:l().shape({pageType:l().string,pageName:l().string,pageCategory:l().string,product:l().shape({name:l().string.isRequired,sku:l().string.isRequired,nsuid:l().string})}),linkedData:l().shape({"@context":l().string,"@type":l().string.isRequired}),trackCustomer:l().bool,icons:l().element,canonicalUrl:l().string},ne.defaultProps={icons:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://assets.nintendo.com/image/upload/ncom/icons/fav-icons/apple-touch-icon.png"}),(0,h.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"https://assets.nintendo.com/image/upload/ncom/icons/fav-icons/favicon-32x32.png"}),(0,h.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"https://assets.nintendo.com/image/upload/ncom/icons/fav-icons/favicon-16x16.png"}),(0,h.jsx)("link",{rel:"manifest",href:"https://assets.nintendo.com/raw/upload/v1666282340/ncom/icons/fav-icons/site.webmanifest"}),(0,h.jsx)("link",{rel:"shortcut icon",href:"https://assets.nintendo.com/image/upload/ncom/icons/fav-icons/favicon.ico"}),(0,h.jsx)("meta",{name:"msapplication-TileColor",content:"#e60012"}),(0,h.jsx)("meta",{name:"msapplication-config",content:"https://assets.nintendo.com/image/upload/ncom/icons/fav-icons/browserconfig.xml"}),(0,h.jsx)("meta",{name:"theme-color",content:"#e60012"})]})};var re=n(97224);const ie=p.default.main.withConfig({componentId:"sc-15fccfu-0"})(["",""],(({$nav:e})=>{const t=(0,p.css)(["margin-bottom:",";","{margin-bottom:",";}"],(({theme:e})=>e.spacing[48]),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.spacing[64]));return!1!==e?(0,p.css)(["",""],t):t}));var oe=n(45847),ae=n.n(oe);function se(){const{consentedGroups:e}=(0,W.fP)();return(0,u.useEffect)((()=>window.PriceSpider?.rebind())),(0,h.jsx)(h.Fragment,{children:e?.has(W.ac.PERFORMANCE)&&(0,h.jsx)(ae(),{src:"https://cdn.pricespider.com/1/lib/ps-widget.js"})})}n(39097);const ce=!0,le="3cfa2a0c-9887-4f14-a162-a37b68418a76",ue=[],de={cart:{enabled:!0},cookie:{enabled:!0,optIn:!1},customer:{enabled:!0},customDrawer:{enabled:!0},features:{enabled:!0},maintenance:{enabled:!0},recentlyViewed:{enabled:!0},wishlist:{enabled:!0}};function fe(e){return e?.replace(/\s+/g," ").trim()}function pe({text:e,url:t}){return(0,h.jsx)(re.Z,{href:t,children:e})}function he(e){const{apolloClient:t,appName:n,locale:r,theme:i,oneTrustDomainIdsByLocale:o={},children:a}=e;e.translations&&ue.push(e.translations);const s=(0,u.useMemo)((()=>({...de,...e.providers})),[e.providers]),c=(0,u.useMemo)((()=>{const e=o[r];return e||le}),[o,r]);let l=a;return s.additional?.forEach((([e,t])=>{l=(0,h.jsx)(e,{locale:r,...t,children:l})})),l=(0,h.jsx)(p.ThemeProvider,{theme:i,children:l}),s.customDrawer.enabled&&(l=(0,h.jsx)(H.pZ,{locale:r,children:l})),s.recentlyViewed.enabled&&(l=(0,h.jsx)(W.s4,{locale:r,fields:fe(s.recentlyViewed.fields),children:l})),s.cart.enabled&&(l=(0,h.jsx)(W.Zl,{locale:r,fields:fe(s.cart.fields),children:l})),s.wishlist.enabled&&(l=(0,h.jsx)(W.TN,{locale:r,isProd:ce,fields:fe(s.wishlist.fields),children:l})),s.customer.enabled&&(l=(0,h.jsx)(W.f3,{locale:r,fields:fe(s.customer.fields),children:l})),s.maintenance.enabled&&(l=(0,h.jsx)(W.ae,{locale:r,children:l})),s.features.enabled&&(l=(0,h.jsx)(W.rs,{url:"https://us.app.unleash-hosted.com/nintendo/api/frontend",clientKey:"ncom:production.653b05e8b1de26b26c7379b2a10b734151da446ca1603f76a3e897c0",locale:r,appName:n,children:l})),s?.cmsContent?.enabled&&(l=(0,h.jsx)(W.BV,{content:e.content,children:l})),l=(0,h.jsx)(W.BB,{clientId:"01fe027acd6bc0cf",scope:["openid","user","user.birthday","user.email","user.mii","parentalControlSetting","mission:anyClients","missionStatus:anyClients","missionStatus:progress","familyMember","pointWallet","pointTransaction","eshopPrice","eshopDemo","eshopDevice","user.wishlist","user.membership"],sdk:"https://cdn.accounts.nintendo.com/jssdk/nintendo-jssdk-client.3.0.2.js",connectOrigin:"https://accounts.nintendo.com",apiOrigin:"https://api.accounts.nintendo.com",myNintendoOrigin:"https://my.nintendo.com",checkoutOrigin:"https://ec.nintendo.com",children:(0,h.jsx)(W.Rr,{children:(0,h.jsx)(W.Us,{client:t,children:(0,h.jsx)(W.v4,{locale:r,translations:ue,wrapLink:pe,fallbackOriginal:s.localizer?.fallbackOriginal,children:l})})})}),s.cookie.enabled&&(l=(0,h.jsx)(W.V5,{domainId:c,optIn:s.cookie.optIn,children:l})),l}const me=(0,c.shape)({enabled:c.bool,fields:c.string});he.propTypes={providers:(0,c.shape)({cart:me,cookie:(0,c.shape)({enabled:c.bool,optIn:c.bool}),customer:me,customDrawer:(0,c.shape)({enabled:c.bool}),maintenance:me,recentlyViewed:me,wishlist:me,additional:(0,c.arrayOf)((0,c.arrayOf)((0,c.oneOfType)([c.elementType,c.func,c.object])))}),apolloClient:c.object,locale:c.string,theme:c.object,oneTrustDomainIdsByLocale:c.object,translations:c.object,content:c.object,children:c.node};const ge=s()((()=>n.e(6966).then(n.bind(n,76966))));var ve=n(34723),ye=n(15820),be=n(36568),we=n(31347),ke=n(72354);n(20385);const Se=function({theme:e=d.d,translations:t,transitionBarConfig:n={},oneTrustDomainIdsByLocale:r={},providers:a,authorization:s,appName:l,appVersion:p,homeUrl:m}={}){function g({Component:o,pageProps:c}){const d=(0,u.useMemo)((()=>function({uri:e="https://graph.nintendo.com/",authorization:t,appName:n,appVersion:r}={}){return(0,W.Vo)({uri:e,connectToDevTools:!1,authorization:t,appName:n,appVersion:r})}({authorization:s,appName:l,appVersion:p})),[]),g=(0,X.Z)(),v=new Intl.Locale(g.locale).baseName.toLowerCase(),y={...c.theme??e,ProxyLink:re.Z},{enableTransitionBar:b,...w}=n,k=!1!==c.nav,S=(0,u.useMemo)((()=>({customDrawer:{enabled:k},...a})),[k]);if(c.initialApolloState){const e=d.cache.extract();d.cache.restore(i()({},e,c.initialApolloState))}return"default"===g.locale?null:(0,h.jsxs)(he,{providers:S,apolloClient:d,oneTrustDomainIdsByLocale:r,appName:l,locale:v,theme:y,translations:t,content:c.content,children:[(0,h.jsx)(ne,{localeAlternates:c.localeAlternates,meta:c.meta,openGraph:c.openGraph,analytics:c.analytics,linkedData:c.linkedData,trackCustomer:!a?.customer||a.customer.enabled,icons:c.icons,canonicalUrl:c.canonicalUrl}),(0,h.jsx)(f.nz8,{theme:y}),k&&(0,h.jsx)(H.ZP,{router:g,origin:"https://www.nintendo.com",homeUrl:m}),(0,h.jsxs)(ie,{id:"main",$nav:c.nav,children:[b&&(0,h.jsx)(ge,{...w}),(0,h.jsx)(o,{...c})]}),!1!==c.footer&&(0,h.jsx)(G,{locale:v}),!1!==c.tracking&&(0,h.jsx)(se,{})]})}return t={...H.Iz,...t},g.getInitialProps=async e=>{const t=await o.default.getInitialProps(e);if(!a?.cmsContent?.enabled)return t;const n=!1!==t.pageProps.nav,r=new Intl.Locale(W.go.from(e.router.locale||Z.D).replace("_","-")).baseName,i={searchContent:{}};if(n)try{const e=await(0,K.s)().getEntry(Z.S,{locale:r,include:10});i.searchContent.topProducts=e?.fields?.list?.fields?.products}catch(s){i.searchContent=null}return{...t,pageProps:{...t.pageProps,content:i}}},g.propTypes={Component:c.any,PageNav:c.any,pageProps:(0,c.shape)({analytics:ne.propTypes.analytics,disclaimers:(0,c.arrayOf)(c.string),footer:c.bool,initialApolloState:c.object,oneTrustDomainIdsByLocale:c.object,linkedData:ne.propTypes.linkedData,localeAlternates:ne.propTypes.localeAlternates,meta:ne.propTypes.meta,nav:c.bool,openGraph:ne.propTypes.openGraph,theme:c.object,tracking:c.bool})},g}({translations:{"{0} on orders {1} or more":{fr:"{0} pour les commandes de {1} ou plus"},"* Required fields":{es:"* Campos requeridos",fr:"* Requis",pt:"* Campos obrigat\xf3rios"},"128GB":{es:"128 GB",fr:"128 Go",pt:"128 GB"},"16GB":{es:"16 GB",fr:"16 Go",pt:"16 GB"},"2+":{es:"+2",fr:"2+",pt:"2+"},"256GB":{es:"256 GB",fr:"256 Go",pt:"256 GB"},"2x Gold Points":{es:"Doble de puntos de oro",fr:"Double de points or",pt:"O dobro de pontos de ouro"},"{0}x Gold Points":{es:"Puntos de oro x {0}",fr:"Points or x {0}",pt:"Pontos de ouro x {0}"},"+1 Gold Point":{es:"+1 punto de oro",fr:"+1 point or",pt:"+1 ponto de ouro"},"+{0} Gold Points":{es:"+{0} puntos de oro",fr:"+{0} points or",pt:"+{0} pontos de ouro"},"3+":{es:"+3",fr:"3+",pt:"3+"},"32GB":{es:"32 GB",fr:"32 Go",pt:"32 GB"},"4+":{es:"+4",fr:"4+",pt:"4+"},"4GB":{es:"4 GB",fr:"4 Go",pt:"4 GB"},"512GB":{es:"512 GB",fr:"512 Go",pt:"512 GB"},"64GB":{es:"64 GB",fr:"64 Go",pt:"64 GB"},"8GB":{es:"8 GB",fr:"8 Go",pt:"8 GB"},"A-SMEC":{es:"Todo P\xfablico"},"account settings":{es:"ajustes de tu cuenta",fr:"param\xe8tres de compte",pt:"conta est\xe1 registrada"},"Add new address":{es:"Agregar una direcci\xf3n nueva",fr:"Ajouter une nouvelle adresse",pt:"Adicione novos endere\xe7os"},"Added to cart":{fr:"Ajout\xe9 au panier"},"Adding to cart is not possible during maintenance":{es:"No es posible agregar art\xedculos al carrito mientras se efect\xfaan labores de mantenimiento",fr:"Il n\u2019est pas possible d\u2019ajouter des articles au panier pendant la maintenance",pt:"N\xe3o \xe9 poss\xedvel adicionar itens ao carrinho durante a manuten\xe7\xe3o"},"Additional results":{es:"Resultados adicionales",fr:"R\xe9sultats additionnels",pt:"Resultados adicionais"},'Additional results for "{0}"':{es:'Resultados adicionales para "{0}"',fr:'R\xe9sultats additionnels pour "{0}"',pt:'Resultados adicionais para "{0}"'},"Additional saved addresses":{es:"Direcciones adicionales que han sido guardadas",fr:"Adresses sauvegard\xe9es additionnelles",pt:"Endere\xe7os salvos adicionais"},"All News":{es:"Todas las noticias",fr:"Toutes les nouvelles",pt:"Todas as novidades"},'All results for "{0}"':{es:'Todos los resultados para "{0}"',fr:'Tous les r\xe9sultats pour "{0}"',pt:'Todos os resultados para "{0}"'},"Already downloaded":{fr:"T\xe9l\xe9charg\xe9",es:"Descargado",pt:"Baixados"},"Already pre-ordered":{fr:"D\xe9j\xe0 pr\xe9command\xe9",es:"Ya ha sido reservado",pt:"J\xe1 reservado"},"Also available at these participating stores":{es:"Disponible en los minoristas participantes",fr:"Offerts chez les d\xe9taillants participants",pt:"Dispon\xedvel nas lojas participantes"},"American English":{fr:"Anglais am\xe9ricain",es:"Ingl\xe9s (EE. UU.)",pt:"Ingl\xeas Americano"},and:{es:"y",fr:"et",pt:"e no"},"Apply code and add to cart":{fr:"Ajouter au panier"},"Apply redemption code":{fr:"Utiliser un code d'acc\xe8s"},"Apply your redemption code to add this item to your cart.":{fr:"Utiliser votre code d'acc\xe8s pour ajouter cet article \xe0 votre panier."},"Apt / Suite (optional)":{es:"Apartamento o suite (opcional)",fr:"App. ou suite (optionnel)",pt:"Apt. or suite (opcional)"},Arcade:{es:"Arcade",fr:"Arcade",pt:"Arcade"},"Art & Posters":{es:"Arte y p\xf3steres",fr:"Art et affiches",pt:"Arte e cartazes"},"Associated Nintendo Account:":{es:"Cuenta Nintendo vinculada:",fr:"Compte Nintendo associ\xe9 : ",pt:"Conta Nintendo vinculada:"},"Available at:":{fr:"Article offert dans :"},"Available filters":{es:"Filtros disponibles",fr:"Filtre disponible",pt:"Filtros dispon\xedveis"},"Available on":{es:"Disponible en",fr:"Disponible sur",pt:"Dispon\xedvel na"},"Available {0}":{es:"Disponible el {0}",fr:"Offert le {0}",pt:"Dispon\xedvel {0}"},"Best sellers":{es:"Los m\xe1s vendidos",fr:"Meilleures ventes",pt:"Mais vendidos"},"Releases {0}":{es:"Fecha de lanzamiento {0}",fr:"Date de sortie : {0}",pt:"Data de lan\xe7amento {0}"},"Ships {0}":{es:"Fecha de env\xedo {0}",fr:"Date d'exp\xe9dition : {0}",pt:"Data de envio {0}"},"This item will be shipped to your address. Ships {0}.":{es:"Este art\xedculo ser\xe1 enviado a tu direcci\xf3n el {0}.",fr:"Cet article sera exp\xe9di\xe9 \xe0 votre adresse. Date d'exp\xe9dition : {0}.",pt:"Este item ser\xe1 enviado ao seu endere\xe7o. Data de envio {0}."},"B-SMEC":{es:"+12 A\xf1os"},"B15-SMEC":{es:"+15 A\xf1os"},Back:{es:"Regresar",fr:"Retour",pt:"Retornar"},"Back to address book":{es:"Regresar a la libreta de direcciones",fr:"Retour au carnet d'adresses",pt:"Voltar ao livro de endere\xe7os"},"Back to game":{es:"Regresar a la p\xe1gina del juego",fr:"Retour au jeu",pt:"Retornar ao jogo"},"Back to home":{es:"Regresar a la p\xe1gina de inicio",fr:"Retour \xe0 la page d\u2019accueil",pt:"Retornar \xe0 p\xe1gina de in\xedcio"},"Back to purchase history":{es:"Regresar al historial de compras",fr:"Retour \xe0 l'historique d'achats",pt:"Voltar ao hist\xf3rico de compras"},"Bags & backpacks":{es:"Bolsos y mochilas",fr:"Sacs et sacs \xe0 dos",pt:"Bolsas e mochilas"},"Based on your play history, here are some Nintendo Switch\u2122 games that we think are right up your alley.":{es:"En base a tu historial de juego, creemos que estos juegos de Nintendo Switch\u2122 son perfectos para ti.",fr:"En fonction de votre historique de jeu, nous pensons que ces jeux pour la console Nintendo Switch\u2122 pourraient vous int\xe9resser.",pt:"Com base no seu hist\xf3rico de jogo, separamos algumas recomenda\xe7\xf5es de jogos do console Nintendo Switch\u2122 que acreditamos ser perfeitos para voc\xea!"},"Best selling":{es:"Los m\xe1s vendidos",fr:"Meilleures ventes",pt:"Mais vendidos"},"Billing address":{es:"Direcci\xf3n de facturaci\xf3n",fr:"Adresse de facturation",pt:"Endere\xe7o da fatura"},"Billing details":{es:"Detalles del pago",fr:"D\xe9tails de facturation",pt:"Detalhes da cobran\xe7a"},"Billing last name":{es:"Apellido del comprador",fr:"Nom de facturation",pt:"Sobrenome do comprador"},"Billing Zip/postal code":{es:"C\xf3digo postal de facturaci\xf3n",fr:"Code postal de facturation",pt:"C\xf3digo postal de cobran\xe7a"},"Bring Nintendo home with fun apparel and accessories, cool collectibles, d\xe9cor, and toys.":{es:"Lleva Nintendo a tu hogar con divertidos art\xedculos de moda y accesorios, magn\xedficos bjetos coleccionables, decoraci\xf3n y juguetes.",fr:"Apportez Nintendo \xe0 la maison avec des v\xeatements et accessoires fun, des articles de collection, d\xe9corations, et jouets.",pt:"Leve a Nintendo para casa com roupas e acess\xf3rios divertidos, itens colecion\xe1veis, objetos de decora\xe7\xe3o e brinquedos legais."},"British English":{es:"Ingl\xe9s (brit\xe1nico)\t",fr:"Anglais britannique",pt:"Ingl\xeas brit\xe2nico"},Bundle:{es:"Paquete",fr:"Ensemble",pt:"Pacote"},"Bundle deal":{es:"Oferta de paquete",fr:"Offre sur les ensembles",pt:"Oferta de pacote"},"Buy {0} and shop other great Nintendo products online at the official My Nintendo Store":{es:"Compra {0} y encuentra otros excelentes productos de Nintendo en l\xednea en la tienda oficial My Nintendo",fr:"Achetez {0} et achetez d'autres excellents produits Nintendo en ligne sur la boutique officielle My Nintendo",pt:"Compre {0} e encontre outros excelentes produtos da Nintendo online na My Nintendo Store oficial"},"Buy digital games here and download them directly to your system (no code required)! Plus, shop physical games, sales, new releases, and more.":{es:"\xa1Adquiere juegos digitales y desc\xe1rgalos directamente a tu consola Nintendo Switch (no se requiere un c\xf3digo)! Adem\xe1s, encuentra versiones f\xedsicas de los juegos, ofertas, nuevos lanzamientos y m\xe1s.",fr:"Achetez les jeux num\xe9riques ici et t\xe9l\xe9chargez-les directement sur votre console (pas besoin de code)! De plus, magasinez les versions emball\xe9es des jeux, les offres, les nouvelles sorties, et plus.",pt:"Compre jogos digitais aqui e baixe-os diretamente para o seu console (sem necessidade de c\xf3digo)! Al\xe9m disso, compre vers\xf5es f\xedsicas dos jogos, ofertas, novos lan\xe7amentos e muito mais."},"Buy DLC now":{es:"Comprar contenido descargable ahora",fr:"Acheter le contenu telechargable maintenant",pt:"Compre conte\xfado para download agora"},"Buy now":{fr:"Acheter d\xe8s maintenant"},"Buy the digital version from Nintendo.":{es:"Comprar la versi\xf3n digital desde Nintendo.",fr:"Acheter la version num\xe9rique chez Nintendo.",pt:"Comprar a vers\xe3o digital da Nintendo."},"Buy the physical version from Nintendo.":{es:"Comprar la versi\xf3n f\xedsica desde Nintendo.",fr:"Acheter la version emball\xe9e chez Nintendo.",pt:"Comprar a vers\xe3o f\xedsica da Nintendo."},"C-SMEC":{es:"Adultos +18 A\xf1os"},"Canadian French":{es:"Franc\xe9s (Canad\xe1)",fr:"Fran\xe7ais canadien",pt:"Franc\xeas Canadense"},Canceled:{es:"Cancelado",fr:"Annul\xe9e",pt:"Cancelado"},"Cancer and reproductive harm.":{es:"C\xe1ncer y da\xf1os reproductivos.",fr:"Cancer et dommages li\xe9s \xe0 la reproduction.",pt:"C\xe2ncer e danos reprodutivos."},"Can\u2019t find your order number? Log in to access your order history.":{es:"\xbfNo puedes encontrar tu n\xfamero de orden? Inicia sesi\xf3n para acceder a tu historial de compras.",fr:"Impossible de trouver votre num\xe9ro de commande? Connectez-vous pour acc\xe9der \xe0 votre historique de commandes.",pt:"N\xe3o consegue encontrar o n\xfamero do seu pedido? Incie sess\xe3o para acessar o seu hist\xf3rico de compras."},"Cannot add more:":{es:"No es posible a\xf1adir m\xe1s:",fr:"Impossible d'augmenter la quantit\xe9 :",pt:"N\xe3o foi poss\xedvel aumentar a quantidade:"},"Card ending in":{es:"Tarjeta que termina en",fr:"Carte se terminant par",pt:"Cart\xe3o que termina em"},"Cases & accessories":{es:"Fundas y accesorios",fr:"\xc9tuis et accessoires",pt:"Estojos e acess\xf3rios"},"Category:":{es:"Categor\xeda:",fr:"Cat\xe9gorie : ",pt:"Categoria:"},"Change region":{es:"Cambiar de regi\xf3n",fr:"Changer de r\xe9gion",pt:"Alterar regi\xe3o"},"Character store":{es:"Rinc\xf3n de personajes",fr:"Boutique de personnage",pt:"Loja de personagens"},"Check out a snapshot of my Wish List at the My Nintendo Store!":{es:"\xa1Mira una captura de mi lista de deseos en la tienda My Nintendo!",fr:"D\xe9couvrez un aper\xe7u de ma liste de souhaits dans la boutique My Nintendo!",pt:"Confira essa captura de tela da minha Lista de desejos na loja My Nintendo!"},"Check out my Joy-Con combo at the My Nintendo Store:":{es:"Mira mi combinaci\xf3n de colores para los controles Joy-Con en la tienda My Nintendo.",fr:"D\xe9couvre mon combo de manettes Joy-Con dans la boutique My Nintendo :",pt:"Confira minha combina\xe7\xe3o de cores para os controles Joy-Con na loja My Nintendo."},"Check out with Apple Pay":{fr:"Payer avec Apple Pay"},"Checkout with Google Pay":{fr:"Payer avec Google Pay"},"Children's":{es:"Ni\xf1os",fr:"Enfants",pt:"Crian\xe7as"},"CHOKING HAZARD - Small parts.":{es:"RIESGO DE SOFOCAMIENTO \u2013 Partes peque\xf1as.\t",fr:"RISQUE DE SUFFOCATION - Petites pi\xe8ces",pt:"PERIGO DE ASFIXIA - Pe\xe7as pequenas."},"Classic Games":{es:"Juegos cl\xe1sicos",fr:"Jeux classiques",pt:"Jogos cl\xe1ssicos"},"Clear all":{es:"Borrar todo",fr:"Tout effacer",pt:"Apague tudo"},"Cloud save":{es:"Guardado de datos en la nube",fr:"Sauvegarde dans le nuage",pt:"Dados salvos na nuvem"},Collectibles:{es:"Coleccionables",fr:"Articles de collection",pt:"Artigos de cole\xe7\xe3o"},Color:{es:"Color",fr:"Couleur",pt:"Cor"},Compare:{es:"Comparar",fr:"Comparer",pt:"Comparar"},Complete:{es:"Completado",fr:"Termin\xe9",pt:"Completado"},"Contact Customer Support":{fr:"Contacter le service \xe0 la client\xe8le"},"Continue shopping":{fr:"Continuer \xe0 magasiner"},"Copied!":{es:"\xa1Enlace copiado!",fr:"Copie termin\xe9e!",pt:"Copiado!"},Copy:{es:"Copiar",fr:"Copier",pt:"Copiar"},"Country of origin":{es:"Pa\xeds de origen",fr:"Pays d\u2019origine",pt:"Pa\xeds de origem"},"Created on":{es:"Lista creada el",fr:"Liste cr\xe9\xe9e le",pt:"Criada em"},"Currently unavailable":{es:"No est\xe1 disponible actualmente",fr:"Pas offert en ce moment",pt:"N\xe3o est\xe1 dispon\xedvel no momento"},"Customer support":{es:"Servicio al cliente",fr:"Service \xe0 la client\xe8le",pt:"Atendimento ao consumidor"},"D-SMEC":{es:"Exclusivo Adultos"},"Date added":{es:"A\xf1adido el",fr:"Date added",pt:"Data em que foi adicionado"},Deals:{es:"Ofertas",fr:"Aubaines",pt:"Promo\xe7\xf5es"},"Default billing address":{es:"Direcci\xf3n de facturaci\xf3n predeterminada",fr:"Adresse de facturation par d\xe9faut",pt:"Endere\xe7o da cobran\xe7a padr\xe3o"},"Default shipping address":{es:"Direcci\xf3n de env\xedo predeterminada",fr:"Adresse d'exp\xe9dition par d\xe9faut",pt:"Endere\xe7o de entrega padr\xe3o"},"Demo available":{es:"Versi\xf3n de prueba disponible",fr:"D\xe9mo offerte",pt:"Vers\xe3o demo dispon\xedvel"},"Demo downloaded":{es:"Versi\xf3n de prueba descargada",fr:"D\xe9mo t\xe9l\xe9charg\xe9e",pt:"Vers\xe3o demo baixada"},"Descri\xe7\xe3o":{es:"Descripci\xf3n",pt:"Descri\xe7\xe3o"},"Device type:":{es:"Tipo de dispositivo:",fr:"Type d'appareil : ",pt:"Tipo de dispositivo:"},"Did you find this page helpful?":{es:"\xbfTe fue \xfatil esta p\xe1gina?",fr:"Vous avez trouv\xe9 cette page utile?",pt:"Essa p\xe1gina foi \xfatil?"},Digital:{es:"Versi\xf3n digital",fr:"Num\xe9rique",pt:"Vers\xe3o digital"},"Digital best sellers":{fr:"Meilleures ventes num\xe9riques",es:"Los m\xe1s vendidos de Nintendo Switch",pt:"Mais vendidos do Nintendo Switch"},"Digital download":{es:"Descarga digital",fr:"T\xe9l\xe9chargement num\xe9rique",pt:"Download digital"},"Digital new releases":{es:"Juegos digitales lanzados recientemente",fr:"Nouvelles sorties num\xe9riques",pt:"Novos lan\xe7amentos digitais"},"Direct download":{es:"Descarga directa",fr:"T\xe9l\xe9chargement direct",pt:"Download direto"},"Direct downloads are not possible during maintenance":{es:"No es posible realizar descargas digitales mientras se efect\xfaan labores de mantenimiento",fr:"Les t\xe9l\xe9chargements directs ne sont pas possibles pendant la maintenance",pt:"N\xe3o \xe9 poss\xedvel fazer download direto durante a manuten\xe7\xe3o"},"Don't have a Nintendo Switch system yet?":{es:"\xbfA\xfan no cuentas con una consola Nintendo Switch?",fr:"Vous ne poss\xe9dez pas encore une console Nintendo Switch?",pt:"Ainda n\xe3o tem um console Nintendo Switch?"},DLC:{es:"Contenido descargable",fr:"Contenu t\xe9l\xe9chargeable",pt:"Conte\xfado extra"},"DLC available":{es:"Contenido descargable disponible",fr:"Contenu t\xe9l\xe9chargeable offert",pt:"Conte\xfado extra dispon\xedvel"},"DLC bundle":{es:"Paquete de contenido descargable",fr:"Ensemble de contenu t\xe9l\xe9chargeable",pt:"Pacote de conte\xfado extra"},"DLC pack":{es:"Paquete de contenido descargable",fr:"Ensemble de contenu t\xe9l\xe9chargeable",pt:"Pacote de conte\xfado extra"},Done:{es:"Terminar",fr:"Terminer",pt:"Conclu\xeddo"},"Down for maintenance":{es:"Labores de mantenimiento",fr:"Hors service pour des raisons de maintenance",pt:"N\xe3o est\xe1 dispon\xedvel por motivo de manuten\xe7\xe3o"},"Downloadable content (DLC)":{es:"Contenido descargable",fr:"Contenu t\xe9l\xe9chargeable (DLC)",pt:"Conte\xfado extra"},"Downloadable content for":{es:"Contenido descargable para",fr:"Contenu t\xe9l\xe9chargeable pour",pt:"Conte\xfado extra para"},Dutch:{es:"Holand\xe9s",fr:"N\xe9erlandais",pt:"Holand\xeas"},"E-Rating":{en:"Everyone",es:"Todos",fr:"Enfants et adultes",pt:"Livre"},"E10-CLASSIND":{pt:"10 anos"},"E10-Rating":{en:"Everyone 10+",es:"Todos +10",fr:"Enfants et adultes 10+",pt:"Livre +10"},"E12-CLASSIND":{pt:"12 anos"},"E14-CLASSIND":{pt:"14 anos"},"E16-CLASSIND":{pt:"16 anos"},"E18-CLASSIND":{pt:"18 anos"},"Earn {0} on digital games":{fr:"Obtenez des {0} sur les jeux num\xe9riques"},"Edit / Delete":{es:"Editar / Borrar",fr:"Modifier / Supprimer",pt:"Editar /Apagar"},"Edit address":{es:"Editar direcci\xf3n",fr:"Modifier l\u2019adresse",pt:"Editar endere\xe7o"},"Edit billing address":{es:"Editar la direcci\xf3n de facturaci\xf3n",fr:"Modifier l\u2019adresse de facturation",pt:"Editar o endere\xe7o de cobran\xe7a"},"Edit shipping address":{es:"Editar la direcci\xf3n de env\xedo",fr:"Modifier l\u2019adresse d\u2019exp\xe9dition",pt:"Editar o endere\xe7o de entrega"},"Eligible for up to {0} Gold Points":{es:"Elegible para hasta {0} puntos de oro",fr:"Admissible pour jusqu'\xe0 {0} points or",pt:"Eleg\xedvel para at\xe9 {0} pontos de ouro"},"Enter address details":{es:"Introduce la informaci\xf3n de la direcci\xf3n",fr:"Entrez les d\xe9tails de l'adresse",pt:"Insira os detalhes do endere\xe7o"},"Enter address manually instead":{es:"Introduce manualmente tu direcci\xf3n de env\xedo",fr:"Entrer manuellement l'adresse",pt:"Insira manualmente o endere\xe7o de entrega"},"Enter your redemption code to add this item to your cart.":{fr:"Entrez votre code d'acc\xe8s pour ajouter cet article \xe0 votre panier."},"Escolha o seu Nintendo Switch":{es:"Elige tu consola Nintendo Switch",pt:"Escolha o seu Nintendo Switch"},"eShop code":{es:"Tarjeta digital de regalo para Nintendo eShop",pt:"Cart\xe3o presente digital do Nintendo eShop"},"ESRB rating":{es:"Clasificaci\xf3n",fr:"Classement ESRB",pt:"Classifica\xe7\xe3o Indicativa"},Events:{es:"Eventos",fr:"\xc9v\xe9nements",pt:"Eventos"},"Events and Promotions":{es:"Eventos y ofertas",fr:"\xc9v\xe9nements et promotions",pt:"Eventos e promo\xe7\xf5es"},Exclusives:{es:"Exclusivos",fr:"Exclusivit\xe9s",pt:"Exclusividades"},"Explore this game's official website":{es:"Explora el sitio oficial de este juego",fr:"Explorer le site officiel de ce jeu",pt:"Explore o site oficial deste jogo"},"Explore, purchase, or remove items from your Wish List here. You can also share your current list with friends and family.":{es:"Explora, adquiere o remueve art\xedculos de tu lista de deseos aqu\xed. Tambi\xe9n puedes compartir tu lista con tu familia y tus amigos.",fr:"Explorez, achetez, ou retirez des articles de votre liste de souhaits ici. Vous pouvez aussi partager votre liste actuelle avec vos amis et votre famille.",pt:"Explore, compre ou remova itens da sua lista de desejos aqui. Voc\xea tamb\xe9m pode compartilhar sua lista com amigos e familiares."},"Fall {0}":{es:"Oto\xf1o de {0}",fr:"Automne {0}",pt:"Outono de {0}"},Family:{es:"Familiar",fr:"Familial",pt:"Familiar"},Filter:{es:"Filtrar",fr:"Filtre",pt:"Filtrar"},"Filter Articles:":{es:"Filtrar noticias:",fr:"Filtrer les articles :",pt:"Filtrar artigos:"},"Find the system for you":{es:"Encuentra la consola perfecta para ti",fr:"Trouver la console qui vous convient",pt:"Encontre o console perfeito para voc\xea."},"Find retailers":{es:"Encuentra tiendas",fr:"Trouver un d\xe9taillant",pt:"Encontrar revendedores"},for:{es:"para",fr:"pour",pt:"para"},"Free demo":{es:"Versi\xf3n de prueba gratuita",fr:"D\xe9mo gratuite",pt:"Vers\xe3o demo gratuita"},"Free download":{es:"Descarga gratuita",fr:"T\xe9l\xe9chargement gratuit",pt:"Download gratuito"},"Free shipping":{fr:"\tExp\xe9dition gratuite"},French:{es:"Franc\xe9s",fr:"Fran\xe7ais",pt:"Franc\xeas"},"Full version of the game required to use DLC. Sold separately. Additional accessories may be required for multiplayer mode. Sold separately.":{es:"",fr:"Version compl\xe8te du jeu n\xe9cessaire pour utiliser le contenu additionnel; vendue s\xe9par\xe9ment. Jeux, consoles et/ou accessoires additionnels pourraient \xeatre n\xe9cessaires pour le mode multijoueur. Vendus s\xe9par\xe9ment.",pt:""},"Game + DLC bundle":{es:"Paquete de juego + contenido descargable",fr:"Ensemble jeu + contenu t\xe9l\xe9chargeable",pt:"Pacote de jogo + conte\xfado extra"},"Game bundle":{es:"Paquete de juego",fr:"Ensemble de jeu",pt:"Pacote de jogo"},"Game Compatibility":{es:"Compatibilidad con los juegos",fr:"Compatibilit\xe9 avec les jeux",pt:"Compatibilidade de jogo"},"Game file size":{es:"Tama\xf1o del archivo",fr:"Taille du fichier de jeu",pt:"Tamanho do arquivo do jogo"},"Game News":{es:"Noticias sobre juegos",fr:"Nouvelles de jeu",pt:"Novidades sobre jogos"},"Game Rating":{en:"ESRB Rating",es:"Clasificaci\xf3n ESRB",fr:"Classement ESRB",pt:"Classifica\xe7\xe3o Indicativa"},"Game results":{es:"Resultados de juegos",fr:"R\xe9sultats de jeu",pt:"Resultados do jogo"},"Game Voucher eligible":{es:"T\xedtulo elegible para cupones para juegos",fr:"Admissible aux bons pour jeux",pt:"T\xedtulo eleg\xedvel para cupons para jogos"},German:{es:"Alem\xe1n",fr:"Allemand",pt:"Alem\xe3o"},"Get personalized recommendations for Nintendo Switch games, based on what you like to play.":{es:"Obt\xe9n recomendaciones personalizadas para juegos de Nintendo Switch basadas en los juegos que m\xe1s te gustan.",fr:"Obtenez des recommandations personnalis\xe9es pour des jeux Nintendo Switch en fonction de ce que vous aimez jouer.",pt:"Obtenha recomenda\xe7\xf5es personalizadas para jogos do console Nintendo Switch, com base no que voc\xea gosta de jogar."},"Give it a try:":{es:"Pru\xe9balo:",fr:"Essayez : ",pt:"Experimente:"},"Go back":{fr:"Retour"},"Go to account settings":{es:"Ir a los ajustes de la cuenta",fr:"Acc\xe9der aux param\xe8tres de compte",pt:"Acessar as configura\xe7\xf5es da conta"},"Go to the Nintendo account sign in page.":{es:"Ir a la p\xe1gina de inicio de sesi\xf3n de la cuenta Nintendo.",fr:"Dirigez-vous vers la page de connexion du compte Nintendo.",pt:"Ir para a p\xe1gina de login da conta Nintendo."},"Great first games":{es:"Juegos perfectos para comenzar",fr:"Excellents jeux pour commencer",pt:"\xd3timos jogos para come\xe7ar"},Handheld:{es:"Port\xe1til",fr:"Portable",pt:"Port\xe1til"},"Handheld mode":{es:"Modo port\xe1til",fr:"Mode portable",pt:"Modo port\xe1til"},"Hardware results":{es:"Resultados para equipo",fr:"R\xe9sultats de mat\xe9riels",pt:"Resultados de Hardware"},"Have a Nintendo Switch system but still seeing this? Please {0}.":{es:"\xbfTienes una consola Nintendo Switch, pero sigues viendo esto? {0}.",fr:"Vous poss\xe9dez une console Nintendo Switch, mais ce message continue d\u2019appara\xeetre? Veuillez {0}.",pt:"Possui um console Nintendo Switch, mas esta mensagem continua aparecendo? {0}."},"link your system to your account":{es:"Vincula tu consola a tu cuenta",fr:"connecter votre console \xe0 votre compte",pt:"Vincule a sua conta Nintendo ao seu console"},Holiday:{es:"Fiestas decembrinas",fr:"Temps des f\xeates",pt:"Festas de fim de ano"},Home:{es:"Inicio",fr:"Accueil",pt:"In\xedcio"},"Included in this bundle":{es:"Este paquete incluye",fr:"Inclus dans cet ensemble",pt:"Este pacote inclui"},Individual:{es:"Individual",fr:"Individuel",pt:"Individual"},"Invalid redemption code":{fr:"Code d'acc\xe8s invalide"},Isabelle:{es:"Canela",fr:"Marie",pt:"Isabelle"},Italian:{es:"Italiano",fr:"Italien",pt:"Italiano"},"Item limit reached":{es:"Se ha alcanzado el l\xedmite de art\xedculos",fr:"Limite d'articles atteinte",pt:""},"It\u2019s a handy way to keep track of items you\u2019re interested in. We\u2019ll even let you know when one of your Wish List items goes on sale.":{es:"Es una manera muy \xfatil de estar al tanto sobre los productos que te interesan. Incluso te notificaremos cuando alguno de los art\xedculos en tu lista de deseos est\xe9 en oferta.",fr:"C'est un moyen pratique d'avoir un \u0153il sur les articles qui vous int\xe9ressent.",pt:"\xc9 uma forma pr\xe1tica de controlar os itens de seu interesse."},Japanese:{es:"Japon\xe9s",fr:"Japonais",pt:"Japon\xeas"},"Joy-Con & Joy-Con Grips":{es:"",fr:"Joy-Con et Supports Joy-Con",pt:"Limite de itens alcan\xe7ado"},"Keep exploring:":{es:"Contin\xfaa explorando:",pt:"Continue explorando:",fr:"Continuer \xe0 explorer : "},"Keep playing to get personalized picks based on your Nintendo Switch\u2122 play history. In the meantime, here are some recommendations to get you started.":{es:"Contin\xfaa jugando para obtener recomendaciones personalizadas basadas en tu historial de juego en Nintendo Switch\u2122. Mientras tanto, mira estas recomendaciones para que empieces a explorar.",fr:"Continuez \xe0 jouer pour obtenir des choix personnalis\xe9s en fonction de votre historique de jeu Nintendo Switch\u2122. En attendant, voici quelques recommandations pour commencer.",pt:"Continue jogando para receber mais recomenda\xe7\xf5es personalizadas com base no seu hist\xf3rico de jogo no console Nintendo Switch\u2122. Enquanto isso, aqui est\xe3o algumas recomenda\xe7\xf5es para voc\xea come\xe7ar a explorar."},Korean:{es:"Coreano",fr:"Cor\xe9en",pt:"Coreano"},"L-CLASSIND":{pt:"Livre"},"Latin American Spanish":{es:"Espa\xf1ol (Am\xe9rica Latina)",fr:"Espagnol d\u2019Am\xe9rique latine",pt:" Espanhol Latino-americano"},"Learn more":{es:"M\xe1s informaci\xf3n",fr:"Plus de d\xe9tails",pt:"Saiba mais"},"Learn more about vouchers":{es:"M\xe1s informaci\xf3n sobre los cupones",fr:"En savoir plus \xe0 propos des bons",pt:"Saiba mais sobre os cupons"},"Learn more about {0}.":{es:"M\xe1s informaci\xf3n acerca de {0}.",fr:"Plus de d\xe9tails sur {0}.",pt:"Saiba mais sobre o jogo {0}."},Length:{es:"Largo",fr:"Longueur",pt:"Comprimento"},"Less info":{es:"Menos informaci\xf3n",fr:"Moins de d\xe9tails",pt:"Menos detalhes"},"Let's get started, {0}":{es:"Comencemos, {0}",fr:"{0}, commen\xe7ons",pt:"Vamos nessa, {0}"},"Limited Edition":{es:"Versi\xf3n limitada",fr:"\xc9dition limit\xe9e",pt:"Edi\xe7\xe3o limitada"},"Limited edition":{es:"Versi\xf3n limitada",fr:"\xc9dition limit\xe9e",pt:"Edi\xe7\xe3o limitada"},"Link copied":{es:"Enlace copiado",fr:"Lien copi\xe9",pt:"Link copiado"},"Load all":{es:"Ver todo",fr:"Afficher tout",pt:"Ver todos"},"Load more results":{es:"Cargar m\xe1s",fr:"Charger plus",pt:"Carregue mais"},"Local wireless":{es:"Inal\xe1mbrico local",fr:"Mode sans fil local",pt:"Comunica\xe7\xe3o local"},"Log in":{es:"Iniciar sesi\xf3n",fr:"Se connecter",pt:"Iniciar sess\xe3o"},"Log in or create an account":{es:"Inicia sesi\xf3n o crea una cuenta",fr:"Se connecter ou cr\xe9ez un compte",pt:"Inicie sess\xe3o ou crie uma conta"},"Log in to purchase":{es:"Inicia sesi\xf3n para adquirir",fr:"Connectez-vous pour acheter",pt:"Fazer login para comprar"},"Looking for your next game? We\u2019d love to show you some Nintendo Switch\u2122 games you might be interested in, based on your play history. Sign in to your Nintendo Account to see your recommendations.":{es:"\xbfEst\xe1s buscando tu siguiente juego? En base a tu historial de juego, nos gustar\xeda mostrarte m\xe1s juegos de Nintendo Switch\u2122 que te podr\xedan interesar. Inicia sesi\xf3n en tu cuenta Nintendo para ver nuestras recomendaciones.",fr:"\xc0 la recherche de votre prochain jeu? Nous aimerions vous pr\xe9senter quelques jeux pour la console Nintendo Switch\u2122 qui pourraient vous int\xe9resser, en nous basant sur votre historique de jeu. Connectez-vous \xe0 votre compte Nintendo pour voir vos recommandations.",pt:"\xc0 procura do seu pr\xf3ximo jogo? Adorar\xedamos apresentar alguns jogos do console Nintendo Switch\u2122 que talvez te interessem com base no seu hist\xf3rico de jogo. Fa\xe7a login na sua conta Nintendo para conferir as recomenda\xe7\xf5es."},"Look up another order":{es:"Buscar otra orden",fr:"Rechecher une autre commande",pt:"Buscar outro pedido"},"M-Rating":{en:"Mature 17+",es:"Maduro +17",fr:"Jeunes adultes 17+",pt:"Maduro"},Manufacturer:{es:"Fabricante",fr:"Fabricant",pt:"Fabricante"},"Member since {0}":{es:"Miembro desde {0}",fr:"Membre depuis {0}",pt:"Membro desde {0}"},"Membership type":{es:"Tipo de suscripci\xf3n",fr:"Type d\u2019abonnement",pt:"Tipo de assinatura"},"Merchandise results":{es:"Resultados para mercanc\xeda",fr:"R\xe9sultats de marchandise",pt:"Resultados dos produtos"},"More Events":{es:"M\xe1s eventos",fr:"Plus d'\xe9v\xe9nements",pt:"Mais eventos"},"More like this":{fr:"Plus d\u2019articles comme celui-ci"},"More info":{es:"M\xe1s informaci\xf3n",fr:"Plus de d\xe9tails",pt:"Mais detalhes"},"More News":{es:"M\xe1s noticias",fr:"Plus de nouvelles",pt:"Mais novidades"},"More ways to buy":{es:"M\xe1s formas de comprar",fr:"Plus de fa\xe7ons d'acheter",pt:"Mais formas de comprar"},"Most recently played":{es:"M\xe1s jugado recientemente",fr:"Les plus jou\xe9s r\xe9cemment",pt:"Jogado recentemente"},"My Nintendo Store":{es:"Tienda",fr:"Boutique My Nintendo",pt:"Loja"},"My Nintendo Points":{fr:"points My Nintendo"},"Need a hand?":{fr:"Besoin d'aide?"},"New!":{es:"\xa1Nuevo!",fr:"Nouveau!",pt:"Novidade!"},"New season":{es:"Nueva temporada",fr:"Nouvelle saison",pt:"Nova temporada"},News:{es:"Novedades",fr:"Nouvelles",pt:"Novidades"},"News & Events results":{es:"Resultados para noticias y eventos",fr:"R\xe9sultats de nouvelles et \xe9v\xe9nements",pt:"Novidades e resultados de eventos"},"Newly recommended for you":{es:"Nuevas recomendaciones para ti",fr:"Nouvelles recommandations pour vous",pt:"Recentemente recomendados para voc\xea"},"Nintendo Official Site":{es:"Sitio oficial de Nintendo",fr:"Site officiel Nintendo",pt:"Site Oficial da Nintendo","en-us":"Nintendo Official Site","en-ca":"Nintendo Official Site for Canada","fr-ca":"Site Officiel Nintendo pour Canada","es-mx":"Sitio Oficial de Nintendo para Mexico","es-co":"Sitio Oficial de Nintendo para Colombia","es-cl":"Sitio Oficial de Nintendo para Chile","es-pe":"Sitio Oficial de Nintendo para Peru","es-ar":"Sitio Oficial de Nintendo para Argentina","pt-br":"Site Oficial da Nintendo para Brasil"},"Nintendo Switch - OLED Model":{es:"Nintendo Switch \u2013 Modelo OLED",fr:"Nintendo Switch \u2013 Mod\xe8le OLED",pt:"Nintendo Switch \u2013 Modelo OLED"},"Nintendo Switch games":{es:"Juegos de Nintendo Switch",fr:"Jeux Nintendo Switch",pt:"Jogos do console Nintendo Switch"},"Nintendo Switch Online + Expansion Pack":{es:"Nintendo Switch Online + Paquete de expansi\xf3n",fr:"Nintendo Switch Online + Ensemble additionnel",pt:"Nintendo Switch Online + Pacote adicional"},"Nintendo Switch Online compatible":{es:"Compatibilidad con Nintendo Switch Online",fr:"Compatibilit\xe9 Nintendo Switch Online",pt:"Compat\xedvel com o Nintendo Switch Online"},"Nintendo Switch Online features":{es:"Funciones de Nintendo Switch Online",fr:"Fonctions Nintendo Switch Online",pt:"Funcionalidades do Nintendo Switch Online"},"Nintendo Switch Online members":{es:"suscriptores de Nintendo Switch Online",fr:"d\xe9tenteurs d\u2019un abonnement payant Nintendo Switch Online",pt:"assinantes do Nintendo Switch Online"},"Nintendo Switch Online membership":{es:"Suscripci\xf3n a Nintendo Switch Online",fr:"Abonnement Nintendo Switch Online",pt:"Assinatura do Nintendo Switch Online"},"Nintendo Switch Online required":{es:"Requiere una suscripci\xf3n a Nintendo Switch Online",fr:"Nintendo Switch Online requis",pt:"Uma assinatura do Nintendo Switch Online \xe9 necess\xe1ria "},'No featured games found for "{0}".':{es:'No se encontraron resultados de juegos destacados para "{0}".',fr:"Aucun jeu \xe0 l'affiche n'a \xe9t\xe9 trouv\xe9 pour \"{0}\".",pt:'Nenhum jogo encontrado para "{0}".'},'No featured hardware found for "{0}".':{es:'No se encontraron resultados de equipo destacado para "{0}".',fr:"Aucun mat\xe9riel \xe0 l'affiche n'a \xe9t\xe9 trouv\xe9 pour \"{0}\".",pt:'Nenhum hardware encontrado para "{0}".'},'No featured merchandise found for "{0}".':{es:'No se encontraron resultados de mercanc\xeda destacada para "{0}".',fr:"Aucune marchandise \xe0 l'affiche n'a \xe9t\xe9 trouv\xe9e pour \"{0}\".",pt:'Nenhuma mercadoria encontrada para "{0}".'},'No featured news & events found for "{0}".':{es:'No se encontraron resultados de noticias y eventos destacados para "{0}".',fr:"Aucune nouvelle ou aucun \xe9v\xe9nement \xe0 l'affiche n'a \xe9t\xe9 trouv\xe9 pour \"{0}\".",pt:'Nenhuma novidade e eventos encontrados para "{0}".'},'No featured support found for "{0}".':{es:'No se encontraron resultados de art\xedculos de soporte destacados para "{0}".',fr:"Aucun article de soutien \xe0 l'affiche n'a \xe9t\xe9 trouv\xe9 pour \"{0}\".",pt:'Nenhum suporte encontrado para "{0}".'},'No games found for "{0}".':{es:'No se encontraron resultados de juegos para "{0}".',fr:'Aucun jeu n\'a \xe9t\xe9 trouv\xe9 pour "{0}".',pt:'Nenhum jogo encontrado para "{0}".'},'No hardware found for "{0}".':{es:'No se encontraron resultados de equipo para "{0}".',fr:'Aucun mat\xe9riel n\'a \xe9t\xe9 trouv\xe9 pour "{0}".',pt:'Nenhum hardware encontrado para "{0}".'},'No merchandise found for "{0}".':{es:'No se encontraron resultados de mercanc\xeda para "{0}".',fr:'Aucune marchandise n\'a \xe9t\xe9 trouv\xe9e pour "{0}".',pt:'Nenhuma mercadoria encontrada para "{0}".'},'No news or events found for "{0}".':{es:'No se encontraron resultados de noticias y eventos para "{0}".',fr:'Aucune nouvelle ou aucun \xe9v\xe9nement n\'a \xe9t\xe9 trouv\xe9 pour "{0}".',pt:'Nenhuma novidade ou evento encontrado para "{0}".'},"No play history found":{es:"No se encontr\xf3 el historial de juego",fr:"Aucun historique de jeu trouv\xe9",pt:"Nenhum hist\xf3rico de jogo encontrado"},"No purchase history to show.":{es:"No existe un historial de compra para mostrar.",fr:"Aucun historique d'achat disponible",pt:"N\xe3o existe um hist\xf3rico de compra para mostrar."},'No results found for "{0}".':{es:'No se encontraron resultados para "{0}".',fr:'Aucun r\xe9sultat n\'a \xe9t\xe9 trouv\xe9 pour "{0}".',pt:'Nenhum resultado encontrado para "{0}".'},'No support articles found for "{0}".':{es:'No se encontraron art\xedculos de soporte para "{0}".',fr:'Aucun article de soutien n\'a \xe9t\xe9 trouv\xe9 pour "{0}".',pt:'Nenhum artigo de suporte encontrado para "{0}".'},"Not available":{es:"No disponible",fr:"Pas offert",pt:"N\xe3o dispon\xedvel"},"Not for children under 3 years.":{es:"No se recomienda para ni\xf1os menores de 3 a\xf1os.",fr:"Ne convient pas aux enfants de moins de 3 ans.",pt:"N\xe3o recomendado para crian\xe7as menores de 3 anos."},"Note:":{es:"Nota:",fr:"Remarque :",pt:"Obs.:"},"Nothing's been added to your Wish List yet.":{es:"A\xfan no has agregado nada a tu lista deseos.",fr:"Votre liste de souhaits est encore vide.",pt:"N\xe3o h\xe1 t\xedtulos na sua lista de desejos."},"Now on sale":{es:"Ahora en oferta",fr:"En vente d\xe8s maintenant",pt:"Em promo\xe7\xe3o"},Online:{es:"En l\xednea",fr:"En ligne",pt:"Em linha"},"Online ({0})":{es:"En l\xednea ({0})",fr:"En ligne ({0})",pt:"Em linha ({0})"},"Online play":{es:"Juego en l\xednea",fr:"Jeu en ligne",pt:"Partida online"},"Order #":{es:"Orden #",fr:"Commande no ",pt:"Pedido #"},"Order Details":{es:"Detalles de la orden",fr:"D\xe9tails de commande",pt:"Detalhes do pedido"},"Order history":{fr:"Historique des commandes"},"Order found!":{es:"\xa1Orden encontrada!",fr:"Commande trouv\xe9e!",pt:"Pedido encontrado!"},"Order information":{es:"Informaci\xf3n de la orden",fr:"Informations sur la commande",pt:"Informa\xe7\xe3o do pedido"},"Order list":{es:"Lista de compras",fr:"Liste de commandes",pt:"Lista de compras"},"Order Number:":{es:"N\xfamero de orden:",fr:"Num\xe9ro de commande : ",pt:"N\xfamero do pedido:"},"Order Status":{es:"Estado del pedido",fr:"Status de commande",pt:"Status do pedido"},"Order total:":{es:"Total:",fr:"Total de la commande : ",pt:"Total de pedidos:"},"Out of stock":{es:"Agotado",fr:"En rupture de stock",pt:"Esgotado"},Overview:{es:"Resumen",fr:"Aper\xe7u",pt:"Vis\xe3o geral"},"Paid Nintendo Switch Online membership required for purchase. This item will be added to your Nintendo Account automatically after purchase.":{fr:"Abonnement payant Nintendo Switch Online requis pour l'achat. Cet article sera ajout\xe9 automatiquement \xe0 votre compte Nintendo apr\xe8s achat.",es:"Se requiere una suscripci\xf3n de pago a Nintendo Switch Online para realizar la compra. Este art\xedculo se agregar\xe1 autom\xe1ticamente a tu cuenta Nintendo despu\xe9s de la compra.",pt:"\xc9 necess\xe1ria uma assinatura paga do Nintendo Switch Online para compra. Este item ser\xe1 adicionado \xe0 sua conta Nintendo automaticamente ap\xf3s a compra."},"Paid {0} required for purchase.":{es:"Se requiere una suscripci\xf3n de pago a {0} para realizar la compra.",fr:"Abonnement payant {0} requis pour l'achat.",pt:"\xc9 necess\xe1ria uma assinatura paga do {0} para compra."},Pending:{es:"Pendiente",fr:"En suspens",pt:"Pendente"},"Personalized picks - My Nintendo Store":{es:"Recomendaciones personalizadas - Sitio oficial de Nintendo",fr:"Choix personnalis\xe9s - Boutique My Nintendo",pt:"Op\xe7\xf5es personalizadas - Site Oficial da Nintendo"},"Phone number (optional)":{es:"N\xfamero de tel\xe9fono",fr:"Num\xe9ro de t\xe9l\xe9phone",pt:"N\xfamero de telefone"},Physical:{es:"Versi\xf3n f\xedsica",fr:"Emball\xe9e",pt:"Vers\xe3o f\xedsica"},"Picked for you, {0}":{es:"Recomendaciones para ti, {0}",fr:"{0} : Jeux choisis pour vous",pt:"Escolhidos especialmente para voc\xea, {0}"},"Place order":{fr:"Passer la commande"},'By clicking "Place order" you agree to the {0}.':{fr:"En cliquant sur \xab Passer la commande \xbb, vous acceptez les {0}."},"Play online, access classic NES\u2122 and Super NES\u2122 games, and more with a Nintendo Switch Online membership.":{es:"Juega en l\xednea, obt\xe9n acceso a juegos cl\xe1sicos de NES\u2122 y Super NES\u2122 y m\xe1s con una suscripci\xf3n a Nintendo Switch Online.",fr:"Jouez en ligne, acc\xe9dez aux jeux classiques NES\u2122 et Super NES\u2122, et plus avec un abonnement Nintendo Switch Online.",pt:"Jogue online, acesse os jogos cl\xe1ssicos do NES\u2122 e Super NES\u2122, e muito mais com uma assinatura Nintendo Switch Online."},"Please log in to your Nintendo Account to view your Wish List.":{es:"Inicia sesi\xf3n en tu cuenta Nintendo para ver tu lista de deseos.",fr:"Veuillez vous connecter \xe0 votre compte Nintendo pour consulter votre liste de souhaits.",pt:"Inicie uma sess\xe3o na sua conta Nintendo para ver sua lista de desejos."},Portuguese:{es:"Portugu\xe9s",fr:"Portugais",pt:"Portugu\xeas"},"Pre-order ":{es:"Reservar",pt:"Reservar"},"Pre-order now":{es:"Reserva ya",fr:"Pr\xe9commander maintenant",pt:"Reserve j\xe1"},"Pre-order or redeem a Game Voucher to pre-load this game and start playing as soon as it\u2019s released. {0}":{es:"Reserva o canjea un cup\xf3n para juegos para predescargar este juego y empezar a jugar en cuanto sea lanzado. {0}",fr:"Pr\xe9commandez ou \xe9changez un bon jour jeu pour pr\xe9t\xe9l\xe9charger ce jeu et commencer \xe0 y jouer d\xe8s sa sortie. {0}",pt:"Reserve ou use um cupom para jogos para fazer o download antecipado deste t\xedtulo e come\xe7ar a jogar assim que for lan\xe7ado. {0}"},"Pre-purchase":{fr:"Pr\xe9acheter"},"Pre-purchase now":{es:"Precomprar ya",fr:"Pr\xe9acheter maintenant",pt:"Compre antecipadamente"},"Preparing to ship":{es:"Preparando para env\xedo",fr:"Pr\xe9paration de l\u2019exp\xe9dition",pt:"Preparando para envio"},"Presented by:":{es:" Presentado por:",fr:"Pr\xe9sent\xe9 par :"},Price:{es:"Precio",fr:"Prix",pt:"Pre\xe7o"},Processing:{es:"Procesando",fr:"Traitement",pt:"Processando"},Products:{es:"Productos",pt:"Produtos"},Publisher:{es:"Editor",fr:"\xc9diteur",pt:"Editor"},"Purchase history":{es:"Historial de compras",fr:"Historique d'achats",pt:"Hist\xf3rico de compras"},"Purchase History":{es:"Historial de compras",fr:"Historique d'achats",pt:"Hist\xf3rico de compras"},"Purchase type:":{es:"Tipo de compra:",fr:"Type d'achat : ",pt:"Tipo de compra:"},"PURCHASE AND SUBSCRIPTION TERMS":{fr:"CONDITIONS D'ACHAT ET D'ABONNEMENT"},"Purchase at the My Nintendo Store":{fr:"Acheter dans la boutique My Nintendo",es:"Adquirir en la tienda My Nintendo"},"Qty: {0}":{fr:"Qt\xe9: {0}"},"Quantity:":{es:"Cantidad:",fr:"Quantit\xe9 : ",pt:"Quantidade:"},"Rating pending":{es:"Calificaci\xf3n pendiente",fr:"\xc9valuation en attente",pt:"Verifique a classifica\xe7\xe3o indicativa"},"Read less":{es:"Menos informaci\xf3n",fr:"Moins de d\xe9tails",pt:"Menos detalhes"},"Redeem a Nintendo Switch Game Voucher":{es:"Canjear un cup\xf3n para juegos de Nintendo Switch",fr:"\xc9changer un bon pour jeu Nintendo Switch",pt:"Resgatar um cupom para jogos do Nintendo Switch"},"Redemption code":{fr:"Code d'acc\xe8s"},"Related items to explore":{fr:"Articles connexes \xe0 explorer"},"Related news and events":{es:"Noticias y eventos relacionados",fr:"Nouvelles et \xe9v\xe9nements",pt:"Not\xedcias e eventos relacionados"},"Release date:":{fr:"Date de sortie :"},"Releasing in {0}":{es:"Ser\xe1 lanzado en: {0}",fr:"Sortie dans {0}",pt:"Lan\xe7amento em: {0}"},"Removed {0} from your Wish List.":{es:"Borra {0} de tu lista de deseos.",fr:"{0} a \xe9t\xe9 retir\xe9 de votre liste de souhaits.",pt:"{0} foi removido da sua lista de desejos."},"Required to play:":{es:"Para jugar se requiere:",fr:"Requis pour jouer : ",pt:"Para jogar \xe9 necess\xe1rio:"},"Recent releases":{es:"Lanzamientos recientes",fr:"Sorties r\xe9centes",pt:"Lan\xe7amentos recentes"},"Recent releases for you":{es:"Lanzamientos recientes para ti",fr:"Sorties r\xe9centes pour vous",pt:"Lan\xe7amentos recentes para voc\xea"},"Restrictions apply":{es:"Aplican restricciones",fr:"Des restrictions s\u2019appliquent",pt:"Restri\xe7\xf5es se aplicam"},'Results for "{0}"':{es:'Resultados para "{0}"',fr:'R\xe9sultats pour "{0}"',pt:'Resultados para "{0}"'},"RP-CLASSIND":{pt:"Verifique a Classifica\xe7\xe3o Indicativa"},"RP-Rating":{en:"Rating Pending",es:"A\xfan Sin Calificar",fr:"Cote en Attente",pt:"Classifica\xe7\xe3o Pendente"},"RP17-Rating":{en:"Rating Pending - Likely Mature 17+",es:"A\xfan Sin Calificar Probable Maduro +17",fr:"Cote en Attente Probablement Jeunes Adultes 17+",pt:"Classifica\xe7\xe3o Pendente"},"RP-SMEC":{es:"Etiquetado Pendiente"},"RP_B-SMEC":{es:"Etiquetado Pendiente"},Russian:{es:"Ruso",fr:"Russe",pt:"Russo"},"Required to play:":{es:"Para jugar se requiere:",fr:"Requis pour jouer : ",pt:"Para jogar \xe9 necess\xe1rio:"},"Sale ends: {0} at {1}":{es:"La oferta termina: {0} a las {1}",fr:"Fin de la promotion : {0} \xe0 {1}",pt:"A oferta termina em: {0} \xe0s {1}"},"Sale ends: {0}":{es:"La oferta termina en: {0}",fr:"Fin de la promotion : {0}",pt:"A oferta termina em: {0}"},"Sale ends: {0} at {1} PT":{es:"La oferta termina: {0} a las {1} (horario del Pac\xedfico)",fr:"Fin de la promotion : {0} \xe0 {1} HP",pt:"A oferta termina em: {0} \xe0s {1} (hor\xe1rio do Pac\xedfico)"},"Sale ends: {0} PT":{es:"La oferta termina: {0} HP",fr:"Fin de la promotion : {0} HP",pt:"A oferta termina em: {0} hor\xe1rio do Pac\xedfico"},"Sales and deals for you":{es:"Descuentos y ofertas para ti",fr:"Offres et aubaines pour vous",pt:"Descontos e promo\xe7\xf5es para voc\xea"},"Save address":{es:"Guardar direcci\xf3n",fr:"Sauvegarder l'adresse",pt:"Salvar endere\xe7o"},"Save addresses here to keep them handy":{es:"\xa1Guarda tus direcciones aqu\xed para ahorrar tiempo en el futuro!",fr:"Sauvegardez les adresses ici pour les avoir sous la main",pt:"Salve endere\xe7os aqui para t\xea-los \xe0 m\xe3o!"},"Save changes":{es:"Guardar cambios",fr:"Sauvegarder les changements",pt:"Salvar altera\xe7\xf5es"},"Search Nintendo.com":{es:"Buscar en Nintendo.com",fr:"Rechercher Nintendo.com",pt:"Procurar em Nintendo.com"},"Search Nintendo.com for games, products news and information.":{es:"Explora Nintendo.com para descubrir juegos, productos, noticias e informaci\xf3n.",fr:"Rechercher sur Nintendo.com des jeux, nouvelles et informations sur les produits.",pt:"Explore Nintendo.com para descobrir jogos, novidades sobre produtos e informa\xe7\xf5es."},"See all":{es:"Ver todo",fr:"Voir tout",pt:"Ver todos"},"See all events":{es:"Mirar todos los eventos",fr:"Voir tous les \xe9v\xe9nements",pt:"Ver todos os eventos"},"See all news articles":{es:"Ver todos los art\xedculos de noticias",fr:"Voir tous les articles de nouvelles",pt:"Confira todas as not\xedcias"},"See full list":{es:"Ver la lista completa",fr:"Voir la liste compl\xe8te",pt:"Ver lista completa"},"See membership options":{es:"Mira los planes de suscripci\xf3n",fr:"Consulter les options d\u2019abonnement",pt:"Confira os planos de assinatura"},"See what\u2019s new with Nintendo Switch Online":{es:"Las noticias m\xe1s recientes acerca de Nintendo Switch Online",fr:"Derni\xe8res nouvelles sur Nintendo Switch Online",pt:"\xdaltimas not\xedcias do Nintendo Switch Online"},"Select a product":{es:"Selecciona un producto",fr:"S\xe9lectionnez un produit",pt:"Selecione um produto"},"Select a size to add to cart:":{es:"Para agregar a tu carrito, selecciona una talla:",pt:"Selecione o tamanho para adicionar ao carrinho:"},"Select an item:":{es:"Selecciona un art\xedculo:",pt:"Selecione um item:"},"Select size for {0}":{es:"Selecciona la medida para {0}",fr:"{0} : s\xe9lectionnez la taille",pt:"{0}: selecione o tamanho"},"Select color for {0}":{es:"Selecciona el color para {0}",fr:"{0} : s\xe9lectionnez la couleur",pt:"{0}: selecione a cor"},"Select digital storage capacity for {0}":{en:"Select storage size for {0}",es:"Selecciona el tama\xf1o de almacenamiento para {0}",fr:"{0} : s\xe9lectionnez la taille de stockage",pt:"{0}: selecione o tamanho do armazenamento"},"Select your region":{es:"Selecciona tu regi\xf3n",fr:"S\xe9lectionnez votre r\xe9gion",pt:"Selecione a sua regi\xe3o"},"Series:":{es:"",fr:"S\xe9rie :",pt:""},"Series/Franchise":{es:"",fr:"S\xe9rie/Franchise",pt:""},"Session ended:":{es:"Sesi\xf3n finalizada:",fr:"Session termin\xe9e :",pt:"Sess\xe3o encerrada:"},"Share a link to your combo":{es:"Comparte el enlace de tu combinaci\xf3n favorita",fr:"Partagez un lien vers votre combinaison",pt:"Compartilhe o link da sua combina\xe7\xe3o favorita"},"Share a snapshot of your current Wish List with friends and family!":{es:"\xa1Comparte una captura de tu lista de deseos actual con tu familia y tus amigos!",fr:"Partagez un aper\xe7u de votre liste de souhaits actuelle avec amis et famille!",pt:"Compartilhe uma captura de tela da sua lista de desejos atual com amigos e familiares!"},"Share link":{es:"Compartir el enlace",fr:"Partager le lien",pt:"Compartilhar link "},"Share Wish List":{es:"Compartir la lista de deseos",fr:"Partager la liste de souhaits",pt:"Compartilhar lista de desejos"},"Shared Wish List":{es:"Lista de deseos compartida",fr:"Liste de souhaits partag\xe9e",pt:"Lista de desejos compartilhada"},"Ship to:":{es:"Enviar a:",fr:"Exp\xe9dier \xe0 : ",pt:"Enviar para:"},Shipped:{es:"Enviado",fr:"Exp\xe9di\xe9e",pt:"Enviado"},"Shipping address":{es:"Direcci\xf3n de env\xedo",fr:"Adresse d'exp\xe9dition",pt:"Endere\xe7o de envio"},"Ships {0}":{es:"Fecha de env\xedo {0}",fr:"Date d'exp\xe9dition : {0}",pt:"Data de envio {0}"},"Shipping method":{es:"M\xe9todo de env\xedo",fr:"M\xe9thode d'exp\xe9dition",pt:"M\xe9todo de envio"},"Shop all deals":{es:"Explorar todas las ofertas",fr:"Magasiner toutes les offres",pt:"Confira todas as ofertas"},"Shop all games, plus hardware, accessories, and merch.":{es:"M\xe1s de 5000 juegos\u2026 y seguimos contando",fr:"Magasinez tous les jeux, ainsi que les mat\xe9riels, accessoires, et marchandises.",pt:"Descubra grandes jogos para o Nintendo Switch"},"Shop by character":{es:"Comprar por personaje",fr:"Magasiner par personnage",pt:"Comprar por personagem"},"Shop for games":{es:"Tienda de juegos",pt:"Loja de jogos"},"Shop your combo:":{es:"Adquiere tu combinaci\xf3n favorita:",fr:"Magasiner votre combinaison :",pt:"Compre a sua combina\xe7\xe3o favorita:"},"Show all":{es:"Mostrar todo",fr:"Tout voir",pt:"Mostrar tudo"},"Showing {0} results of {1}":{es:"Resultados mostrados: {0} de {1}",fr:"Affichage de {0} r\xe9sultats sur {1}",pt:"Mostrando {0} resultados de {1}"},"Sign in to get started":{es:"Inicia sesi\xf3n para empezar",fr:"Connectez-vous pour commencer",pt:"Fa\xe7a login para come\xe7ar"},"Sign in":{es:"Inicia sesi\xf3n",fr:"Se connecter",pt:"Fazer login"},"Sign in to add to cart":{fr:"Se connecter pour ajouter au panier"},"Sign in to download":{es:"Inicia sesi\xf3n para descargar",fr:"Se connecter pour t\xe9l\xe9charger",pt:"Iniciar sess\xe3o para baixar"},"Simplified Chinese":{es:"Chino (simplificado)",fr:"Chinois simplifi\xe9",pt:" Chin\xeas Simplificado"},"Since {0} has been your most-played game lately, you might like...":{es:"Como {0} ha sido el t\xedtulo que m\xe1s has jugado recientemente, esto podr\xeda interesarte...",fr:"Puisque {0} est le jeu auquel vous avez le plus jou\xe9 r\xe9cemment, vous pourriez vous int\xe9resser \xe0...",pt:"Como o jogo {0} tem sido o mais jogado por voc\xea ultimamente, talvez voc\xea se interesse por..."},"Single Player":{es:"Un solo jugador\t",fr:"Un joueur",pt:" Um jogador"},"Single System":{es:"Una sola consola\t",fr:"Une console",pt:" Um \xfanico console"},Size:{es:"Talla",fr:"Taille",pt:"Tamanho"},"Size chart":{es:"Tabla de medidas",fr:"Tableau des tailles",pt:"Tabela de tamanho"},"Software compatibility and play experience may differ on Nintendo Switch Lite. Additional accessories may be required (sold separately). See support for details.":{es:"La compatibilidad del programa y la experiencia de juego podr\xedan diferir en la consola Nintendo Switch Lite. Se podr\xedan requerir accesorios adicionales (se venden por separado). Consulta la p\xe1gina de soporte para obtener m\xe1s informaci\xf3n.",fr:"La compatibilit\xe9 du logiciel et l\u2019exp\xe9rience de jeu pourraient diff\xe9rer sur la Nintendo Switch Lite. Des accessoires additionnels, vendus s\xe9par\xe9ment, pourraient \xeatre n\xe9cessaires. Visitez Soutien pour plus de d\xe9tails.",pt:"A compatibilidade do software e a experi\xeancia de jogo podem ser diferentes no Nintendo Switch Lite. Acess\xf3rios adicionais (vendidos separadamente) podem ser necess\xe1rios . Consulte a assist\xeancia para obter detalhes."},"Software description provided by the publisher.":{es:"Esta descripci\xf3n ha sido proporcionada por el autor del programa.",fr:"Description du logiciel fournie par l'\xe9diteur",pt:"Descri\xe7\xe3o fornecida pela empresa respons\xe1vel pelo software."},"Software required to use (sold separately):":{es:"Programa requerido para utilizar este producto (se vende por separado):",fr:"Logiciel requis pour l\u2019utiliser (vendu s\xe9par\xe9ment) :",pt:"Softwares necess\xe1rios para usar este produto (vendidos separadamente):"},"Some of the items in your color combo come in a set.":{es:"Ciertos art\xedculos de tu combinaci\xf3n de colores est\xe1n disponibles como parte de un set.",fr:"Certains objets dans votre combinaison de couleurs sont offerts en ensemble.",pt:"alguns dos itens em sua combina\xe7\xe3o de cores s\xe3o parte de um conjunto."},"Something went wrong. Please try again.":{es:"Algo sali\xf3 mal. Intenta de nuevo.",fr:"Une erreur est survenue. Veuillez r\xe9essayer.",pt:"Algo deu errado. Tente novamente mais tarde."},"Sold out":{es:"Agotado",fr:"En rupture de stock",pt:"Esgotado"},"Sorry, but we could not find that order. Please check your entry and try again.":{es:"No ha sido posible encontrar la orden. Comprueba la informaci\xf3n e int\xe9ntalo de nuevo.",fr:"D\xe9sol\xe9s, mais nous n'avons pas pu trouver cette commande. Veuillez v\xe9rifier les informations et ressayer.",pt:"N\xe3o foi poss\xedvel encontrar o pedido. Confirme seus dados e tente novamente."},"Sorry, it\u2019s not possible to add items to your cart or check out right now.":{es:"Lo sentimos, no es posible agregar productos a tu carrito ni finalizar compras en este momento.",fr:"Pour l\u2019instant, il n\u2019est pas possible d\u2019ajouter des articles au panier ou d\u2019effectuer des achats.",pt:"Desculpe, n\xe3o \xe9 poss\xedvel adicionar itens ao seu carrinho ou finalizar a compra neste momento."},"Sort by":{es:"Organizar por",fr:"Trier par",pt:"Ordenar por"},"Sort by:":{es:"",fr:"Trier par",pt:""},Spanish:{es:"Espa\xf1ol",fr:"Espagnol",pt:"Espanhol"},"Special offers":{es:"Ofertas especiales",fr:"Offres sp\xe9ciales",pt:"Ofertas especiais"},"Special Offers":{es:"Ofertas exclusivas",fr:"Offres sp\xe9ciales",pt:"Ofertas especiais"},"Spring {0}":{es:"Primavera de {0}",fr:"Printemps {0}",pt:"Primavera de {0}"},"Starting at":{es:"A partir de",fr:"\xc0 partir de",pt:"A partir de"},"Stay here":{es:"Permanecer aqu\xed",fr:"Rester ici",pt:"Permanecer aqui"},Store:{es:"Tienda",fr:"Boutique",pt:"Loja"},"Summer {0}":{es:"Verano de {0}",fr:"\xc9t\xe9 {0}",pt:"Ver\xe3o de {0}"},"Supported languages":{es:"Idiomas compatibles",fr:"Langues compatibles",pt:"Idiomas compat\xedveis"},"Supported play modes":{es:"Modos de juego compatibles",fr:"Modes de jeu compatibles",pt:"Modos de jogo compat\xedveis"},"T-Rating":{en:"Teen",es:"Adolescentes",fr:"Adolescents",pt:"Adolescentes"},Tabletop:{es:"Semiport\xe1til",fr:"Sur table",pt:"Semiport\xe1til"},"Tabletop mode":{es:"modo semiport\xe1til",fr:"Mode sur table",pt:"Modo semiport\xe1til"},TBD:{es:"Por determinarse",fr:"\xc0 d\xe9terminer",pt:"Data a ser determinada"},"Thank you!":{es:"\xa1Gracias!",fr:"Merci!",pt:"Obrigado!"},"The requested quantity is not available":{es:"La cantidad solicitada no est\xe1 disponible",fr:"La quantit\xe9 souhait\xe9e n\u2019est pas disponible",pt:"A quant. solicitada n\xe3o est\xe1 dispon\xedvel"},"This game supports:":{es:"Este juego es compatible con:",fr:"Ce jeu est compatible avec :",pt:"Este jogo \xe9 compat\xedvel com:"},"This is the current billing address for your purchases.":{es:"Esta es la direcci\xf3n de facturaci\xf3n para tus compras.",fr:"Voici l'adresse de facturation actuelle de vos achats.",pt:"Este \xe9 o endere\xe7o de cobran\xe7a atual para suas compras. "},"This is the current shipping address for your purchases.":{es:"Esta es la direcci\xf3n de env\xedo para tus compras. ",fr:"Voici l'adresse d'exp\xe9dition actuelle de vos achats.",pt:"Este \xe9 o endere\xe7o de entrega atual de suas compras."},"This item is currently unavailable. Please check back soon.":{es:"Este art\xedculo no est\xe1 disponible actualmente. Verifica su disponibilidad en otro momento.",fr:"Cet article n\u2019est pas actuellement offert. Revenez v\xe9rifier bient\xf4t.",pt:"Este item n\xe3o est\xe1 dispon\xedvel no momento. Verifique novamente em breve."},"This item is no longer available.":{es:"Este art\xedculo ya no est\xe1 disponible.",fr:"Cet article n\u2019est plus offert.",pt:"Este item n\xe3o est\xe1 mais dispon\xedvel."},"This item is not available to download.":{es:"Este producto no est\xe1 disponible para descargar.",fr:"Cet article n\u2019est pas offert en t\xe9l\xe9chargement.",pt:"Este item n\xe3o est\xe1 dispon\xedvel para download."},"This item is only for paid {0}.":{es:"Este producto solo est\xe1 disponible para los {0}.",fr:"Cet article est r\xe9serv\xe9 aux {0}.",pt:"Este item \xe9 exclusivo para {0}."},"This item will be sent to your system automatically after purchase or Nintendo Switch Game Voucher redemption. {0}":{es:"Enviaremos este art\xedculo autom\xe1ticamente a tu consola despu\xe9s de la compra o el canje del cup\xf3n para juegos de Nintendo Switch. {0}",fr:"Cet article sera envoy\xe9 \xe0 votre console automatiquement apr\xe8s l\u2019achat ou l\u2019\xe9change d\u2019un bon pour jeu Nintendo Switch. {0}",pt:"Esse item ser\xe1 enviado para o seu console automaticamente ap\xf3s a compra ou o resgate dos cupons para jogos do Nintendo Switch. {0}"},"This item will be sent to your system automatically after purchase.":{es:"Este art\xedculo ser\xe1 enviado autom\xe1ticamente a tu consola despu\xe9s de efectuarse la compra.",fr:"Cet article sera envoy\xe9 automatiquement sur votre console apr\xe8s achat.",pt:"Este item ser\xe1 enviado ao seu console automaticamente ap\xf3s a compra."},"This item will be shipped to your address.":{es:"Este art\xedculo ser\xe1 enviado a tu direcci\xf3n.",fr:"Cet article sera exp\xe9di\xe9 \xe0 votre adresse.",pt:"Este item ser\xe1 enviado para o seu endere\xe7o."},"This lets you pre-load the game, so you'll be able to play as soon as the game is released.":{es:"Esto te permitir\xe1 predescargar el juego, as\xed podr\xe1s jugar en cuanto este sea lanzado.",fr:"Cela vous permet de pr\xe9t\xe9l\xe9charger le jeu, ce qui vous permettra de jouer d\xe8s sa sortie.",pt:"Isto permite que voc\xea fa\xe7a o download antecipado do jogo, assim poder\xe1 jogar logo que o jogo for lan\xe7ado."},"This Wish List snapshot was shared with you. Use it for great gift ideas\u2014or treat yourself!":{fr:"Cet aper\xe7u de la liste de souhaits a \xe9t\xe9 partag\xe9 avec vous. Utilisez-la pour des id\xe9es de cadeaux, ou faites-vous plaisir!",es:"Alguien comparti\xf3 contigo esta captura de su lista de deseos. \xa1Encuentra excelentes ideas de regalos o reg\xe1late algo de diversi\xf3n!",pt:"Algu\xe9m compartilhou esta captura de tela de sua lista de desejos com voc\xea. Tenha \xf3timas ideias de presentes, ou mime-se com algo divertido!"},"Top featured games":{es:"Juegos relevantes destacados",fr:"Meilleurs jeux \xe0 l'affiche",pt:"Jogos em destaque"},"Top featured hardware":{es:"Equipo relevante destacado",fr:"Meilleurs mat\xe9riels \xe0 l'affiche",pt:"Hardwares em destaque"},"Top featured merchandise":{es:"Mercanc\xeda relevante destacada",fr:"Meilleures marchandises \xe0 l'affiche",pt:"Mercadorias em destaque"},"Top featured news & events":{es:"Eventos y noticias relevantes destacados",fr:"Meilleures nouvelles et \xe9v\xe9nements \xe0 l'affiche",pt:"Novidades e eventos em destaque"},"Top featured support":{es:"Eventos y noticias relevantes destacados",fr:"Meilleurs articles de soutien \xe0 l'affiche",pt:"Novidades e eventos em destaque"},"Top Picks for you":{es:"Seleccionados para ti",fr:"Meilleures s\xe9lections",pt:"Escolhidos para voc\xea"},"Top store products":{es:"Destacados de la tienda",fr:"Produits phares du magasin",pt:"Destaques da loja"},"Track order status":{es:"Ver el estado de la orden",fr:"Suivre le statut de la commande",pt:"Ver o estado do pedido"},"Traditional Chinese":{es:"Chino (tradicional)",fr:"Chinois traditionnel",pt:" Chin\xeas Tradicional"},"Transaction date:":{es:"Fecha de la transacci\xf3n:",fr:"Date de la transaction : ",pt:"Data da transa\xe7\xe3o:"},"Trending topics":{es:"Temas populares",fr:"Sujets tendances",pt:"T\xf3picos em alta"},"Tune in":{es:"Sinton\xedzate",fr:"Se connecter",pt:"Conecte-se"},TV:{es:"TV",fr:"T\xe9l\xe9viseur",pt:"TV"},"TV mode":{es:"Modo televisor",fr:"Mode t\xe9l\xe9viseur",pt:"Modo TV"},"Use as my default billing address":{es:"Usar como mi direcci\xf3n de facturaci\xf3n predeterminada",fr:"Utiliser comme mon adresse de facturation par d\xe9faut",pt:"Usar como meu endere\xe7o de cobran\xe7a padr\xe3o"},"Use as my default shipping address":{es:"Usar como mi direcci\xf3n de env\xedo predeterminada",fr:"Utiliser comme mon adresse d\u2019exp\xe9dition par d\xe9faut",pt:"Usar como meu endere\xe7o de entrega padr\xe3o"},View:{es:"Ver",fr:"Voir",pt:"Ver"},"View cart and check out":{fr:"Voir le panier et finaliser l\u2019achat"},"View details":{es:"Mostrar informaci\xf3n",fr:"Voir les d\xe9tails",pt:"Ver detalhes"},"View DLC":{es:"Ver el contenido descargable",fr:"Voir le contenu t\xe9l\xe9chargeable",pt:"Ver conte\xfado extra"},"View in":{es:"Mirar en",fr:"Vue en",pt:"Ver em"},"View results ({0})":{es:"Ver resultados ({0})",fr:"Voir les r\xe9sultats ({0})",pt:"Ver resultados ({0})"},"Visa or Mastercard only":{fr:"Visa ou Mastercard uniquement"},"Visit the My Nintendo Store":{fr:"Visiter la boutique My Nintendo"},"Warning:":{es:"Advertencia:",fr:"AVERTISSEMENT :",pt:"Aten\xe7\xe3o:"},"Watch now:":{es:"Ver ahora",fr:"Regarder maintenant",pt:"Assista agora "},"WARNING: If you have epilepsy or have had seizures or other unusual reactions to flashing lights or patterns, consult a doctor before playing video games. All users should read the Health and Safety Information available in the system settings before using this software.":{es:"ADVERTENCIA: Si tienes epilepsia o un historial de convulsiones u otras reacciones inusuales a luces brillantes o en patrones, consulta a tu m\xe9dico antes de jugar videojuegos. Todos los usuarios deben leer detenidamente la informaci\xf3n sobre salud y seguridad disponible en la configuraci\xf3n de la consola antes de usar este programa.",fr:"AVERTISSEMENT : Si vous souffrez d'\xe9pilepsie, avez subi des crises, ou avez eu d'autres r\xe9actions inhabituelles en pr\xe9sence de lumi\xe8res ou motifs qui clignotent, consultez un m\xe9decin avant de jouer \xe0 des jeux vid\xe9o. Tous les utilisateurs devraient lire les informations sur la sant\xe9 et la s\xe9curit\xe9, accessibles depuis les param\xe8tres de la console, avant d'utiliser ce logiciel.",pt:"ATEN\xc7\xc3O: qualquer pessoa que sofra de epilepsia ou tenha sofrido uma convuls\xe3o, perda de consci\xeancia ou outro sintoma associado a uma condi\xe7\xe3o epil\xe9ptica, ou outras rea\xe7\xf5es incomuns provocadas por flashes ou padr\xf5es de luz, deve consultar um m\xe9dico antes de jogar videogames. Todos os usu\xe1rios devem ler as informa\xe7\xf5es de sa\xfade e seguran\xe7a dispon\xedveis nas configura\xe7\xf5es do console antes de utilizar o software."},"We're not able to show you personalized recommendations, based on your current {0}. Here's a look at some of our top game picks to get you started.":{es:"No podemos mostrarte recomendaciones personalizadas debido a tus {0}. Para que empieces a explorar, estas son algunas de nuestras mejores recomendaciones.",fr:"Nous ne pouvons pas afficher vos recommandations personnalis\xe9es en fonction de vos {0} actuels. Voici un aper\xe7u de certaines de nos meilleures s\xe9lections de jeu pour commencer.",pt:"N\xe3o podemos exibir suas recomenda\xe7\xf5es personalizadas com base nas suas {0}. Veja algumas das nossas principais op\xe7\xf5es de jogos para voc\xea come\xe7ar a explorar."},"Usage Information settings":{es:"ajustes de informaci\xf3n de uso",fr:"param\xe8tres d'informations d'utilisateur",pt:"configura\xe7\xf5es atuais de Informa\xe7\xf5es de uso"},"We are working on fixing the problem. Please try again later.":{es:"Estamos trabajando para resolver este problema. Por favor intenta de nuevo m\xe1s tarde.",fr:"Nous travaillons \xe0 la r\xe9solution de ce probl\xe8me. Veuillez r\xe9essayer plus tard.",pt:"Estamos trabalhando para resolver o problema. Tente novamente mais tarde."},"We're unable to complete this request at the moment. Please try again.":{es:"No podemos completar esta acci\xf3n por el momento. Por favor intenta de nuevo.",fr:"Nous ne pouvons malheureusement pas pour le moment remplir cette demande. Veuillez r\xe9essayer plus tard.",pt:"N\xe3o podemos concluir esta a\xe7\xe3o no momento. Tente novamente mais tarde."},"Whether you like to play at home or on-the-go, you'll find a Nintendo Switch\u2122 system for you. In the meantime, here's a look at some of our top game recommendations.":{es:"No importa si te gusta jugar desde casa o en el camino, hay una consola Nintendo Switch\u2122 perfecta para ti. Mientras tanto, estas son nuestras mejores recomendaciones de juegos.",fr:"Que vous pr\xe9f\xe9riez jouer \xe0 la maison ou sur le pouce, vous trouverez une console Nintendo Switch\u2122 qui vous convient. En attendant, voici un aper\xe7u des recommandations de meilleur jeu.",pt:"Se voc\xea gosta de jogar em casa ou em qualquer lugar, voc\xea encontrar\xe1 um console Nintendo Switch\u2122 perfeito para voc\xea. Enquanto isso, veja algumas das nossas principais recomenda\xe7\xf5es de jogos."},"Whoops - Nintendo":{es:"\xa1Uy! - Nintendo",fr:"Oups! - Nintendo",pt:"Opa! - Nintendo"},"Why not add":{es:"Por qu\xe9 no a\xf1adir",fr:"Pourquoi ne pas ajouter",pt:"Por que n\xe3o adicionar"},Width:{es:"Ancho",fr:"Largeur",pt:"Largura"},"Winter {0}":{es:"Invierno de {0}",fr:"Hiver {0}",pt:"Inverno de {0}"},"You can save games and other products you like by clicking the":{es:"Podr\xe1s guardar juegos y otros productos que te gusten al seleccionar",fr:"Vous pouvez sauvegarder les jeux et autres produits que vous aimez en cliquant sur",pt:"Voc\xea pode salvar jogos e outros produtos que gostar selecionando"},"You'll need a redemption code to add this item to your cart.":{fr:"Vous aurez besoin d'un code d'acc\xe8s pour ajouter cet article \xe0 votre panier."},"You might want to try searching again or explore one of the links below.":{es:"Haz una b\xfasqueda nuevamente o explora alguno de los siguientes enlaces.",fr:"Essayez de lancer une nouvelle recherche, ou jetez un coup d'\u0153il \xe0 l'un des liens ci-dessous.",pt:"Tente pesquisar novamente ou explore um dos links abaixo:"},"Your demo is on its way. Please check the download status on your system.":{es:"Tu versi\xf3n de prueba est\xe1 en camino. Verifica el estado de la descarga en tu consola.",fr:"Votre d\xe9mo sera disponible d'ici peu. Veuillez consulter le statut de t\xe9l\xe9chargement sur votre console.",pt:"Sua vers\xe3o demo est\xe1 a caminho. Verifique o estado do download em seu console."},"Your points after purchase":{es:"Tus puntos despu\xe9s de esta compra",fr:"Vos points apr\xe8s achat",pt:"Seus pontos ap\xf3s a compra"},'Your search for "{0}" didn\'t return any results':{es:'Tu b\xfasqueda para "{0}" no arroj\xf3 ning\xfan resultado',fr:'Votre recherche pour "{0}" n\'a donn\xe9 aucun r\xe9sultat',pt:'Sua pesquisa por "{0}" n\xe3o retornou nenhum resultado'},"Your secure session timed out. We saved your cart\u2014start checkout again to continue.":{es:"La sesi\xf3n de compra segura ha expirado. Guardamos la compra en tu carrito. Procede a finalizar la compra para continuar.",fr:"Votre session s\xe9curis\xe9e a expir\xe9. Votre panier a \xe9t\xe9 sauvegard\xe9. Passez \xe0 la caisse \xe0 nouveau pour continuer.",pt:"sua sess\xe3o segura expirou. Salvamos a compra em seu carrinho. Inicie a finaliza\xe7\xe3o da compra novamente para continuar."},"You're viewing our site for {0}, which does not match your {1}. If you'd like to make a purchase, you'll need to change region.":{es:"Actualmente te encuentras en un sitio para {0} que no corresponde con la ubicaci\xf3n que est\xe1 registrada en los {1}. Si deseas realizar una compra, deber\xe1s cambiar de regi\xf3n.",fr:"Vous consultez notre site {0}, qui ne correspond pas \xe0 vos {1}. Si vous souhaitez effectuer un achat, veuillez changer de r\xe9gion.",pt:"Voc\xea est\xe1 acessando a nossa p\xe1gina {0}, que n\xe3o corresponde \xe0 regi\xe3o em que sua {1}. Se quiser fazer uma compra, voc\xea precisar\xe1 alterar a regi\xe3o."},incorrectLocaleModalBody:{en:"This site does not match the region your account is registered in. Please {0} or change region to continue.",es:"Este sitio no concuerda con la regi\xf3n que est\xe1 registrada en tu cuenta. Para continuar, {0} o modifica tu regi\xf3n.",fr:"Ce site ne correspond pas \xe0 la r\xe9gion pour laquelle votre compte est enregistr\xe9. Veuillez {0} ou changer de r\xe9gion pour continuer.",pt:"Esta p\xe1gina n\xe3o corresponde \xe0 regi\xe3o em que sua conta est\xe1 registrada. {0} ou altere a regi\xe3o para continuar."},incorrectLocaleModalHeader:{en:"Wrong region",es:"Regi\xf3n incorrecta",fr:"R\xe9gion incorrecte",pt:"Regi\xe3o incorreta"},incorrectLocaleModalRegionSelect:{en:"Change region",es:"Modifica la regi\xf3n",fr:"Changer de r\xe9gion",pt:"Alterar regi\xe3o"},incorrectLocaleModalViewPage:{en:"View this page",es:"Mira esta p\xe1gina",fr:"Voir cette page",pt:"Ver esta p\xe1gina"},"{0} ending in {1}":{es:"{0} que termina en {1}",fr:"{0} se terminant par {1}",pt:"{0} que termina em {1}"},"{0} for {1}":{es:"{0} para {1}",fr:"{0} pour {1}",pt:"{0} para {1}"},"{0} games":{es:"Juegos de {0}",fr:"Jeux {0}",pt:"Jogos {0}"},"{0} of {1}":{fr:"{0} sur {1}"},"{0} series":{es:"",fr:"S\xe9rie de {0}",pt:""},"{0} tracking":{fr:"Suivi {0}"},"{0} tracking: See list below":{fr:"Suivi {0} : voir la liste ci-dessous"},addressZipCodeLabel:{en:"Estimate sales tax",es:"Calcular el impuesto de venta",fr:"Estimation de la TVA",pt:"Estimativa de impostos"},addressZipCodePlaceholder:{en:"Enter ZIP / Postal code",es:"Introduce el c\xf3digo postal",fr:"Entrer le code postal",pt:"Insira o CEP / C\xf3digo postal"},ageRestrictionModalHeading:{en:"Age Restricted",es:"Restricci\xf3n por edad",fr:"\xc2ge Restreint",pt:"Restringido por idade"},appliedCoupon:{en:"{0} promo",es:"Promoci\xf3n {0}",fr:"{0} Promotion",pt:"Promo\xe7\xe3o {0}"},applyUpdateCta:{en:"Apply",es:"Aplicar",fr:"Valider",pt:"Aplicar"},appTitle:{en:"Checkout Cart - My Nintendo Store - Nintendo Official Site",es:"Carrito de compras - Tienda My Nintendo \u2013 Sitio oficial de Nintendo",fr:"Passer \xe0 la caisse - Boutique My Nintendo - Site officiel Nintendo",pt:"Carrinho - Loja My Nintendo - P\xe1gina oficial da Nintendo"},"attention:":{en:"Attention:",es:"Atenci\xf3n:",fr:"Attention :",pt:"Aten\xe7\xe3o:"},backToCartCta:{en:"Back to cart",es:"Regresar al carrito",fr:"Retour au panier",pt:"Retornar ao carrinho"},billingAddressNew:{en:"New billing address",es:"Nueva direcci\xf3n de facturaci\xf3n",fr:"Nouvelle adresse de facturation",pt:"Novo endere\xe7o da fatura"},billingAddressSelectLabel:{en:"Billing address",es:"Direcci\xf3n de facturaci\xf3n",fr:"Adresse de facturation",pt:"Endere\xe7o da fatura"},billingAddressSelectPlaceholder:{en:"Select a billing address",es:"Introduce una direcci\xf3n de facturaci\xf3n",fr:"S\xe9lectionner une adresse de facturation",pt:"Selecione um endere\xe7o de entrega"},billingDetailsPrompt:{en:"Enter billing address",es:"Introduce la direcci\xf3n de facturaci\xf3n",fr:"Entrez l'adresse de facturation",pt:"Insira endere\xe7o da fatura"},cartBreadcrumb:{en:"Shopping cart",es:"Carrito de compras",fr:"Panier",pt:"Carrinho"},cartItemAgeRestricted:{en:"Age Restricted",es:"Restricci\xf3n por edad",fr:"\xc2ge Restreint",pt:"Restringido por idade"},cartItemNSORestricted:{en:"Nintendo Switch Online required",es:"Nintendo Switch Online requeridos",fr:"Nintendo Switch Online requis",pt:"Nintendo Switch Online obrigat\xf3rios"},cartItemPurchaseRestricted:{en:"Purchase restricted",es:"Compra restringida",fr:"Achat restreint",pt:"Compra restringida"},cartItemRemoveLabel:{en:"Delete this item from your cart",es:"Remueve este art\xedculo de tu carrito",fr:"Enlever cet article de votre panier",pt:"Remova este item de seu carrinho"},cartRedirect:{en:"Redirecting to cart",es:"Enviando al carrito",fr:"Retour vers le panier",pt:"Enviando ao carrinho"},cartTopTotal:{en:"Estimated total ({0} {1})",es:"Total estimado ({0} {1})",fr:"Total estim\xe9 ({0} {1})",pt:"Total estimado ({0} {1})"},checkoutButtonLabel:{en:"Proceed to secure checkout",es:"Ver la p\xe1gina de transacci\xf3n segura",fr:"Vers le paiement s\xe9curis\xe9",pt:"Continue para a p\xe1gina de transa\xe7\xe3o segura"},checkoutCta:{en:"To secure checkout",es:"Ver la p\xe1gina de transacci\xf3n segura",fr:"Vers le paiement s\xe9curis\xe9",pt:"Continue para a p\xe1gina de transa\xe7\xe3o segura"},checkoutCtaGuest:{en:"Log in to checkout",es:"Inicia sesi\xf3n para finalizar la compra",fr:"Se connecter pour acheter",pt:"Inicie sess\xe3o para finalizar a compra"},checkoutCTAPurchase:{en:"Purchase",es:"Comprar",fr:"Acheter",pt:"Comprar"},checkoutCTAPurchaseLabel:{en:"Submit payment and purchase items",es:"Enviar pago y comprar",fr:"Passer la commande",pt:"Envie pagamento e itens da compra"},checkoutHeaderModalStayHereButton:{en:"Stay here",es:"Continuar",fr:"Rester ici",pt:"Ficar aqui"},checkoutHeaderModalText:{en:"Leave checkout and go back to cart?",es:"\xbfDeseas regresar al carrito y retirarte de la p\xe1gina de pago?",fr:"Quitter le paiement et retourner au panier?",pt:"Sair da finaliza\xe7\xe3o da compra e voltar ao carrinho?"},checkoutHeaderSecure:{en:"Secure checkout",es:"Transacci\xf3n segura",fr:"Paiement s\xe9curis\xe9",pt:"Transa\xe7\xe3o segura"},checkoutHeaderTitle:{en:"My Nintendo Store",es:"Tienda My Nintendo",fr:"Boutique My Nintendo",pt:"Loja My Nintendo"},checkoutPaymentDetailsTitle:{en:"Payment details",es:"Detalles del pago",fr:"D\xe9tails du paiement",pt:"Detalhes de pagamento"},checkoutShippingDetailsTitle:{en:"Shipping",es:"Env\xedo",fr:"Exp\xe9dition",pt:"Envio"},checkoutStepLabel:{en:"Checkout step {0}",es:"Paso {0} para finalizar la compra",fr:"\xc9tape {0} du paiement",pt:"Etapa {0} da finaliza\xe7\xe3o da compra"},congratulations:{en:"Congratulations",es:"Felicidades",fr:"F\xe9licitations",pt:"Parab\xe9ns"},continueToPaymentCta:{en:"Continue to payment",es:"Pago",fr:"Vers le paiement",pt:"Para o pagamento"},continueToPaymentLabel:{en:"Proceed to payment",es:"Ir a la p\xe1gina de pago",fr:"Passer au paiement",pt:"Continue ao pagamento"},countrySelectPlaceholder:{en:"Select a country",es:"Elige un pa\xeds",fr:"Choisissez un pays",pt:"Escolha um pa\xeds"},customBillingAddressPrompt:{en:"Enter billing address manually instead",es:"Introducir manualmente la direcci\xf3n de facturaci\xf3n",fr:"Saisir manuellement l'adresse de facturation",pt:"Insira manualmente o endere\xe7o de cobran\xe7a"},defaultFreeShipping:{en:"Free shipping on orders over {0}!",es:"\xa1Env\xedo gratis en \xf3rdenes de m\xe1s de {0}",fr:"Exp\xe9dition gratuite pour les commandes de {0} et plus!",pt:"Frete gratuito em pedidos acima de {0}"},formErrorLength:{en:"Must be {0} digits",es:"Debe tener {0} d\xedgitos",fr:"Doit avoir {0} chiffres",pt:"Deve conter {0} d\xedgitos"},formErrorMax:{en:"Too long (must be at most {0} characters)","en-CA":"Must be 6 characters",es:"\xa1Muy largo! No pueden ser m\xe1s de {0} caracteres",fr:"6 caract\xe8res sont requis",pt:"Muito longo! Deve conter no m\xe1ximo {0} caracteres"},formErrorMin:{en:"Too short (must be at least {0} numbers)","en-CA":"Must be 6 characters",es:"El n\xfamero del c\xf3digo postal no est\xe1 completo (debe contar con {0} n\xfameros por lo menos)",fr:"6 caract\xe8res sont requis",pt:"O c\xf3digo postal est\xe1 incompleto (deve ter pelo menos {0} n\xfameros)."},"check your account settings":{es:"comprueba los ajustes de tu cuenta",fr:"consulter vos param\xe8tres de compte",pt:"Verifique as configura\xe7\xf5es de sua conta"},insufficientPointsError:{en:"Your Platinum Points balance is lower than the amount required. Please remove the reward item(s) or make another selection.",es:"El saldo de tus puntos de platino es menor a la cantidad requerida. Remueve los art\xedculos de recompensa o selecciona algo distinto.",fr:"Le solde de vos points platine est inf\xe9rieur au montant n\xe9cessaire. Veuillez retirer les objets de r\xe9compense ou effectuer une autre s\xe9lection.",pt:"Seu saldo de pontos de platina \xe9 inferior ao valor necess\xe1rio. Remova os itens de recompensa ou fa\xe7a outra sele\xe7\xe3o."},item:{en:"item",es:"art\xedculo",fr:"article",pt:"artigo"},items:{en:"items",es:"art\xedculos",fr:"articles",pt:"artigos"},mismatchAddressError:{en:"State and ZIP code do not match","en-CA":"Province and postal code do not match",es:"El estado y el c\xf3digo postal no concuerdan",fr:"La province et le code postal ne correspondent pas",pt:"O estado e o c\xf3digo postal n\xe3o correspondem."},moreToExplore:{en:"More to explore",es:"M\xe1s para explorar",fr:"Plus \xe0 explorer",pt:"Mais para explorar"},newPaymentMethod:{en:"New credit or debit card",fr:"Nouvelle carte de cr\xe9dit ou de d\xe9bit"},noItemsFreeShipping:{en:"Unlock free shipping when you spend {0} or more!",es:"\xa1Obt\xe9n env\xedo gratis en compras de {0} o m\xe1s!",fr:"D\xe9bloquez l'exp\xe9dition gratuite lorsque vous d\xe9pensez {0} ou plus!",pt:"Desbloqueie o frete gratuito em compras de {0} ou mais!"},noItemsHeader:{en:"Your cart looks lonely. Why not add {0}?",es:"Tu carrito parece estar vac\xedo. \xa1Agr\xe9gale {0}!",fr:"Votre panier est vide. Pourquoi ne pas ajouter {0}?",pt:"Seu carrinho parece solit\xe1rio. Por que n\xe3o adicionar {0}?"},noItemsLabel:{en:"Go to the My Nintendo Store home page",es:"Ir a la p\xe1gina de inicio de la tienda My Nintendo",fr:"Visiter la page d'accueil de la boutique My Nintendo",pt:"Visitar a p\xe1gina de in\xedcio da loja My Nintendo"},notificationDefaultError:{en:"ATTENTION: Something went wrong. Please try again.",es:"Algo sali\xf3 mal. Intenta de nuevo.",fr:"Une erreur est survenue. Veuillez r\xe9essayer.",pt:"Algo deu errado. Tente novamente mais tarde."},notificationInvalidPromoCode:{en:"The promo code isn't valid",es:"Este c\xf3digo de promoci\xf3n no es v\xe1lido",fr:"Le code de promotion n'est pas valide",pt:"Este c\xf3digo promocional n\xe3o \xe9 v\xe1lido"},notificationInvalidPromoCodeGuest:{en:"Be sure you're logged in and the code is valid",fr:"Assurez-vous d\u2019\xeatre connect\xe9(e) et v\xe9rifiez le code"},notificationMergeCart:{en:"While you were logging in, we found items in your shopping cart. Don't worry, we brought them with you and merged them with your previously saved shopping cart.",es:"Durante tu sesi\xf3n agregaste cierto n\xfamero de art\xedculos a tu carrito. No te preocupes, los hemos agregado al carrito que guardaste previamente.",fr:"Lorsque vous \xe9tiez connect\xe9, nous avons trouv\xe9 objets dans votre panier. Ne vous inqui\xe9tez pas, nous les avons ajout\xe9s aux objets pr\xe9c\xe9demment sauvegard\xe9s dans votre panier.",pt:"Enquanto voc\xea estava iniciando a sess\xe3o, encontramos itens em seu carrinho de compras. N\xe3o se preocupe, n\xf3s os adicionamos aos itens salvos anteriormente em seu carrinho."},notificationNSORequired:{en:"An active {0} membership is required to purchase one or more items in your cart. Please remove the item(s) to continue.",es:"Se requiere una suscripci\xf3n activa a {0} para adquirir los art\xedculos en tu carrito. Remueve los art\xedculos para continuar.",fr:"Un abonnement {0} actif est requis pour acheter un ou plusieurs articles dans votre panier. Veuillez enlever ces articles pour continuer.",pt:"Uma assinatura ativa do {0} \xe9 necess\xe1ria para a compra de um ou mais itens em seu carrinho. Remova os itens para continuar."},notificationOOSItems:{en:"One of the items in your cart is out of stock. Remove it to continue to checkout.",es:"Uno de los art\xedculos en tu carrito est\xe1 agotado. Remu\xe9velo para continuar con la compra.",fr:"Un des articles dans votre panier est en rupture de stock. Enlevez-le pour continuer vers le paiement.",pt:"Um dos itens em seu carrinho est\xe1 fora de estoque. Remova-o para continuar e finalizar sua compra."},notificationPurchaseRestricted:{en:"You cannot proceed because restrictions have been set in the Nintendo Account Parental Controls settings. Have a parent or guardian change the Parental Controls settings on their Nintendo Account to proceed.",es:"No puedes continuar porque se han establecido restricciones en la opci\xf3n Control parental de los ajustes de la cuenta Nintendo. Para proceder, p\xeddele a tu padre, madre o tutor que modifique los ajustes en su cuenta Nintendo.",fr:"Vous ne pouvez pas continuer, car des restrictions ont \xe9t\xe9 plac\xe9es dans les param\xe8tres de contr\xf4le parental du compte Nintendo. Demandez \xe0 un parent ou tuteur de changer les param\xe8tres de contr\xf4le parental dans leur compte Nintendo pour continuer.",pt:"Voc\xea n\xe3o pode continuar porque foram estabelecidas restri\xe7\xf5es nas configura\xe7\xf5es de Controle dos pais da conta Nintendo. Pe\xe7a a um dos pais ou respons\xe1vel para alterar as configura\xe7\xf5es de Controle dos pais em sua conta Nintendo para continuar."},notificationQuantityNotAvailable:{en:"{0} Stock is low for {1}. We've saved your current quantity, but we could not add more.",es:"{0} el inventario de {1} es limitado. Hemos guardado la cantidad actual, pero no podemos a\xf1adir m\xe1s.",fr:"{0} les stocks du produit {1} sont bas. Nous avons enregistr\xe9 votre quantit\xe9 actuelle, mais ne pouvons pas l'augmenter.",pt:"{0} o estoque de {1} est\xe1 baixo. Salvamos sua quantidade atual, mas n\xe3o pudemos aument\xe1-la."},orderConfirmationCCInfo1:{en:"{0} ending in {1}",es:"{0} que termina en {1}",fr:"{0} se terminant par {1}",pt:"{0} que termina em {1}"},orderConfirmationContinueShoppingLink:{en:"Keep Shopping",es:"Contin\xfaa comprando",fr:"Continuer \xe0 magasiner",pt:"Continua a comprar"},orderConfirmationCreatedAt:{en:"Transaction date",es:"Fecha de la transacci\xf3n",fr:"Date de transaction",pt:"Data da transa\xe7\xe3o"},orderConfirmationDetails:{en:"We'll send an order confirmation to the email associated with your Nintendo Account.",es:"Recibir\xe1s la confirmaci\xf3n de tu orden de compra en el correo electr\xf3nico vinculado con tu cuenta Nintendo.",fr:"Nous enverrons une confirmation de la commande \xe0 l'adresse courriel associ\xe9e \xe0 votre compte Nintendo.",pt:"Enviaremos uma confirma\xe7\xe3o do pedido para o e-mail associado \xe0 sua conta Nintendo."},orderConfirmationItemsOrdered:{en:"Items ordered",es:"Art\xedculos ordenados",fr:"Articles command\xe9",pt:"Itens encomendados"},orderConfirmationPointsPurchaseNotification:{en:"You redeemed {0} Platinum Points! You have {1} Points left.",es:"\xa1Canjeaste {0} puntos de platino! Te quedan {1} puntos.",fr:"Vous avez \xe9chang\xe9 {0} points platine! Il vous reste {1} points platine.",pt:"Voc\xea trocou {0} pontos de platina! Voc\xea tem {1} pontos sobrando."},orderConfirmationShippingLabel:{en:"Shipping",es:"Env\xedo",fr:"Livraison",pt:"Frete"},orderConfirmationSuccess:{en:"Success!",es:"\xa1La transacci\xf3n ha sido completada!",fr:"Succ\xe8s!",pt:"A sua transa\xe7\xe3o foi completada!"},orderConfirmationThanks:{en:"Thank you for your purchase.",es:"Gracias por tu compra.",fr:"Merci de votre achat.",pt:"Agradecemos sua compra."},orderEstimatedTax:{en:"Estimated tax",es:"Impuestos estimados",fr:"TVA estim\xe9e",pt:"Imposto estimado"},orderGrandTotal:{en:"Estimated total",es:"Total estimado",fr:"Total estim\xe9",pt:"Total estimado"},orderStatus:{en:"Status",es:"Estado de la orden",fr:"Statut",pt:"Status do pedido"},orderSummaryEstimateTaxError:{en:"Invalid ZIP code",es:"C\xf3digo postal incorrecto",fr:"Code postal erron\xe9",pt:"C\xf3digo postal errado"},orderSummaryItemQuantity:{en:"Quantity: {0}",es:"Cantidad: {0}",fr:"Quantit\xe9 : {0}",pt:"Quantidade: {0}"},orderSummaryPaymentMethods:{en:"Payment methods",es:"Formas de pago",fr:"M\xe9thodes de paiement",pt:"M\xe9todos de pagamento"},orderSummaryPlatinumPointsBalance:{en:"Your points after purchase",es:"Tus puntos despu\xe9s de esta compra",fr:"Vos points apr\xe8s achat",pt:"Seus pontos ap\xf3s a compra"},orderSummaryPlatinumPointsTotal:{en:"Your points total",es:"Tu total de puntos",fr:"Total de vos points",pt:"Seu total de pontos"},orderSummaryShippingTotalLabel:{en:"{0} shipping",es:"Env\xedo {0}",fr:"Livraison {0}",pt:"Frete {0}"},orderSummaryShippingTotalNotSelectedLabel:{en:"Shipping",es:"Env\xedo",fr:"Livraison",pt:"Frete"},paymentLegalPurchaseTerms:{en:'By clicking "{0}" you agree to the {1}.',fr:"En cliquant sur \xab {0} \xbb, vous acceptez les {1}."},phone:{en:"Phone Number",es:"N\xfamero de tel\xe9fono",fr:"Num\xe9ro de t\xe9l\xe9phone",pt:"N\xfamero de telefone"},promoCodeLabel:{en:"Promotional code",es:"C\xf3digo promocional",fr:"Code promotionnel",pt:"C\xf3digo promocional"},promoCodePlaceholder:{en:"Enter promo code",es:"Introduce el c\xf3digo promocional",fr:"Entrer le code",pt:"Insira o c\xf3digo promocional"},purchaseRestricted:{en:"Purchase Restricted",es:"Compra restringida",fr:"\xc2ge Restreint",pt:"Compra restringida"},purchaseRestrictionModalBody:{en:"You cannot proceed because restrictions have been set in the Nintendo Account Parental Controls settings. Have a parent or guardian change the Parental Controls settings on their Nintendo Account to proceed.",es:"No puedes continuar porque se han establecido restricciones en la opci\xf3n Control parental de los ajustes de la cuenta Nintendo. Para proceder, p\xeddele a tu padre, madre o tutor que modifique los ajustes en su cuenta Nintendo.",fr:"Vous ne pouvez pas continuer, car des restrictions ont \xe9t\xe9 plac\xe9es dans les param\xe8tres de contr\xf4le parental du compte Nintendo. Demandez \xe0 un parent ou tuteur de changer les param\xe8tres de contr\xf4le parental dans leur compte Nintendo pour continuer.",pt:"Voc\xea n\xe3o pode continuar porque foram estabelecidas restri\xe7\xf5es nas configura\xe7\xf5es de Controle dos pais da conta Nintendo. Pe\xe7a a um dos pais ou respons\xe1vel para alterar as configura\xe7\xf5es de Controle dos pais em sua conta Nintendo para continuar."},purchaseSuccessBreadcrumb:{en:"Purchase Success",es:"Compra realizada",fr:"Achat effectu\xe9",pt:"Compra efetuada"},purchaseTerms:{en:"Purchase Terms",es:"T\xe9rminos de compra",fr:"Conditions d'achat",pt:"Termos de compra"},requiredError:{en:"Required",es:"Requeridos",fr:"Requis",pt:"Obrigat\xf3rios"},requiredFields:{en:"* Required fields",es:"* Campos requeridos",fr:"* Requis",pt:"* Campos obrigat\xf3rios"},sameShippingAndBillingLabel:{en:"My shipping and billing address are the same",es:"Mi direcci\xf3n de env\xedo y mi direcci\xf3n de facturaci\xf3n es la misma",fr:"Mes adresses d'exp\xe9dition et de facturation sont les m\xeames",pt:"Meus endere\xe7os de cobran\xe7a e de entrega s\xe3o os mesmos"},savedPaymentMethod:{en:"Saved {0} ending in {1}",fr:"{0} se terminant par {1} enregistr\xe9e"},saveInAddressBookLabel:{en:"Save to my address book",es:"Guardar en mi libreta de direcciones",fr:"Sauvegarder dans mon carnet d'adresses",pt:"Salvar em minha lista de contatos"},selectAddressOption:{en:"Please select an address option below.",es:"Selecciona una opci\xf3n de direcci\xf3n.",fr:"Veuillez s\xe9lectionner une adresse ci-dessous.",pt:"Selecione uma op\xe7\xe3o de endere\xe7o abaixo."},shippingAddressNew:{en:"New shipping address",es:"Nueva direcci\xf3n de env\xedo",fr:"Nouvelle adresse d'exp\xe9dition",pt:"Novo endere\xe7o de entrega"},shippingAddressSelectPlaceholder:{en:"Select a shipping address",es:"S\xe9lectionnez une adresse d\u2019exp\xe9dition",fr:"Selecciona una direcci\xf3n de env\xedo",pt:"Selecione um endere\xe7o de entrega"},shippingDetailsPrompt:{en:"Enter shipping address",es:"Introduce la direcci\xf3n de env\xedo",fr:"Entrer l'adresse d'exp\xe9dition",pt:"Insira o endere\xe7o de entrega"},shippingError:{en:"Required information is missing or incorrect. Check the fields marked in the form below.",es:"La informaci\xf3n requerida no fue introducida o es incorrecta. Por favor comprueba las secciones resaltadas abajo.",fr:"Informations requises manquantes ou incorrectes. Veuillez v\xe9rifier les champs marqu\xe9s dans le formulaire ci-dessous.",pt:"as informa\xe7\xf5es necess\xe1rias est\xe3o ausentes ou incorretas. Verifique os campos marcados no formul\xe1rio abaixo."},shippingMethodPlaceholder:{en:"Select your shipping method",es:"Selecciona tu m\xe9todo de env\xedo",fr:"S\xe9lectionner votre m\xe9thode de paiement",pt:"Selecione seu m\xe9todo de entrega"},shippingMethodTitle:{en:"Select shipping method",es:"Selecciona un m\xe9todo de env\xedo",fr:"S\xe9lectionnez la m\xe9thode d'exp\xe9dition",pt:"Selecione o tipo de frete"},showItems:{en:"{0} {1} in cart",es:"{1} en tu carrito: {0}",fr:"{0} {1} dans le panier",pt:"{0} {1} no carrinho"},spendForFreeShipping:{en:"{0} to go to unlock free standard shipping",es:"Faltan {0} para desbloquear el env\xedo gratuito",fr:"Encore {0} pour d\xe9bloquer l\u2019exp\xe9dition gratuite",pt:"Faltam {0} para desbloquear o frete padr\xe3o gr\xe1tis"},undoCta:{en:"Undo",es:"Deshacer",fr:"Annuler",pt:"Desfazer"},undoRemoveCta:{en:"Removed {0} from your cart.",es:"Se removi\xf3 {0} del carrito.",fr:"Enlevez {0} de votre panier.",pt:"O produto {0} foi removido do carrinho."},unitPlaceholder:{en:"Apt. or suite (optional)",es:"Apartamento o suite (opcional)",fr:"App. ou suite (optionnel)",pt:"Apt. or suite (opcional)"},unlockedFreeShipping:{en:"you've qualified for free shipping!",es:"tu orden califica para el env\xedo gratuito!",fr:"vous \xeates admissible pour l\u2019exp\xe9dition gratuite!",pt:"voc\xea tem direito a frete gr\xe1tis!"},"Whoops! - Nintendo":{en:"Whoops - Nintendo",es:"\xa1Uy! - Nintendo",fr:"Oups! - Nintendo",pt:"Opa! - Nintendo"},wishlistRailHeader:{en:"Your Wish List",es:"Tu lista de deseos",fr:"Votre liste de souhaits",pt:"Sua lista de desejos"},"Games Shown:":{es:"Juegos mostrados:",fr:"Jeux pr\xe9sent\xe9s :",pt:"Jogos em destaque:"}},appName:ye.DJ,appVersion:ye.f4,oneTrustDomainIdsByLocale:ke.Gs,providers:{cmsContent:{enabled:!0},additional:[[we.HL],[ve.a],[be.O]]}});var Ae=Se},15820:function(e,t,n){"use strict";n.d(t,{DJ:function(){return h},f4:function(){return m},P$:function(){return d},o$:function(){return u},td:function(){return S},Db:function(){return A},aM:function(){return k}});var r=n(95235),i=n(2756),o=n(3842),a=n(33379),s=n(32899),c=n(72354),l=(n(99798),n(2784)),u=n(98693),d=n(14083);n(74129),n(5373),n(61847),n(79230),n(15500),n(38388),n(34303),n(26894),n(97547);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t[e,t].filter(Boolean).join(":"),b=c.i4?y(g,v):null;function w(e){return e?.locale&&(e.locale=s.go.from(e.locale)),e}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,i.a)(e,p({variables:w(t),context:{authenticated:n.authenticated,preview:n.previewData?.accessToken?y(n.previewData?.accessToken,v):b},ssr:n.ssr??!n.authenticated},n))}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,i]=(0,o.t)(e,p({variables:w(t),context:{authenticated:n.authenticated,preview:n.previewData?.accessToken?y(n.previewData?.accessToken,v):b}},n)),a=(0,l.useCallback)(((e,t)=>r(p({variables:w(e)},t))),[r]);return[a,i]}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,i]=(0,a.D)(e,p({variables:w(t),context:{authenticated:n.authenticated,preview:n.previewData?.accessToken?y(n.previewData?.accessToken,v):b}},n)),o=(0,l.useCallback)(((e,t)=>r(p({variables:w(e)},t))),[r]);return[o,i]}},14083:function(e,t,n){"use strict";n.d(t,{CQ:function(){return a.ProgressMission},Pj:function(){return i.CompletedInStoreDemo},Qb:function(){return s.RemoveCouponsFromCart},g:function(){return o.DownloadDemo},oj:function(){return r.ApplyCouponToCart}});var r=n(20877),i=n(65882),o=n(74743),a=n(49044),s=n(67347)},98693:function(e,t,n){"use strict";n.d(t,{LN:function(){return a.GuestOrder},MC:function(){return s.ProductByUrlKeyForDLC},SM:function(){return s.ProductBySkuForDigitalPDP},Y:function(){return f.UpsellProducts},Z9:function(){return r.LatestNewsArticles},gg:function(){return c.StoreProducts},jO:function(){return i.CustomerOrderHistory},kQ:function(){return s.ProductByUrlKeyForPDP},nc:function(){return l.NintendoDirect},pP:function(){return r.NewsArticleBySlug},rs:function(){return p.MissionStatus},sN:function(){return o.EstimatedTax},sX:function(){return u.NintendoDirects},ui:function(){return d.CustomerRecommendationsv2}});n(54188),n(16986),n(13542);var r=n(15995),i=n(32027),o=n(65120),a=n(8679),s=(n(75925),n(10483)),c=n(51272),l=n(2932),u=n(14394),d=n(35456),f=(n(85044),n(64581),n(46374)),p=(n(24438),n(74175))},36568:function(e,t,n){"use strict";n.d(t,{O:function(){return x},p:function(){return A}});var r=n(95235),i=n(2784),o=n(99058),a=n.n(o),s=n(64897),c=n(79185);const l=(e,t)=>{if(e.has(t)){const n=[...e.get(t)];window.requestAnimationFrame((()=>{window.scrollTo(...n)}))}return new Map([...Array.from(e),[t,[window.scrollX,window.scrollY]]])},u=(e,t)=>{const n=(0,c.mt)(t),r=new URL(e.startsWith(`/${n}/`)?e:`/${n}${e}`,"https://www.nintendo.com"),i=new URLSearchParams(r.hash.replace("#","?"));return`${r.pathname}${i.get("cat")||"nocat"}`};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t{let{type:n,payload:r}=t;switch(n){case p:return e.restoreScrollOnKeyUpdate?f(f({},e),{},{isReady:!0,scrollKey:r.scrollKey,nextScrollKey:r.scrollKey,scrollPositions:l(e.scrollPositions,r.scrollKey),restoreScrollOnKeyUpdate:!1,restoredScrollKey:r.scrollKey}):f(f({},e),{},{isReady:!0,scrollKey:r.scrollKey,nextScrollKey:r.scrollKey,restoreScrollOnKeyUpdate:!1,restoredScrollKey:null});case h:return e.scrollKey&&null===e.restoredScrollKey?f(f({},e),{},{restoredScrollKey:e.scrollKey,scrollPositions:l(e.scrollPositions,e.scrollKey)}):e.scrollKey&&e.nextScrollKey!==e.scrollKey?f(f({},e),{},{restoreScrollOnKeyUpdate:!0}):e;case m:return e.scrollPositions.has(e.scrollKey)&&e.scrollKey===e.restoredScrollKey?f(f({},e),{},{scrollPositions:new Map([...Array.from(e.scrollPositions),[e.scrollKey,[window.scrollX,window.scrollY]]])}):e;case g:return r.clearKey&&e.scrollPositions.delete(r.scrollKey)?f(f({},e),{},{nextScrollKey:r.scrollKey,scrollPositions:new Map([...Array.from(e.scrollPositions)])}):f(f({},e),{},{nextScrollKey:r.scrollKey})}},b=n(52322);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t(0,i.useContext)(S);var x=e=>{let{children:t}=e;const n=(0,s.Z)(),{asPath:r,locale:o}=n,{0:c,1:l}=(0,i.useReducer)(y,v),d=(0,i.useMemo)((()=>u(r,o)),[r,o]),f=(0,i.useCallback)((()=>{l({type:h})}),[]);(0,i.useEffect)((()=>{l({type:p,payload:{scrollKey:d}})}),[d]),(0,i.useEffect)((()=>{const e=a()((()=>{l({type:m})}),50);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[]),(0,i.useEffect)((()=>{const e=new Set,t=t=>{const r=u(t,n.locale),i=!e.has(r);l({type:g,payload:{scrollKey:r,clearKey:i}}),e.clear()};return n.events.on("routeChangeStart",t),n.beforePopState((t=>{let{as:r}=t;const i=u(r,n.locale);return e.add(i),!0})),()=>{n.events.off("routeChangeStart",t)}}),[n]);const w=(0,i.useMemo)((()=>({state:k({},c),actions:{restoreScroll:f}})),[f,c]);return(0,b.jsx)(S.Provider,{value:w,children:t})}},94943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,i){{const o=n(92235).normalizeLocalePath,a=n(69205).detectDomainLocale,s=t||o(e,r).detectedLocale,c=a(i,void 0,s);if(c){const t=`http${c.http?"":"s"}://`,n=s===c.defaultLocale?"":`/${s}`;return`${t}${c.domain}${n}${e}`}return!1}};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(23903).Z,i=n(15154).Z,o=r(n(2784)),a=n(32172),s=n(37787),c=n(60950),l=n(40177),u=n(22104),d=n(94943),f=n(99094);const p={};function h(e,t,n,r){if(!e)return;if(!a.isLocalURL(t))return;Promise.resolve(e.prefetch(t,n,r)).catch((e=>{0}));const i=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;p[t+"%"+n+(i?"%"+i:"")]=!0}var m=o.default.forwardRef((function(e,t){let n;const{href:r,as:m,children:g,prefetch:v,passHref:y,replace:b,shallow:w,scroll:k,locale:S,onClick:A,onMouseEnter:x,onTouchStart:E,legacyBehavior:N=!0!==Boolean(!1)}=e,C=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=g,!N||"string"!==typeof n&&"number"!==typeof n||(n=o.default.createElement("a",null,n));const _=!1!==v;let O=o.default.useContext(c.RouterContext);const I=o.default.useContext(l.AppRouterContext);I&&(O=I);const{href:T,as:M}=o.default.useMemo((()=>{const[e,t]=a.resolveHref(O,r,!0);return{href:e,as:m?a.resolveHref(O,m):t||e}}),[O,r,m]),P=o.default.useRef(T),j=o.default.useRef(M);let D;N&&(D=o.default.Children.only(n));const R=N?D&&"object"===typeof D&&D.ref:t,[L,F,z]=u.useIntersection({rootMargin:"200px"}),B=o.default.useCallback((e=>{j.current===M&&P.current===T||(z(),j.current=M,P.current=T),L(e),R&&("function"===typeof R?R(e):"object"===typeof R&&(R.current=e))}),[M,R,T,z,L]);o.default.useEffect((()=>{const e=F&&_&&a.isLocalURL(T),t="undefined"!==typeof S?S:O&&O.locale,n=p[T+"%"+M+(t?"%"+t:"")];e&&!n&&h(O,T,M,{locale:t})}),[M,T,F,S,_,O]);const V={ref:B,onClick:e=>{N||"function"!==typeof A||A(e),N&&D.props&&"function"===typeof D.props.onClick&&D.props.onClick(e),e.defaultPrevented||function(e,t,n,r,i,s,c,l,u,d){const{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){const{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!a.isLocalURL(n)))return;e.preventDefault();const p=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:l,scroll:c}):t[i?"replace":"push"](n,{forceOptimisticNavigation:!d})};u?o.default.startTransition(p):p()}(e,O,T,M,b,w,k,S,Boolean(I),_)},onMouseEnter:e=>{N||"function"!==typeof x||x(e),N&&D.props&&"function"===typeof D.props.onMouseEnter&&D.props.onMouseEnter(e),!_&&I||a.isLocalURL(T)&&h(O,T,M,{priority:!0})},onTouchStart:e=>{N||"function"!==typeof E||E(e),N&&D.props&&"function"===typeof D.props.onTouchStart&&D.props.onTouchStart(e),!_&&I||a.isLocalURL(T)&&h(O,T,M,{priority:!0})}};if(!N||y||"a"===D.type&&!("href"in D.props)){const e="undefined"!==typeof S?S:O&&O.locale,t=O&&O.isLocaleDomain&&d.getDomainLocale(M,e,O.locales,O.domainLocales);V.href=t||f.addBasePath(s.addLocale(M,e,O&&O.defaultLocale))}return N?o.default.cloneElement(D,V):o.default.createElement("a",Object.assign({},C,V),n)}));t.default=m,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92235:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=void 0;t.normalizeLocalePath=(e,t)=>n(49574).normalizeLocalePath(e,t),("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:c}=e;const l=c||!o,[u,d]=r.useState(!1),[f,p]=r.useState(null);r.useEffect((()=>{if(o){if(l||u)return;if(f&&f.tagName){const e=function(e,t,n){const{id:r,observer:i,elements:o}=function(e){const t={root:e.root||null,margin:e.rootMargin||""},n=s.find((e=>e.root===t.root&&e.margin===t.margin));let r;if(n&&(r=a.get(n),r))return r;const i=new Map,o=new IntersectionObserver((e=>{e.forEach((e=>{const t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return r={id:t,observer:o,elements:i},s.push(t),a.set(t,r),r}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);const e=s.findIndex((e=>e.root===r.root&&e.margin===r.margin));e>-1&&s.splice(e,1)}}}(f,(e=>e&&d(e)),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!u){const e=i.requestIdleCallback((()=>d(!0)));return()=>i.cancelIdleCallback(e)}}),[f,l,n,t,u]);const h=r.useCallback((()=>{d(!1)}),[]);return[p,u,h]};var r=n(2784),i=n(80564);const o="function"===typeof IntersectionObserver,a=new Map,s=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81432:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppInitialProps",{enumerable:!0,get:function(){return o.AppInitialProps}}),Object.defineProperty(t,"NextWebVitalsMetric",{enumerable:!0,get:function(){return o.NextWebVitalsMetric}}),Object.defineProperty(t,"AppType",{enumerable:!0,get:function(){return o.AppType}}),t.default=void 0;var r=n(18282).Z,i=(0,n(23903).Z)(n(2784)),o=n(70297);function a(e){return s.apply(this,arguments)}function s(){return(s=r((function*(e){let{Component:t,ctx:n}=e;return{pageProps:yield o.loadGetInitialProps(t,n)}}))).apply(this,arguments)}class c extends i.default.Component{render(){const{Component:e,pageProps:t}=this.props;return i.default.createElement(e,Object.assign({},t))}}c.origGetInitialProps=a,c.getInitialProps=a,t.default=c},32518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;const r=(0,n(23903).Z)(n(2784)).default.createContext({});t.AmpStateContext=r},15397:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){let{ampFirst:e=!1,hybrid:t=!1,hasQuery:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||t&&n}},40177:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(23903).Z)(n(2784));const i=r.default.createContext(null);t.AppRouterContext=i;const o=r.default.createContext(null);t.LayoutRouterContext=o;const a=r.default.createContext(null);t.GlobalLayoutRouterContext=a;const s=r.default.createContext(null);t.TemplateContext=s},84382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=o.default,i=(null==t?void 0:t.suspense)?{}:{loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=r({},i,e));i=r({},i,t),!1;i.suspense&&(delete i.ssr,delete i.loading);i.loadableGenerated&&(i=r({},i,i.loadableGenerated),delete i.loadableGenerated);if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,a(n,i);delete i.ssr}return n(i)},t.noSSR=a;var r=n(59419).Z,i=n(23903).Z,o=(i(n(2784)),i(n(81487)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=u,t.default=void 0;var r=n(59419).Z,i=n(23903).Z,o=(0,n(30199).Z)(n(2784)),a=i(n(81023)),s=n(32518),c=n(4523),l=n(15397);n(70297);function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"===typeof t||"number"===typeof t?e:e.concat(t)),[])):e.concat(t)}const f=["name","httpEquiv","charSet","itemProp"];function p(e,t){const{inAmpMode:n}=t;return e.reduce(d,[]).reverse().concat(u(n).reverse()).filter(function(){const e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!==typeof i.key&&i.key.indexOf("$")>0){a=!0;const t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e{const i=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t=r({},e.props||{});return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:i})}))}var h=function(e){let{children:t}=e;const n=o.useContext(s.AmpStateContext),r=o.useContext(c.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:l.isInAmpMode(n)},t)};t.default=h,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;const r=(0,n(23903).Z)(n(2784)).default.createContext(null);t.LoadableContext=r},81487:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(59419).Z,i=(0,n(23903).Z)(n(2784)),o=n(36338);const{useSyncExternalStore:a}=n(2784),s=[],c=[];let l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((e=>(n.loading=!1,n.loaded=e,e))).catch((e=>{throw n.loading=!1,n.error=e,e})),n}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_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=r({},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 f(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);n.suspense&&(n.lazy=i.default.lazy(n.loader));let s=null;function u(){if(!s){const t=new d(e,n);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!l){const e=n.webpack?n.webpack():n.modules;e&&c.push((t=>{for(const n of e)if(-1!==t.indexOf(n))return u()}))}function f(){u();const e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach((t=>{e(t)}))}const p=n.suspense?function(e,t){return f(),i.default.createElement(n.lazy,r({},e,{ref:t}))}:function(e,t){f();const r=a(s.subscribe,s.getCurrentValue,s.getCurrentValue);return i.default.useImperativeHandle(t,(()=>({retry:s.retry})),[]),i.default.useMemo((()=>{return r.loading||r.error?i.default.createElement(n.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:s.retry}):r.loaded?i.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return p.preload=()=>u(),p.displayName="LoadableComponent",i.default.forwardRef(p)}(u,e)}function p(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then((()=>{if(e.length)return p(e,t)}))}f.preloadAll=()=>new Promise(((e,t)=>{p(s).then(e,t)})),f.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((t=>{const n=()=>(l=!0,t());p(c,e).then(n,n)}))},window.__NEXT_PRELOADREADY=f.preloadReady;var h=f;t.default=h},81023:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const{headManager:t,reduceComponentsToState:n}=e;function s(){if(t&&t.mountedInstances){const i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}if(i){var c;null==t||null==(c=t.mountedInstances)||c.add(e.children),s()}return o((()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}})),o((()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)}))),a((()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}))),null};var r=(0,n(30199).Z)(n(2784));const i=!1,o=i?()=>{}:r.useLayoutEffect,a=i?()=>{}:r.useEffect},31347:function(e,t,n){"use strict";n.d(t,{mE:function(){return N},OP:function(){return U},HL:function(){return Wt},tv:function(){return K},Eu:function(){return Xt},Dd:function(){return Oe},iQ:function(){return Te},a3:function(){return Be},d_:function(){return ae},qN:function(){return ke},NG:function(){return We},qR:function(){return st},I8:function(){return It},A6:function(){return p}});var r=n(2784),i=n(99058),o=n.n(i),a=n(32899),s=n(4098),c=n(72354),l=n(56675),u=n(89130);const d=u.Ps` query SuggestedAddress( $id: String $address: SuggestedAddressInput $locale: Locale ) { address: suggestedAddress(id: $id, address: $address, locale: $locale) { id city country { locale availableRegions { id code name } id twoLetterAbbreviation } postcode region { code id name } street formattedAddress } } `,f=u.Ps` query SuggestedAddresses( $address: String! $countries: String $locale: Locale ) { addresses: suggestedAddresses( address: $address countries: $countries locale: $locale ) { id label: text value: id highlight } } `;var p=()=>{const e=(0,l.x)(),t=(0,r.useCallback)((async(t,n,r)=>{const{data:i}=await e.query({fetchPolicy:"network-only",query:f,variables:{address:t,countries:n,locale:a.go.from(r)}});return i.addresses}),[e]),n=(0,r.useCallback)((async t=>{let{id:n,address:r,locale:i}=t;const{data:o}=await e.query({query:d,variables:{id:n,address:r,locale:a.go.from(i)}});return o.address}),[e]);return(0,r.useMemo)((()=>({actions:{findAddresses:t,getAddress:n}})),[t,n])},h=n(95235),m=n(82269),g=n(7307),v=n(68020);const y=(0,g.default)(v.c.Option).attrs((e=>{let{selectTheme:t}=e;return{theme:t}})).withConfig({componentId:"sc-16amyl5-0"})(["&&&{background:",";cursor:pointer;"," ","}&&&:hover{background:",";}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return`\n color: ${t.color.black};\n font-size: ${t.font.size.bodyMobile};\n font-weight: ${t.font.weight.light};\n\n ${t.mediaQuery.tabletSmall} {\n font-size: ${t.font.size.bodyDesktop};\n }\n `}),(e=>{let{isFocused:t}=e;return t&&(0,g.css)(["background:",";"],(e=>{let{theme:t}=e;return t.color.lightGray3}))}),(e=>{let{theme:t}=e;return t.color.lightGray3}));var b=n(52322);const w=["label","data","theme"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;tArray.from(e).map(((e,n)=>t.some((e=>{const[t,r]=e.split("-");return n>=t&&n<=r}))?(0,b.jsx)("b",{children:e},`${e}-${n}`):e));var x=e=>{let{label:t,data:n,theme:r}=e,i=(0,m.Z)(e,w);const{highlight:o=""}=n,[a,s,...c]=t.split(","),l=o.split(";"),[u,d]=l.map((e=>e.split(","))),f=u?.length?A(a,u):a,p=d?.length?A(s,d):s;return(0,b.jsxs)(y,S(S({data:n,label:t,selectTheme:r},i),{},{children:[f,",",p,!!c.length&&`,${c.join(",")}`]}))};const E=e=>{const{className:t,countryId:n,errorMessage:i,fetchDelay:c,id:l,label:u,locale:d,minCharLengthBeforeFetch:f,onSelect:h,placeholder:m,required:g}=e,{0:v,1:y}=(0,r.useState)(),{0:w,1:k}=(0,r.useState)(e.hasError),{text:S}=(0,a.i1)(),{actions:{findAddresses:A,getAddress:E}}=p(),N=e.name||`${u}-address-lookup-input`,C=(0,r.useRef)(o()((e=>A(e,n,d)),c)),_=v?.trim?.().length>Math.max(f-1,0);return(0,b.jsx)(s.S,{className:t,async:!0,autoCorrect:"off",cacheOptions:!0,errorMessage:i,hasError:w,id:l,replacementComponents:{ClearIndicator:()=>null,DropdownIndicator:()=>null,IndicatorSeparator:()=>null,Option:x},loadingMessage:()=>_?S("Loading..."):null,label:u,name:N,noOptionsMessage:()=>null,loadOptions:_?C.current:()=>null,onChange:async e=>{const t=e?.value||null;if(!t)return;const n=await E({id:t,locale:d});h(n)},onInputChange:(e,t)=>{let{prevInputValue:n}=t;g&&k(!e&&!n),y(e)},placeholder:m,required:g})};E.defaultProps={minCharLengthBeforeFetch:5,fetchDelay:200,label:"Street Address",onSelect:()=>{}};var N=E,C=n(64897),_=n(9016),O=n(15785),I=n(75696);const T={ESRB:_.E,CLASSIND:O.C,SMEC:I.S},M={CLASSIND:{l:"livre",rp:"check-the-rating"}};var P=e=>{let{rating:t,descriptors:n,className:r,linking:i=!0,mini:o=!1}=e;const{locale:a}=(0,C.Z)(),[s]=a.split("-");let c=t.code;"CLASSIND"===t.system&&(c=c.replace(/^e/,"")),"SMEC"===t.system&&(c=`smec-${c}`),c=M[t.system]?.[c]||c;const l=n?.filter((e=>{let{type:t}=e;return"CONTENT_DESCRIPTOR"===t})).map((e=>{let{label:t}=e;return t})).join(", "),u=n?.filter((e=>{let{type:t}=e;return"INTERACTIVE_ELEMENT"===t})).map((e=>{let{label:t}=e;return t})).join(", "),d=T[t.system];return(0,b.jsx)(d,{rating:c,descriptors:l,interactiveElements:u,className:r,lang:s,linking:i,mini:o})},j=n(13980),D=n.n(j);const R=e=>(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"LockIcon",...e,children:(0,b.jsx)("path",{d:"M27 12V9.2c0-5-4.2-9.1-9.6-9.1h-3.1C9.1.1 4.8 4.2 4.8 9.2V12H2.7v15.1c0 2.7 2.2 4.8 5 4.8h16.7c2.7 0 5-2.1 5-4.8V12H27zM16 25.9c-2 0-3.7-1.6-3.7-3.5s1.7-3.5 3.7-3.5 3.7 1.6 3.7 3.5-1.7 3.5-3.7 3.5zM22.6 12H9.3V9.2c0-2.8 2.4-5.1 5.4-5.1h2.6c2.9 0 5.4 2.3 5.4 5.1l-.1 2.8z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});R.propTypes={className:D().string,color:D().string,size:D().oneOfType([D().number,D().string])},R.defaultProps={color:"currentColor",size:24};const L=g.default.div.withConfig({componentId:"sc-c8jcz8-0"})(["display:flex;padding:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),F=["isDisabled","label","placeholder","supportedCountries","value"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const B=Object.entries(c.GD).map((e=>{let[t,n]=e;return{value:t,label:n}})),V=()=>(0,b.jsx)(L,{children:(0,b.jsx)(R,{size:20})}),$=e=>{const{isDisabled:t,label:n,placeholder:i,supportedCountries:o,value:a}=e,c=(0,m.Z)(e,F),l=t?{DropdownIndicator:V,IndicatorSeparator:null}:{},u=(0,r.useMemo)((()=>B.find((e=>e.value===a||e.label===a))),[a]);return(0,b.jsx)(s.S,function(e){for(var t=1;t{let{value:t}=e;return o.includes(t)})),replacementComponents:l,value:u},c))};$.defaultProps={label:"Country",placeholder:"Select a country",required:!0,supportedCountries:Object.keys(c.GD)};var U=$,q=n(80149),Q=n(20669),G=n(79185);const H=g.default.div.withConfig({componentId:"sc-1gwe7fn-0"})(["display:flex;flex-direction:row;align-items:center;font-weight:",";& > img{margin-right:",";}"],(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.pxToRem(6)})),W=g.default.div.withConfig({componentId:"sc-1gwe7fn-1"})(["font-size:",";font-weight:",";text-decoration:line-through;display:flex;flex-direction:row;align-items:center;","{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.captionMobile}),(e=>{let{theme:t}=e;return t.font.weight.light}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),Z=g.default.div.withConfig({componentId:"sc-1gwe7fn-2"})(["display:flex;& > ","{margin-right:",";order:0;}","{display:flex;flex-direction:column;align-items:flex-end;& > ","{margin-right:0;order:1;}}"],W,(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),W);var K=e=>{const{regularPrice:t,finalPrice:n,isDiscounted:r,currencyCode:i,quantity:o,hidePlatinumPriceLabel:s}=e,l=(0,a.i1)(),u=(0,G.kF)(n,o),d=(0,G.kF)(t,o),f=(0,G.T4)(u,i,l),p=(0,G.T4)(d,i,l);return(0,b.jsxs)(Z,{children:[r&&(0,b.jsx)(W,{children:p}),(0,b.jsxs)(H,{children:[i===c.Qo&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(q.Z,{size:"24"}),(0,b.jsx)(Q.S,{size:4})]}),f,i===c.Qo&&!s&&(0,b.jsxs)(b.Fragment,{children:[" ",l.text("Platinum Points")]})]})]})},Y=n(23985);const J=(0,g.default)(Y.L).withConfig({componentId:"sc-1ors2xj-0"})(["",""],(e=>{let{theme:t}=e;return(0,g.css)(["text-align:center;align-self:flex-start;font-size:",";","{font-size:",";}"],t.font.size.bodyMobile,t.mediaQuery.tablet,t.font.size.bodyDesktop)})),X="Preparing to ship",ee="Processing",te="Pending",ne="Complete",re="Canceled",ie={[X]:{text:"#3946A0",bg:"#BDC3E8"},[ee]:{text:"#3946A0",bg:"#BDC3E8"},[te]:{text:"#009582",bg:"#C1E2E1"},[ne]:{text:"#484848",bg:"#EFEFEF"},["Shipped"]:{text:"#E62C8B",bg:"#FCE0EE"},[re]:{text:"#E60012",bg:"#FDE6E7"}},oe={ACKNOWLEDGED:ee,PROCESSING:ee,RECEIVED:ee,"DATA ERROR":ee,ERROR:ee,"ON HOLD":ee,BACKORDERED:ee,BOOKED:ee,TEST:ee,"ORDER CREATE ERROR":ee,"ORDER UPDATE ERROR":ee,"CANCEL PAYMENT ERROR":ee,PICKED:X,COMPLETE:ne,CLOSED:ne,"RMA ERROR":ne,CANCELED:re,CANCELLED:re,"CANCELED PAYMENT":re,PENDING:te};var ae=e=>{const{status:t}=e,n=oe[t?.toUpperCase()]||ee,{text:r,bg:i}=ie[n],o=(0,a.i1)();return(0,b.jsx)(J,{role:"status",foregroundColor:r,backgroundColor:i,children:o.text(n)})},se=n(25544),ce=n(18309),le=n.n(ce),ue=n(19843),de=n(21203),fe=n(89056),pe=n(77664);const he="cart",me={[he]:{mobile:{height:74,width:130},desktop:{height:89,width:158}},["orderSummary"]:{mobile:{height:45,width:83},desktop:{height:45,width:83}}},ge=g.default.div.withConfig({componentId:"sc-1sr2ckt-0"})(["display:flex;width:100%;height:100%;padding:",";"],(e=>{let{theme:t}=e;return t.spacing[0]})),ve=g.default.div.withConfig({componentId:"sc-1sr2ckt-1"})(["aspect-ratio:16 / 9;border:1px solid ",";border-radius:",";overflow:hidden;"," & > img{","}"],(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{variant:t}=e;const{mobile:n,desktop:r}=me[t];return(0,g.css)(["height:","px;width:","px;","{height:","px;width:","px;}"],n.height,n.width,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),r.height,r.width)}),(e=>{let{$greyedOut:t}=e;return t&&(0,g.css)(["filter:grayscale(100%);opacity:0.5;mix-blend-mode:color;"])})),ye=g.default.div.withConfig({componentId:"sc-1sr2ckt-2"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;",";svg{color:white;fill:white;}","{padding:",";}"],(e=>{let{theme:t}=e;return(0,g.css)(["padding:",";background:linear-gradient( ",","," );"],t.spacing[8],t.color.darkGray2,t.color.darkGray3)}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.spacing[16]})),be={Apparel:ue.Z,Games:de.Z,All:fe.Z,Default:fe.Z},we=e=>{const{alt:t,categories:n,publicId:i,greyedOut:o,variant:a}=e,{0:s,1:c}=(0,r.useState)(!1);return(0,b.jsx)(ve,{$greyedOut:o,variant:a,children:(0,b.jsx)(ge,{children:!i||s?(0,b.jsx)(ye,{children:(()=>{if(i)return null;const e=n?.find((e=>e in be)),t=be[e]||be.Default;return(0,b.jsx)(t,{size:"orderSummary"===a?"30":"56"})})()}):(0,b.jsx)(pe.I,{assetPath:i,alt:t,aspectRatio:"16:9",crop:"pad",onError:()=>c(!0)})})})};we.defaultProps={categories:[],variant:he};var ke=we;const Se=g.default.div.withConfig({componentId:"sc-moxbpt-0"})(["display:flex;flex-direction:column;&:not(:last-child){border-bottom:1px solid ",";padding-bottom:",";margin-bottom:",";}","{flex-direction:row;border-bottom:0;}"],(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),Ae=g.default.div.withConfig({componentId:"sc-moxbpt-1"})(["display:flex;flex:1;"]),xe=g.default.div.withConfig({componentId:"sc-moxbpt-2"})(["font-size:",";font-weight:",";"],(e=>{let{theme:t}=e;return t.font.size.captionDesktop}),(e=>{let{theme:t}=e;return t.font.weight.light})),Ee=g.default.div.withConfig({componentId:"sc-moxbpt-3"})(["font-size:",";"],(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),Ne=g.default.div.withConfig({componentId:"sc-moxbpt-4"})(["font-size:",";"],(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),Ce=g.default.div.withConfig({componentId:"sc-moxbpt-5"})(["margin-left:",";"],(e=>{let{theme:t}=e;return t.spacing[24]})),_e=g.default.div.withConfig({componentId:"sc-moxbpt-6"})(["display:flex;flex-direction:row;justify-content:space-between;margin-top:",";","{flex-direction:column;justify-content:flex-start;margin-top:0;","{order:1;}}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),Ee);g.default.div.withConfig({componentId:"sc-moxbpt-7"})(["display:flex;flex-direction:row;align-items:center;& > img{margin-right:",";}"],(e=>{let{theme:t}=e;return t.pxToRem(6)}));var Oe=e=>{const{bundleOptions:t,currencyCode:n,publicId:r,categories:i,finalPrice:o,hidePrice:s,isDiscounted:l,locale:u,quantity:d,regularPrice:f,subtitle:p,variations:h,urlKey:m,type:g,shipDateDisplay:v,startShippingDate:y}=e,w=e.title&&le()(e.title),k=((e,t)=>{const n=(0,G.mt)((e=>{const[t,n]=e.split(/[-_]/);return`${t.toLowerCase()}-${n.toLowerCase()}`})(t));return new URL(`${c.$e}/${n}/store/products/${e}`).href})(m,u),{text:S,date:A}=(0,a.i1)(),x="physical"===g,E=v||(y?A(y,{format:{day:"numeric",month:"numeric",year:"2-digit"}}):""),N=S("Ships {0}",{args:[E]});return(0,b.jsxs)(Se,{children:[(0,b.jsxs)(Ae,{children:[(0,b.jsx)("a",{href:k,"aria-label":w,children:(0,b.jsx)(ke,{categories:i,alt:w,publicId:r})}),(0,b.jsxs)(Ce,{children:[(0,b.jsx)(se.T,{variant:"title",as:"div",children:(0,b.jsx)("a",{href:k,children:w})}),E&&(0,b.jsx)(Ne,{children:N}),(0,b.jsx)(Q.S,{size:4}),p&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Q.S,{size:4}),(0,b.jsx)(se.T,{variant:"caption",children:p})]}),!x&&(0,b.jsx)(Ee,{children:S("Digital download")}),!!h?.length&&h.map((e=>{let{label:t,value:n}=e;return(0,b.jsxs)(xe,{children:[t,": ",n]},t)})),!!t?.length&&t.map((e=>(0,b.jsx)(xe,{children:e},e)))]})]}),(0,b.jsxs)(_e,{children:[x&&(0,b.jsxs)(Ee,{children:[S("Quantity"),": ",d]}),s?null:(0,b.jsx)(K,{currencyCode:n,quantity:d,regularPrice:f,finalPrice:o,isDiscounted:l})]})]})};const Ie=g.default.div.withConfig({componentId:"sc-5xoia5-0"})(["border-radius:",";"," & > *{padding:",";&:first-child{margin:0;border-bottom:solid 1px ",";}","{padding:",";}}"],(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return(0,g.css)(["border:solid 1px ",";"],t.color.lightGray2)}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[24]}));var Te=e=>{const{currency:t,items:n,locale:r,type:i}=e,{text:o}=(0,a.i1)(),s="physical"===i,l=n.reduce(((e,t)=>e+t.quantity),0);return(0,b.jsxs)(Ie,{children:[(0,b.jsx)(se.T,{variant:"title",children:s?(0,b.jsxs)("span",{children:[o("Order list")," (",l,")"]}):(0,b.jsx)("span",{children:o("Purchased item")})}),(0,b.jsx)("div",{children:n.map((e=>{const n=e.platinumPoints||e.product?.platinumPoints;return(0,b.jsx)(Oe,{bundleOptions:e.bundleOptions?.map((e=>{let{values:t}=e;return t?.[0]?.product?.name})),uid:e.uid,urlKey:e.urlKey||e.product?.urlKey,locale:r,hidePrice:!s,isDiscounted:e.isDiscounted||e.product?.prices?.minimum?.discounted,regularPrice:e.regularPricePerItem??e.product?.prices?.minimum?.regularPrice,finalPrice:n||(e.finalPricePerItem??e.product?.prices?.minimum?.finalPrice),categories:(e.product?.categories||[]).map((e=>{let{name:t}=e;return t})),quantity:e.quantity||e.quantityOrdered,publicId:e.image||e.product?.productImage?.publicId,sku:e.sku,title:e.name||e.product?.name,currencyCode:n?c.Qo:t,type:i,variations:e.variations,shipDateDisplay:e.product?.shipDateDisplay,startShippingDate:e.product?.startShippingDate},e.sku||e.product?.sku)}))})]})},Me=n(84011);const Pe=(0,g.default)(Me.P).attrs((e=>({regPrice:e.regPrice}))).withConfig({componentId:"sc-1dhoseb-0"})(["& > *{margin-bottom:0;}"]),je=g.default.div.withConfig({componentId:"sc-1dhoseb-1"})(["border-radius:",";background-color:",";margin-bottom:",";& > *{padding:"," ",";&:not(:last-child){margin:0;border-bottom:solid 1px ",";}}"],(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.color.lightGray4}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.color.lightGray2})),De=g.default.div.withConfig({componentId:"sc-1dhoseb-2"})(["display:flex;flex-direction:column;padding-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})),Re=g.default.div.withConfig({componentId:"sc-1dhoseb-3"})(["display:flex;justify-content:space-between;margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})),Le=(0,g.default)(Re).withConfig({componentId:"sc-1dhoseb-4"})(["margin-left:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})),Fe=(0,g.default)(se.T).attrs({variant:"body"}).withConfig({componentId:"sc-1dhoseb-5"})(["font-weight:",";"],(e=>{let{theme:t}=e;return t.font.weight.bold})),ze=g.default.div.withConfig({componentId:"sc-1dhoseb-6"})(["display:flex;flex-direction:row;align-items:center;& > img{height:1.25rem;width:1.25rem;margin-right:",";}& > p{margin:0;}"],(e=>{let{theme:t}=e;return t.spacing[8]}));var Be=e=>{const{couponCode:t,currency:n,platinumPoints:r,shippingMethod:i,totals:o,type:s}=e,c="physical"===s,l=(0,a.i1)(),{text:u}=l,d=(0,G.T4)(o.grand,n,l),f=(0,G.T4)(o.tax,n,l),p=(0,G.T4)(o.sub,n,l),h=(0,G.T4)(o.shipping,n,l),m=(0,G.T4)(o.discounts?.reduce(((e,t)=>{let{amount:n}=t;return e-n}),0),n,l),g=!!o.discounts?.length;return(0,b.jsxs)(je,{children:[c&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(se.T,{variant:"title",children:u("Order summary")}),!!r?.subtotal&&(0,b.jsxs)(De,{children:[(0,b.jsxs)(ze,{children:[(0,b.jsx)(q.Z,{}),(0,b.jsx)(Q.S,{size:8}),(0,b.jsx)(se.T,{variant:"title",children:u("Platinum Points")})]}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsxs)(Re,{children:[(0,b.jsx)(Fe,{children:u("Item(s) subtotal")}),(0,b.jsx)(se.T,{variant:"body",children:`-${r.subtotal}`})]}),(0,b.jsxs)(Re,{children:[(0,b.jsx)(Fe,{children:u("Your points after purchase")}),(0,b.jsx)(se.T,{variant:"body",children:r.balance})]})]}),(0,b.jsxs)(De,{children:[(0,b.jsxs)(Re,{children:[(0,b.jsx)("b",{children:u("Item(s) subtotal")}),(0,b.jsx)("b",{children:(0,b.jsx)(Pe,{regPrice:p})})]}),g&&(0,b.jsxs)(Re,{children:[(0,b.jsx)("b",{children:u("Discount")}),(0,b.jsx)("b",{children:(0,b.jsx)(Pe,{regPrice:m})})]}),o.discounts?.map((e=>{let{amount:r,label:i}=e;return(0,b.jsxs)(Le,{children:[(0,b.jsxs)(se.T,{variant:"caption",children:[i," (",u("appliedCoupon",{args:[t]}),")"]}),(0,b.jsxs)(se.T,{variant:"caption",children:["-",(0,G.T4)(r,n,l)]})]},i)})),(0,b.jsxs)(Re,{children:[(0,b.jsx)("b",{children:u("Shipping")}),(0,b.jsx)("b",{children:(0,b.jsx)(Pe,{regPrice:h})})]}),(0,b.jsxs)(Le,{children:[(0,b.jsx)(se.T,{variant:"caption",children:i}),(0,b.jsx)(se.T,{variant:"caption",children:h})]}),(0,b.jsxs)(Re,{children:[(0,b.jsx)("b",{children:u("Tax")}),(0,b.jsx)("b",{children:(0,b.jsx)(Pe,{regPrice:f})})]}),o?.taxes?.map((e=>{let{amount:t,label:r}=e;return(0,b.jsxs)(Le,{children:[(0,b.jsx)(se.T,{variant:"caption",children:r}),(0,b.jsx)(se.T,{variant:"caption",children:(0,G.T4)(t,n,l)})]},r)}))]})]}),(0,b.jsxs)(Re,{children:[(0,b.jsx)("b",{children:u("Order total")}),(0,b.jsx)("b",{children:(0,b.jsx)(Pe,{regPrice:d})})]})]})},Ve=n(2756);const $e=["name"],Ue=["onChange","name","label","locale","countryId","value"];function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t{const{onChange:t,name:n,label:i,locale:o,countryId:c,value:l}=e,u=(0,m.Z)(e,Ue),{data:d}=(0,Ve.a)(Ge,{variables:{locale:a.go.from(o),id:c}}),f=d?.country,p=(0,r.useMemo)((()=>function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{let{name:t}=e;return Qe({value:t,label:t},(0,m.Z)(e,$e))})).sort(((e,t)=>e.labelt.label?1:0))}(f?.availableRegions)),[f?.availableRegions]),h=(0,r.useMemo)((()=>p.find((e=>e.id===l||e.code===l||e.value===l))),[p,l]);return(0,b.jsx)(s.S,Qe({name:n,label:i,onChange:t,value:h,loadOptions:async e=>e?p.filter((t=>{let{label:n}=t;return n.toLowerCase().startsWith(e.toLowerCase())})):p,cacheOptions:!0,defaultOptions:p,async:!0,isClearable:!1,isSearchable:!0},u))};He.defaultProps={countryId:"US",value:""};var We=He,Ze=n(30450),Ke=n(68544),Ye=n(31384),Je=n(96447);const Xe={NINTENDO_SWITCH:"#E60012",NINTENDO_SWITCH_LITE:"#E60012",NINTENDO_3DS:"#A90005",NEW_NINTENDO_3DS:"#A90005",NINTENDO_3DS_XL:"#A90005",NEW_NINTENDO_3DS_XL:"#A90005",NINTENDO_2DS:"#A90005",NEW_NINTENDO_2DS_XL:"#A90005",ANDROID_MOBILE:"#00BEFF",WII_U:"#0096C8",WII:"#0096C8",WII_MINI:"#0096C8","IOS/ANDROID":"#00BEFF",HARDWARE:"#727272",MERCHANDISE:"#3946A0",MY_NINTENDO_REWARDS:"#E60012",EXCLUSIVES:"#E60012",NEWS_AND_EVENTS:"#3946A0",DEFAULT:"#3946A0",null:"#3946A0"},et={GOOGLEPAY:"Google Pay",APPLEPAY:"Apple Pay"},tt=g.default.div.withConfig({componentId:"sc-fwbae3-0"})(["border-radius:",";display:flex;flex-direction:column;"," & > *{flex:1;padding:",";&:not(:last-child){border-bottom:solid 1px ",";}}","{flex-direction:row;& > *:not(:last-child){border-bottom:unset;border-right:solid 1px ",";}}"],(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return(0,g.css)(["border:solid 1px ",";"],t.color.lightGray2)}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.color.lightGray2})),nt=(0,g.default)(se.T).attrs({variant:"title"}).withConfig({componentId:"sc-fwbae3-1"})(["display:flex;align-items:center;margin-top:",";margin-bottom:",";svg{margin-right:",";}","{margin-bottom:",";}"],(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[16]})),rt=g.default.div.withConfig({componentId:"sc-fwbae3-2"})(["margin-top:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),it=g.default.div.withConfig({componentId:"sc-fwbae3-3"})(["margin-top:",";a > span{font-size:14px;}"],(e=>{let{theme:t}=e;return t.spacing[8]})),ot=e=>{const{address:t={},phonePlaceholder:n}=e,{city:r,firstName:i,lastName:o,postcode:a,region:s,street:c,telephone:l}=t;return(0,b.jsxs)(se.T,{variant:"caption",as:"div",children:[(0,b.jsxs)("div",{children:[i," ",o]}),l!==n&&(0,b.jsx)("div",{children:l}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsx)("div",{children:Array.isArray(c)?c.join(" "):c}),(0,b.jsxs)("div",{children:[r,", ",s?.name?s.name:s," ",a]})]})},at=e=>{const{billingAddress:t,paymentMethod:n,shippingAddress:r,shipments:i,shippingMethod:o,phonePlaceholder:s}=e,{text:c}=(0,a.i1)(),l=n?.type&&n?.last4?c("{0} ending in {1}",{args:[n?.type,n?.last4]}):et[n?.method?.toUpperCase()];return(0,b.jsxs)(tt,{children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(nt,{children:[(0,b.jsx)(Ze.Z,{}),c("Shipping address")]}),(0,b.jsx)(ot,{address:r,phonePlaceholder:s})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(nt,{children:[(0,b.jsx)(Ke.Z,{}),c("Billing details")]}),(0,b.jsx)(ot,{address:t,phonePlaceholder:s}),(0,b.jsx)(Q.S,{size:16}),l&&(0,b.jsx)(se.T,{variant:"caption",children:l})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(nt,{children:[(0,b.jsx)(Ye.Z,{}),c("Shipping method")]}),(0,b.jsx)(se.T,{variant:"caption",children:o}),i?.length?(0,b.jsx)(rt,{children:1===i?.length?i[0].tracking.map((e=>(0,b.jsx)(it,{children:(0,b.jsxs)(se.T,{variant:"caption",children:[c("{0} tracking",{args:[e?.carrier?.toUpperCase()]})," ",(0,b.jsx)(Je.L,{href:e.url,target:"_blank",children:e.number})]})},e.number))):(0,b.jsx)(se.T,{variant:"caption",children:c("{0} tracking: See list below",{args:[i[0]?.tracking?.[0]?.carrier?.toUpperCase()]})})}):null]})]})};at.defaultProps={phonePlaceholder:"-"};var st=at,ct=n(20360),lt=n(84433),ut=n(7321),dt=n(9069),ft=n(12870),pt=n(50717),ht=n(49503),mt=n(97239);const gt=(0,g.default)(dt.W).withConfig({componentId:"sc-m1loqs-0"})(["position:absolute;bottom:0;right:0;z-index:1;padding:",";-webkit-tap-highlight-color:transparent;",";"],(({theme:e})=>e.spacing[16]),(({$mobileHorizontal:e})=>e&&(0,g.css)(["","{padding:",";& svg{height:2.5rem;width:2.5rem;}}"],"@media (max-width: 428px)",(({theme:e})=>e.spacing[12]))));(0,g.default)(lt.S).withConfig({componentId:"sc-m1loqs-1"})(["margin-bottom:",";","{margin-bottom:",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16])),(0,g.default)(lt.S).withConfig({componentId:"sc-m1loqs-2"})(["& > div{margin-right:0;margin-left:auto;}"]);const vt=g.default.div.withConfig({componentId:"sc-m1loqs-3"})(["height:",";display:flex;align-items:center;margin-bottom:",";"],(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[8])),yt=(0,g.default)(ut.D).withConfig({componentId:"sc-m1loqs-4"})(["margin-bottom:",";","{margin-bottom:",";}"],(({theme:e})=>e.spacing[4]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[8])),bt=g.default.div.withConfig({componentId:"sc-m1loqs-5"})(["font-size:",";color:",";","{margin-top:",";font-size:",";}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.color.darkGray3),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.font.size.legalDesktop)),wt=new Date,kt=({artPath:e,backgroundFillColor:t,constrain:n,mobileHorizontal:i,productLink:o,productTitle:a,productPlatform:s,platformColor:c,releaseDate:l,releaseDateDisplay:u,padImage:d,productId:f,productCategory:p,lang:h,encloseTile:m,priceProps:g,wishlistProps:v,descriptionTag:y,showLoader:w,className:k,expansionSlot:S,still:A})=>{const x=!!g,E=!!v,{date:N,text:C}=(0,ft.u)({locale:h}),_=u&&C("Releases {0}",{args:[u]}),O=N(l,{format:{day:"numeric",month:"numeric",year:"2-digit"}})||"",I=l>wt.toJSON()?C("Releases {0}",{args:[O]}):O,T=(0,r.useCallback)((e=>{e.preventDefault(),v.onClick(p,f)}),[p,f,v]);return(0,b.jsxs)(ht.B,{className:k,artPath:e,backgroundFillColor:t,tileLink:o,encloseTile:m,showLoader:w,padImage:d,still:A,constrain:n,expansionSlot:S,accessibleLabel:a,mobileHorizontal:i,children:[(0,b.jsxs)(pt.T,{children:[(0,b.jsx)(pt.a,{variant:"title",$size:"small",lines:2,children:a}),(0,b.jsx)(bt,{children:_||I})]}),y&&(0,b.jsx)(yt,{...y,lines:2}),(0,b.jsx)(vt,{children:x&&(0,b.jsx)(Me.P,{horizontal:!0,...g,lang:h,productId:f})}),(0,b.jsxs)(pt.R,{children:[s&&(0,b.jsx)(mt.P,{accentColor:c,children:s}),E&&(0,b.jsx)(gt,{...v,iconOnly:!0,lang:h,productId:f,analyticsName:a,onClick:e=>T(e),$mobileHorizontal:i})]})]})};kt.propTypes={className:D().string,constrain:D().bool,mobileHorizontal:D().bool,showLoader:D().bool,artPath:D().string.isRequired,backgroundFillColor:D().string,productLink:D().string.isRequired,productTitle:D().string.isRequired,productPlatform:D().string,releaseDate:D().string,releaseDateDisplay:D().string,platformColor:D().string,productId:D().string,productCategory:D().string,lang:D().oneOf(["en","es","fr","pt"]),encloseTile:D().bool,priceProps:D().shape(Me.p),wishlistProps:D().shape({isAdded:D().bool,iconOnly:D().bool,lang:D().oneOf(["en","es","fr","pt"]),onClick:D().func.isRequired,analyticsName:D().string}),descriptionTag:D().shape({bgColor:D().oneOf(["red","blue","violet","gray"]),children:D().node}),expansionSlot:D().node,still:D().bool,padImage:D().bool},kt.defaultProps={encloseTile:!0,still:!1,padImage:!1};var St=kt,At=n(16614),xt=n(85316);const Et=["artPath","analytics","availability","graphCategories","contentRating","contentDescriptors","demoNsuid","dlcType","exclusive","topLevelCategory","imageProps","isSalableQty","manufacturer","softwarePublisher","name","nsuid","onClick","platform","platformCode","platinumPoints","prices","releaseDate","releaseDateDisplay","showRating","sku","urlKey","variations","eshopDetails","productImageSquare","mobileHorizontal","featureFlag","featureFlagVariant"];function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t"MOBILE"!==A?_t:St),[A]),{0:ee}=(0,r.useMemo)((()=>Q.split("-")),[Q]),te=(0,r.useMemo)((()=>(0,At.g)({availability:i??[],demoNsuid:l,discounted:Z,discountPriceEnd:V,dlcType:u,exclusive:d,finalPrice:E?.minimum?.finalPrice,generalCategory:f?.label,goldPointOfferType:$,goldPointOfferValue:U,isSalableQty:h,onDiscountEnd:()=>K(!1),releaseDate:N},B)),[i,l,V,$,U,u,d,Z,h,B,E,N,f]),ne=(0,r.useMemo)((()=>O&&s?(0,b.jsx)(P,{rating:s,descriptors:c,linking:!1,mini:!0}):(0,At.a)(M)),[O,s,c,M]),re=(0,r.useMemo)((()=>({name:y,sku:I,locale:Q,nsuid:w,platform:S,prices:E,categories:o,manufacturer:g,softwarePublisher:v,index:n?.position||0})),[y,I,Q,w,S,E,o,g,v,n]),ie=(0,r.useCallback)((()=>{"function"===typeof k?k(e):H(re,n?.listDetails||(0,G.DW)({name:y}),L,F)}),[re,n,H,y,k,L,F,e]),{ref:oe}=(0,ct.YD)({triggerOnce:!0,onChange:e=>{e&&W({name:y,sku:I,locale:Q,nsuid:w,platform:S,prices:E,categories:o,manufacturer:g,softwarePublisher:v,index:n?.position||0},n?.listDetails||(0,G.DW)({name:y}))}}),ae=(0,G.T4)(E?.minimum?.regularPrice,E?.minimum?.currency,B),se=(0,G.T4)(E?.minimum?.finalPrice,E?.minimum?.currency,B),ce=`/${(0,G.mt)(Q)}/store/products/${T}/`,le="GAMES"===f?.code?S:f?.label||S,ue="GAMES"===f?.code?A:f?.code||A,de=Boolean(w);return(0,b.jsx)("div",{ref:oe,onClick:ie,children:(0,b.jsx)(X,Ct({product:re,artPath:R&&D?.url||t,padImage:!de,productLink:ce,productTitle:y,productPlatform:le,priceProps:_&&de||Y&&J?null:{regPrice:ae,salePrice:Z?se:null,platinumPoints:x},platformColor:Xe[ue]||Xe.DEFAULT,lang:ee,releaseDate:N,releaseDateDisplay:_,descriptionTag:Y&&J?null:te,imageProps:p,expansionSlot:ne,analytics:n,mobileHorizontal:R},z))})}Ot.defaultProps={imageProps:{showPlaceholder:!0,lazyLoad:!0}};var It=Ot,Tt=n(25237),Mt=n.n(Tt),Pt=n(31145),jt=n(98402),Dt=n(32687);const Rt={[c.ZW]:{en:"the USA",es:"los Estados Unidos",fr:"des \xc9tats-Unis",pt:"dos Estados Unidos"},[c.bu]:{en:"Canada",es:"Canad\xe1",fr:"du Canada",pt:"do Canad\xe1"},[c.xJ]:{en:"Canada",es:"Canad\xe1",fr:"du Canada",pt:"do Canad\xe1"},[c.oV]:{en:"Mexico",es:"M\xe9xico",fr:"du Mexique",pt:"do M\xe9xico"},[c.Zx]:{en:"Colombia",es:"Colombia",fr:"de la Colombie",pt:"da Col\xf4mbia"},[c._1]:{en:"Argentina",es:"Argentina",fr:"de l'Argentine",pt:"da Argentina"},[c.ej]:{en:"Chile",es:"Chile",fr:"du Chili",pt:"do Chile"},[c.WN]:{en:"Peru",es:"Per\xfa",fr:"du P\xe9rou",pt:"do Peru"},[c.bA]:{en:"Brasil",es:"Brasil",fr:"du Br\xe9sil",pt:"do Brasil"}};var Lt=n(62989),Ft=n(54076);const zt=g.default.div.withConfig({componentId:"sc-j8v95d-0"})(["display:flex;flex-direction:column;align-items:center;padding:",";padding-bottom:",";",";","{max-width:",";min-width:",";}"],(e=>{let{theme:t}=e;return`${t.spacing[16]}`}),(e=>{let{theme:t}=e;return`${t.spacing[24]}`}),(e=>{let{theme:t}=e;return(0,g.css)(["border-radius:",";background:",";"],t.borderRadius,t.color.white)}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.pxToRem(625)}),(e=>{let{theme:t}=e;return t.pxToRem(582)})),Bt=g.default.div.withConfig({componentId:"sc-j8v95d-1"})(["display:flex;flex-direction:column;row-gap:",";width:100%;","{display:grid;grid-template-columns:1fr 1fr;column-gap:1rem;width:auto;}"],(e=>{let{theme:t}=e;return`${t.spacing[24]}`}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),Vt=(0,g.default)(Lt.B).withConfig({componentId:"sc-j8v95d-2"})(["padding:0 1rem;"]),$t=(0,g.default)(Ft.H).withConfig({componentId:"sc-j8v95d-3"})(["display:flex;justify-content:center;align-items:center;font-size:",";font-weight:",";width:100%;height:",";color:",";background-color:",";"],(e=>{let{theme:t}=e;return t.font.size.h3Desktop}),(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.pxToRem(48)}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.primary})),Ut=(0,g.default)(Je.L).withConfig({componentId:"sc-j8v95d-4"})(["display:inline-block;padding-right:0;span{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.bodyDesktop})),qt=(0,g.default)(se.T).withConfig({componentId:"sc-j8v95d-5"})(["text-align:center;max-width:",";"],(e=>{let{theme:t}=e;return t.pxToRem(475)})),Qt=Mt()((async()=>Pt.M),{ssr:!1});var Gt=e=>{const{routerLocale:t,customerLocale:n,visible:r,onClose:i}=e,{text:o}=(0,a.i1)(),{connectOrigin:s}=(0,a.xe)(),[l]=n.split("-"),u=c.E7.has(l)?n.toLowerCase():t,d=Rt[t][l]||Rt[t].en,f=o("Select your region",{locale:u});return(0,b.jsxs)(Qt,{visible:r,dialogLabel:f,onClose:i,children:[(0,b.jsx)($t,{children:f}),(0,b.jsxs)(zt,{children:[(0,b.jsx)(jt.Z,{width:42,height:42}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsx)(qt,{children:o("You're viewing our site for {0}, which does not match your {1}. If you'd like to make a purchase, you'll need to change region.",{locale:u,args:[d,(0,b.jsx)(Ut,{href:s,children:o("account settings",{locale:u})},"accountSettings")]})}),(0,b.jsx)(Q.S,{size:24}),(0,b.jsxs)(Bt,{children:[(0,b.jsx)(Vt,{variant:"secondary",onClick:i,children:o("Stay here",{locale:u})}),(0,b.jsx)(Vt,{icon:Dt.Z,href:c.$y,locale:!1,children:o("Change region",{locale:u})})]})]})]})};function Ht(e){let{id:t,children:n}=e;return(0,a.SS)(t)?.enabled?n:null}var Wt=e=>{const{children:t}=e,{webCache:n}=(0,a.BG)(a.mJ.incorrectLocaleViewed,{ttl:3e5,useSessionStorage:!0}),{0:i,1:o}=(0,r.useState)(),{locale:s,pathname:c,query:l,asPath:u}=(0,C.Z)(),{data:d}=(0,a.ON)(),f=(0,r.useMemo)((()=>!c.includes("regionselector")&&!(0,G.ln)(s,d)),[c,s,d]),p=(0,r.useMemo)((()=>(0,a.uX)(u)),[u]),h=i&&f,m=(0,r.useCallback)((()=>{n.set({locale:s}),o(!1)}),[n,s]);return(0,r.useEffect)((()=>{const e=c.startsWith("/cart"),t=n.get()?.locale===s;o(e||!t)}),[s,n,c,l?.slug,p?.cat]),(0,r.useEffect)((()=>{!h&&f||n.delete()}),[n,h,f]),(0,b.jsxs)(b.Fragment,{children:[d?.locale&&(0,b.jsx)(Ht,{id:"incorrect-locale-modal",children:(0,b.jsx)(Gt,{routerLocale:s,customerLocale:d.locale,onClose:m,visible:h})}),t]})};const Zt=g.default.div.withConfig({componentId:"sc-ylvcd1-0"})(["display:flex;flex-direction:column;padding:",";",";","{max-width:",";}"],(e=>{let{theme:t}=e;return`${t.spacing[16]} ${t.spacing[24]}`}),(e=>{let{theme:t}=e;return(0,g.css)(["border-radius:",";background:",";"],t.borderRadius,t.color.white)}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.pxToRem(300)})),Kt=(0,g.default)(Ft.H).withConfig({componentId:"sc-ylvcd1-1"})(["",""],(e=>{let{theme:t}=e;return(0,g.css)(["font-size:",";font-weight:",";"],t.font.size.bodyDesktop,t.font.weight.bold)})),Yt=(0,g.default)(Je.L).withConfig({componentId:"sc-ylvcd1-2"})(["display:inline;span{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.bodyDesktop})),Jt=Mt()((async()=>Pt.M),{ssr:!1});var Xt=e=>{const{visible:t,onClose:n}=e,{text:r}=(0,a.i1)(),{connectOrigin:i}=(0,a.xe)();return(0,b.jsx)(Jt,{visible:t,dialogLabel:r("incorrectLocaleModalHeader"),onClose:n,children:(0,b.jsxs)(Zt,{children:[(0,b.jsx)(Kt,{children:r("incorrectLocaleModalHeader")}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsx)(se.T,{children:r("incorrectLocaleModalBody",{args:[(0,b.jsx)(Yt,{href:i,children:r("check your account settings")},"incorrectLocaleModalBody")]})}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsx)(Lt.B,{href:"/us/regionselector/",locale:!1,children:r("incorrectLocaleModalRegionSelect")}),(0,b.jsx)(Q.S,{size:16}),(0,b.jsx)(Lt.B,{variant:"secondary",onClick:n,children:r("incorrectLocaleModalViewPage")})]})})}},72354:function(e,t,n){"use strict";n.d(t,{$e:function(){return a},$y:function(){return s},A0:function(){return A},Bh:function(){return _},E5:function(){return c},E7:function(){return N},En:function(){return E},GD:function(){return u},Gs:function(){return P},LM:function(){return f},Pg:function(){return l},Qo:function(){return o},Tx:function(){return O},WN:function(){return S},Wj:function(){return x},ZW:function(){return p},Zx:function(){return k},_1:function(){return b},_w:function(){return i},bA:function(){return y},bu:function(){return h},eG:function(){return I},eW:function(){return C},ej:function(){return w},hC:function(){return M},i4:function(){return T},oV:function(){return v},wc:function(){return d},wh:function(){return g},xJ:function(){return m}});var r=n(34406);const i={DEFAULT:{min:5,max:11},CA:{min:6,max:7}},o="coins",a="https://www.nintendo.com",s="/us/regionselector/",c=["openid","user"],l={VALID:"valid",INVALID:"invalid"},u={AR:"Argentina",BR:"Brazil",CA:"Canada",CL:"Chile",CO:"Colombia",MX:"Mexico",PE:"Peru",US:"United States of America"},d={US:"United States of America",CA:"Canada"},f="us",p="en-us",h="en-ca",m="fr-ca",g=new Set([p,h,m]),v="es-mx",y="pt-br",b="es-ar",w="es-cl",k="es-co",S="es-pe",A=new Set([b,w,k,S]),x=new Set([v,y,...A]),E=new Set([p,h,m,...x]),N=new Set(Array.from(E).map((e=>e?.split("-")[0])).filter(Boolean)),C={default:f,[p]:f},_=[...E].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`})),O={HIDE_NAV_FOOT:"hideNavFooter",CAMPAIGN_CODE:"cid",UTM_CODE:"utm_id"},I={FIRST_NAME:100,LAST_NAME:100,STREET:100,UNIT:100,CITY:100,STATE:100,ZIP:100,PHONE:100},T=!1,M="true"===r.env.DEV_PREVIEW_MODE,P={[p]:"018e80fc-5843-7dc9-8c39-239278889ed0",[h]:"018e1f83-6d65-7692-9594-ce56fba1a7d1",[m]:"018e8100-85a3-7faf-9159-dc693e79ab5f",[v]:"018e8102-96e0-7de6-9fe1-a801fafac6fd",[b]:"018e8102-f523-781e-8d51-82a2be989b94",[w]:"018e8104-b2ed-7304-b814-879762b1f87b",[k]:"018e8105-043b-7a89-abce-dcb912d503f1",[S]:"018e8105-5e30-7e09-a9d0-b98dd26b1056",[y]:"018e8105-b67a-7baf-8530-e6eda4c51336"}},79185:function(e,t,n){"use strict";n.d(t,{kF:function(){return r},R6:function(){return k},DW:function(){return c},E0:function(){return f},T4:function(){return o},UG:function(){return A},mt:function(){return S},KL:function(){return T},Hx:function(){return j},ry:function(){return d},S_:function(){return s},vS:function(){return p},ln:function(){return x},L9:function(){return h},GL:function(){return a},n5:function(){return v},nR:function(){return I},nw:function(){return u},JZ:function(){return g}});var r=(e,t)=>100*e*t/100,i=n(72354);var o=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{formatZero:!0};return"number"!==typeof e||t===i.Qo?e:n.price(e,r)};var a=function(e,t){const{removeSpecialChars:n}=t||{};return n?e?.replace(/[^a-zA-Z0-9]+/g," ").trim().replace(/\s+/g,"-").toLowerCase():e?.replace(/\s+/g,"-").toLowerCase()};var s=!0;function c(e){const t=s&&window.location.pathname+window.location.search;return{name:`${t}: ${e?.name||"unknown"}`,id:`${t}_${a(e?.name||"unknown")}`}}var l=n(2784);var u=e=>(0,l.useEffect)(e,[]);var d=(e,t)=>{const{region:n,regionCode:r,postcode:i}=t||{},{region:o,regionCode:a,postcode:s}=e||{},c=r??n?.code,l=a??o?.code,[u,d]=`${c}${i}`.toLowerCase().replace(/\s+/g,"").split("-"),[f,p]=`${l}${s}`.toLowerCase().replace(/\s+/g,"").split("-");return!(p&&d?u===f&&d===p:u===f)};var f=e=>{const{city:t,postcode:n,regionCode:r,region:i,street:o,unit:a}=e;return`${[o,a].filter(Boolean).join(" ")}, ${t} ${i?.code||r}, ${n}`};function p(e){return i.Wj.has(e)}function h(e){return i.A0.has(e)}var m=n(3517);var g=()=>(0,m.J)();var v=e=>{const t=e.getBoundingClientRect();(t.bottom>window.innerHeight||t.top<0)&&e.scrollIntoView()},y=n(28546),b=n(81440),w=n(30674);function k(e){let{publicId:t,variant:n,dimensions:r,sizes:i,responsive:o=!1,quality:a="auto:best"}=e;const c=s&&window.devicePixelRatio&&window.devicePixelRatio<2?window.devicePixelRatio:2;switch(n){case"OG_IMAGE":return w.C.image(t).resize((0,b.hl)(1200)).quality(a).format("auto").delivery((0,y.uN)(c)).toURL();case"SIZED":return w.C.image(t).quality(a).format("auto").resize(r.width&&r.height?(0,b.hl)().width(r.width).height(r.height):r.width?(0,b.hl)().width(r.width):(0,b.hl)().height(r.height)).delivery((0,y.uN)(c)).toURL();case"BACKGROUND":return o&&i?function(e,t){return t.map((t=>w.C.image(e).resize((0,b.hl)().width(t)).quality("auto:best").format("auto").delivery((0,y.uN)(1)).toURL()))}(t,i):w.C.image(t).quality("auto:good").format("auto").delivery((0,y.uN)(c)).toURL();default:return w.C.image(t).quality(a).format("auto").delivery((0,y.uN)(c)).toURL()}}var S=function(e){return"string"!==typeof e?e:i.eW[e.toLowerCase()]||e.toLowerCase()};function A(e){return{"New!":"red","New season":"red",Exclusive:"red","Available now":"red","Shop now":"red","{0}x Gold Points":"red","+{0} Gold Point":"red","+{0} Gold Points":"red","Sale ends: {0}":"red","Now on sale":"red","Pre-order now":"blue","Pre-purchase now":"blue","Learn more":"blue","Tune in":"blue","Watch now":"blue","Free demo":"blue","Coming soon":"blue",DLC:"violet","Free download":"violet",Free:"violet","DLC bundle":"violet","Game + DLC bundle":"violet","Game bundle":"violet","Sold out":"gray"}[e]||""}var x=(e,t)=>{if(!e||!t?.country)return!0;const[,n]=e&&e.split(/[-_]/)||[];return t?.country?.toLowerCase()===n?.toLowerCase()},E=n(95235),N=n(32899);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t{const{disableCache:t}=e||{},{webCache:n}=(0,N.BG)(N.mJ.checkoutFormCache,{ttl:O,useSessionStorage:!0}),{webCache:r}=(0,N.BG)(N.mJ.checkoutPrevFormCache,{ttl:O,useSessionStorage:!0}),{webCache:i}=(0,N.BG)(N.mJ.checkoutStateCache,{ttl:O,useSessionStorage:!0}),o=(0,l.useMemo)((()=>n.get()),[n]),a=(0,l.useMemo)((()=>i.get()),[i]),s=(0,l.useMemo)((()=>r.get()),[r]),c=(0,l.useMemo)((()=>_(_({},a),{},{hasError:!1})),[a]),u=(0,l.useCallback)((e=>{t||r.update(e)}),[r,t]),d=(0,l.useCallback)((e=>{t||n.update(e)}),[n,t]),f=(0,l.useCallback)((e=>{t||i.update(e)}),[i,t]),p=(0,l.useCallback)((()=>{n.delete(),i.delete()}),[n,i]);(0,l.useEffect)((()=>{t&&p()}),[t,p]);return(0,l.useMemo)((()=>({state:{initialFormValues:o,prevFormValues:s,initialCheckoutState:c},actions:{updateFormData:d,updatePrevFormData:u,updateCheckoutState:f,clearLocalData:p}})),[o,s,c,d,u,f,p])};function T(e,t){return Array.isArray(e)&&0!==e.length?1===e.length?e[0][t]:e.reduce(((e,n)=>n[t]P().createHash("sha1").update(`${e}:${t}`).digest("hex")},85316:function(e,t,n){"use strict";n.d(t,{Y:function(){return p},Z:function(){return h}});var r=n(95235),i=n(82269),o=n(2784),a=n(64897),s=n(32899),c=n(52322);const l=["product"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te?.sku&&(!e?.nsuid||f.test(e.nsuid));function h(e,t){return function(n){let{product:r}=n,u=(0,i.Z)(n,l);const{applyWishlistProps:f}=t||{},h=(0,a.Z)(),m=(0,s.xe)(),g=(0,s.Ei)(),{trackAddToWishlist:v}=(0,s.z$)(),[y]=h.locale.split("-"),b=(0,o.useCallback)((()=>m.isLoggedIn?g.hasProduct(r)?g.removeProduct(r):(v(r,u.analytics?.listDetails||null,{pageName:h.pathname}),g.addProduct(r)):m.promptLogin()),[g,m,r,h.pathname,v,u.analytics?.listDetails]),w=(0,o.useMemo)((()=>g.hasProduct(r)),[g,r]),k=(0,o.useMemo)((()=>p(r)?{lang:y,isAdded:w,onClick:b}:null),[r,y,w,b]);return f?(0,c.jsx)(e,d(d({},u),{},{wishlistProps:k})):(0,c.jsx)(e,d(d({},u),k))}}},26528:function(e){"use strict";var t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},90283:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(21800)}])},71941:function(e,t,n){var r=n(48834).Buffer,i=n(34406);!function(){var t={7160:function(e,t,n){var r=t;r.bignum=n(711),r.define=n(495).define,r.base=n(853),r.constants=n(7335),r.decoders=n(6701),r.encoders=n(3418)},495:function(e,t,n){var r=n(7160),i=n(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=n(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(r.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},6483:function(e,t,n){var r=n(3782),i=n(853).Reporter,o=n(4300).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}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}}r(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 n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},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(n){n.join(e,t),t+=n.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,n){var r=t;r.Reporter=n(1293).b,r.DecoderBuffer=n(6483).C,r.EncoderBuffer=n(6483).R,r.Node=n(9374)},9374:function(e,t,n){var r=n(853).Reporter,i=n(853).EncoderBuffer,o=n(853).DecoderBuffer,a=n(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"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.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")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(a(null===t.children),t.children=n,n.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(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.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},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(a=this._peekTag(e,c,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 u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)l=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?i=e.raw(l):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,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(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=e.save(),s=n.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:o,value:c},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(l,s,u,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.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();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,n){var r=n(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,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},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,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.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},r(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 new Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,n){var r=n(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._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=r._reverse(t.tag)},7335:function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(9791)},2259:function(e,t,n){var r=n(3782),i=n(7160),o=i.base,a=i.bignum,s=i.constants.der;function c(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 u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0===(32&n);if(31===(31&n)){var o=n;for(n=0;128===(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0===(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[n||"universal"]<<6)}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(l,a.Node),l.prototype._encodeComposite=function(e,t,n,r){var o,a=d(e,t,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var s=1,c=r.length;c>=256;c>>=8)s++;(o=new i(2+s))[0]=a,o[1]=128|s;c=1+s;for(var l=r.length;l>0;c--,l>>=8)o[c]=255&l;return this._createEncoderBuffer([o,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(r=0;r=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(r=e.length-1;r>=0;r--){a=e[r];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"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 n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var o=new i(r);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]);r=1;for(var a=e;a>=256;a>>=8)r++;for(a=(o=new Array(r)).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(e?255:0)},l.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10: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 e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u1&&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?""};var 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"],u=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],p=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[f-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!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 r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.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 n=0;ne.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){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.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){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],h=8191&p,m=p>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,k=b>>>13,S=0|a[4],A=8191&S,x=S>>>13,E=0|a[5],N=8191&E,C=E>>>13,_=0|a[6],O=8191&_,I=_>>>13,T=0|a[7],M=8191&T,P=T>>>13,j=0|a[8],D=8191&j,R=j>>>13,L=0|a[9],F=8191&L,z=L>>>13,B=0|s[0],V=8191&B,$=B>>>13,U=0|s[1],q=8191&U,Q=U>>>13,G=0|s[2],H=8191&G,W=G>>>13,Z=0|s[3],K=8191&Z,Y=Z>>>13,J=0|s[4],X=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(f,V)|0))<<13)|0;l=((o=Math.imul(f,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,V),i=(i=Math.imul(h,$))+Math.imul(m,V)|0,o=Math.imul(m,$);var ve=(l+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(f,q)|0))<<13)|0;l=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,V),i=(i=Math.imul(v,$))+Math.imul(y,V)|0,o=Math.imul(y,$),r=r+Math.imul(h,q)|0,i=(i=i+Math.imul(h,Q)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,Q)|0;var ye=(l+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,H)|0))<<13)|0;l=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,$))+Math.imul(k,V)|0,o=Math.imul(k,$),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,Q)|0,r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,W)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0;var be=(l+(r=r+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,K)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(A,V),i=(i=Math.imul(A,$))+Math.imul(x,V)|0,o=Math.imul(x,$),r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,Q)|0,r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(h,K)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,V),i=(i=Math.imul(N,$))+Math.imul(C,V)|0,o=Math.imul(C,$),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(k,H)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ke=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,V),i=(i=Math.imul(O,$))+Math.imul(I,V)|0,o=Math.imul(I,$),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,Q)|0,r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,W)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var Se=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,$))+Math.imul(P,V)|0,o=Math.imul(P,$),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,Q)|0,r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ae=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,$))+Math.imul(R,V)|0,o=Math.imul(R,$),r=r+Math.imul(M,q)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,Q)|0,r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var xe=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(F,V),i=(i=Math.imul(F,$))+Math.imul(z,V)|0,o=Math.imul(z,$),r=r+Math.imul(D,q)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,Q)|0,r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(h,de)|0,i=(i=i+Math.imul(h,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Ee=(l+(r=r+Math.imul(d,he)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,he)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,q),i=(i=Math.imul(F,Q))+Math.imul(z,q)|0,o=Math.imul(z,Q),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Ne=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(F,H),i=(i=Math.imul(F,W))+Math.imul(z,H)|0,o=Math.imul(z,W),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Ce=(l+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,he)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,X)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(k,he)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(F,X),i=(i=Math.imul(F,ee))+Math.imul(z,X)|0,o=Math.imul(z,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Oe=(l+(r=r+Math.imul(A,he)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(x,he)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(z,ne)|0,o=Math.imul(z,re),r=r+Math.imul(D,oe)|0,i=(i=i+Math.imul(D,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var Ie=(l+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(C,he)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(z,oe)|0,o=Math.imul(z,ae),r=r+Math.imul(D,ce)|0,i=(i=i+Math.imul(D,le)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,fe)|0;var Te=(l+(r=r+Math.imul(O,he)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,ce),i=(i=Math.imul(F,le))+Math.imul(z,ce)|0,o=Math.imul(z,le),r=r+Math.imul(D,de)|0,i=(i=i+Math.imul(D,fe)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,fe)|0;var Me=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(P,he)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,de),i=(i=Math.imul(F,fe))+Math.imul(z,de)|0,o=Math.imul(z,fe);var Pe=(l+(r=r+Math.imul(D,he)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(R,he)|0))<<13)|0;l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var je=(l+(r=Math.imul(F,he))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(z,he)|0))<<13)|0;return l=((o=Math.imul(z,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=ke,c[6]=Se,c[7]=Ae,c[8]=xe,c[9]=Ee,c[10]=Ne,c[11]=Ce,c[12]=_e,c[13]=Oe,c[14]=Ie,c[15]=Te,c[16]=Me,c[17]=Pe,c[18]=je,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=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=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}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=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},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){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,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(r("number"===typeof e),r(e<67108864),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>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!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(),n&&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}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{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);var i,a,s},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 n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);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){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=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),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0===(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,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,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(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 this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},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 S(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={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 y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){S.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=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(y,v),y.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return g[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new A(e)},i(A,S),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},1670:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(4300).Buffer}catch(e){}function s(e,t,n){for(var i=0,o=Math.min(e.length,n),a=0,s=t;s=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=c}return r(!(240&a),"Invalid character in "+e),i}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),c=t;c=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a"}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 e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u1&&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")]=u:o.prototype.inspect=u;var d=["","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"],f=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);n=(h=h.idivn(u)).isZero()?m+n:d[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.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 n=0;ne.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){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.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){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,p=0|a[1],h=8191&p,m=p>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,k=b>>>13,S=0|a[4],A=8191&S,x=S>>>13,E=0|a[5],N=8191&E,C=E>>>13,_=0|a[6],O=8191&_,I=_>>>13,T=0|a[7],M=8191&T,P=T>>>13,j=0|a[8],D=8191&j,R=j>>>13,L=0|a[9],F=8191&L,z=L>>>13,B=0|s[0],V=8191&B,$=B>>>13,U=0|s[1],q=8191&U,Q=U>>>13,G=0|s[2],H=8191&G,W=G>>>13,Z=0|s[3],K=8191&Z,Y=Z>>>13,J=0|s[4],X=8191&J,ee=J>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,V))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(f,V)|0))<<13)|0;l=((o=Math.imul(f,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(h,V),i=(i=Math.imul(h,$))+Math.imul(m,V)|0,o=Math.imul(m,$);var ve=(l+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(f,q)|0))<<13)|0;l=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,V),i=(i=Math.imul(v,$))+Math.imul(y,V)|0,o=Math.imul(y,$),r=r+Math.imul(h,q)|0,i=(i=i+Math.imul(h,Q)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,Q)|0;var ye=(l+(r=r+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,H)|0))<<13)|0;l=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,V),i=(i=Math.imul(w,$))+Math.imul(k,V)|0,o=Math.imul(k,$),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,Q)|0,r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,W)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,W)|0;var be=(l+(r=r+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,K)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(A,V),i=(i=Math.imul(A,$))+Math.imul(x,V)|0,o=Math.imul(x,$),r=r+Math.imul(w,q)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,Q)|0,r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(h,K)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,X)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,V),i=(i=Math.imul(N,$))+Math.imul(C,V)|0,o=Math.imul(C,$),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(k,H)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var ke=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,V),i=(i=Math.imul(O,$))+Math.imul(I,V)|0,o=Math.imul(I,$),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,Q)|0,r=r+Math.imul(A,H)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,W)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,Y)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var Se=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,V),i=(i=Math.imul(M,$))+Math.imul(P,V)|0,o=Math.imul(P,$),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,Q)|0,r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ae=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,V),i=(i=Math.imul(D,$))+Math.imul(R,V)|0,o=Math.imul(R,$),r=r+Math.imul(M,q)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,Q)|0,r=r+Math.imul(O,H)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(k,ne)|0,o=o+Math.imul(k,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var xe=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(F,V),i=(i=Math.imul(F,$))+Math.imul(z,V)|0,o=Math.imul(z,$),r=r+Math.imul(D,q)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,Q)|0,r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(h,de)|0,i=(i=i+Math.imul(h,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Ee=(l+(r=r+Math.imul(d,he)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,he)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,q),i=(i=Math.imul(F,Q))+Math.imul(z,q)|0,o=Math.imul(z,Q),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,Y)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Ne=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(F,H),i=(i=Math.imul(F,W))+Math.imul(z,H)|0,o=Math.imul(z,W),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,fe)|0;var Ce=(l+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,he)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(F,K),i=(i=Math.imul(F,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,X)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(P,ne)|0,o=o+Math.imul(P,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,fe)|0;var _e=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(k,he)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(F,X),i=(i=Math.imul(F,ee))+Math.imul(z,X)|0,o=Math.imul(z,ee),r=r+Math.imul(D,ne)|0,i=(i=i+Math.imul(D,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,r=r+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Oe=(l+(r=r+Math.imul(A,he)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(x,he)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(F,ne),i=(i=Math.imul(F,re))+Math.imul(z,ne)|0,o=Math.imul(z,re),r=r+Math.imul(D,oe)|0,i=(i=i+Math.imul(D,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,fe)|0;var Ie=(l+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(C,he)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(z,oe)|0,o=Math.imul(z,ae),r=r+Math.imul(D,ce)|0,i=(i=i+Math.imul(D,le)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,fe)|0;var Te=(l+(r=r+Math.imul(O,he)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(F,ce),i=(i=Math.imul(F,le))+Math.imul(z,ce)|0,o=Math.imul(z,le),r=r+Math.imul(D,de)|0,i=(i=i+Math.imul(D,fe)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,fe)|0;var Me=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(P,he)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(F,de),i=(i=Math.imul(F,fe))+Math.imul(z,de)|0,o=Math.imul(z,fe);var Pe=(l+(r=r+Math.imul(D,he)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(R,he)|0))<<13)|0;l=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var je=(l+(r=Math.imul(F,he))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(z,he)|0))<<13)|0;return l=((o=Math.imul(z,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=ke,c[6]=Se,c[7]=Ae,c[8]=xe,c[9]=Ee,c[10]=Ne,c[11]=Ce,c[12]=_e,c[13]=Oe,c[14]=Ie,c[15]=Te,c[16]=Me,c[17]=Pe,c[18]=je,0!==l&&(c[19]=l,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?g(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,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=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}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=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},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){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,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(r("number"===typeof e),r(e<67108864),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>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!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(),n&&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}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{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);var i,a,s},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 n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);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),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*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),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=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),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0===(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0===(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,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,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(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 this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},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 r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(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 w(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 k(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.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 r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(k,w),k.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new S;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return b[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(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):(l(e,e.umod(this.m)._forceRed(this)),e)},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 n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},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(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},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 N(e)},i(N,E),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},3500:function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.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),n=0;n>>24]^u[h>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],a=l[h>>>24]^u[m>>>16&255]^d[g>>>8&255]^f[255&p]^t[v++],s=l[m>>>24]^u[g>>>16&255]^d[p>>>8&255]^f[255&h]^t[v++],c=l[g>>>24]^u[p>>>16&255]^d[h>>>8&255]^f[255&m]^t[v++],p=o,h=a,m=s,g=c;return o=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[h>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&p])^t[v++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[v++],c=(r[g>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var u=e[a],d=e[u],f=e[d],p=257*e[l]^16843008*l;i[0][a]=p<<24|p>>>8,i[1][a]=p<<16|p>>>16,i[2][a]=p<<8|p>>>24,i[3][a]=p,p=16843009*f^65537*d^257*u^16843008*a,o[0][l]=p<<24|p>>>8,o[1][l]=p<<16|p>>>16,o[2][l]=p<<8|p>>>24,o[3][l]=p,0===a?a=s=1:(a=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,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,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var l=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=l},6624:function(e,t,n){var r=n(1387),i=n(5055).Buffer,o=n(1043),a=n(3782),s=n(7225),c=n(4734),l=n(598);function u(e,t,n){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 r=new s(n),o=t.length,a=o%16;r.update(t),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var c=8*o,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var d=i.from(e._finID);return l(d),d}function d(e,t,n,a){o.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),n=u(this,n,l),this._prev=i.from(n),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 n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)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},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return f(e,r.key,r.iv)},t.createDecipheriv=f},2:function(e,t,n){var r=n(6370),i=n(6624),o=n(5055).Buffer,a=n(126),s=n(1043),c=n(1387),l=n(8368);function u(e,t,n){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}n(3782)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return o.concat(r)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function p(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.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(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.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},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),n=-1;++n>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,t&&(n[0]=n[0]^225<<24)}this.state=o(r)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},598:function(e){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},9825:function(e,t,n){var r=n(4734);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},321:function(e,t,n){var r=n(5055).Buffer,i=n(4734);function o(e,t,n){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=r.concat([e._prev,n?t:a]),a}t.encrypt=function(e,t,n){for(var i,a=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){a=r.concat([a,o(e,t,n)]);break}i=e._cache.length,a=r.concat([a,o(e,t.slice(0,i),n)]),t=t.slice(i)}return a}},3147:function(e,t,n){var r=n(5055).Buffer;function i(e,t,n){for(var r,i,a=-1,s=0;++a<8;)r=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=o(e._prev,n?r:i);return s}function o(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i>7;return o}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new i(o(t));return n}e.exports=a,a.getr=s},9276:function(e,t,n){e.exports=n(2908)},4078:function(e,t,n){var r=n(5055).Buffer,i=n(9739),o=n(3726),a=n(3782),s=n(9807),c=n(4013),l=n(2908);function u(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function p(e){return new d(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),a(u,o.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"===typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(d,o.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return"string"===typeof e&&(e=r.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,n){"string"===typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},e.exports={Sign:f,Verify:p,createSign:f,createVerify:p}},9807:function(e,t,n){var r=n(5055).Buffer,i=n(4873),o=n(7166),a=n(949).ec,s=n(1670),c=n(9902),l=n(9267);function u(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new a(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}function d(e,t,n){for(var r,i=t.params.priv_key,o=t.params.p,a=t.params.q,c=t.params.g,l=new s(0),u=h(e,a).mod(a),d=!1,v=p(i,a,e,n);!1===d;)l=g(c,r=m(a,v,n),o,a),0===(d=r.invm(a).imul(u.add(i.mul(l))).mod(a)).cmpn(0)&&(d=!1,l=new s(0));return f(l,d)}function f(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}function p(e,t,n,o){if((e=r.from(e.toArray())).length0&&n.ishrn(r),n}function m(e,t,n){var o,a;do{for(o=r.alloc(0);8*o.length=t)throw new Error("invalid sig")}e.exports=function(e,t,n,o,s){var u=a(n);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return c(e,t,u)}if("dsa"===u.type){if("dsa"!==o)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,o=n.data.q,s=n.data.g,c=n.data.pub_key,u=a.signature.decode(e,"der"),d=u.s,f=u.r;l(d,o),l(f,o);var p=i.mont(r),h=d.invm(o);return 0===s.toRed(p).redPow(new i(t).mul(h).mod(o)).fromRed().mul(c.toRed(p).redPow(f.mul(h).mod(o)).fromRed()).mod(r).mod(o).cmp(f)}(e,t,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");t=r.concat([s,t]);for(var d=u.modulus.byteLength(),f=[1],p=0;t.length+f.length+2n)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.lengths?t=e(t):t.length0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,e.keys,a)}},c.prototype._update=function(e,t,n,r){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(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,a=f}o.rip(s,a,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var a=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];o.expand(a,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(l,u),f=a;a=(s^o.permute(d))>>>0,s=f}o.rip(a,s,r,i)}},6159:function(e,t,n){"use strict";var r=n(3523),i=n(3782),o=n(9876),a=n(1016);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=a.prototype._pad,c.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,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){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(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},t.rip=function(e,t,n,r){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(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.pc1=function(e,t,n,r){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(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[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,r,i){for(var o=0,a=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var r=[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 n=0,i=0;i<4;i++){n<<=4,n|=r[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=r[256+64*i+(t>>>18-6*i&63)]}return n>>>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,n=0;n>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.lengthe;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(d);)n.iadd(p)}else for(;n.mod(o).cmp(f);)n.iadd(p);if(m(h=n.shrn(1))&&m(n)&&g(h)&&g(n)&&a.test(h)&&a.test(n))return n}}},949:function(e,t,n){"use strict";var r=t;r.version=n(2531).i8,r.utils=n(4401),r.rand=n(3500),r.curve=n(9359),r.curves=n(6226),r.ec=n(4088),r.eddsa=n(8511)},2727:function(e,t,n){"use strict";var r=n(711),i=n(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<=c;t--)l=(l<<1)+r[t];a.push(l)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(c=0;c=0;l--){for(t=0;l>=0&&0===a[l];l--)t++;if(l>=0&&t++,c=c.dblp(t),l<0)break;var u=a[l];s(0!==u),c="affine"===e.type?u>0?c.mixedAdd(i[u-1>>1]):c.mixedAdd(i[-u-1>>1].neg()):u>0?c.add(i[u-1>>1]):c.add(i[-u-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,c=this._wnafT2,l=this._wnafT3,u=0,d=0;d=1;d-=2){var p=d-1,h=d;if(1===s[p]&&1===s[h]){var m=[t[p],null,null,t[h]];0===t[p].y.cmp(t[h].y)?(m[1]=t[p].add(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg())):0===t[p].y.cmp(t[h].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].add(t[h].neg())):(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[p],n[h]);u=Math.max(v[0].length,u),l[p]=new Array(u),l[h]=new Array(u);for(var y=0;y=0;d--){for(var A=0;d>=0;){var x=!0;for(y=0;y=0&&A++,k=k.dblp(A),d<0)break;for(y=0;y0?E=c[y][N-1>>1]:N<0&&(E=c[y][-N-1>>1].neg()),k="affine"===E.type?k.mixedAdd(E):k.add(E))}}for(d=0;d=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 n=[this],r=this,i=0;i":""},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(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(l.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=r.redSub(i).redISub(o).redMul(c),t=a.redMul(l.redSub(o)),n=a.redMul(c)}}else{var l=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=l.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(l)).redMul(c),t=this.curve._mulC(l).redMul(i.redISub(o)),n=l.redMul(c)}return this.curve.point(e,t,n)},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)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=o.redMul(a),u=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(l,u,f,d)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(l)):(t=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,n)},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,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],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 n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},9359:function(e,t,n){"use strict";var r=t;r.base=n(2727),r.short=n(4720),r.mont=n(6653),r.edwards=n(2705)},6653:function(e,t,n){"use strict";var r=n(711),i=n(3782),o=n(2727),a=n(4401);function s(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,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,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,n){"use strict";var r=n(4401),i=n(711),o=n(3782),a=n(2727),s=r.assert;function c(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=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(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 u(e,t,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(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(n,16),this.z=new i(r,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(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,p=this.n.clone(),h=new i(1),m=new i(0),g=new i(0),v=new i(1),y=0;0!==f.cmpn(0);){var b=p.div(f);l=p.sub(b.mul(f)),u=g.sub(b.mul(h));var w=v.sub(b.mul(m));if(!r&&l.cmp(d)<0)t=c.neg(),n=h,r=l.neg(),o=u;else if(r&&2===++y)break;c=l,p=f,f=l,g=h,h=u,v=m,m=w}a=l.neg(),s=u;var k=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(k)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},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))return this.curve.point(null,null);if(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 n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},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,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),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,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,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 n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}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(u,a.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=r.redMul(l),f=c.redSqr().redIAdd(u).redISub(d).redISub(d),p=c.redMul(d.redISub(f)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,p,h)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=n.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(l)),p=this.z.redMul(a);return this.curve.jpoint(d,f,p)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,n){"use strict";var r,i=t,o=n(7028),a=n(9359),s=n(4401).assert;function c(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 n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,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{r=n(9702)}catch(e){r=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",r]})},4088:function(e,t,n){"use strict";var r=n(711),i=n(4910),o=n(4401),a=n(6226),s=n(3500),c=o.assert,l=n(4724),u=n(7526);function d(e){if(!(this instanceof d))return new d(e);"string"===typeof e&&(c(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=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.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()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new r(1)),f=0;;f++){var p=o.k?o.k(f):new r(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var m=h.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:g,s:v,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new r(e),s=t.r,l=t.s,d=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(o),h=o.sub(a).mul(p).umod(o),m=l.mul(p).umod(o);return this.g.mulAdd(h,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},4724:function(e,t,n){"use strict";var r=n(711),i=n(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,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},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 r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"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"),void(this.pub=this.ec.curve.point(e.x,e.y));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,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},7526:function(e,t,n){"use strict";var r=n(711),i=n(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 r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;var l=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var d=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(l),this.s=new r(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,n){"use strict";var r=n(7028),i=n(6226),o=n(4401),a=o.assert,s=o.parseBytes,c=n(9917),l=n(9314);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);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=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),c=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0===(1&c))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(o),0===(1&l))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},8368:function(e,t,n){var r=n(5055).Buffer,i=n(3533);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),c=r.alloc(o||0),l=r.alloc(0);a>0||o>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,l.length),l.copy(s,f,0,d),a-=d}if(d0){var p=c.length-o,h=Math.min(o,l.length-d);l.copy(c,p,d,d+h),o-=h}}return l.fill(0),{key:s,iv:c}}},9029:function(e,t,n){"use strict";var r=n(5055).Buffer,i=n(3726).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(3782)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new 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 n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},7028:function(e,t,n){var r=t;r.utils=n(263),r.common=n(1330),r.sha=n(301),r.ripemd=n(3079),r.hmac=n(3092),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},1330:function(e,t,n){"use strict";var r=n(263),i=n(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}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},263:function(e,t,n){"use strict";var r=n(3523),i=n(3782);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var c=0,l=t;return c+=(l=l+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,l){var u=0,d=t;return u+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},4910:function(e,t,n){"use strict";var r=n(7028),i=n(6545),o=n(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"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length>>32-t}function l(e,t,n,r,i,o,a){return c(e+(t&n|~t&r)+i+o|0,a)+t|0}function u(e,t,n,r,i,o,a){return c(e+(t&r|n&~r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return c(e+(t^n^r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return c(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=l(n,r,i,o,e[0],3614090360,7),o=l(o,n,r,i,e[1],3905402710,12),i=l(i,o,n,r,e[2],606105819,17),r=l(r,i,o,n,e[3],3250441966,22),n=l(n,r,i,o,e[4],4118548399,7),o=l(o,n,r,i,e[5],1200080426,12),i=l(i,o,n,r,e[6],2821735955,17),r=l(r,i,o,n,e[7],4249261313,22),n=l(n,r,i,o,e[8],1770035416,7),o=l(o,n,r,i,e[9],2336552879,12),i=l(i,o,n,r,e[10],4294925233,17),r=l(r,i,o,n,e[11],2304563134,22),n=l(n,r,i,o,e[12],1804603682,7),o=l(o,n,r,i,e[13],4254626195,12),i=l(i,o,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,n,r,i,e[6],3225465664,9),i=u(i,o,n,r,e[11],643717713,14),r=u(r,i,o,n,e[0],3921069994,20),n=u(n,r,i,o,e[5],3593408605,5),o=u(o,n,r,i,e[10],38016083,9),i=u(i,o,n,r,e[15],3634488961,14),r=u(r,i,o,n,e[4],3889429448,20),n=u(n,r,i,o,e[9],568446438,5),o=u(o,n,r,i,e[14],3275163606,9),i=u(i,o,n,r,e[3],4107603335,14),r=u(r,i,o,n,e[8],1163531501,20),n=u(n,r,i,o,e[13],2850285829,5),o=u(o,n,r,i,e[2],4243563512,9),i=u(i,o,n,r,e[7],1735328473,14),n=d(n,r=u(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,n,r,i,e[8],2272392833,11),i=d(i,o,n,r,e[11],1839030562,16),r=d(r,i,o,n,e[14],4259657740,23),n=d(n,r,i,o,e[1],2763975236,4),o=d(o,n,r,i,e[4],1272893353,11),i=d(i,o,n,r,e[7],4139469664,16),r=d(r,i,o,n,e[10],3200236656,23),n=d(n,r,i,o,e[13],681279174,4),o=d(o,n,r,i,e[0],3936430074,11),i=d(i,o,n,r,e[3],3572445317,16),r=d(r,i,o,n,e[6],76029189,23),n=d(n,r,i,o,e[9],3654602809,4),o=d(o,n,r,i,e[12],3873151461,11),i=d(i,o,n,r,e[15],530742520,16),n=f(n,r=d(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=f(o,n,r,i,e[7],1126891415,10),i=f(i,o,n,r,e[14],2878612391,15),r=f(r,i,o,n,e[5],4237533241,21),n=f(n,r,i,o,e[12],1700485571,6),o=f(o,n,r,i,e[3],2399980690,10),i=f(i,o,n,r,e[10],4293915773,15),r=f(r,i,o,n,e[1],2240044497,21),n=f(n,r,i,o,e[8],1873313359,6),o=f(o,n,r,i,e[15],4264355552,10),i=f(i,o,n,r,e[6],2734768916,15),r=f(r,i,o,n,e[13],1309151649,21),n=f(n,r,i,o,e[4],4149444226,6),o=f(o,n,r,i,e[11],3174756917,10),i=f(i,o,n,r,e[2],718787259,15),r=f(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|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,n){var r=n(711),i=n(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=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(o);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var f=d.toRed(o).redPow(l);if(0!==f.cmp(a)&&0!==f.cmp(u)){for(var p=1;p0;t--){var u=this._randrange(new r(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var f=u.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var p=1;p>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},8687:function(e,t,n){"use strict";var r=n(7160);t.certificate=n(8782);var i=r.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.RSAPrivateKey=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=r.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())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var l=r.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.EncryptedPrivateKey=l;var u=r.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.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var d=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d;var f=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},8782:function(e,t,n){"use strict";var r=n(7160),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),d=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),f=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=r.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(u),this.key("validity").use(d),this.key("subject").use(u),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(f).optional())})),h=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=h},6501:function(e,t,n){var r=/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=n(8368),s=n(6594),c=n(5055).Buffer;e.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var d="aes"+u[1],f=c.from(u[2],"hex"),p=c.from(u[3].replace(/[\r\n]/g,""),"base64"),h=a(t,f.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(d,h,f);m.push(g.update(p)),m.push(g.final()),n=c.concat(m)}else{var v=l.match(o);n=new c(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},9902:function(e,t,n){var r=n(8687),i=n(2510),o=n(6501),a=n(6594),s=n(4978),c=n(5055).Buffer;function l(e){var t;"object"!==typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=c.from(e));var n,i,a=o(e,t),s=a.tag,l=a.data;switch(s){case"CERTIFICATE":i=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=r.PublicKey.decode(l,"der")),n=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.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=r.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+s);case"ENCRYPTED PRIVATE KEY":l=u(l=r.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(n=(i=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:r.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=r.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+s);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+s)}}function u(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,n,r,d,"sha1"),p=a.createDecipheriv(o,f,l),h=[];return h.push(p.update(u)),h.push(p.final()),c.concat(h)}e.exports=l,l.signature=r.signature},4978:function(e,t,n){var r=n(6113),i=n(5349),o=n(7007),a=n(5407);r.pbkdf2Sync&&-1!==r.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=function(e,t,n,s,c){return i(n,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),c=c||"sha1",r.pbkdf2Sync(e,t,n,s,c)},t.pbkdf2=function(e,t,n,s,c,l){if(i(n,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"===typeof c&&(l=c,c="sha1"),"function"!==typeof l)throw new Error("No callback provided to pbkdf2");return r.pbkdf2(e,t,n,s,c,l)}):(t.pbkdf2Sync=n(2127),t.pbkdf2=n(9601))},9601:function(e,t,r){var o,a=r(5055).Buffer,s=r(5349),c=r(7007),l=r(2127),u=r(5407),d=n.g.crypto&&n.g.crypto.subtle,f={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"},p=[];function h(e){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==p[e])return p[e];var t=m(o=o||a.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return p[e]=t,t}function m(e,t,n,r,i){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}e.exports=function(e,t,r,o,a,d){"function"===typeof a&&(d=a,a=void 0);var p=f[(a=a||"sha1").toLowerCase()];if(!p||"function"!==typeof n.g.Promise)return i.nextTick((function(){var n;try{n=l(e,t,r,o,a)}catch(e){return d(e)}d(null,n)}));if(s(r,o),e=u(e,c,"Password"),t=u(t,c,"Salt"),"function"!==typeof d)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){i.nextTick((function(){t(null,e)}))}),(function(e){i.nextTick((function(){t(e)}))}))}(h(p).then((function(n){return n?m(e,t,r,o,p):l(e,t,r,o,a)})),d)}},7007:function(e){var t;t="utf-8",e.exports=t},5349:function(e){var t=Math.pow(2,30)-1;e.exports=function(e,n){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof n)throw new TypeError("Key length not a number");if(n<0||n>t||n!==n)throw new TypeError("Bad key length")}},2127:function(e,t,n){var r={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=n(4873),o=n(5055).Buffer,a=n(5349),s=n(7007),c=n(5407);e.exports=function(e,t,n,l,u){a(n,l),e=c(e,s,"Password"),t=c(t,s,"Salt"),u=u||"sha1";var d=o.allocUnsafe(l),f=o.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var p=0,h=r[u],m=Math.ceil(l/h),g=1;g<=m;g++){f.writeUInt32BE(g,t.length);for(var v=i(u,e).update(f).digest(),y=v,b=1;bf||new a(t).cmp(c.modulus)>=0)throw new Error("decryption error");o=n?l(new a(t),c):s(t,c);var p=u.alloc(f-o.length);if(o=u.concat([p,o],f),4===i)return d(c,o);if(1===i)return function(e,t,n){var r=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,o,n);if(3===i)return o;throw new Error("unknown padding")}},3995:function(e,t,n){var r=n(9902),i=n(7223),o=n(9739),a=n(5520),s=n(6386),c=n(711),l=n(1607),u=n(7166),d=n(5055).Buffer;function f(e,t){var n=e.modulus.byteLength(),r=t.length,l=o("sha1").update(d.alloc(0)).digest(),u=l.length,f=2*u;if(r>n-f-2)throw new Error("message too long");var p=d.alloc(n-r-f-2),h=n-u-1,m=i(u),g=s(d.concat([l,p,d.alloc(1,1),t],h),a(m,h)),v=s(m,a(g,u));return new c(d.concat([d.alloc(1),v,g],n))}function p(e){for(var t,n=d.allocUnsafe(e),r=0,o=i(2*e),a=0;ro-11)throw new Error("message too long");r=n?d.alloc(o-i-3,255):p(o-i-3);return new c(d.concat([d.from([0,n?1:2]),r,d.alloc(1),t],o))}(a,t,n);else{if(3!==i)throw new Error("unknown padding");if((o=new c(t)).cmp(a.modulus)>=0)throw new Error("data too long for modulus")}return n?u(o,a):l(o,a)}},1607:function(e,t,n){var r=n(711),i=n(5055).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var n=e.length,r=-1;++ra)throw new RangeError("requested too many random bytes");var n=s.allocUnsafe(e);if(e>0)if(e>o)for(var r=0;ru||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function f(e,t,n){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function p(e,t,n,r){var o=e.buffer,a=new Uint8Array(o,t,n);return l.getRandomValues(a),r?void i.nextTick((function(){r(null,e)})):e}l&&l.getRandomValues?(t.randomFill=function(e,t,r,i){if(!s.isBuffer(e)&&!(e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof t)i=t,t=0,r=e.length;else if("function"===typeof r)i=r,r=e.length-t;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return d(t,e.length),f(r,t,e.length),p(e,t,r,i)},t.randomFillSync=function(e,t,r){"undefined"===typeof t&&(t=0);if(!s.isBuffer(e)&&!(e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(t,e.length),void 0===r&&(r=e.length-t);return f(r,t,e.length),p(e,t,r)}):(t.randomFill=o,t.randomFillSync=o)},4646:function(e){"use strict";const t={};function n(e,n,r){function i(e,t,r){return"string"===typeof n?n:n(e,t,r)}r||(r=Error);class o extends r{constructor(e,t,n){super(i(e,t,n))}}o.prototype.name=r.name,o.prototype.code=e,t[e]=o}function r(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){let i,o;if("string"===typeof t&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o=`The ${e} ${i} ${r(t,"type")}`;else{const n=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";o=`The "${e}" ${n} ${i} ${r(t,"type")}`}return o+=". Received type "+typeof n,o}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,n){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var o=n(1709),a=n(7337);n(3782)(u,o);for(var s=r(a.prototype),c=0;c0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)a.endEmitted?A(e,new S):_(e,a,t,!0);else if(a.ended)A(e,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):P(e,a)):_(e,a,t,!1)}else r||(a.reading=!1,P(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(M,e))}function M(e){var t=e._readableState;u("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,F(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){u("readable nexttick read 0"),e.read(0)}function L(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function B(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(V,t,e))}function V(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function $(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):T(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){A(this,new k("_read()"))},N.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,u("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:v;function s(e,t){u("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){u("onend"),e.end()}r.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",l);var d=!1;function f(){u("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",v),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function p(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==$(r.pipes,e))&&!d&&(u("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){u("onerror",t),v(),e.removeListener("error",h),0===a(e,"error")&&A(e,t)}function m(){e.removeListener("finish",g),v()}function g(){u("onfinish"),e.removeListener("close",m),v()}function v(){u("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",m),e.once("finish",g),e.emit("pipe",n),r.flowing||(u("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u("on readable",r.length,r.reading),r.length?T(this):r.reading||i.nextTick(R,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(D,this),n},N.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(D,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(L,e,t))}(this,e)),e.paused=!1,this},N.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!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-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,n){n(new g("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=f.destroy,N.prototype._undestroy=f.undestroy,N.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(9698),s=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[s]=null,e[c]=null,t(h(n,!1)))}}function g(e){i.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(h(void 0,!0)):t[f](n,r)}),r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[d]=n,n}},o(r,Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),v);e.exports=function(e){var t,n=Object.create(y,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(h(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[s]=null,n[c]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[d]=null,n[s]=null,n[c]=null,r(h(void 0,!0))),n[u]=!0})),e.on("readable",g.bind(null,n)),n}},4379:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?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,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t=a.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return t.reduce(u)}},6776:function(e,t,n){"use strict";var r=n(4646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},4678:function(e,t,n){e.exports=n(2781)},3726:function(e,t,n){var r=n(2781);"disable"===i.env.READABLE_STREAM&&r?(e.exports=r.Readable,Object.assign(e.exports,r),e.exports.Stream=r):((t=e.exports=n(1709)).Stream=r||t,t.Readable=t,t.Writable=n(7337),t.Duplex=n(2403),t.Transform=n(1170),t.PassThrough=n(7889),t.finished=n(9698),t.pipeline=n(8442))},3225:function(e,t,n){"use strict";var r=n(4300).Buffer,i=n(3782),o=n(9029),a=new 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],c=[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],u=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<>>32-t}function m(e,t,n,r,i,o,a,s){return h(e+(t^n^r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return h(e+(t&n|~t&r)+o+a|0,s)+i|0}function v(e,t,n,r,i,o,a,s){return h(e+((t|~n)^r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return h(e+(t&r|n&~r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return h(e+(t^(n|~r))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,w=0|this._a,k=0|this._b,S=0|this._c,A=0|this._d,x=0|this._e,E=0;E<80;E+=1){var N,C;E<16?(N=m(n,r,i,o,p,e[s[E]],d[0],l[E]),C=b(w,k,S,A,x,e[c[E]],f[0],u[E])):E<32?(N=g(n,r,i,o,p,e[s[E]],d[1],l[E]),C=y(w,k,S,A,x,e[c[E]],f[1],u[E])):E<48?(N=v(n,r,i,o,p,e[s[E]],d[2],l[E]),C=v(w,k,S,A,x,e[c[E]],f[2],u[E])):E<64?(N=y(n,r,i,o,p,e[s[E]],d[3],l[E]),C=g(w,k,S,A,x,e[c[E]],f[3],u[E])):(N=b(n,r,i,o,p,e[s[E]],d[4],l[E]),C=m(w,k,S,A,x,e[c[E]],f[4],u[E])),n=p,p=o,o=h(i,10),i=r,r=N,w=x,x=A,A=h(S,10),S=k,k=C}var _=this._b+i+A|0;this._b=this._c+o+x|0,this._c=this._d+p+w|0,this._d=this._e+n+k|0,this._e=this._a+r+S|0,this._a=_},p.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=r.alloc?r.alloc(20):new r(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=p},5055:function(e,t,n){var r=n(4300),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2858:function(e,t,n){var r=n(5055).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,n){var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(4018),r.sha1=n(4179),r.sha224=n(532),r.sha256=n(1843),r.sha384=n(7455),r.sha512=n(9934)},4018:function(e,t,n){var r=n(3782),i=n(2858),o=n(5055).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var p=~~(f/20),h=l(n)+d(p,r,i,o)+s+t[f]+a[p]|0;s=o,o=i,i=u(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.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=c},4179:function(e,t,n){var r=n(3782),i=n(2858),o=n(5055).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=l(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var p=0;p<80;++p){var h=~~(p/20),m=u(n)+f(h,r,i,o)+s+t[p]+a[h]|0;s=o,o=i,i=d(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.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=c},532:function(e,t,n){var r=n(3782),i=n(1843),o=n(2858),a=n(5055).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.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=c},1843:function(e,t,n){var r=n(3782),i=n(2858),o=n(5055).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function h(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)t[v]=e.readInt32BE(4*v);for(;v<64;++v)t[v]=h(t[v-2])+t[v-7]+p(t[v-15])+t[v-16]|0;for(var y=0;y<64;++y){var b=g+f(s)+l(s,c,m)+a[y]+t[y]|0,w=d(n)+u(n,r,i)|0;g=m,m=c,c=s,s=o+b|0,o=i,i=r,r=n,n=b+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.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=c},7455:function(e,t,n){var r=n(3782),i=n(9934),o=n(2858),a=n(5055).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},9934:function(e,t,n){var r=n(3782),i=n(2858),o=n(5055).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(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 v(e,t){return e>>>0>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,b=0|this._hh,w=0|this._al,k=0|this._bl,S=0|this._cl,A=0|this._dl,x=0|this._el,E=0|this._fl,N=0|this._gl,C=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var O=t[_-30],I=t[_-30+1],T=p(O,I),M=h(I,O),P=m(O=t[_-4],I=t[_-4+1]),j=g(I,O),D=t[_-14],R=t[_-14+1],L=t[_-32],F=t[_-32+1],z=M+R|0,B=T+D+v(z,M)|0;B=(B=B+P+v(z=z+j|0,j)|0)+L+v(z=z+F|0,F)|0,t[_]=B,t[_+1]=z}for(var V=0;V<160;V+=2){B=t[V],z=t[V+1];var $=u(n,r,i),U=u(w,k,S),q=d(n,w),Q=d(w,n),G=f(s,x),H=f(x,s),W=a[V],Z=a[V+1],K=l(s,c,y),Y=l(x,E,N),J=C+H|0,X=b+G+v(J,C)|0;X=(X=(X=X+K+v(J=J+Y|0,Y)|0)+W+v(J=J+Z|0,Z)|0)+B+v(J=J+z|0,z)|0;var ee=Q+U|0,te=q+$+v(ee,Q)|0;b=y,C=N,y=c,N=E,c=s,E=x,s=o+X+v(x=A+J|0,A)|0,o=i,A=S,i=r,S=k,r=n,k=w,n=X+te+v(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+k|0,this._cl=this._cl+S|0,this._dl=this._dl+A|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+N|0,this._hl=this._hl+C|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,k)|0,this._ch=this._ch+i+v(this._cl,S)|0,this._dh=this._dh+o+v(this._dl,A)|0,this._eh=this._eh+s+v(this._el,x)|0,this._fh=this._fh+c+v(this._fl,E)|0,this._gh=this._gh+y+v(this._gl,N)|0,this._hh=this._hh+b+v(this._hl,C)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+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=c},3704:function(e,t,n){"use strict";var r=n(5055).Buffer,i=r.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;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)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}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.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(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return e.apply(this,arguments)}}},4300:function(e){"use strict";e.exports=n(48834)},6113:function(e){"use strict";e.exports=n(71941)},2361:function(e){"use strict";e.exports=n(22699)},2781:function(e){"use strict";e.exports=n(37518)},1576:function(e){"use strict";e.exports=n(30214)},3837:function(e){"use strict";e.exports=n(43335)},6144:function(e){"use strict";e.exports=n(64339)},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":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"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"}')}},o={};function a(e){var n=o[e];if(void 0!==n)return n.exports;var r=o[e]={id:e,loaded:!1,exports:{}},i=!0;try{t[e].call(r.exports,r,r.exports,a),i=!1}finally{i&&delete o[e]}return r.loaded=!0,r.exports}a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},a.ab="//";var s={};!function(){"use strict";var e=s;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=a(7223),e.createHash=e.Hash=a(9739),e.createHmac=e.Hmac=a(4873);var t=a(9276),n=Object.keys(t),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);e.getHashes=function(){return r};var i=a(4978);e.pbkdf2=i.pbkdf2,e.pbkdf2Sync=i.pbkdf2Sync;var o=a(8996);e.Cipher=o.Cipher,e.createCipher=o.createCipher,e.Cipheriv=o.Cipheriv,e.createCipheriv=o.createCipheriv,e.Decipher=o.Decipher,e.createDecipher=o.createDecipher,e.Decipheriv=o.Decipheriv,e.createDecipheriv=o.createDecipheriv,e.getCiphers=o.getCiphers,e.listCiphers=o.listCiphers;var c=a(6587);e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=a(4078);e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=a(9942);var u=a(9783);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var d=a(6445);e.randomFill=d.randomFill,e.randomFillSync=d.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},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=s}()},20385:function(){},37518:function(e,t,n){var r=n(34406);!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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},646:function(e){"use strict";const t={};function n(e,n,r){function i(e,t,r){return"string"===typeof n?n:n(e,t,r)}r||(r=Error);class o extends r{constructor(e,t,n){super(i(e,t,n))}}o.prototype.name=r.name,o.prototype.code=e,t[e]=o}function r(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){let i,o;if("string"===typeof t&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o=`The ${e} ${i} ${r(t,"type")}`;else{const n=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";o=`The "${e}" ${n} ${i} ${r(t,"type")}`}return o+=". Received type "+typeof n,o}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,n){"use strict";var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var o=n(709),a=n(337);n(782)(u,o);for(var s=i(a.prototype),c=0;c0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)a.endEmitted?A(e,new S):_(e,a,t,!0);else if(a.ended)A(e,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):P(e,a)):_(e,a,t,!1)}else r||(a.reading=!1,P(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(M,e))}function M(e){var t=e._readableState;u("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,F(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){u("readable nexttick read 0"),e.read(0)}function L(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function B(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(V,t,e))}function V(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function $(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):T(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){A(this,new k("_read()"))},N.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:v;function s(e,t){u("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){u("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",s);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",l);var d=!1;function f(){u("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",v),n.removeListener("data",p),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function p(t){u("ondata");var r=e.write(t);u("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==$(i.pipes,e))&&!d&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(t){u("onerror",t),v(),e.removeListener("error",h),0===a(e,"error")&&A(e,t)}function m(){e.removeListener("finish",g),v()}function g(){u("onfinish"),e.removeListener("close",m),v()}function v(){u("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",m),e.once("finish",g),e.emit("pipe",n),i.flowing||(u("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?T(this):i.reading||r.nextTick(R,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(D,this),n},N.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(D,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(L,e,t))}(this,e)),e.paused=!1,this},N.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(t.push(i)||(r=!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-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,n){n(new g("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=f.destroy,N.prototype._undestroy=f.undestroy,N.prototype._destroy=function(e,t){t(e)}},871:function(e,t,n){"use strict";var i;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(698),s=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[s]=null,e[c]=null,t(h(n,!1)))}}function g(e){r.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,i=this[d];if(i)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(h(void 0,!0)):t[f](n,r)}),r)}}(i,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[d]=n,n}},o(i,Symbol.asyncIterator,(function(){return this})),o(i,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),i),v);e.exports=function(e){var t,n=Object.create(y,(o(t={},p,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(h(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[s]=null,n[c]=null,t(e)),void(n[l]=e)}var r=n[s];null!==r&&(n[d]=null,n[s]=null,n[c]=null,r(h(void 0,!0))),n[u]=!0})),e.on("readable",g.bind(null,n)),n}},379:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n0?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,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t=a.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return t.reduce(u)}},776:function(e,t,n){"use strict";var r=n(646).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,n){e.exports=n(781)},55:function(e,t,n){var r=n(300),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},173:function(e,t,n){e.exports=i;var r=n(361).EventEmitter;function i(){r.call(this)}n(782)(i,r),i.Readable=n(709),i.Writable=n(337),i.Duplex=n(403),i.Transform=n(170),i.PassThrough=n(889),i.finished=n(698),i.pipeline=n(442),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},704:function(e,t,n){"use strict";var r=n(55).Buffer,i=r.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;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)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}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.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(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,n){if(t("noDeprecation"))return e;var r=!1;return function(){if(!r){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=n(48834)},361:function(e){"use strict";e.exports=n(22699)},781:function(e){"use strict";e.exports=n(22699).EventEmitter},837:function(e){"use strict";e.exports=n(43335)}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}},a=!0;try{t[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="//";var a=o(173);e.exports=a}()},64339:function(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 n=0;n65535&&(N+=u((S-=65536)>>>10|55296),S=56320|1023&S),S=N+u(S))):I!==p&&x(4,j)),S?(te(),M=X(),H=D-1,Z+=D-O+1,J.push(S),(P=X()).offset++,z&&z.call($,S,{start:M,end:P},e.slice(O-1,D)),M=P):(f=e.slice(O-1,D),Y+=f,Z+=f.length,H=D-1)}else 10===k&&(K++,W++,Z=0),k===k?(Y+=u(k),Z++):te();return J.join("");function X(){return{line:K,column:Z,offset:H+(q.offset||0)}}function ee(e,t){var n=X();n.column+=t,n.offset+=t,B.call(U,y[e],n,e)}function te(){Y&&(J.push(Y),F&&F.call(V,Y,{start:M,end:X()}),Y="")}}(e,a)};var l={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",h="hexadecimal",m="decimal",g={hexadecimal:16,decimal:10},v={};v.named=s,v[m]=o,v[h]=a;var y={};function b(e){return e>=55296&&e<=57343||e>1114111}function w(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},35962:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},34406:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var n=1;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&l){var d=s?" disabled":"",f="".concat(c?" selected":"").concat(d);return"".concat(o).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},x=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,p=c.inputValue,h=c.isMulti,g=c.isOptionDisabled,y=c.isSearchable,b=c.menuIsOpen,w=c.options,k=c.screenReaderStatus,x=c.tabSelectsValue,E=c.isLoading,N=c["aria-label"],C=c["aria-live"],_=(0,m.useMemo)((function(){return(0,i.Z)((0,i.Z)({},A),d||{})}),[d]),O=(0,m.useMemo)((function(){var e,n="";if(t&&_.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,l=t.value,u=a||r||(e=l,Array.isArray(e)?null:e),d=u?f(u):"",p=o||c||void 0,h=p?p.map(f):[],m=(0,i.Z)({isDisabled:u&&g(u,s),label:d,labels:h},t);n=_.onChange(m)}return n}),[t,_,g,s,f]),I=(0,m.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&_.onFocus){var a={focused:t,label:f(t),isDisabled:g(t,s),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=_.onFocus(a)}return e}),[n,r,f,g,_,o,s,u]),T=(0,m.useMemo)((function(){var e="";if(b&&w.length&&!E&&_.onFilter){var t=k({count:o.length});e=_.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,b,_,w,k,E]),M="initial-input-focus"===(null===t||void 0===t?void 0:t.action),P=(0,m.useMemo)((function(){var e="";if(_.guidance){var t=r?"value":b?"menu":"input";e=_.guidance({"aria-label":N,context:t,isDisabled:n&&g(n,s),isMulti:h,isSearchable:y,tabSelectsValue:x,isInitialFocus:M})}return e}),[N,n,r,h,g,y,b,_,s,x,M]),j=(0,v.tZ)(m.Fragment,null,(0,v.tZ)("span",{id:"aria-selection"},O),(0,v.tZ)("span",{id:"aria-focused"},I),(0,v.tZ)("span",{id:"aria-results"},T),(0,v.tZ)("span",{id:"aria-guidance"},P));return(0,v.tZ)(m.Fragment,null,(0,v.tZ)(S,{id:l},M&&j),(0,v.tZ)(S,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!M&&j))},E=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],N=new RegExp("["+E.map((function(e){return e.letters})).join("")+"]","g"),C={},_=0;_0,m=d-f-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(o&&o(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,o]),d=(0,m.useCallback)((function(e){u(e,e.deltaY)}),[u]),f=(0,m.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,m.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)}),[u]),h=(0,m.useCallback)((function(e){if(e){var t=!!g.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),v=(0,m.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,m.useEffect)((function(){if(t){var e=l.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,m.useRef)({}),o=(0,m.useRef)(null),a=(0,m.useCallback)((function(e){if(U){var t=document.body,n=t&&t.style;if(r&&L.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&q<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(F).forEach((function(e){var t=F[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&$()&&(t.addEventListener("touchmove",z,Q),e&&(e.addEventListener("touchstart",V,Q),e.addEventListener("touchmove",B,Q))),q+=1}}),[r]),s=(0,m.useCallback)((function(e){if(U){var t=document.body,n=t&&t.style;q=Math.max(q-1,0),r&&q<1&&L.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&$()&&(t.removeEventListener("touchmove",z,Q),e&&(e.removeEventListener("touchstart",V,Q),e.removeEventListener("touchmove",B,Q)))}}),[r]);return(0,m.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return(0,v.tZ)(m.Fragment,null,n&&(0,v.tZ)("div",{onClick:G,css:H}),t((function(e){i(e),o(e)})))}var Z={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},K=function(e){var t=e.name,n=e.onFocus;return(0,v.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Z,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function J(){return Y(/^Mac/i)}function X(){return Y(/^iPhone/i)||Y(/^iPad/i)||J()&&navigator.maxTouchPoints>1}var ee={clearIndicator:g.a,container:g.b,control:g.d,dropdownIndicator:g.e,group:g.g,groupHeading:g.f,indicatorsContainer:g.i,indicatorSeparator:g.h,input:g.j,loadingIndicator:g.l,loadingMessage:g.k,menu:g.m,menuList:g.n,menuPortal:g.o,multiValue:g.p,multiValueLabel:g.q,multiValueRemove:g.t,noOptionsMessage:g.u,option:g.v,placeholder:g.w,singleValue:g.x,valueContainer:g.y};var te,ne={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},re={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,g.z)(),captureMenuScroll:!(0,g.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:j,trim:!0,matchFrom:"any"},te),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,s=n.trim,c=n.matchFrom,l=s?P(t):t,u=s?P(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=M(l),u=T(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,g.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ie(e,t,n,r){return{type:"option",data:t,isDisabled:fe(e,t,n),isSelected:pe(e,t,n),label:ue(e,t),value:de(e,t),index:r}}function oe(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return ie(e,n,t,r)})).filter((function(t){return ce(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ie(e,n,t,r);return ce(e,o)?o:void 0})).filter(g.K)}function ae(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,h(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function se(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,h(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ce(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!me(e)||!o)&&he(e,{label:a,value:s,data:i},r)}var le=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ue=function(e,t){return e.getOptionLabel(t)},de=function(e,t){return e.getOptionValue(t)};function fe(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function pe(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=de(e,t);return n.some((function(t){return de(e,t)===r}))}function he(e,t,n){return!e.filterOption||e.filterOption(t,n)}var me=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ge=1,ve=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,o,u=function(e){var t=l();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}(f);function f(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=J()||X(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue((0,g.B)(a.filter((function(e){return t.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(c)return void t.ariaOnChange((0,g.C)(e),{action:"select-option",option:e,name:o});i?t.setValue((0,g.B)([].concat(h(a),[e])),"select-option",e):t.setValue((0,g.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),a=(0,g.D)(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,g.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=(0,g.D)(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return le(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return se(oe(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return me(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!c&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||f&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ge),t.state.selectValue=(0,g.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=le(n,r[o])}return t}return t=f,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,g.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,g.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(ne):(0,i.Z)((0,i.Z)({},ne),this.props.theme):ne}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return pe(this.props,e,t)}},{key:"filterOption",value:function(e,t){return he(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,c=e.form,l=e.menuIsOpen,u=e.required,d=this.getComponents().Input,f=this.state,p=f.inputIsHidden,h=f.ariaSelection,v=this.commonProps,y=o||this.getElementId("input"),b=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===h||void 0===h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?m.createElement(d,(0,r.Z)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:a},b)):m.createElement(R,(0,r.Z)({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:c,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,g=u.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return h?null:m.createElement(c,(0,r.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(p)return y.map((function(t,s){var c=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return m.createElement(n,(0,r.Z)({},l,{components:{Container:i,Label:o,Remove:a},isFocused:c,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var k=y[0];return m.createElement(s,(0,r.Z)({},l,{data:k,isDisabled:f}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,r.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?m.createElement(e,(0,r.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return m.createElement(n,(0,r.Z)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,r.Z)({},t,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,o=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,v=p.inputValue,y=p.isLoading,b=p.loadingMessage,w=p.minMenuHeight,k=p.maxMenuHeight,S=p.menuIsOpen,A=p.menuPlacement,x=p.menuPosition,E=p.menuPortalTarget,N=p.menuShouldBlockScroll,C=p.menuShouldScrollIntoView,_=p.noOptionsMessage,O=p.onMenuScrollToTop,I=p.onMenuScrollToBottom;if(!S)return null;var T,M=function(t,n){var i=t.type,o=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,p=f===o,h=a?void 0:function(){return e.onOptionHover(o)},g=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:g,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return m.createElement(u,(0,r.Z)({},d,{innerProps:y,data:o,isDisabled:a,isSelected:s,key:v,label:c,type:i,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return m.createElement(n,(0,r.Z)({},d,{key:c,data:o,options:a,Heading:i,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(y){var P=b({inputValue:v});if(null===P)return null;T=m.createElement(c,d,P)}else{var j=_({inputValue:v});if(null===j)return null;T=m.createElement(l,d,j)}var D={minMenuHeight:w,maxMenuHeight:k,menuPlacement:A,menuPosition:x,menuShouldScrollIntoView:C},R=m.createElement(g.M,(0,r.Z)({},d,D),(function(t){var n=t.ref,i=t.placerProps,s=i.placement,c=i.maxHeight;return m.createElement(o,(0,r.Z)({},d,D,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),m.createElement(W,{captureEnabled:h,onTopArrive:O,onBottomArrive:I,lockEnabled:N},(function(t){return m.createElement(a,(0,r.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:y,maxHeight:c,focusedOption:f}),T)})))}));return E||"fixed"===x?m.createElement(s,(0,r.Z)({},d,{appendTo:E,controlElement:this.controlRef,menuPlacement:A,menuPosition:x}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return m.createElement(K,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return m.createElement("input",{name:o,type:"hidden",value:c})}var l=s.length>0?s.map((function(t,n){return m.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):m.createElement("input",{name:o,type:"hidden",value:""});return m.createElement("div",null,l)}var u=s[0]?this.getOptionValue(s[0]):"";return m.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return m.createElement(x,(0,r.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return m.createElement(i,(0,r.Z)({},f,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),m.createElement(t,(0,r.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),m.createElement(o,(0,r.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(n,(0,r.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,c=t.prevWasFocused,l=t.instancePrefix,u=e.options,d=e.value,f=e.menuIsOpen,p=e.inputValue,h=e.isMulti,m=(0,g.H)(d),v={};if(n&&(d!==n.value||u!==n.options||f!==n.menuIsOpen||p!==n.inputValue)){var y=f?function(e,t){return ae(oe(e,t))}(e,m):[],b=f?se(oe(e,m),"".concat(l,"-option")):[],w=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,y);v={selectValue:m,focusedOption:k,focusedOptionId:le(b,k),focusableOptionsWithIds:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var S=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},A=a,x=s&&c;return s&&!x&&(A={value:(0,g.D)(h,m,m[0]||null),options:m,action:"initial-input-focus"},x=!c),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(A=null),(0,i.Z)((0,i.Z)((0,i.Z)({},v),S),{},{prevProps:e,ariaSelection:A,prevWasFocused:x})}}],n&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),f}(m.Component);ve.defaultProps=re},68020:function(e,t,n){"use strict";n.d(t,{A:function(){return te},B:function(){return le},C:function(){return ce},D:function(){return se},E:function(){return U},F:function(){return lt},G:function(){return W},H:function(){return q},I:function(){return X},J:function(){return V},K:function(){return ae},L:function(){return H},M:function(){return ye},a:function(){return Fe},b:function(){return Ee},c:function(){return ct},d:function(){return Ue},e:function(){return Le},f:function(){return He},g:function(){return Ge},h:function(){return ze},i:function(){return Ce},j:function(){return Ke},k:function(){return Ae},l:function(){return Ve},m:function(){return ge},n:function(){return we},o:function(){return xe},p:function(){return et},q:function(){return tt},r:function(){return ue},s:function(){return oe},t:function(){return nt},u:function(){return Se},v:function(){return ot},w:function(){return at},x:function(){return st},y:function(){return Ne},z:function(){return ee}});var r=n(33028),i=n(7896),o=n(42363),a=n(12215),s=n(99980),c=n(86522);var l=n(56666),u=n(2784),d=n(28316);const f=Math.min,p=Math.max,h=Math.round,m=Math.floor,g=e=>({x:e,y:e});function v(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function y(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function b(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function w(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof b(e).Node}function S(e){return e instanceof Element||e instanceof b(e).Element}function A(e){return e instanceof HTMLElement||e instanceof b(e).HTMLElement}function x(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof b(e).ShadowRoot)}function E(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function N(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function C(e){return["html","body","#document"].includes(y(e))}function _(e){return b(e).getComputedStyle(e)}function O(e){if("html"===y(e))return e;const t=e.assignedSlot||e.parentNode||x(e)&&e.host||w(e);return x(t)?t.host:t}function I(e){const t=O(e);return C(t)?e.ownerDocument?e.ownerDocument.body:e.body:A(t)&&E(t)?t:I(t)}function T(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=I(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=b(i);return o?t.concat(a,a.visualViewport||[],E(i)?i:[],a.frameElement&&n?T(a.frameElement):[]):t.concat(i,T(i,[],n))}function M(e){const t=_(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=A(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=h(n)!==o||h(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function P(e){return S(e)?e:e.contextElement}function j(e){const t=P(e);if(!A(t))return g(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=M(t);let a=(o?h(n.width):n.width)/r,s=(o?h(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const D=g(0);function R(e){const t=b(e);return N()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:D}function L(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=P(e);let a=g(1);t&&(r?S(r)&&(a=j(r)):a=j(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==b(e))&&t}(o,n,r)?R(o):g(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=b(o),t=r&&S(r)?b(r):r;let n=e,i=n.frameElement;for(;i&&r&&t!==n;){const e=j(i),t=i.getBoundingClientRect(),r=_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=o,l+=a,n=b(i),i=n.frameElement}}return v({width:u,height:d,x:c,y:l})}function F(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:c=!1}=r,l=P(e),u=i||o?[...l?T(l):[],...T(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,r=null;const i=w(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g={rootMargin:-m(u)+"px "+-m(i.clientWidth-(l+d))+"px "+-m(i.clientHeight-(u+h))+"px "+-m(l)+"px",threshold:p(0,f(1,c))||1};let v=!0;function y(e){const t=e[0].intersectionRatio;if(t!==c){if(!v)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(b){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),o}(l,n):null;let h,g=-1,v=null;a&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),l&&!c&&v.observe(l),v.observe(t));let y=c?L(e):null;return c&&function t(){const r=L(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n();y=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(h)}}var z=n(84337),B=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],V=function(){};function $(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function U(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Z(e){return W(e)?window.pageYOffset:e.scrollTop}function K(e,t){W(e)?window.scrollTo(0,t):e.scrollTop=t}function Y(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:V,i=Z(e),o=t-i,a=10,s=0;function c(){var t=Y(s+=a,i,o,n);K(e,t),sn.bottom?K(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?t-1:0),r=1;r=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return o&&J(c,E,C),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&S>=r)return o&&J(c,E,C),{placement:"bottom",maxHeight:a?S-b:x-b};if("auto"===i||a){var _=t,O=a?k:A;return O>=r&&(_=Math.min(O-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===i)return o&&K(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(A>=h&&!a)return o&&J(c,N,C),{placement:"top",maxHeight:t};if(!a&&A>=r||a&&k>=r){var I=t;return(!a&&A>=r||a&&k>=r)&&(I=a?k-w:A-w),o&&J(c,N,C),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var he,me=function(e){return"auto"===e?"bottom":e},ge=function(e,t){var n,i=e.placement,o=e.theme,a=o.borderRadius,s=o.spacing,c=o.colors;return(0,r.Z)((n={label:"menu"},(0,l.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),(0,l.Z)(n,"position","absolute"),(0,l.Z)(n,"width","100%"),(0,l.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ve=(0,u.createContext)(null),ye=function(e){var t=e.children,n=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,c=e.menuShouldScrollIntoView,l=e.theme,d=((0,u.useContext)(ve)||{}).setPortalPlacement,f=(0,u.useRef)(null),p=(0,u.useState)(i),h=(0,a.Z)(p,2),m=h[0],g=h[1],v=(0,u.useState)(null),y=(0,a.Z)(v,2),b=y[0],w=y[1],k=l.spacing.controlHeight;return(0,z.Z)((function(){var e=f.current;if(e){var t="fixed"===s,r=pe({maxHeight:i,menuEl:e,minHeight:n,placement:o,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:k});g(r.maxHeight),w(r.placement),null===d||void 0===d||d(r.placement)}}),[i,o,s,c,n,d,k]),t({ref:f,placerProps:(0,r.Z)((0,r.Z)({},e),{},{placement:b||me(o),maxHeight:m})})},be=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"menu",{menu:!0}),{ref:n},r),t)},we=function(e,t){var n=e.maxHeight,i=e.theme.spacing.baseUnit;return(0,r.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},ke=function(e,t){var n=e.theme,i=n.spacing.baseUnit,o=n.colors;return(0,r.Z)({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},Se=ke,Ae=ke,xe=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Ee=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Ne=function(e,t){var n=e.theme.spacing,i=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.Z)({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},Ce=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},_e=["size"],Oe=["innerProps","isRtl","size"];var Ie,Te,Me={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Pe=function(e){var t=e.size,n=(0,s.Z)(e,_e);return(0,o.tZ)("svg",(0,i.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Me},n))},je=function(e){return(0,o.tZ)(Pe,(0,i.Z)({size:20},e),(0,o.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},De=function(e){return(0,o.tZ)(Pe,(0,i.Z)({size:20},e),(0,o.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Re=function(e,t){var n=e.isFocused,i=e.theme,o=i.spacing.baseUnit,a=i.colors;return(0,r.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},Le=Re,Fe=Re,ze=function(e,t){var n=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,a=i.colors;return(0,r.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},Be=(0,o.F4)(he||(Ie=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Te||(Te=Ie.slice(0)),he=Object.freeze(Object.defineProperties(Ie,{raw:{value:Object.freeze(Te)}})))),Ve=function(e,t){var n=e.isFocused,i=e.size,o=e.theme,a=o.colors,s=o.spacing.baseUnit;return(0,r.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},$e=function(e){var t=e.delay,n=e.offset;return(0,o.tZ)("span",{css:(0,o.iv)({animation:"".concat(Be," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ue=function(e,t){var n=e.isDisabled,i=e.isFocused,o=e.theme,a=o.colors,s=o.borderRadius,c=o.spacing;return(0,r.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},qe=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return(0,o.tZ)("div",(0,i.Z)({ref:a},G(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":c}),s,{"aria-disabled":n||void 0}),t)},Qe=["data"],Ge=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},He=function(e,t){var n=e.theme,i=n.colors,o=n.spacing;return(0,r.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},We=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,c=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,f=e.selectProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"group",{group:!0}),l),(0,o.tZ)(s,(0,i.Z)({},c,{selectProps:f,theme:d,getStyles:r,getClassNames:a,cx:n}),u),(0,o.tZ)("div",null,t))},Ze=["innerRef","isDisabled","isHidden","inputClassName"],Ke=function(e,t){var n=e.isDisabled,i=e.value,o=e.theme,a=o.spacing,s=o.colors;return(0,r.Z)((0,r.Z)({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},Je),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ye={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Je={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ye)},Xe=function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ye)},et=function(e,t){var n=e.theme,i=n.spacing,o=n.borderRadius,a=n.colors;return(0,r.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},tt=function(e,t){var n=e.theme,i=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return(0,r.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},nt=function(e,t){var n=e.theme,i=n.spacing,o=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},rt=function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",n,t)};var it=function(e){var t=e.children,n=e.components,i=e.data,a=e.innerProps,s=e.isDisabled,c=e.removeProps,l=e.selectProps,u=n.Container,d=n.Label,f=n.Remove;return(0,o.tZ)(u,{data:i,innerProps:(0,r.Z)((0,r.Z)({},G(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,o.tZ)(d,{data:i,innerProps:(0,r.Z)({},G(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,o.tZ)(f,{data:i,innerProps:(0,r.Z)((0,r.Z)({},G(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},c),selectProps:l}))},ot=function(e,t){var n=e.isDisabled,i=e.isFocused,o=e.isSelected,a=e.theme,s=a.spacing,c=a.colors;return(0,r.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?c.primary:i?c.primary25:"transparent",color:n?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?c.primary:c.primary50}})},at=function(e,t){var n=e.theme,i=n.spacing,o=n.colors;return(0,r.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},st=function(e,t){var n=e.isDisabled,i=e.theme,o=i.spacing,a=i.colors;return(0,r.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ct={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,o.tZ)(je,null))},Control:qe,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,o.tZ)(De,null))},DownChevron:De,CrossIcon:je,Group:We,GroupHeading:function(e){var t=Q(e);t.data;var n=(0,s.Z)(t,Qe);return(0,o.tZ)("div",(0,i.Z)({},G(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,o.tZ)("span",(0,i.Z)({},t,G(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Q(e),a=r.innerRef,c=r.isDisabled,l=r.isHidden,u=r.inputClassName,d=(0,s.Z)(r,Ze);return(0,o.tZ)("div",(0,i.Z)({},G(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,o.tZ)("input",(0,i.Z)({className:t({input:!0},u),ref:a,style:Xe(l),disabled:c},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,c=void 0===a?4:a,l=(0,s.Z)(e,Oe);return(0,o.tZ)("div",(0,i.Z)({},G((0,r.Z)((0,r.Z)({},l),{},{innerProps:t,isRtl:n,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,o.tZ)($e,{delay:0,offset:n}),(0,o.tZ)($e,{delay:160,offset:!0}),(0,o.tZ)($e,{delay:320,offset:!n}))},Menu:be,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,o.tZ)("div",(0,i.Z)({},G(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,c=e.innerProps,l=e.menuPlacement,f=e.menuPosition,p=(0,u.useRef)(null),h=(0,u.useRef)(null),m=(0,u.useState)(me(l)),g=(0,a.Z)(m,2),v=g[0],y=g[1],b=(0,u.useMemo)((function(){return{setPortalPlacement:y}}),[]),w=(0,u.useState)(null),k=(0,a.Z)(w,2),S=k[0],A=k[1],x=(0,u.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===f?0:window.pageYOffset,n=e[v]+t;n===(null===S||void 0===S?void 0:S.offset)&&e.left===(null===S||void 0===S?void 0:S.rect.left)&&e.width===(null===S||void 0===S?void 0:S.rect.width)||A({offset:n,rect:e})}}),[s,f,v,null===S||void 0===S?void 0:S.offset,null===S||void 0===S?void 0:S.rect.left,null===S||void 0===S?void 0:S.rect.width]);(0,z.Z)((function(){x()}),[x]);var E=(0,u.useCallback)((function(){"function"===typeof h.current&&(h.current(),h.current=null),s&&p.current&&(h.current=F(s,p.current,x,{elementResize:"ResizeObserver"in window}))}),[s,x]);(0,z.Z)((function(){E()}),[E]);var N=(0,u.useCallback)((function(e){p.current=e,E()}),[E]);if(!t&&"fixed"!==f||!S)return null;var C=(0,o.tZ)("div",(0,i.Z)({ref:N},G((0,r.Z)((0,r.Z)({},e),{},{offset:S.offset,position:f,rect:S.rect}),"menuPortal",{"menu-portal":!0}),c),n);return(0,o.tZ)(ve.Provider,{value:b},t?(0,d.createPortal)(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,c=(0,s.Z)(e,fe);return(0,o.tZ)("div",(0,i.Z)({},G((0,r.Z)((0,r.Z)({},c),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,c=(0,s.Z)(e,de);return(0,o.tZ)("div",(0,i.Z)({},G((0,r.Z)((0,r.Z)({},c),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:it,MultiValueContainer:rt,MultiValueLabel:rt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({role:"button"},n),t||(0,o.tZ)(je,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,c=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},c),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,o.tZ)("div",(0,i.Z)({},G(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,o.tZ)("div",(0,i.Z)({},G(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return(0,o.tZ)("div",(0,i.Z)({},G(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},lt=function(e){return(0,r.Z)((0,r.Z)({},ct),e.components)}},31776:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});var r=n(88137),i=n(7896),o=n(2784),a=n(28038),s=(n(2107),n(28316),n(84337),(0,o.forwardRef)((function(e,t){var n=(0,r.u)(e);return o.createElement(a.S,(0,i.Z)({ref:t},n))})))},88137:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(33028),i=n(12215),o=n(99980),a=n(2784),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function c(e){var t=e.defaultInputValue,n=void 0===t?"":t,c=e.defaultMenuIsOpen,l=void 0!==c&&c,u=e.defaultValue,d=void 0===u?null:u,f=e.inputValue,p=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,v=e.onMenuOpen,y=e.value,b=(0,o.Z)(e,s),w=(0,a.useState)(void 0!==f?f:n),k=(0,i.Z)(w,2),S=k[0],A=k[1],x=(0,a.useState)(void 0!==p?p:l),E=(0,i.Z)(x,2),N=E[0],C=E[1],_=(0,a.useState)(void 0!==y?y:d),O=(0,i.Z)(_,2),I=O[0],T=O[1],M=(0,a.useCallback)((function(e,t){"function"===typeof h&&h(e,t),T(e)}),[h]),P=(0,a.useCallback)((function(e,t){var n;"function"===typeof m&&(n=m(e,t)),A(void 0!==n?n:e)}),[m]),j=(0,a.useCallback)((function(){"function"===typeof v&&v(),C(!0)}),[v]),D=(0,a.useCallback)((function(){"function"===typeof g&&g(),C(!1)}),[g]),R=void 0!==f?f:S,L=void 0!==p?p:N,F=void 0!==y?y:I;return(0,r.Z)((0,r.Z)({},b),{},{inputValue:R,menuIsOpen:L,onChange:M,onInputChange:P,onMenuClose:D,onMenuOpen:j,value:F})}},38421:function(e,t,n){"use strict";e.exports=n(2784)},77834:function(e,t,n){var r=n(48834),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},47669:function(e,t,n){"use strict";var r=n(67286),i=n(75195),o=n(81181)(),a=n(50326),s=n(5408),c=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},88665:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.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}},7307:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return tn},StyleSheetConsumer:function(){return Nt},StyleSheetContext:function(){return Et},StyleSheetManager:function(){return Ot},ThemeConsumer:function(){return Bt},ThemeContext:function(){return zt},ThemeProvider:function(){return $t},__PRIVATE__:function(){return nn},createGlobalStyle:function(){return Jt},css:function(){return Ht},default:function(){return Kt},isStyledComponent:function(){return We},keyframes:function(){return Xt},styled:function(){return Kt},useTheme:function(){return Vt},version:function(){return de},withTheme:function(){return en}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?S(P,--T):0,O--,10===M&&(O=1,_--),M}function F(){return M=T2||$(M)>3?"":" "}function H(e,t){for(;--t&&F()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return V(e,B()+(t<6&&32==z()&&32==F()))}function W(e){for(;F();)switch(M){case e:return T;case 34:case 39:34!==e&&39!==e&&W(M);break;case 40:41===e&&W(e);break;case 92:F()}return T}function Z(e,t){for(;F()&&e+M!==57&&(e+M!==84||47!==z()););return"/*"+V(t,T-1)+"*"+g(47===e?e:F())}function K(e){for(;!$(z());)F();return V(e,T)}function Y(e,t){for(var n="",r=0;r6)switch(S(e,t+1)){case 109:if(45!==S(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+l+(108==S(e,t+3)?"$3":"$2-$3"))+e;case 115:return~k(e,"stretch",0)?X(w(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return c+n+":"+r+s+(i?c+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===S(e,t+6))return w(e,":",":"+u)+e;break;case 6444:switch(S(e,45===S(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===S(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+c+"$2box$3")+e;case 100:return w(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case p:return void(e.return=X(e.value,e.length,n));case h:return Y([D(e,{value:w(e.value,"@","@"+u)})],r);case f:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(b(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":R(D(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),R(D(e,{props:[t]})),v(e,{props:C(n,r)});break;case"::placeholder":R(D(e,{props:[w(t,/:(plac\w+)/,":-webkit-input-$1")]})),R(D(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),R(D(e,{props:[w(t,/:(plac\w+)/,c+"input-$1")]})),R(D(e,{props:[t]})),v(e,{props:C(n,r)})}return""}))}}function te(e){return q(ne("",null,null,null,[""],e=U(e),0,[0],e))}function ne(e,t,n,r,i,o,a,s,c){for(var l=0,u=0,d=a,f=0,p=0,h=0,v=1,y=1,b=1,A=0,E="",C=i,_=o,O=r,I=E;y;)switch(h=A,A=F()){case 40:if(108!=h&&58==S(I,d-1)){-1!=k(I+=w(Q(A),"&","&\f"),"&\f",m(l?s[l-1]:0))&&(b=-1);break}case 34:case 39:case 91:I+=Q(A);break;case 9:case 10:case 13:case 32:I+=G(h);break;case 92:I+=H(B()-1,7);continue;case 47:switch(z()){case 42:case 47:N(ie(Z(F(),B()),t,n,c),c);break;default:I+="/"}break;case 123*v:s[l++]=x(I)*b;case 125*v:case 59:case 0:switch(A){case 0:case 125:y=0;case 59+u:-1==b&&(I=w(I,/\f/g,"")),p>0&&x(I)-d&&N(p>32?oe(I+";",r,n,d-1,c):oe(w(I," ","")+";",r,n,d-2,c),c);break;case 59:I+=";";default:if(N(O=re(I,t,n,l,u,i,s,E,C=[],_=[],d,o),o),123===A)if(0===u)ne(I,t,O,O,C,o,d,s,_);else switch(99===f&&110===S(I,3)?100:f){case 100:case 108:case 109:case 115:ne(e,O,O,r&&N(re(e,O,O,0,0,i,s,E,i,C=[],d,_),_),i,_,d,s,r?C:_);break;default:ne(I,O,O,O,[""],_,0,s,_)}}l=u=p=0,v=b=1,E=I="",d=a;break;case 58:d=1+x(I),p=h;default:if(v<1)if(123==A)--v;else if(125==A&&0==v++&&125==L())continue;switch(I+=g(A),A*v){case 38:b=u>0?1:(I+="\f",-1);break;case 44:s[l++]=(x(I)-1)*b,b=1;break;case 64:45===z()&&(I+=Q(F())),f=z(),u=d=x(E=I+=K(B())),A++;break;case 45:45===h&&2==x(I)&&(v=0)}}return o}function re(e,t,n,r,i,o,a,s,c,l,u,d){for(var p=i-1,h=0===i?o:[""],g=E(h),v=0,b=0,k=0;v0?h[S]+" "+x:w(x,/&\f/g,h[S])))&&(c[k++]=N);return j(e,t,n,0===i?f:s,c,l,u,d)}function ie(e,t,n,r){return j(e,t,n,d,g(M),A(e,2,-2),0,r)}function oe(e,t,n,r,i){return j(e,t,n,p,A(e,0,r),A(e,r+1,-1),r,i)}var ae={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se=n(34406),ce="undefined"!=typeof se&&void 0!==se.env&&(se.env.REACT_APP_SC_ATTR||se.env.SC_ATTR)||"data-styled",le="active",ue="data-styled-version",de="6.1.8",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof se&&void 0!==se.env&&void 0!==se.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==se.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==se.env.REACT_APP_SC_DISABLE_SPEEDY&&se.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof se&&void 0!==se.env&&void 0!==se.env.SC_DISABLE_SPEEDY&&""!==se.env.SC_DISABLE_SPEEDY&&("false"!==se.env.SC_DISABLE_SPEEDY&&se.env.SC_DISABLE_SPEEDY)),me={},ge=(new Set,Object.freeze([])),ve=Object.freeze({});function ye(e,t,n){return void 0===n&&(n=ve),e.theme!==n.theme&&e.theme||t||n.theme}var be=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Se(e){return e.replace(we,"-").replace(ke,"")}var Ae=/(a)(d)/gi,xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xe(t%52)+n;return(xe(t%52)+n).replace(Ae,"$1-$2")}var Ne,Ce=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_e=function(e){return Ce(5381,e)};function Oe(e){return Ee(_e(e)>>>0)}function Ie(e){return e.displayName||e.name||"Component"}function Te(e){return"string"==typeof e&&!0}var Me="function"==typeof Symbol&&Symbol.for,Pe=Me?Symbol.for("react.memo"):60115,je=Me?Symbol.for("react.forward_ref"):60112,De={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Le={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Ne={})[je]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ne[Pe]=Le,Ne);function ze(e){return("type"in(t=e)&&t.type.$$typeof)===Pe?Le:"$$typeof"in e?Fe[e.$$typeof]:De;var t}var Be=Object.defineProperty,Ve=Object.getOwnPropertyNames,$e=Object.getOwnPropertySymbols,Ue=Object.getOwnPropertyDescriptor,qe=Object.getPrototypeOf,Qe=Object.prototype;function Ge(e,t,n){if("string"!=typeof t){if(Qe){var r=qe(t);r&&r!==Qe&&Ge(e,r,n)}var i=Ve(t);$e&&(i=i.concat($e(t)));for(var o=ze(e),a=ze(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var tt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw et(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(c+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(fe)},o=0;o0?".".concat(t):e},u=c.slice();u.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(bt,n).replace(r,l))})),a.prefix&&u.push(ee),u.push(J);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(wt,""),l=te(o||i?"".concat(o," ").concat(i," { ").concat(c," }"):c);a.namespace&&(l=kt(l,a.namespace));var d,f=[];return Y(l,function(e){var t=E(e);return function(n,r,i,o){for(var a="",s=0;s="A"&&e<="Z"};function Mt(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=Ze(r,o),this.staticRulesId=o}else{for(var s=Ce(this.baseHash,n.hash),c="",l=0;l>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(c,".".concat(f),void 0,this.componentId)),r=Ze(r,f)}}return r},e}(),zt=o.createContext(void 0),Bt=zt.Consumer;function Vt(){var e=(0,o.useContext)(zt);if(!e)throw et(18);return e}function $t(e){var t=o.useContext(zt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw et(14);if(He(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw et(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(zt.Provider,{value:n},e.children):null}var Ut={};new Set;function qt(e,t,n){var i=We(e),a=e,s=!Te(e),c=t.attrs,l=void 0===c?ge:c,u=t.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Se(e);Ut[n]=(Ut[n]||0)+1;var r="".concat(n,"-").concat(Oe(de+n+Ut[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):u,f=t.displayName,p=void 0===f?function(e){return Te(e)?"styled.".concat(e):"Styled(".concat(Ie(e),")")}(e):f,h=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new Ft(n,h,i?a.componentStyle:void 0);function w(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,u=e.target,d=o.useContext(zt),f=_t(),p=e.shouldForwardProp||f.shouldForwardProp,h=ye(t,d,s)||ve,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a2&&yt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Jt(e){for(var t=[],n=1;n").concat(t,"")},this.getStyleTags=function(){if(e.sealed)throw et(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw et(2);var n=((t={})[ce]="",t[ue]=de,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=dt();return i&&(n.nonce=i),[o.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new yt({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw et(2);return o.createElement(Ot,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw et(3)},e}(),nn={StyleSheet:yt,mainSheet:At};"__sc-".concat(ce,"__")},84337:function(e,t,n){"use strict";var r=n(2784).useLayoutEffect;t.Z=r},10082:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},54895:function(e,t,n){"use strict";var r=n(52635),i=n(43138),o=n(32094),a=n(50198);function s(e){return e.call.bind(e)}var c="undefined"!==typeof BigInt,l="undefined"!==typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var h=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(n){return!1}}function v(e){return"[object Map]"===u(e)}function y(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function k(e){return"[object ArrayBuffer]"===u(e)}function S(e){return"undefined"!==typeof ArrayBuffer&&(k.working?k(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===u(e)}function x(e){return"undefined"!==typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=r,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)||x(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)},v.working="undefined"!==typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!==typeof Map&&(v.working?v(e):e instanceof Map)},y.working="undefined"!==typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!==typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!==typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},k.working="undefined"!==typeof ArrayBuffer&&k(new ArrayBuffer),t.isArrayBuffer=S,A.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var E="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function N(e){return"[object SharedArrayBuffer]"===u(e)}function C(e){return"undefined"!==typeof E&&("undefined"===typeof N.working&&(N.working=N(new E)),N.working?N(e):e instanceof E)}function _(e){return g(e,d)}function O(e){return g(e,f)}function I(e){return g(e,p)}function T(e){return c&&g(e,h)}function M(e){return l&&g(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=_,t.isStringObject=O,t.isBooleanObject=I,t.isBigIntObject=T,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return _(e)||O(e)||I(e)||T(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!==typeof Uint8Array&&(S(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},43335:function(e,t,n){var r=n(34406),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=l.styles[t];return n?"\x1b["+l.colors[n][0]+"m"+e+"\x1b["+l.colors[n][1]+"m":e}function d(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return b(i)||(i=f(e,i,r)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(E(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return p(n)}var l,u="",d=!1,S=["{","}"];(m(n)&&(d=!0,S=["[","]"]),E(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return k(n)&&(u=" "+RegExp.prototype.toString.call(n)),A(n)&&(u=" "+Date.prototype.toUTCString.call(n)),x(n)&&(u=" "+p(n)),0!==a.length||d&&0!=n.length?r<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=d?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,u,S)):S[0]+u+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"===typeof e}function v(e){return null===e}function y(e){return"number"===typeof e}function b(e){return"string"===typeof e}function w(e){return void 0===e}function k(e){return S(e)&&"[object RegExp]"===N(e)}function S(e){return"object"===typeof e&&null!==e}function A(e){return S(e)&&"[object Date]"===N(e)}function x(e){return S(e)&&("[object Error]"===N(e)||e instanceof Error)}function E(e){return"function"===typeof e}function N(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}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=n(54895),t.isArray=m,t.isBoolean=g,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=b,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=w,t.isRegExp=k,t.types.isRegExp=k,t.isObject=S,t.isDate=A,t.types.isDate=A,t.isError=x,t.types.isNativeError=x,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(10082);var _=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),_[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(91285),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!==typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=f(r,1)}catch(i){}})),t}(e)}return s?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=f(r,1))}catch(i){}})),t}(e):null}},65905:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"AddressBookIcon",...e,children:(0,o.jsxs)("g",{fill:e.color,children:[(0,o.jsx)("path",{d:"M25.194 0L9.35.046a4.707 4.707 0 0 0-4.07 2.408l1.184-.003a2.385 2.385 0 0 1 2.373 2.39l.003 1.064a2.385 2.385 0 0 1-2.36 2.403l-1.841.005.002.8 1.84-.006a2.383 2.383 0 0 1 2.373 2.39l.003 1.066a2.384 2.384 0 0 1-2.36 2.403l-1.84.005.002.799 1.84-.005a2.383 2.383 0 0 1 2.373 2.39l.003 1.066a2.385 2.385 0 0 1-2.36 2.403l-1.84.005.001.798 1.841-.005a2.384 2.384 0 0 1 2.373 2.39l.003 1.064a2.385 2.385 0 0 1-2.36 2.403l-1.714.005A4.742 4.742 0 0 0 9.436 32l15.843-.046A4.765 4.765 0 0 0 30 27.148L29.94 4.78A4.761 4.761 0 0 0 25.194 0z"}),(0,o.jsx)("path",{d:"M2.794 6.72l1.84-.004 1.84-.005a.796.796 0 0 0 .788-.801l-.003-1.064a.795.795 0 0 0-.791-.797l-1.761.005-1.92.005A.796.796 0 0 0 2 4.86l.003 1.064a.795.795 0 0 0 .79.797zm.018 6.658l1.84-.005 1.84-.005a.796.796 0 0 0 .788-.8l-.003-1.066a.795.795 0 0 0-.791-.797l-1.84.005-1.841.005a.795.795 0 0 0-.787.801l.003 1.066a.794.794 0 0 0 .79.796zm.018 6.658l1.84-.005 1.84-.005a.795.795 0 0 0 .787-.801l-.003-1.066a.794.794 0 0 0-.79-.796l-1.841.005-1.84.005a.794.794 0 0 0-.787.8l.002 1.066c0 .438.353.795.792.797zm4.485 5.844l-.003-1.063a.795.795 0 0 0-.79-.797l-1.841.005-1.84.005a.797.797 0 0 0-.788.801l.003 1.064c0 .438.353.795.791.797l1.84-.005 1.841-.005a.795.795 0 0 0 .787-.801z"})]})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},49503:function(e,t,n){"use strict";n.d(t,{B:function(){return O},I:function(){return C}});var r=n(2784),i=n(20360),o=n(93556),a=n(35463),s=n(9311),c=n(74506),l=(n(32899),n(71941),n(26455)),u=n(13980),d=n.n(u),f=n(7307),p=n(84433),h=n(37535),m=n(52322),g=n(29434),v=n(58065);const y="@media (max-width: 428px)",b=f.default.div.withConfig({componentId:"sc-1bsju6x-0"})(["height:100%;display:flex;flex-direction:column;justify-content:flex-end;position:relative;background-color:",";border-radius:",";"," ",""],(({theme:e})=>e.color.white),(({theme:e})=>e.borderRadius),(({$constrain:e})=>e&&(0,f.css)(["flex-shrink:1;flex-basis:",";max-width:",";","{flex-basis:",";max-width:",";}"],(({theme:e})=>e.pxToRem(208)),(({theme:e})=>e.pxToRem(208)),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.pxToRem(262)),(({theme:e})=>e.pxToRem(262)))),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{max-width:100%;}"],y))),w=(0,f.default)(o.m.a).withConfig({componentId:"sc-1bsju6x-1"})(["width:100%;height:100%;display:flex;flex-direction:column;color:",";position:relative;margin-top:0;border-radius:",";"," "," ",""],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.borderRadius),(({$constrain:e})=>e&&(0,f.css)(["max-width:",";","{max-width:",";}"],(({theme:e})=>e.pxToRem(208)),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.pxToRem(262)))),(({$still:e})=>e&&(0,f.css)(["&:hover{",":after{opacity:0.3;}}"],C)),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{flex-direction:row;max-width:100%;}"],y))),k=(0,f.default)(o.m.div).withConfig({componentId:"sc-1bsju6x-2"})(["border-top-left-radius:",";border-top-right-radius:",";overflow:hidden;flex-shrink:0;z-index:2;@media (prefers-reduced-motion){transition:none;}"," ",""],(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius),(({$encloseTile:e})=>e&&(0,f.css)(["border:solid 1px ",";background-color:",";border-bottom:0;"],(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.white))),(({$mobileHorizontal:e,$expansionSlot:t})=>e&&(0,f.css)(["","{border-top-right-radius:0;border-bottom-left-radius:",";border-bottom:solid 1px ",";border-right:0;aspect-ratio:1;width:142px;}"],y,(({theme:e})=>t?0:e.borderRadius),(({theme:e})=>t?"transparent":e.color.lightGray2)))),S=f.default.div.withConfig({componentId:"sc-1bsju6x-3"})(["padding:",";background-color:",";border-bottom-left-radius:",";border-bottom-right-radius:",";font-size:",";font-weight:",";"," ","{font-size:",";}","{padding:",";}"],(({theme:e})=>`${e.spacing[16]}`),(({theme:e})=>e.color.lightGray4),(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.font.weight.light),(({$encloseTile:e})=>e&&(0,f.css)(["border:solid 1px ",";border-top:0;"],(({theme:e})=>e.color.lightGray2))),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.mediaQuery.desktopLarge),(({theme:e})=>`${e.spacing[24]} ${e.spacing[16]}`)),A=f.default.div.withConfig({componentId:"sc-1bsju6x-4"})(["border-bottom-left-radius:",";border-bottom-right-radius:",";padding-top:",";position:relative;flex-grow:1;"," "," ",""],(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius),(({theme:e})=>e.spacing[16]),(({$expansionSlot:e})=>e&&(0,f.css)(["border-bottom-left-radius:0;border-bottom-right-radius:0;"])),(({$encloseTile:e})=>e&&(0,f.css)(["border:solid 1px ",";border-top:0;border-bottom-width:",";background-color:",";&::after,&::before{content:'';height:16px;background:",";position:absolute;width:1px;top:-16px;}&::after{left:-1px;}&::before{right:-1px;}"],(({theme:e})=>e.color.lightGray2),(({$expansionSlot:e})=>e?0:"1px"),(({theme:e})=>e.color.white),(({theme:e})=>e.color.lightGray2))),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{padding-top:",";border-top:solid 1px ",";border-bottom-left-radius:0;border-top-right-radius:",";border-left:none;max-height:142px;&::after,&::before{content:none;}}"],y,(({theme:e})=>e.spacing[8]),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.borderRadius)))),x=f.default.div.withConfig({componentId:"sc-1bsju6x-5"})(["width:100%;height:100%;display:flex;flex-direction:column;border-radius:",";transition:opacity "," "," 0ms;opacity:",";position:absolute;left:0;bottom:0;z-index:5;pointer-events:none;"," ",""],(({theme:e})=>e.borderRadius),(({theme:e})=>e.movement.duration),(({theme:e})=>e.movement.easing),(({$loaded:e})=>e?0:1),(({$constrain:e})=>e&&(0,f.css)(["max-width:",";","{max-width:",";}"],(({theme:e})=>e.pxToRem(208)),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.pxToRem(262)))),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{flex-direction:row;}"],y))),E=f.default.div.withConfig({componentId:"sc-1bsju6x-6"})(["height:100%;display:flex;flex-direction:column;justify-content:space-between;"," ",""],(({$encloseTile:e})=>e&&(0,f.css)(["padding:0 ",";","{padding:0 ",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16]))),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{padding:0 "," 0 ",";}"],y,(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[12])))),N=(0,f.default)(p.S).withConfig({componentId:"sc-1bsju6x-7"})(["margin-bottom:",";","{margin-bottom:",";}",""],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16]),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{aspect-ratio:1;","{height:100%;}}"],y,p.a))),C=(0,f.default)(o.m.div).withConfig({componentId:"sc-1bsju6x-8"})(["display:block;position:relative;"," "," "," &::after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000000;opacity:0;transition:opacity "," "," ",";}& img{display:block;width:100%;}"],(({$encloseTile:e})=>!e&&(0,f.css)(["border-bottom-left-radius:",";border-bottom-right-radius:",";overflow:hidden;"],(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius))),(({$loaded:e})=>!e&&(0,f.css)(["height:0;padding-bottom:56.34%;"])),(({$mobileHorizontal:e})=>e&&(0,f.css)(["","{aspect-ratio:1;","{aspect-ratio:1;}}"],y,h.S)),(({theme:e})=>e.movement.duration),(({theme:e})=>e.movement.easing),(({theme:e})=>e.movement.delay)),_=({accessibleLabel:e,artPath:t,backgroundFillColor:n,children:o,className:u,constrain:d,encloseTile:f,expansionSlot:p,padImage:h,showLoader:y,still:_,tileLink:O,mobileHorizontal:I,keyArtAlt:T})=>{const M=(0,l.u)(),[P,j]=(0,r.useState)(!y);((0,c.u)()||I)&&(_=!0);const D=(0,r.useCallback)((()=>{j(!0)}),[]),{ref:R,inView:L}=(0,i.YD)({triggerOnce:!0}),F=(0,r.useMemo)((()=>({initial:{y:0},hover:{y:`-${g.d.spacing[16]}`}})),[]),z=_?g.d.animation.vertical.standardEase:g.d.animation.vertical.gentleBounce;return(0,m.jsxs)(a.X,{strict:!0,features:s.H,children:[(0,m.jsxs)(b,{$constrain:d,ref:R,$mobileHorizontal:I,children:[(0,m.jsx)(M,{href:O,children:(0,m.jsxs)(w,{className:u,$loaded:P,$constrain:d,$still:_,"aria-label":e,whileHover:"hover",whileTap:"tap",initial:"initial",$mobileHorizontal:I,children:[(0,m.jsx)(k,{$encloseTile:f,transition:z,variants:_?{initial:{y:0}}:F,$mobileHorizontal:I,$expansionSlot:p,children:(0,m.jsx)(C,{$mobileHorizontal:I,$encloseTile:f,$loaded:P,transition:z,children:(0,m.jsx)(v.K,{assetPath:t,backgroundFillColor:n,aspectRatio:I&&"1",maxWidth:268,onKeyArtLoaded:D,pad:h,showPlaceholder:!y,lazyLoad:!0,alt:T})})}),(0,m.jsx)(A,{$encloseTile:f,$expansionSlot:p,$mobileHorizontal:I,children:(0,m.jsx)(E,{$mobileHorizontal:I,$encloseTile:f,children:o})})]})}),p&&!I&&(0,m.jsx)(S,{$encloseTile:f,children:p}),y&&(0,m.jsx)(x,{$loaded:P,$constrain:d,$mobileHorizontal:I,children:(0,m.jsx)(k,{$encloseTile:f,$mobileHorizontal:I,children:(0,m.jsx)(N,{type:"image",graphic:!0,$encloseTile:f,animate:L,$mobileHorizontal:I})})})]}),p&&I&&(0,m.jsx)(S,{$encloseTile:f,children:p})]})};_.propTypes={children:d().node.isRequired,still:d().bool,className:d().string,constrain:d().bool,showLoader:d().bool,artPath:d().string.isRequired,padImage:d().bool,backgroundFillColor:d().string,expansionSlot:d().node,tileLink:d().string.isRequired,encloseTile:d().bool,accessibleLabel:d().string.isRequired,mobileHorizontal:d().bool,keyArtAlt:d().string},_.defaultProps={showLoader:!0,encloseTile:!0,constrain:!0,padImage:!1,still:!1};var O=_},62989:function(e,t,n){"use strict";n.d(t,{B:function(){return y},a:function(){return h},b:function(){return g}});var r=n(2784),i=n(93556),o=n(35463),a=n(9311),s=n(13980),c=n.n(s),l=n(7307),u=n(79175),d=n(26455),f=n(52322),p=n(99109);const h=(0,l.default)(i.m.span).withConfig({componentId:"sc-1rgmf3w-0"})(["position:absolute;box-sizing:content-box;display:block;content:'';border-width:1px;border-style:solid;border-color:",";background-color:",";height:calc(100% - 2px);width:calc(100% - 2px);top:0;left:0;padding:0;border-radius:",";"," "," "," "," "," "," "," "," ",""],(({theme:e})=>e.color.primary),(({theme:e})=>e.color.primary),(({theme:e,$round:t})=>t?"3rem":e.borderRadiusSmall),(({disabled:e,$variant:t})=>e&&"ghost"===t&&(0,l.css)(["background-color:rgba(0,0,0,0.5);color:",";"],(({theme:e})=>e.color.lightGray1))),(({$variant:e})=>"secondary"===e&&(0,l.css)(["background-color:",";border-color:",";"],(({theme:e})=>e.color.white),(({theme:e})=>e.color.primary))),(({$variant:e})=>"tertiary"===e&&(0,l.css)(["border-color:",";background-color:",";"],(({theme:e})=>e.color.secondary),(({theme:e})=>e.color.secondary))),(({$variant:e})=>"quaternary"===e&&(0,l.css)(["border-color:",";background-color:",";"],(({theme:e})=>e.color.secondary),(({theme:e})=>e.color.white))),(({$variant:e})=>"ghost"===e&&(0,l.css)(["border-color:",";background-color:rgba(0,0,0,0.25);"],(({theme:e})=>e.color.white))),(({disabled:e,$variant:t})=>e&&"ghost"!=t&&(0,l.css)(["background-color:",";border:unset;"],(({theme:e})=>e.color.lightGray2))),(({disabled:e,$variant:t})=>e&&"ghost"===t&&(0,l.css)(["color:",";background-color:rgba(0,0,0,0.5);"],(({theme:e})=>e.color.darkGray4))),(({$flat:e})=>"left"===e&&(0,l.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"])),(({$flat:e})=>"right"===e&&(0,l.css)(["border-top-right-radius:0;border-bottom-right-radius:0;"]))),m=l.default.span.withConfig({componentId:"sc-1rgmf3w-1"})(["order:",";z-index:1;pointer-events:none;height:100%;display:flex;align-items:center;justify-content:center;"],(({$iconPosition:e})=>"iconLeft"===e?2:"initial")),g=l.default.button.withConfig({componentId:"sc-1rgmf3w-2"})(["position:relative;margin:0;background-color:transparent;display:inline-flex;align-items:center;justify-content:center;text-align:center;height:",";cursor:",";font-weight:",";font-size:",";white-space:nowrap;color:",";border:unset;padding:",";pointer-events:",";"," "," "," "," "," ","{"," "," "," ","}"," "," "," "," "," "," "," "," & > svg,& > img{height:",";width:auto;margin-left:0;margin-right:",";z-index:1;","{height:",";}}.js-focus-visible &.focus-visible,.js-focus-visible &[data-focus-visible-added],&:focus-visible{outline:none;text-decoration:none;}&:focus-visible{","{"," "," ","}}"],(({size:e,theme:t})=>"large"==e?t.pxToRem(56):"small"==e?t.pxToRem(40):t.pxToRem(48)),(({disabled:e})=>e?"initial":"pointer"),(({theme:e})=>e.font.weight.bold),(({size:e,theme:t})=>"large"==e?t.font.size.h2Mobile:"small"==e?t.font.size.titleMobile:t.font.size.h3Mobile),(({theme:e})=>e.color.white),(({size:e,theme:t})=>"small"==e?`0 ${t.spacing[16]}`:`0 ${t.spacing[24]}`),(({disabled:e})=>e?"none":null),(({$buttonWidth:e})=>"full"==e&&(0,l.css)(["width:100%;"])),(({$buttonWidth:e})=>"auto"==e&&(0,l.css)(["width:",";"],(({$isLoading:e,$innerWidth:t,theme:n})=>e?n.pxToRem(t):"auto"))),(({$buttonWidth:e})=>"default"==e&&(0,l.css)(["width:",";"],(({size:e,$isLoading:t,$innerWidth:n,theme:r})=>"small"==e?t?r.pxToRem(n):"auto":"100%"))),(({$isLoading:e})=>e&&(0,l.css)(["pointer-events:none;"])),(({disabled:e})=>e&&(0,l.css)(["cursor:not-allowed;"])),(({theme:e})=>e.mediaQuery.tabletSmall),(({size:e})=>"large"==e&&(0,l.css)(["height:",";font-size:",";padding:",";"],(({theme:e})=>e.pxToRem(64)),(({theme:e})=>e.font.size.h2Desktop),(({theme:e})=>`0 ${e.spacing[24]}`))),(({size:e})=>"medium"==e&&(0,l.css)(["height:",";font-size:",";padding:",";"],(({theme:e})=>e.pxToRem(48)),(({theme:e})=>e.font.size.h3Desktop),(({theme:e})=>`0 ${e.spacing[24]}`))),(({size:e})=>"small"==e&&(0,l.css)(["height:",";font-size:",";padding:",";"],(({theme:e})=>e.pxToRem(40)),(({theme:e})=>e.font.size.titleDesktop),(({theme:e})=>`0 ${e.spacing[16]}`))),(({$buttonWidth:e})=>"default"==e&&(0,l.css)(["width:",";"],(({$isLoading:e,$innerWidth:t,theme:n})=>e?n.pxToRem(t):"auto"))),(({$variant:e})=>"primary"===e&&(0,l.css)(["color:",";"],(({theme:e})=>e.color.primaryBtnColor?e.color.primaryBtnColor:e.color.white))),(({$variant:e})=>"secondary"===e&&(0,l.css)(["color:",";--buttonBackground:",";--buttonBorder:",";"],(({theme:e,selected:t})=>t?e.color.white:e.color.primary),(({theme:e,selected:t})=>t?e.color.primary:e.color.white),(({theme:e})=>e.color.primary))),(({$variant:e})=>"tertiary"===e&&(0,l.css)(["--buttonBackground:",";--buttonBorder:",";"],(({theme:e,selected:t})=>t?e.color.secondaryHover:e.color.secondary),(({theme:e,selected:t})=>t?e.color.secondaryHover:e.color.secondary))),(({$variant:e})=>"quaternary"===e&&(0,l.css)(["color:",";--buttonBackground:",";--buttonBorder:",";"],(({theme:e,selected:t})=>t?e.color.white:e.color.secondary),(({theme:e,selected:t})=>t?e.color.secondaryHover:e.color.secondary),(({theme:e,selected:t})=>t?e.color.secondaryHover:e.color.secondary))),(({$variant:e,disabled:t})=>"ghost"!=e&&t&&(0,l.css)(["color:",";"],(({theme:e})=>e.color.darkGray3))),(({$variant:e,disabled:t})=>"ghost"===e&&t&&(0,l.css)(["color:",";"],(({theme:e})=>e.color.lightGray1))),(({$flat:e})=>"left"===e&&(0,l.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"])),(({$flat:e})=>"right"===e&&(0,l.css)(["border-top-right-radius:0;border-bottom-right-radius:0;"])),(({size:e,theme:t})=>"large"==e?t.pxToRem(20):"small"==e?t.pxToRem(14):t.pxToRem(18)),(({size:e,theme:t})=>"small"==e?t.pxToRem(8):t.pxToRem(16)),(({theme:e})=>e.mediaQuery.tabletSmall),(({size:e,theme:t})=>"large"==e?t.pxToRem(24):"small"==e?t.pxToRem(14):t.pxToRem(20)),h,(({$variant:e})=>("primary"===e||"secondary"===e)&&(0,l.css)(["box-shadow:",";"],(({theme:e})=>`0px 0 0 4px ${e.color.primary}4C`))),(({$variant:e})=>("tertiary"===e||"quaternary"===e)&&(0,l.css)(["box-shadow:",";"],(({theme:e})=>`0px 0 0 4px ${e.color.secondary}4C`))),(({$variant:e})=>"ghost"===e&&(0,l.css)(["box-shadow:",";"],(({theme:e})=>`0px 0 0 4px ${e.color.white}4C`)))),v=r.forwardRef((function(e,t){const{children:n,buttonWidth:i,disabled:s,flat:c,href:v,icon:y,iconPosition:b,isLoading:w,loadingIndicatorProps:k,locale:S,selected:A,size:x,still:E,variant:N,round:C,..._}=e,O=(0,u.u)(y),[I,T]=(0,r.useState)(null),M=(0,r.useRef)(),P=(0,d.u)(),j=(0,r.useContext)(l.ThemeContext);(0,r.useImperativeHandle)(t,(()=>M.current)),(0,r.useEffect)((()=>{!w&&M?.current?.getBoundingClientRect()&&T(M.current.getBoundingClientRect().width)}),[w,M]);const D=(0,r.useMemo)((()=>{let e=j.animation.button.hover.scaleX,t=j.animation.button.tap.scaleX;switch(x){case"small":e*=.99,t*=.99;break;case"large":e*=1.01,t*=1.01}return{hover:e,tap:t}}),[x,j]),R=(0,r.useMemo)((()=>{let e=A?j.color.primaryHover:j.color.primary,t=A?j.color.primaryHover:j.color.primary;switch(N){case"secondary":e=A?j.color.primary:j.color.white,t=j.color.primary;break;case"tertiary":e=A?j.color.secondaryHover:j.color.secondary,t=A?j.color.secondaryHover:j.color.secondary;break;case"quaternary":e=A?j.color.secondary:j.color.white,t=A?j.color.secondaryHover:j.color.secondary;break;case"ghost":e=s?"rgba(0, 0, 0, 0.5)":A?"rgba(255, 255, 255, 0.25)":"rgba(0, 0, 0, 0.25)",t=j.color.white}return s&&"ghost"!=N&&(e=j.color.lightGray2),{background:e,border:t}}),[A,N,j,s]),L=(0,r.useMemo)((()=>{let e=j.color.primaryHover,t=j.color.primaryHover;switch(N){case"secondary":e=A?j.color.primary:j.color.primaryLight,t=A?j.color.primary:j.color.primaryHover;break;case"tertiary":e=j.color.secondaryHover,t=j.color.secondaryHover;break;case"quaternary":e=A?j.color.secondary:j.color.lightGray3,t=A?j.color.secondary:j.color.secondaryHover;break;case"ghost":e=A?"rgba(255, 255, 255, 0.25)":"rgba(0, 0, 0, 0.5)",t=j.color.white}return{background:e,border:t}}),[N,A,j]),F=(0,r.useMemo)((()=>({transition:j.animation.button.hover.transition,scaleX:D.hover,scaleY:D.hover,backgroundColor:L.background,borderColor:L.border})),[L,D,j]),z=(0,r.useMemo)((()=>({transition:{default:{duration:.3}},backgroundColor:L.background,borderColor:L.border})),[L]),B=(0,r.useMemo)((()=>({scaleX:D.tap,scaleY:D.tap,transition:j.animation.button.tap.transition})),[D,j]),V=(0,f.jsx)(h,{$variant:N,disabled:s,$round:C,$flat:c,selected:A,animate:{backgroundColor:R.background,borderColor:R.border},whileHover:s?null:E||w?z:F,whileTap:E||w||s?null:B});let $=(0,f.jsxs)(g,{as:v?"a":"button",$variant:N,disabled:s,selected:A,$innerWidth:I,ref:M,$buttonWidth:i,$isLoading:w,size:x,..._,children:[V,w?(0,f.jsx)(p.L,{...k,size:x}):(0,f.jsxs)(f.Fragment,{children:[O&&O,(0,f.jsx)(m,{$flat:c,$iconPosition:b,children:n})]})]});return v&&($=(0,f.jsx)(P,{href:v,locale:S,children:$})),(0,f.jsx)(o.X,{strict:!0,features:a.H,children:$})}));v.propTypes={children:c().node.isRequired,buttonWidth:c().oneOf(["default","full","auto"]),disabled:c().bool,locale:c().oneOfType([c().string,c().bool]),still:c().bool,selected:c().bool,flat:c().oneOf(["left","right"]),href:c().string,icon:c().oneOfType([c().element,c().elementType]),iconPosition:c().oneOf(["iconLeft"]),round:c().bool,size:c().oneOf(["small","medium","large"]),variant:c().oneOf(["primary","secondary","tertiary","quaternary","ghost"]),isLoading:c().bool,loadingIndicatorProps:c().shape(p.L.propTypes)},v.defaultProps={still:!1,size:"medium",variant:"primary",buttonWidth:"default",selected:!1};var y=v},49446:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CalendarIcon",...e,children:[(0,o.jsx)("path",{fill:e.color,d:"M21.8 19.1h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm0 8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm1.6-20.3h1.5c.5 0 .9-.4.9-.9v-5c0-.5-.4-.9-.9-.9h-1.5c-.5 0-.9.4-.9.9v5c0 .5.4.9.9.9zm-16.3 0h1.5c.5 0 .9-.4.9-.9v-5c0-.5-.4-.9-.9-.9H7.1c-.5 0-.9.4-.9.9v5c0 .5.4.9.9.9zm6.1 20.3h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9z"}),(0,o.jsx)("path",{fill:e.color,d:"M29.5 4.3H27v2.2c0 1.2-.9 2.1-2.1 2.1h-1.5c-1.2 0-2.1-1-2.1-2.1V4.3H10.7v2.2c0 1.2-.9 2.1-2.1 2.1H7.1C5.9 8.6 5 7.6 5 6.5V4.3H2.5C1.1 4.3 0 5.4 0 6.7V29c0 1.4 1.1 2.5 2.5 2.5h27c1.4 0 2.5-1.1 2.5-2.5V6.7c0-1.3-1.1-2.4-2.5-2.4zm0 24.7h-27V10.4h27V29z"}),(0,o.jsx)("path",{fill:e.color,d:"M13.2 19.1h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm-8.6 8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9H4.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm0-8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9H4.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9z"})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},49482:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CharacterIcon",...e,children:(0,o.jsx)("path",{d:"M29.399 25.007a5.387 5.387 0 0 0-.539-.329 1.978 1.978 0 0 0-1.844-1.78 2.688 2.688 0 0 0-2.383 1.43.834.834 0 0 0-1.218.222 20.438 20.438 0 0 0-2.64-1.37 6.13 6.13 0 0 0 .37-3.363c.58.065 1.117.116 1.27.12.347.02.692-.053 1-.211.632-.352 1.238-.75 1.813-1.189a.769.769 0 0 0 1.138-.814 3.835 3.835 0 0 0 2.865-2.689c.244-.795.047-1.342-.258-1.53a1.045 1.045 0 0 0-.975-1.343.963.963 0 0 0-1.241-.945c-.055-.397-.456-.644-.984-.546a2.55 2.55 0 0 0-1.647 1.42.916.916 0 0 0-1.11.15 2.786 2.786 0 0 0-.233 2.614c-.397-.14-.968.41-.606 1.097l-.347.215c-.171.11-.171.11-.562.078a10.434 10.434 0 0 1-2.21-.64 2.688 2.688 0 0 0 2.027-1.465.812.812 0 0 0 .597-1.159c.605-.206.944-.848.773-1.463a2.574 2.574 0 0 0 1.989-1.19c.992-1.84-.385-3.705-2.043-3.261a4.432 4.432 0 0 0-1.89 1.066c-.268-.679-.57-1.354-.808-1.909.902-.561 3.233-3.42 2.73-3.966-.493-.535-2.798.185-3.842.805A5.003 5.003 0 0 0 17.372.72c-.87-.87-2.28-1.046-3.887 0A10.588 10.588 0 0 0 9.48 7.816c-3.033 1.276-2.201 4.364 1.046 4.895.151.452.44.846.828 1.124-.78.219-.473 1.068.296 1.073-.944.073-1.88.22-2.802.438a.893.893 0 0 0-1.594.024 3.87 3.87 0 0 0-2.708-.288 2.192 2.192 0 0 0-1.826 2.44 1.252 1.252 0 0 0 .126 1.781.975.975 0 0 0 .757 1.458c-.183.918 1.05 1.592 2.657.532 1.05.977 2.412.052 2.599-1.652.457.248 1.007-.012 1.066-.689a19.002 19.002 0 0 1 2.963-.433c0 .493-.091.981-.27 1.44a3.973 3.973 0 0 0-.444 4.064.67.67 0 0 1-.223.187 14.946 14.946 0 0 0-.738-.363.681.681 0 0 0-.984-.609 1.634 1.634 0 0 0-2.02-.76 2.25 2.25 0 0 0-.649-.177.52.52 0 0 0-.548.231 7.972 7.972 0 0 0-.818 1.792.288.288 0 0 0 .084.333c.074.062.154.117.24.162a9.789 9.789 0 0 0-2.058 4.078c-.08.359-.045.583.126.691.183.123.38.226.585.307.196.98 1.08 1.67 2.079 1.622a3.013 3.013 0 0 0 2.417-2.06c.272.003.53-.12.698-.335a6.07 6.07 0 0 0 3.456.771 5.93 5.93 0 0 0 3.13-2.516 22.596 22.596 0 0 1 5.152 2.5c.054.52.51.903 1.03.867.36.859 1.445 1.358 2.015 1.007.223.083.45.154.68.211.328.077.377.04.526-.14.364-.457.667-.958.9-1.492.114-.259.125-.423.014-.546a1.667 1.667 0 0 0-.234-.193 8.894 8.894 0 0 0 2.529-4.01c.07-.329.013-.44-.164-.575",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},52048:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ChevronDownIcon",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:e.color,d:"M27.7 5.3L32 9.8 16 26.7 0 9.8l4.3-4.5L16 17.7z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},43499:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ChevronLeftIcon",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:e.color,d:"M14.3 16l12.4 11.7-4.5 4.3L5.3 16 22.2 0l4.5 4.3z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},51855:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ChevronRightIcon",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:e.color,d:"M5.3 4.3L9.8 0l16.9 16L9.8 32l-4.5-4.3L17.7 16z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},15785:function(e,t,n){"use strict";n.d(t,{C:function(){return g}});var r=n(2784),i=n(13980),o=n.n(i),a=n(12870),s=n(97066),c=n(7307),l=n(52322);const u=c.default.div.withConfig({componentId:"sc-1weecn0-0"})(["display:flex;align-items:center;svg{min-height:",";height:100%;width:auto;display:block;","{min-height:",";}}",""],(({theme:e})=>e.pxToRem(68)),(({theme:e})=>e.mediaQuery.desktopLarge),(({theme:e})=>e.pxToRem(84)),(({$hasDescriptors:e})=>e&&(0,c.css)(["gap:",";"],(({theme:e})=>e.spacing[12])))),d=c.default.div.withConfig({componentId:"sc-1weecn0-1"})(["display:flex;min-width:200px;max-width:352px;font-weight:",";font-size:",";line-height:",";padding:0;flex-direction:column;justify-content:center;width:fit-content;color:",";","{font-size:",";line-height:",";}"," "," ",""],(({theme:e})=>e.font.weight.light),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.pxToRem(14)),(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.pxToRem(16)),(({$entryCount:e})=>e<=3&&(0,c.css)(["max-width:200px;"])),(({$entryCount:e})=>4==e&&(0,c.css)(["max-width:276rem;"])),(({$entryCount:e})=>e>=5&&(0,c.css)(["max-width:352px;"]))),f=c.default.div.withConfig({componentId:"sc-1weecn0-2"})(["&:not(:last-child){border-bottom:1px solid ",";padding:0.25em 0;}&:first-child{padding:0 0 0.25em;}&:last-child{padding:0.25em 0 0;}"],(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2)),p=c.default.a.withConfig({componentId:"sc-1weecn0-3"})(["display:inline-block;text-decoration:none;"," ",""],(({$scrim:e,$isLight:t,theme:n})=>e&&(0,c.css)(["padding:",";border-radius:",";background-color:",";"],n.spacing[12],n.borderRadius,t?n.scrim.dark:n.scrim.light)),(({$mini:e,theme:t})=>e&&(0,c.css)(["","{font-size:",";min-width:",";}","{svg{height:",";","{min-height:",";}}}"],d,t.font.size.legalMobile,t.spacing[28],u,t.pxToRem(68),t.mediaQuery.desktopLarge,t.pxToRem(68))));const h={10:"N\xe3o recomendado para menores de 10 (dez) anos",12:"N\xe3o recomendado para menores de 12 (dez) anos",14:"N\xe3o recomendado para menores de 14 (dez) anos",16:"N\xe3o recomendado para menores de 16 (dez) anos",18:"N\xe3o recomendado para menores de 18 (dez) anos","check-the-rating":"Verifique a classif\xe7\u0101o indicativa",livre:"Livre"},m=({className:e,rating:t,scrim:i,descriptors:o,interactiveElements:c,musicElements:m,textColor:g,linking:v,mini:y})=>{const[b,w]=(0,r.useState)(null),{text:k}=(0,a.u)(),S=(0,s.s)(o),A=(0,s.s)(c),x=(0,s.s)(m);(0,r.useEffect)((()=>{(function(e){switch(e){case"./icons/10.svg":return n.e(968).then(n.bind(n,30968));case"./icons/12.svg":return n.e(9027).then(n.bind(n,69027));case"./icons/14.svg":return n.e(3949).then(n.bind(n,73949));case"./icons/16.svg":return n.e(5195).then(n.bind(n,55195));case"./icons/18.svg":return n.e(1369).then(n.bind(n,41369));case"./icons/check-the-rating.svg":return n.e(6883).then(n.bind(n,17357));case"./icons/livre.svg":return n.e(1868).then(n.bind(n,41868));default:return new Promise((function(t,n){("function"===typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}})(`./icons/${t.toLowerCase()}.svg`).then((e=>{w(e.ReactComponent)}))}),[t]);const E=S.length||A.length||x.length;return(0,l.jsx)(p,{className:e,$mini:y,as:v?"a":"div",href:v?"https://www.justica.gov.br/seus-direitos/classificacao":null,target:v?"_blank":null,rel:v?"nofollow":null,$scrim:i,$isLight:"light"===g,children:(0,l.jsxs)(u,{$hasDescriptors:E,children:[b&&r.cloneElement(b,{role:"img",title:k(h[t])}),0===E?null:(0,l.jsxs)(d,{$entryCount:E,$isLight:"light"===g,children:[S.length>0&&(0,l.jsx)(f,{$isLight:"light"===g,children:S.join(",")}),A.length>0&&(0,l.jsx)(f,{$isLight:"light"===g,children:A.join(",")}),x.length>0&&(0,l.jsx)(f,{$isLight:"light"===g,children:x.join(",")})]})]})})};m.propTypes={className:o().string,rating:o().oneOf(["10","12","14","16","18","check-the-rating","livre"]).isRequired,descriptors:o().string,interactiveElements:o().string,musicElements:o().string,textColor:o().oneOf(["light","dark"]),scrim:o().bool,linking:o().bool,mini:o().bool},m.defaultProps={mini:!1,linking:!0};var g=m},86290:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CloseCircleIcon",...e,children:(0,o.jsx)("path",{d:"M16 0c8.837 0 16 7.163 16 16s-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0zm5.735 8L16 13.735 10.265 8 8 10.265 13.735 16 8 21.735 10.265 24 16 18.265 21.735 24 24 21.735 18.265 16 24 10.265 21.735 8z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},30744:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ControllerIcon",...e,children:(0,o.jsx)("path",{d:"M27.136 12.803a1.187 1.187 0 1 1 0-2.373 1.187 1.187 0 0 1 0 2.373zm-2.506-2.17a1.186 1.186 0 1 1 0-2.372 1.186 1.186 0 0 1 0 2.372zm0 4.338a1.183 1.183 0 0 1-.837-2.022 1.183 1.183 0 0 1 2.022.838c0 .654-.53 1.184-1.185 1.184zm-2.507-2.168a1.185 1.185 0 1 1 0-2.37 1.185 1.185 0 0 1 0 2.37zm-1.903 5.692a1.805 1.805 0 1 1-.002-3.61 1.805 1.805 0 0 1 .002 3.61zm-6.805-1.805v.513a.255.255 0 0 1-.255.253c-.411-.002-.822-.003-1.233-.002a.1.1 0 0 0-.09.047.12.12 0 0 0-.015.059v1.233c0 .14-.112.253-.252.254h-1.027a.254.254 0 0 1-.253-.254l.001-1.233a.115.115 0 0 0-.017-.059.09.09 0 0 0-.087-.047c-.412 0-.824 0-1.234.002a.253.253 0 0 1-.253-.253v-1.028c0-.14.113-.252.253-.252l1.234.002a.108.108 0 0 0 .053-.015.093.093 0 0 0 .051-.09l-.001-1.235c0-.14.113-.253.253-.253h1.027c.14 0 .253.114.253.253l-.001 1.234c0 .028.01.055.03.075a.1.1 0 0 0 .075.03l1.233-.001c.14 0 .254.112.255.252v.515zm-6.4-3.269a1.804 1.804 0 1 1 0-3.608 1.804 1.804 0 0 1 0 3.608zm24.949 8.973c-.174-2.068-.594-4.118-.933-6.163-.335-2.022-.674-4.07-1.194-6.053a5.393 5.393 0 0 0-1.079-2.342.872.872 0 0 0-.209-.168c-.163-.254-.326-.89-.487-1.147-.813-1.227-2.611-1.557-3.946-1.725a4.29 4.29 0 0 0-2.24.06c-.417.166-.827.738-1.238.92-.256-.006-.51-.01-.762-.017a184.9 184.9 0 0 0-6.45-.023c-.685.008-1.379.013-2.075.028-.403-.177-.805-.746-1.213-.907a4.268 4.268 0 0 0-2.24-.06c-1.336.167-3.133.497-3.946 1.724-.16.256-.324.893-.487 1.147a.94.94 0 0 0-.21.168 3.594 3.594 0 0 0-.72 1.163 38.585 38.585 0 0 0-1.342 5.988C.83 17.023.456 19.076.188 21.126c-.231 1.777-.512 4.005.93 5.377.613.621 1.49.907 2.351.766a3.268 3.268 0 0 0 2.058-1.797c.489-.833.902-1.705 1.326-2.573.398-.816.847-1.933 1.851-2.112a10.19 10.19 0 0 1 1.755-.046h11.786c.849-.15 1.71.193 2.22.887a26.38 26.38 0 0 1 1.465 2.829c.81 1.551 1.999 3.54 4.066 2.644 1.864-.807 2.118-2.922 1.968-4.707z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},34723:function(e,t,n){"use strict";n.d(t,{C:function(){return f},a:function(){return u}});var r=n(2784),i=n(13980),o=n.n(i),a=n(12870),s=n(52322);const c=e=>{const t=new Date,n=(new Date(e).getTime()-t.getTime())/6e4;return{totalMinutesLeft:parseFloat(n.toFixed(2)),totalHoursLeft:parseFloat((n/60).toFixed(2))}},l=(0,r.createContext)({addTimer:()=>{},getTimeLeft:()=>{},removeTimer:()=>{}}),u=e=>{const{locale:t,children:n}=e,[i,o]=(0,r.useState)({}),u=(0,r.useRef)({}),{text:d}=(0,a.u)({locale:t}),f=(0,r.useCallback)((e=>{if(Object.keys(u.current).includes(e)){const{count:t,intervalId:n}=u.current[e];t>1?u.current[e].count-=1:(clearInterval(n),delete u.current[e])}}),[]),p=(0,r.useCallback)(((e,n)=>{const r=e=>{const[r,i]=((e,t)=>{const{totalMinutesLeft:n,totalHoursLeft:r}=c(e);if(n<0||Number.isNaN(n)||Number.isNaN(r))return[];if(n<1)return[t?"< 1 min.":"Less than 1 min."];if(r<1)return["{0} min.",[Math.floor(n)]];if(r>24){const e=Math.floor(r/24);return[e>1?"{0} days":"{0} day",[e]]}return r>1&&r<24?["{0} hr.",[Math.floor(r)]]:void 0})(e,n);o((n=>r?{...n,[e]:d(r,{args:i,locale:t})}:(f(e),delete n[e],{...n})))};if(Object.keys(u.current).includes(e))u.current[e].count+=1;else if(u.current[e]={count:1},r(e),c(e).totalMinutesLeft<60){const t=setInterval((()=>r(e)),6e4);u.current[e].intervalId=t}}),[t,f,d]),h=(0,r.useCallback)((e=>i?.[e]),[i]),m=(0,r.useMemo)((()=>({addTimer:p,getTimeLeft:h,removeTimer:f})),[p,h,f]);return(0,s.jsx)(l.Provider,{value:m,children:n})};u.propTypes={children:o().node,locale:o().oneOf(["en-us","en-ca","es-mx","es-ar","es-cl","es-co","es-pe","fr-ca","pt-br"]).isRequired},u.defaultProps={abbreviate:!0};const d=e=>{const{abbreviate:t,className:n,endDate:i,onTimeEnd:o}=e,{getTimeLeft:a,addTimer:c,removeTimer:u}=(0,r.useContext)(l);(0,r.useEffect)((()=>(c(i,t),()=>u(i))),[t,c,i,u]);const d=a(i);return(0,r.useEffect)((()=>{const e=new Date,t=new Date(i).getTime()(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"DPadIcon",...e,children:(0,o.jsx)("path",{d:"M30.1 10.4h-8.5V1.9c0-1-.8-1.9-1.9-1.9h-7.5c-1 0-1.9.8-1.9 1.9v8.5H1.9c-1 0-1.9.8-1.9 1.9v7.5c0 1 .8 1.9 1.9 1.9h8.5v8.5c0 1 .8 1.9 1.9 1.9h7.5c1 0 1.9-.8 1.9-1.9v-8.5h8.5c1 0 1.9-.8 1.9-1.9v-7.5c-.1-1.1-.9-1.9-2-1.9zM7.5 16.9H3.8c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h3.8c.5 0 .9.4.9.9s-.5.9-1 .9zm9.4 11.3c0 .5-.4.9-.9.9s-.9-.4-.9-.9v-3.8c0-.5.4-.9.9-.9s.9.4.9.9v3.8zm0-20.7c0 .5-.4.9-.9.9s-.9-.4-.9-.9V3.8c0-.5.4-.9.9-.9s.9.4.9.9v3.7zm11.3 9.4h-3.8c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h3.8c.5 0 .9.4.9.9.1.5-.3.9-.9.9z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},7321:function(e,t,n){"use strict";n.d(t,{D:function(){return h}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52322);const s="red",c="blue",l="violet",u="gray";function d(e,t){switch(e){case s:return t.color.primary.toUpperCase();case c:return"#4B5CCE";case l:return"#9531B9";case u:return t.color.darkGray2.toUpperCase();default:return e}}const f=o.default.div.withConfig({componentId:"sc-tb903t-0"})(["background-color:",";color:",";font-weight:",";font-size:",";align-items:center;min-height:16px;line-height:16px;padding:0 ",";border-radius:",";width:fit-content;display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;","{font-size:",";line-height:19px;min-height:19px;}"],(({$bgColor:e})=>e||"transparent"),(({theme:e})=>e.color.white),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.spacing[8]),(({theme:e})=>e.borderRadius),(({$lines:e})=>e),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop)),p=e=>{const{children:t,bgColor:n,lines:r,...i}=e,s=(0,o.useTheme)();return(0,a.jsx)(f,{$bgColor:d(n,s),$lines:r,...i,children:t})};p.propTypes={bgColor:i().oneOf(["red","blue","violet","gray"]).isRequired,children:i().oneOfType([i().string,i().object]).isRequired,lines:i().number},p.defaultProps={lines:2,bgColor:"red"};var h=p},9016:function(e,t,n){"use strict";n.d(t,{E:function(){return y}});var r=n(2784),i=n(13980),o=n.n(i),a=n(12870),s=n(97066),c=n(7307),l=n(52322),u=n(25544),d=n(20669);const f=c.default.div.withConfig({componentId:"sc-19qr9cw-0"})(["align-items:center;display:flex;min-height:",";svg{min-height:68px;height:100%;width:auto;min-width:44px;display:block;}",""],(({theme:e})=>e.pxToRem(68)),(({$hasDescriptors:e})=>e&&(0,c.css)(["gap:",";"],(({theme:e})=>e.spacing[12])))),p=c.default.div.withConfig({componentId:"sc-19qr9cw-1"})(["display:flex;flex:1;min-width:120px;max-width:352px;font-weight:",";font-size:",";line-height:",";padding:0;flex-direction:column;justify-content:center;width:fit-content;color:",";","{font-size:",";line-height:",";}"," "," ",""],(({theme:e})=>e.font.weight.light),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.pxToRem(14)),(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.pxToRem(16)),(({$entryCount:e})=>e<=3&&(0,c.css)(["max-width:200px;"])),(({$entryCount:e})=>4==e&&(0,c.css)(["max-width:276rem;"])),(({$entryCount:e})=>e>=5&&(0,c.css)(["max-width:352px;"]))),h=c.default.div.withConfig({componentId:"sc-19qr9cw-2"})(["&:not(:last-child){border-bottom:1px solid ",";padding:0.25em 0;}&:first-child{padding:0 0 0.25em;}&:last-child{padding:0.25em 0 0;}"],(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2)),m=c.default.a.withConfig({componentId:"sc-19qr9cw-3"})(["text-decoration:none;display:inline-flex;flex-direction:column;align-items:flex-start;"," ",""],(({$scrim:e,$isLight:t,theme:n})=>e&&(0,c.css)(["padding:",";border-radius:",";background-color:",";"],n.spacing[12],n.borderRadius,t?n.scrim.dark:n.scrim.light)),(({$mini:e,theme:t})=>e&&(0,c.css)(["","{font-size:",";min-width:",";}","{svg{height:",";","{min-height:",";}}}"],p,t.font.size.legalMobile,t.spacing[28],f,t.pxToRem(68),t.mediaQuery.desktopLarge,t.pxToRem(68))));const g={"e-e10":"Everyone to Everyone 10+","e-m":"Everyone to Mature 17+","e-t":"Everyone to Teen",e:"Everyone","e10-m":"Everyone 10+ to Mature 17+","e10-t":"Everyone 10+ to Teen",e10:"Everyone 10+",m:"Mature 17+","rp-e":"Rating Pending to Everyone","rp-e10":"Rating Pending to Everyone 10+","rp-m":"Rating Pending to Mature 17+","rp-t":"Rating Pending to Teen",rp:"Rating Pending","t-m":"Teen to Mature 17+",t:"Teen"},v=({rating:e,descriptors:t,interactiveElements:i,topText:o,notices:c,lang:v,textColor:y,scrim:b,className:w,linking:k,mini:S})=>{const[A,x]=(0,r.useState)(null),{text:E}=(0,a.u)(),N=(0,s.s)(t),C=(0,s.s)(i),_=(0,s.s)(c);(0,r.useEffect)((()=>{(function(e){switch(e){case"./icons/en/e-e10.svg":return n.e(429).then(n.bind(n,30429));case"./icons/en/e-m.svg":return n.e(6972).then(n.bind(n,6972));case"./icons/en/e-t.svg":return n.e(7066).then(n.bind(n,67066));case"./icons/en/e.svg":return n.e(626).then(n.bind(n,626));case"./icons/en/e10-m.svg":return n.e(8495).then(n.bind(n,38495));case"./icons/en/e10-t.svg":return n.e(2632).then(n.bind(n,22632));case"./icons/en/e10.svg":return n.e(1373).then(n.bind(n,81373));case"./icons/en/m.svg":return n.e(5605).then(n.bind(n,75605));case"./icons/en/rp-e.svg":return n.e(4507).then(n.bind(n,24507));case"./icons/en/rp-e10.svg":return n.e(4808).then(n.bind(n,84808));case"./icons/en/rp-m.svg":return n.e(4263).then(n.bind(n,24263));case"./icons/en/rp-t.svg":return n.e(2909).then(n.bind(n,82909));case"./icons/en/rp.svg":return n.e(7994).then(n.bind(n,57994));case"./icons/en/t-m.svg":return n.e(6628).then(n.bind(n,76628));case"./icons/en/t.svg":return n.e(9765).then(n.bind(n,19765));case"./icons/es/e-e10.svg":return n.e(7969).then(n.bind(n,57969));case"./icons/es/e-m.svg":return n.e(5250).then(n.bind(n,45250));case"./icons/es/e-t.svg":return n.e(3178).then(n.bind(n,43178));case"./icons/es/e.svg":return n.e(1666).then(n.bind(n,41666));case"./icons/es/e10-m.svg":return n.e(5587).then(n.bind(n,45587));case"./icons/es/e10-t.svg":return n.e(4901).then(n.bind(n,4901));case"./icons/es/e10.svg":return n.e(6436).then(n.bind(n,6436));case"./icons/es/m.svg":return n.e(8930).then(n.bind(n,48930));case"./icons/es/rp-e.svg":return n.e(6731).then(n.bind(n,96731));case"./icons/es/rp-e10.svg":return n.e(757).then(n.bind(n,10757));case"./icons/es/rp-m.svg":return n.e(9098).then(n.bind(n,19098));case"./icons/es/rp-t.svg":return n.e(6992).then(n.bind(n,46992));case"./icons/es/rp.svg":return n.e(5931).then(n.bind(n,15931));case"./icons/es/t-m.svg":return n.e(6333).then(n.bind(n,46333));case"./icons/es/t.svg":return n.e(9495).then(n.bind(n,79495));case"./icons/fr/e-e10.svg":return n.e(619).then(n.bind(n,50619));case"./icons/fr/e-m.svg":return n.e(7102).then(n.bind(n,27102));case"./icons/fr/e-t.svg":return n.e(9168).then(n.bind(n,49168));case"./icons/fr/e.svg":return n.e(5562).then(n.bind(n,35562));case"./icons/fr/e10-m.svg":return n.e(3670).then(n.bind(n,33670));case"./icons/fr/e10-t.svg":return n.e(4948).then(n.bind(n,4948));case"./icons/fr/e10.svg":return n.e(8991).then(n.bind(n,28991));case"./icons/fr/m.svg":return n.e(7305).then(n.bind(n,97305));case"./icons/fr/rp-e.svg":return n.e(9365).then(n.bind(n,49365));case"./icons/fr/rp-e10.svg":return n.e(9058).then(n.bind(n,29058));case"./icons/fr/rp-m.svg":return n.e(5935).then(n.bind(n,15935));case"./icons/fr/rp-t.svg":return n.e(1738).then(n.bind(n,81738));case"./icons/fr/rp.svg":return n.e(6798).then(n.bind(n,36798));case"./icons/fr/t-m.svg":return n.e(9135).then(n.bind(n,79135));case"./icons/fr/t.svg":return n.e(5514).then(n.bind(n,75514));default:return new Promise((function(t,n){("function"===typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}})(`./icons/${v}/${e.toLowerCase()}.svg`).then((e=>{x(e.ReactComponent)}))}),[v,e]);const O=N.length||C.length||_.length,I="https://www.esrb.org/ratings-guide/"+("fr"===v||"es"===v?`${v}/`:"");return(0,l.jsxs)(m,{className:w,$mini:S,as:k?"a":"div",href:k?I:null,target:k?"_blank":null,rel:k?"nofollow":null,$scrim:b,$isLight:"light"===y,children:[o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.T,{variant:"legal",children:o}),(0,l.jsx)(d.S,{size:4})]}),(0,l.jsxs)(f,{$hasDescriptors:O,children:[A&&r.cloneElement(A,{role:"img",title:E(g[e])}),0===O?null:(0,l.jsxs)(p,{$entryCount:O,$isLight:"light"===y,children:[N.length>0&&(0,l.jsx)(h,{$isLight:"light"===y,children:N.join(",")}),C.length>0&&(0,l.jsx)(h,{$isLight:"light"===y,children:C.join(",")}),_.length>0&&(0,l.jsx)(h,{$isLight:"light"===y,children:_.join(",")})]})]})]})};v.propTypes={className:o().string,rating:o().oneOf(["rp","e","e10","t","m","rp-e","rp-e10","rp-t","rp-m","e-e10","e-t","e-m","e10-t","e10-m","t-m"]).isRequired,descriptors:o().string,interactiveElements:o().string,notices:o().string,lang:o().oneOf(["en","es","fr"]),textColor:o().oneOf(["light","dark"]),topText:o().string,scrim:o().bool,linking:o().bool,mini:o().bool},v.defaultProps={lang:"en",linking:!0,mini:!1};var y=v},23896:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"FacebookIcon",...e,children:(0,o.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16c0 8 5.9 14.6 13.5 15.8V20.6H9.4V16h4.1v-3.5c0-4 2.4-6.2 6-6.2 1.8 0 3.6.3 3.6.3v3.9h-2c-2 0-2.6 1.2-2.6 2.5v3h4.4l-.7 4.6h-3.7v11.2C26.1 30.6 32 24 32 16c0-8.8-7.2-16-16-16z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},95339:function(e,t,n){"use strict";n.d(t,{F:function(){return v},b:function(){return h}});var r=n(2784),i=n(13980),o=n(93556),a=n(35463),s=n(9311),c=n(7307),l=n(52322);const u="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDVweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgNDUgMTQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5TdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJTdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuIiBmaWxsPSIjRTYwMDEyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cGF0aCBkPSJNNDUsMCBMMCwwIEwwLDEzLjc3MzY4IEMxLjMzMzAyMDAxLDEzLjgzNzcxOTMgMi42NDkxNDAxMywxMy40NTM5MDE4IDMuNzM4NzcsMTIuNjgzMzUgTDE5LjI4NDQ4LDEuNjI4NjYgQzIxLjM2NjIzOTQsMC4xNDgzMTg1OTggMjQuMTU3MDEwNiwwLjE0ODMxODU5OCAyNi4yMzg3NywxLjYyODY2IEw0MS43ODQ0OCwxMi42ODMzNSBDNDIuNzI4MzU2MywxMy4zNTAwNDM4IDQzLjg0NTI4NSwxMy43Mjg3NzYgNDUsMTMuNzczNjggTDQ1LDAgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",d="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDVweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgNDUgMTQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5QYXRoPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJTdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cGF0aCBkPSJNNDUsMCBMMCwwIEwwLDEzLjc3MzY4IEMxLjMzMzAyMDAxLDEzLjgzNzcxOTMgMi42NDkxNDAxMywxMy40NTM5MDE4IDMuNzM4NzcsMTIuNjgzMzUgTDE5LjI4NDQ4LDEuNjI4NjYgQzIxLjM2NjIzOTQsMC4xNDgzMTg1OTggMjQuMTU3MDEwNiwwLjE0ODMxODU5OCAyNi4yMzg3NywxLjYyODY2IEw0MS43ODQ0OCwxMi42ODMzNSBDNDIuNzI4MzU2MywxMy4zNTAwNDM4IDQzLjg0NTI4NSwxMy43Mjg3NzYgNDUsMTMuNzczNjggTDQ1LDAgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",f="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzRweCIgaGVpZ2h0PSIxNXB4IiB2aWV3Qm94PSIwIDAgNzQgMTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+UGF0aDwvdGl0bGU+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iU3RvcmVmcm9udC13YXZlLXBhdHRlcm4iIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik03NCwxNSBDNTYuMzc5MDcsMTQuOTE0NjkgNTUuNDAwMTQsMC45MzY3NiAzNi45ODgxOSwxLjE4NyBDMTguOTIyMjEsMC44MDg2IDE3Ljc3MjE4LDE0LjgwNzc4IDAsMTUgTDAsMCBMNzQsMCBMNzQsMTUgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",p="data:image/svg+xml,%3Csvg%20width%3D%2244%22%20height%3D%2216%22%20viewBox%3D%220%200%2044%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ESlice%3C%2Ftitle%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M0%2016h44L22%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E";var h=Object.freeze({__proto__:null,awningPrimary64:u,awningWhite64:d,awningWhiteJagged64:p,waveWhite64:f});const m=(0,c.default)(o.m.div).withConfig({componentId:"sc-mrvyqt-0"})(["position:absolute;width:100%;height:","px;background-size:auto ","px;background-repeat:repeat-x;z-index:1;background-image:",";"," "," ",""],(({$height:e})=>e),(({$height:e})=>e),(({$type:e})=>{switch(e){case"awning-primary":return`url('${u}')`;case"awning-white":return`url('${d}')`;case"awning-white-jagged":return`url('${p}')`;case"wave-white":return`url('${f}')`}}),(({$position:e})=>"top"===e&&(0,c.css)(["top:",";"],(({$placement:e,$height:t})=>"inside"===e?"0px":`-${t}px`))),(({$position:e})=>"bottom"===e&&(0,c.css)(["bottom:",";"],(({$placement:e,$height:t})=>"inside"===e?"0px":`-${t}px`))),(({$flip:e})=>e&&(0,c.css)(["transform:rotate(180deg);"]))),g=e=>{const{flip:t,height:n,scroll:i,scrollDistance:o,scrollDuration:c,placement:u,position:d,type:f,...p}=e,h=(0,r.useMemo)((()=>({backgroundPositionX:("left"===i?"-":"")+(o||(()=>{switch(f){case"awning-primary":case"awning-white":return"52px";case"awning-white-jagged":return"45px";case"wave-white":return"80px"}})())})),[f,i,o]);return(0,l.jsx)(a.X,{features:s.H,children:(0,l.jsx)(m,{animate:i&&h,transition:{ease:"linear",duration:c||1,repeat:1/0},$type:f,$flip:t,$height:n,$placement:u,$position:d,...p})})};g.defaultProps={flip:!1,placement:"outside",type:"awning-primary"},g.propTypes={flip:i.bool,height:i.number.isRequired,placement:(0,i.oneOf)(["inside","outside"]),position:(0,i.oneOf)(["top","bottom"]).isRequired,type:(0,i.oneOf)(["awning-primary","awning-white","awning-white-jagged","wave-white"]).isRequired,scroll:(0,i.oneOf)(["left","right"]),scrollDistance:i.string,scrollDuration:i.number};var v=g},9056:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(2784),i=n(13980),o=n.n(i),a=n(7307),s=n(52322);const c=a.default.div.withConfig({componentId:"sc-tq1rei-0"})([""]),l=({bindFocus:e,children:t,returnFocus:n,className:i})=>{const o=(0,r.useRef)(),a=(0,r.useCallback)((t=>{if("tab"===t.key.toLowerCase()&&e){const e=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=e[0],r=e[e.length-1];t.shiftKey?document.activeElement===n&&(r.focus(),t.preventDefault()):document.activeElement===r&&(n.focus(),t.preventDefault())}}),[e,o]);return(0,r.useEffect)((()=>{if(e){const e=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e[0]&&e[0].focus()}else n?.focus()}),[e,a,n]),(0,s.jsx)(c,{ref:o,onKeyDown:a,className:i,children:t})};l.propTypes={className:o().string,bindFocus:o().bool,children:o().node.isRequired,returnFocus:o().object.isRequired};var u=l},25338:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"GearIcon",...e,children:(0,o.jsx)("path",{d:"M30.6 13.1h-2.4c-.3-1.4-.8-2.6-1.5-3.8l1.7-1.7c.5-.5.5-1.4 0-1.9l-2.1-2.1c-.5-.5-1.4-.5-1.9 0l-1.7 1.7c-1.2-.7-2.4-1.3-3.8-1.5V1.4c0-.7-.6-1.4-1.4-1.4h-3c-.7 0-1.4.6-1.4 1.4v2.4c-1.4.4-2.6.8-3.8 1.5L7.6 3.6c-.5-.5-1.4-.5-1.9 0L3.6 5.7c-.6.5-.6 1.4 0 1.9l1.7 1.7c-.7 1.2-1.3 2.4-1.5 3.8H1.3c-.7 0-1.4.6-1.4 1.4v3c0 .7.6 1.4 1.4 1.4h2.4c.3 1.4.8 2.6 1.5 3.8l-1.7 1.7c-.5.5-.5 1.4 0 1.9l2.1 2.1c.6.5 1.4.5 2 0l1.7-1.7c1.2.7 2.4 1.3 3.8 1.5v2.5c0 .7.6 1.4 1.4 1.4h3c.7 0 1.4-.6 1.4-1.4v-2.4c1.4-.3 2.6-.8 3.8-1.5l1.7 1.7c.5.5 1.4.5 1.9 0l2.1-2.1c.5-.5.5-1.4 0-1.9l-1.7-1.7c.7-1.2 1.3-2.4 1.5-3.8h2.4c.7 0 1.4-.6 1.4-1.4v-3c.1-.9-.6-1.5-1.4-1.5zM16 21.6c-3.1 0-5.6-2.5-5.6-5.6 0-3.1 2.5-5.6 5.6-5.6 3.1 0 5.6 2.5 5.6 5.6-.1 3.1-2.6 5.6-5.6 5.6z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},89056:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"GiftIcon",...e,children:(0,o.jsxs)("g",{fill:e.color,children:[(0,o.jsx)("path",{d:"M12.151 13.21c.204 0 .406-.035.599-.1.73-.171 1.2-.882 1.073-1.621a1.25 1.25 0 0 0-1.236-.739c-.203 0-.406.035-.598.1a1.417 1.417 0 0 0-1.073 1.621c.214.483.709.779 1.235.739zm-4.561 0a1.247 1.247 0 0 0 1.235-.739 1.414 1.414 0 0 0-1.073-1.62 1.84 1.84 0 0 0-.598-.1 1.247 1.247 0 0 0-1.235.738 1.415 1.415 0 0 0 1.073 1.62c.192.066.394.1.598.1z"}),(0,o.jsx)("path",{d:"M0 8.533v4.8h4.897c-.5-.664-.65-1.53-.4-2.324A2.724 2.724 0 0 1 7.154 9.25 3.257 3.257 0 0 1 9 9.817V5.333H3.2a3.197 3.197 0 0 0-3.2 3.2zm28.8-3.2H11v4.318a3.336 3.336 0 0 1 1.587-.401 2.724 2.724 0 0 1 2.657 1.76c.25.793.1 1.659-.4 2.323H32v-4.8a3.2 3.2 0 0 0-3.2-3.2zM14.52 16.908a.75.75 0 1 1-.91 1.192L11 16.106v10.56h17.8a3.196 3.196 0 0 0 3.2-3.199v-8.134H12.46l2.06 1.575zm-8.843 1.346a.749.749 0 0 1-.456-1.346l2.061-1.575H0v8.134a3.2 3.2 0 0 0 3.2 3.2H9V15.908L6.131 18.1c-.13.1-.29.154-.454.154z"})]})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},32687:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"GlobeIcon",...e,children:(0,o.jsx)("path",{d:"M16 0C11.7 0 7.7 1.7 4.7 4.7S0 11.7 0 16c0 4.3 1.7 8.3 4.7 11.3S11.7 32 16 32c8.8 0 16-7.2 16-16S24.8 0 16 0zm-5.2 4c-.5.9-1 1.9-1.4 3-.6-.2-1.3-.5-2-.8 1-1 2.2-1.7 3.4-2.2zM5.5 8.1c1 .5 2.1 1 3.2 1.4-.4 1.6-.6 3.4-.7 5.2H3c.2-2.4 1.1-4.6 2.5-6.6zM3 17.3h5.1c.1 1.8.3 3.5.7 5.2-1.1.4-2.2.8-3.2 1.4-1.5-2-2.4-4.2-2.6-6.6zm4.4 8.5c.7-.3 1.4-.6 2.1-.8.4 1.1.9 2.1 1.4 3-1.3-.5-2.5-1.2-3.5-2.2zm7.3 2.8c-1-.8-2-2.3-2.7-4.3.9-.2 1.8-.3 2.7-.4v4.7zm0-7.3c-1.1.1-2.3.2-3.4.5-.3-1.4-.5-2.9-.6-4.5h4v4zm0-6.6h-4c.1-1.6.3-3.1.6-4.5 1.1.2 2.3.4 3.4.5v4zm0-6.7c-1 0-1.8-.1-2.7-.3.7-2 1.7-3.5 2.7-4.2V8zM29 14.7h-5.1c-.1-1.8-.3-3.5-.7-5.2 1.1-.4 2.2-.8 3.2-1.4 1.5 2 2.4 4.2 2.6 6.6zm-4.4-8.5c-.7.3-1.4.6-2.1.8-.4-1.1-.9-2.2-1.4-3.1 1.3.6 2.5 1.3 3.5 2.3zm-7.3-2.7c1 .8 1.9 2.3 2.6 4.2-.8.2-1.7.3-2.6.3V3.5zm0 7.2c1.1-.1 2.3-.2 3.4-.4.3 1.4.5 2.9.6 4.5h-3.9v-4.1zm0 17.8V24c.9.1 1.8.2 2.6.4-.6 1.8-1.6 3.4-2.6 4.1zm0-7.2v-4h3.9c-.1 1.6-.3 3.1-.6 4.5-1-.2-2.1-.4-3.3-.5zm3.8 6.8c.5-.9 1-1.9 1.4-3.1.7.2 1.4.5 2.1.9-1 .9-2.2 1.6-3.5 2.2zm5.4-4.2c-1-.5-2.1-1-3.2-1.4.4-1.6.6-3.4.7-5.1h5c-.2 2.3-1.1 4.5-2.5 6.5z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},54076:function(e,t,n){"use strict";n.d(t,{H:function(){return f}});var r=n(2784),i=n(13980),o=n.n(i),a=n(7307),s=n(52322);const c=a.default.h1.withConfig({componentId:"sc-s17bth-0"})(["font-weight:700;"," "," "," "," "," ",""],(({$defaultMargin:e})=>!e&&"margin-block: 0;"),(({$variant:e})=>"h1"==e&&(0,a.css)(["line-height:1.35;font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h1SMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h1SDesktop))),(({$large:e,$variant:t})=>e&&"h1"==t&&(0,a.css)(["line-height:1.35;font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h1LMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h1LDesktop))),(({$variant:e})=>"h2"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h2Mobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h2Desktop))),(({$variant:e})=>"h3"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h3Mobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h3Desktop))),(({$variant:e})=>"h4"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h4Mobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h4Desktop)))),l=r.createContext(1);function u({children:e}){return e?(0,s.jsx)(l.Consumer,{children:t=>(0,s.jsx)(l.Provider,{value:t+1,children:e})}):null}const d=r.forwardRef((function(e,t){const{variant:n,large:r,children:i,className:o,defaultMargin:a,id:u}=e;return(0,s.jsx)(l.Consumer,{children:l=>{const d="h"+Math.min(l,6);return(0,s.jsx)(c,{$large:r,as:e.forwardedAs??e.as??d,$variant:n,className:o,id:u,$defaultMargin:a,ref:t,children:i})}})}));var f=Object.assign(d,{NewLevel:u});d.propTypes={className:o().string,id:o().string,variant:o().oneOf(["h1","h2","h3","h4","h5","h6"]),large:o().bool,as:o().string,children:o().node,defaultMargin:o().bool},d.defaultProps={variant:"h2",defaultMargin:!1},u.propTypes={children:o().node}},12192:function(e,t,n){"use strict";n.d(t,{D:function(){return h}});var r=n(2784),i=n(13980),o=n.n(i),a=n(26455),s=n(79175),c=n(7307),l=n(52322);const u=c.default.a.withConfig({componentId:"sc-1199uns-0"})(["padding:",";display:inline-block;position:relative;background-color:transparent;color:",";border-width:",";border-style:solid;border-color:transparent;border-radius:",";line-height:",";transition:",";&:hover{text-decoration:none;color:",";}&:active,.js-focus-visible &.focus-visible,.js-focus-visible &[data-focus-visible-added],&:focus-visible{outline:none;text-decoration:none;color:",";border-color:",";}"],(({theme:e})=>`${e.spacing[8]}`),(({theme:e})=>e.color.primary),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.borderRadius),(({theme:e})=>1/e.font.lineHeight),(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}, border-color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primaryHover),(({theme:e})=>e.color.primaryHover),(({theme:e})=>`${e.color.primaryHover}4C`)),d=c.default.span.withConfig({componentId:"sc-1199uns-1"})(["font-weight:",";cursor:pointer;display:inline-flex;align-items:center;position:relative;margin:0;& > svg,& > img,& > picture{padding-right:",";padding-left:0;width:1.125em;box-sizing:content-box;right:auto;}"],(({theme:e})=>e.font.weight.bold),(({theme:e})=>`${e.spacing[8]}`)),f=c.default.span.withConfig({componentId:"sc-1199uns-2"})(["z-index:1;"]),p=r.forwardRef((function(e,t){const{children:n,icon:r,href:i,locale:o,...c}=e,p=(0,a.u)(),h=(0,s.u)(r),m=(0,l.jsx)(u,{as:i?"a":"button",...c,ref:t,children:(0,l.jsxs)(d,{children:[h,(0,l.jsx)(f,{children:n})]})});return i?(0,l.jsx)(p,{href:i,locale:o,children:m}):m}));p.propTypes={children:o().node.isRequired,href:o().string,icon:o().oneOfType([o().element,o().elementType]),locale:o().string,target:o().oneOf(["_self","_blank","_parent","_top"])},p.defaultProps={target:"_self"};var h=p},77664:function(e,t,n){"use strict";n.d(t,{C:function(){return v},I:function(){return k},a:function(){return g}});var r=n(2784),i=n(13980),o=n.n(i),a=n(7307),s=n(28506),c=n(30674),l=n(11022),u=n(28546),d=n(48459);n(21282);d.a;d.a;d.a;d.a;class f extends d.a{colorSimilarity(e){return this._tolerance=e,this}colorOverride(e){return this._color=e,this}toString(){return["e_trim",this._tolerance,this._color].filter((e=>e)).join(":")}}function p(){return new f}var h=n(81440),m=n(52322);const g=a.default.div.withConfig({componentId:"sc-1244ond-0"})(["width:100%;position:relative;"]),v=(0,a.default)(s.pw).withConfig({componentId:"sc-1244ond-1"})(["display:block;min-height:1px;width:100%;"]),y=a.default.img.withConfig({componentId:"sc-1244ond-2"})(["display:block;min-height:1px;width:100%;"]),b=a.default.div.withConfig({componentId:"sc-1244ond-3"})(["display:block;width:100%;background-color:",";"],(({theme:e})=>e.color.lightGray3)),w=({backgroundFillColor:e,alt:t,crop:n,trimBackground:i,aspectRatio:o,placeholderStyle:a,showPlaceholder:d,lazyLoad:f,className:w,onImageLoaded:k,assetPath:S,devicePixelRatio:A})=>{const[x,E]=(0,r.useState)(!1),[N,C]=(0,r.useState)(!1),_=decodeURI(S?.substring(S?.startsWith("/")?1:0)),O=_.startsWith("http"),I=()=>{E(!0),"undefined"!==typeof k&&k()},T=()=>{C(!0),I()},M=c.C.image(_);let P=[];return O||("pad"==n&&o&&("auto"==e?(M.resize((0,h.z5)().aspectRatio(o).background((0,l.Cg)())),M.backgroundColor("white")):M.resize((0,h.z5)().aspectRatio(o).background((0,l.$_)(e||"transparent")))),"fill"==n&&o&&M.resize((0,h.hl)().aspectRatio(o)),i&&M.reshape(p()),P.push((0,s.jW)({steps:100})),!x&&d&&P.push((0,s.W$)({mode:a})),M.format("auto").quality("auto").delivery((0,u.uN)(A))),(0,m.jsx)(g,{className:w,children:N?(0,m.jsx)(b,{}):O?(0,m.jsx)(y,{alt:t,src:_,onLoad:()=>!x&&I(),onError:()=>!x&&T(),loading:f?"lazy":"eager",fetchpriority:f?"low":"auto"}):(0,m.jsx)(v,{alt:t,cldImg:M,onLoad:()=>!x&&I(),onError:()=>!x&&T(),plugins:P,loading:f?"lazy":"eager",fetchpriority:f?"low":"auto"})})};w.propTypes={className:o().string,assetPath:o().string.isRequired,backgroundFillColor:o().string,alt:o().string.isRequired,crop:o().oneOf(["pad","crop","fill"]),pad:o().bool,trimBackground:o().bool,placeholderStyle:o().oneOf(["blur","pixelate","predominant"]),aspectRatio:o().string,lazyLoad:o().bool,showPlaceholder:o().bool,onImageLoaded:o().func,devicePixelRatio:o().number},w.defaultProps={crop:"fill",pad:!1,trim:!1,showPlaceholder:!1,placeholderStyle:"pixelate",lazyLoad:!0,devicePixelRatio:1.5};var k=w},60424:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"InstagramIcon",...e,children:[(0,o.jsx)("path",{fill:e.color,d:"M24.506 5.514c-.511 0-.949.188-1.335.573-.385.376-.573.845-.573 1.397 0 .51.188.949.573 1.334.376.386.845.574 1.397.574.51 0 .949-.188 1.334-.574.376-.375.574-.823.574-1.334 0-.552-.188-1.011-.574-1.397-.375-.385-.844-.573-1.396-.573z"}),(0,o.jsx)("path",{fill:e.color,d:"M31.687 7.213a9.443 9.443 0 0 0-.51-1.689 7.692 7.692 0 0 0-.761-1.49 11.917 11.917 0 0 0-1.084-1.366c-.47-.427-.918-.792-1.366-1.084a7.403 7.403 0 0 0-1.49-.76 21.14 21.14 0 0 0-1.689-.48c-.615-.146-1.345-.24-2.189-.281-.844 0-1.616-.01-2.314-.032C19.586.011 18.158 0 16 0s-3.586.01-4.284.031c-.698.021-1.47.052-2.314.094-.844 0-1.574.073-2.189.219-.615.156-1.178.313-1.689.48-.51.208-.99.469-1.459.76-.469.303-.928.657-1.397 1.084-.427.47-.792.928-1.084 1.397-.291.47-.552.949-.76 1.46-.178.51-.334 1.073-.48 1.688-.146.615-.219 1.345-.219 2.189-.042.844-.073 1.616-.094 2.314C.011 12.414 0 13.842 0 16s.01 3.586.031 4.284c.021.698.052 1.47.094 2.314 0 .844.073 1.574.219 2.189.146.615.313 1.178.48 1.689.208.552.469 1.042.76 1.49.303.448.657.897 1.084 1.366.47.427.928.792 1.397 1.084.459.291.949.552 1.46.76.51.167 1.073.334 1.688.48.615.146 1.345.219 2.189.219.844.042 1.616.073 2.314.094.698.02 2.126.031 4.284.031s3.586-.01 4.284-.031a78.06 78.06 0 0 1 2.314-.032c.844-.041 1.574-.135 2.189-.281a26.634 26.634 0 0 0 1.689-.48 7.692 7.692 0 0 0 1.49-.76c.448-.303.897-.657 1.366-1.084.427-.47.792-.928 1.084-1.397.291-.459.552-.949.76-1.46.22-.51.386-1.073.511-1.688s.209-1.345.25-2.189c0-.844.01-1.616.032-2.314.02-.698.031-2.126.031-4.284v-4.284c0-.698-.02-1.47-.063-2.314a14.798 14.798 0 0 0-.25-2.189zm-2.574 13.008c-.021.657-.052 1.408-.094 2.252-.042.76-.115 1.376-.219 1.845a7.77 7.77 0 0 1-.354 1.146 3.9 3.9 0 0 1-.48.98c-.187.271-.417.563-.667.855a8.21 8.21 0 0 1-.886.667c-.292.188-.615.375-.948.542-.303.084-.678.177-1.147.282-.47.104-1.084.177-1.845.218-.844.042-1.605.073-2.283.094-.677.021-2.074.032-4.19.032s-3.513-.01-4.19-.032c-.678-.02-1.439-.052-2.283-.094-.76-.041-1.376-.114-1.845-.218s-.855-.198-1.146-.282a10.26 10.26 0 0 1-.949-.542 8.21 8.21 0 0 1-.886-.667c-.25-.292-.48-.584-.667-.855a3.435 3.435 0 0 1-.48-.98 6.029 6.029 0 0 1-.354-1.146c-.104-.47-.177-1.084-.219-1.845-.042-.844-.073-1.595-.094-2.251-.02-.657-.031-2.064-.031-4.222 0-2.116.01-3.513.031-4.19.021-.678.052-1.439.094-2.283.042-.76.115-1.376.219-1.845.115-.469.23-.834.354-1.084.125-.386.292-.73.48-1.021.187-.292.417-.574.667-.824.292-.292.594-.542.886-.73.292-.198.605-.354.949-.479.302-.136.677-.25 1.146-.354s1.084-.178 1.845-.22a46.697 46.697 0 0 1 2.283-.062h8.38c.677 0 1.439.021 2.283.063.76.041 1.376.114 1.845.219.469.114.855.229 1.146.354.334.125.657.292.949.48.292.187.594.416.886.667.25.291.48.594.667.886.198.291.355.615.48.948.135.302.25.678.354 1.147s.177 1.084.219 1.845c.042.854.073 1.615.094 2.293.02.677.031 2.074.031 4.19 0 2.158-.01 3.565-.031 4.221z"}),(0,o.jsx)("path",{fill:e.color,d:"M15.99 7.797c-2.294 0-4.232.802-5.817 2.387C8.578 11.779 7.786 13.717 7.786 16c0 2.293.792 4.221 2.387 5.816 1.595 1.595 3.523 2.387 5.817 2.387s4.231-.802 5.816-2.387c1.584-1.595 2.376-3.533 2.387-5.816 0-2.293-.803-4.232-2.387-5.816-1.595-1.595-3.523-2.387-5.816-2.387zm3.783 11.987c-1.042 1.032-2.303 1.553-3.783 1.553-1.491 0-2.742-.51-3.784-1.553-1.032-1.043-1.553-2.304-1.553-3.784 0-1.49.51-2.741 1.553-3.784 1.042-1.032 2.303-1.553 3.784-1.553s2.74.521 3.783 1.553c1.032 1.043 1.553 2.304 1.553 3.784 0 1.49-.51 2.741-1.553 3.784z"})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},58065:function(e,t,n){"use strict";n.d(t,{K:function(){return g}});var r=n(2784),i=n(13980),o=n.n(i),a=n(37535),s=n(77664),c=n(30674),l=n(81440),u=n(52322);const d=[300,502,656,801,930,1065,1196,1240],f=({alt:e,className:t,assetPath:n,Head:r})=>{const i=decodeURI(n?.substring(n?.startsWith("/")?1:0)),o=i.startsWith("http");let a,s,c;if(!o){s=d.map((e=>`${p(i,e)} ${e}w`)).join(", "),c="(min-width: 1240px) 656px, (min-width: 768px) calc(53vw - 2rem), calc(100vw - 2rem)",a=p(i,d[d.length-1])}return(0,u.jsxs)(u.Fragment,{children:[r?(0,u.jsx)(r,{children:(0,u.jsx)("link",{rel:"preload",href:a,imagesrcset:o?void 0:s,imagesizes:o?void 0:c,as:"image",fetchpriority:"high"})}):null,(0,u.jsx)("div",{className:t,style:{width:"100%",position:"relative"},children:(0,u.jsx)("img",{alt:e,srcSet:o?void 0:s,sizes:o?void 0:c,src:o?i:a,style:{display:"block",minHeight:"1px",width:"100%"},fetchpriority:"high",loading:"eager",decoding:"sync"})})]})};function p(e,t){const n=c.C.image(e);return n.resize((0,l.z5)().aspectRatio("16:9").width(t)).backgroundColor("white"),n.format("auto").quality("auto").toURL()}f.propTypes={className:o().string,assetPath:o().string.isRequired,alt:o().string,onImageLoaded:o().func,Head:o().elementType},f.defaultProps={alt:""};var h=f;const m=({alt:e,assetPath:t,aspectRatio:n,backgroundFillColor:i,placeholderStyle:o,lazyLoad:c,pad:l,className:d,esrbSafe:f,showPlaceholder:p,onKeyArtLoaded:m,priority:g,Head:v})=>{const[y,b]=(0,r.useState)(!1),w=(0,r.useCallback)((()=>{b(!0),"undefined"!==typeof m&&m()}),[m]);return(0,u.jsx)(a.S,{$esrbSafe:f,$loaded:y,$pad:l,children:g?(0,u.jsx)(h,{className:d,assetPath:t,Head:v,alt:e}):(0,u.jsx)(s.I,{className:d,assetPath:t,backgroundFillColor:i||null,aspectRatio:n||"16:9",placeholderStyle:o,showPlaceholder:p,crop:"pad",lazyLoad:c,alt:e,onImageLoaded:w})})};m.propTypes={alt:o().string,className:o().string,assetPath:o().string.isRequired,backgroundFillColor:o().string,placeholderStyle:o().oneOf(["blur","pixelate","predominant"]),lazyLoad:o().bool,pad:o().bool,esrbSafe:o().bool,showPlaceholder:o().bool,onKeyArtLoaded:o().func,priority:o().bool,Head:o().elementType},m.defaultProps={alt:"",placeholderStyle:"pixelate",lazyLoad:!0,esrbSafe:!1,pad:!1,showPlaceholder:!1,backgroundFillColor:"auto",priority:!1};var g=m},37535:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(7307);const i=r.default.div.withConfig({componentId:"sc-u7um7j-0"})(["width:100%;max-width:",";overflow:hidden;&::before{float:left;padding-top:56.25%;content:'';}&::after{display:block;content:'';clear:both;}img{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:auto;object-fit:cover;overflow:hidden;padding:",";}"," @supports (aspect-ratio:16 / 9){aspect-ratio:16 / 9;&::before,&::after{content:none;}img{position:relative;}}"],(({$esrbSafe:e})=>e?"696px":"none"),(({$pad:e})=>e&&"16px"),(({$loaded:e})=>e&&(0,r.css)(["background-color:",";"],(({theme:e})=>e.color.lightgray1))))},23985:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52322);const s=o.default.span.withConfig({componentId:"sc-endhe5-0"})(["padding:"," 1rem;border-radius:",";display:inline-block;background-color:",";color:",";font-weight:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.spacing[2]),(({theme:e})=>e.borderRadius),(({theme:e,$backgroundColor:t})=>t||e.color.lightGray3),(({theme:e,$foregroundColor:t})=>t||e.color.darkGray2),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.font.size.captionDesktop)),c=e=>{const{backgroundColor:t,children:n,foregroundColor:r,...i}=e;return(0,a.jsx)(s,{$backgroundColor:t,$foregroundColor:r,...i,children:n})};c.propTypes={children:i().node.isRequired,className:i().string,backgroundColor:i().string,foregroundColor:i().string};var l=c},96447:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var r=n(2784),i=n(13980),o=n.n(i),a=n(26455),s=n(50875),c=n(52322);const l=r.forwardRef((function(e,t){const{children:n,href:r,locale:i,...o}=e,l=(0,a.u)();let u=(0,c.jsx)(s.S,{as:r?"a":"button",...o,ref:t,children:(0,c.jsx)(s.a,{children:n})});return r&&(u=(0,c.jsx)(l,{href:r,locale:i,children:u})),u}));l.propTypes={children:o().node.isRequired,href:o().string,locale:o().oneOfType([o().string,o().bool]),target:o().oneOf(["_self","_blank","_parent","_top"])},l.defaultProps={target:"_self"};var u=l},50875:function(e,t,n){"use strict";n.d(t,{S:function(){return o},a:function(){return i}});var r=n(7307);const i=r.default.span.withConfig({componentId:"sc-1o4eb18-0"})(["font-size:",";font-weight:",";cursor:pointer;padding-bottom:0;position:relative;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:",";margin:0;transition:",";","{font-size:",";}"],(({theme:e})=>e.font.size.bodyMobile),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.color.primary),(({theme:e})=>`border-bottom-color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}, color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.bodyDesktop)),o=r.default.a.withConfig({componentId:"sc-1o4eb18-1"})(["background:transparent;margin:0;border:0;line-height:",";border-radius:",";display:inline-block;color:",";box-shadow:",";transition:",";.js-focus-visible &.focus-visible,.js-focus-visible &[data-focus-visible-added],&:focus-visible{outline:none;text-decoration:none;}&:focus-visible,&:hover{color:",";","{text-decoration:none;border-bottom-color:",";}}&:focus-visible,&:active{box-shadow:",";}"],(({theme:e})=>e.font.lineHeight),(({theme:e})=>e.borderRadius),(({theme:e})=>e.color.primary),(({theme:e})=>`0px 0 0 4px ${e.color.primaryHover}00`),(({theme:e})=>`box-shadow ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primaryHover),i,(({theme:e})=>e.color.primaryHover),(({theme:e})=>`0px 0 0 4px ${e.color.primaryHover}4C`))},99109:function(e,t,n){"use strict";n.d(t,{L:function(){return C}});var r=n(2784),i=n(13980),o=n.n(i),a=n(91383),s=n(12870),c=n(52322);const l=e=>(0,c.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MushroomFilledIcon",...e,children:(0,c.jsx)("path",{d:"M27.506 8.644l-.108-.157C24.894 4.534 20.612 2.102 15.975 2c-4.643.097-8.932 2.53-11.439 6.487a.97.97 0 0 0-.108.157 14.923 14.923 0 0 0-2.229 10.592 1.317 1.317 0 0 0 0 .235 8.159 8.159 0 0 0 3.637 4.465c1.734-3.134 5.51-5.076 10.123-5.092 4.644 0 8.39 1.911 10.123 5.092a8.146 8.146 0 0 0 3.59-4.371.626.626 0 0 0 .14-.33 14.833 14.833 0 0 0-2.306-10.591zM3.499 19.094a10.229 10.229 0 0 1-.185-2.209c.013-1.433.248-2.855.696-4.215a21.94 21.94 0 0 1 1.548-3.259c.3 1.017.451 2.073.449 3.134a9.678 9.678 0 0 1-2.508 6.55zm12.615-1.817a6.646 6.646 0 0 1-4.756-1.916 6.813 6.813 0 0 1-2.023-4.759 6.806 6.806 0 0 1 2.018-4.769 6.64 6.64 0 0 1 4.761-1.921 6.639 6.639 0 0 1 4.761 1.921 6.807 6.807 0 0 1 2.018 4.77 6.808 6.808 0 0 1-2.023 4.758 6.646 6.646 0 0 1-4.756 1.916zm12.383 1.786a9.654 9.654 0 0 1-2.43-6.596 10.75 10.75 0 0 1 .448-3.04 20.513 20.513 0 0 1 1.548 3.4c.413 1.296.627 2.65.635 4.011a10.43 10.43 0 0 1-.14 2.225h-.061zm-12.6 1.316c-3.095 0-7.027 1.082-8.776 4.294a5.027 5.027 0 0 0 3.096 4.48c1.559.546 3.195.832 4.844.847h1.734a14.898 14.898 0 0 0 4.83-.846 5.012 5.012 0 0 0 3.095-4.481c-1.718-3.212-5.588-4.278-8.76-4.294h-.063zm-2.801 6.566c-.65 0-.728-1.129-.728-2.445 0-1.316.14-2.287.759-2.35.619-.063.696 1.081.696 2.397 0 1.316-.093 2.398-.727 2.398zm5.959 0c-.62 0-.728-1.066-.728-2.398s0-2.46.697-2.397c.696.063.758 1.034.758 2.35s-.077 2.429-.727 2.445z",fill:e.color})});l.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},l.defaultProps={color:"currentColor",size:24};var u=n(46658),d=n(7307);const f=(0,d.keyframes)(["0%{opacity:1;}25%{opacity:0.5;}50%{opacity:1;}100%{opacity:1;}"]),p=(0,d.keyframes)(["0%{transform:translate3d(0,0,0)}26.83%{transform:translate3d(0,-5px,0)}51.22%{transform:translate3d(0,0,0)}100%{transform:translate3d(0,0,0)}"]),h=(0,d.keyframes)(["0%{transform:scale(0.5);}25%{transform:scale(1);}50%{transform:scale(0.5);}100%{transform:scale(0.5);}"]),m=41/60,g=10/60,v=20/60,y=1,b=.25,w=35/60,k=1,S=.25,A=35/60,x=d.default.div.withConfig({componentId:"sc-1rbnirn-0"})(["display:flex;&&& svg{height:",";width:auto;","{height:",";}:not(:last-child){margin-right:",";}& path{fill:",";}"," "," ","}"],(({size:e,theme:t})=>"large"===e?t.pxToRem(20):"small"===e?t.pxToRem(14):t.pxToRem(18)),(({theme:e})=>e.mediaQuery.tabletSmall),(({size:e,theme:t})=>"large"===e?t.pxToRem(24):"small"===e?t.pxToRem(14):t.pxToRem(20)),(({theme:e})=>e.spacing[4]),(({color:e})=>e||"currentColor"),(({$loadingVariant:e})=>"bounce"===e&&(0,d.css)(["animation-name:",";animation-timing-function:linear;animation-duration:","s;animation-iteration-count:infinite;&:nth-child(3){animation-delay:","s;}&:nth-child(4){animation-delay:","s;}"],p,m,g,v)),(({$loadingVariant:e})=>"fade"===e&&(0,d.css)(["animation-name:",";animation-timing-function:linear;animation-duration:","s;animation-iteration-count:infinite;&:nth-child(3){animation-delay:","s;}&:nth-child(4){animation-delay:","s;}"],f,y,b,w)),(({$loadingVariant:e})=>"scale"===e&&(0,d.css)(["transform:scale(0.5);animation-name:",";animation-timing-function:linear;animation-duration:","s;animation-iteration-count:infinite;&:nth-child(3){animation-delay:","s;}&:nth-child(4){animation-delay:","s;}"],h,k,S,A))),E={star:u.Z,mushroom:l},N=e=>{const{color:t,lang:n,loadingVariant:i,loadingIcon:o,size:l,...u}=e,{text:d}=(0,s.u)(),f=d("Loading",{locale:n}),p=(0,r.useMemo)((()=>{return e=E[o],Array(3).fill(e).map(((e,t)=>(0,c.jsx)(e,{},t)));var e}),[o]);return(0,c.jsxs)(x,{color:t,$loadingVariant:i,size:l,...u,children:[(0,c.jsx)(a.S,{children:f}),p]})};N.propTypes={color:o().string,lang:o().oneOf(["en","es","fr","pt"]),loadingIcon:o().oneOf(["star","mushroom"]),loadingVariant:o().oneOf(["bounce","fade","scale"]),size:o().oneOf(["small","medium","large"])},N.defaultProps={lang:"en",loadingIcon:"star",loadingVariant:"bounce",size:"medium"};var C=N},70510:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{"data-name":"Magnifying glass",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MagnifyingGlassIcon",...e,children:(0,o.jsx)("path",{d:"M31.564 28.745l-8.73-8.73a12.66 12.66 0 1 0-2.804 2.834l8.715 8.715a1.5 1.5 0 0 0 2.114 0l.705-.705a1.5 1.5 0 0 0 0-2.114zm-18.966-7.433A8.611 8.611 0 1 1 21.21 12.7a8.62 8.62 0 0 1-8.612 8.612z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},30450:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{"data-name":"Layer 2 copy",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MailboxIcon",...e,children:[(0,o.jsx)("path",{d:"M26.72 6.456l-5.717-2.93a.321.321 0 0 0-.507.312v5.758a.32.32 0 0 0 .507.31l5.718-2.93c.28-.142.28-.376 0-.52zM18.85 0a1.477 1.477 0 1 0 1.477 1.477A1.477 1.477 0 0 0 18.849 0zm-.001 3.718a1.774 1.774 0 0 1-.894-.247v9.796a.894.894 0 1 0 1.788 0V3.47a1.779 1.779 0 0 1-.894.247z",fill:e.color}),(0,o.jsx)("path",{d:"M25.428 10.555h-4.754v2.712a1.824 1.824 0 1 1-3.649 0v-2.712h-10.2a5.597 5.597 0 0 0-5.58 5.58v11.106h1.2V16.6a4.664 4.664 0 0 1 4.65-4.651h2.931a4.664 4.664 0 0 1 4.65 4.65v10.64H31.01V16.136a5.597 5.597 0 0 0-5.581-5.58z",fill:e.color}),(0,o.jsx)("path",{d:"M9.892 13.124H7.157a3.731 3.731 0 0 0-3.72 3.72v10.32c0 .026.007.05.008.077h10.16c0-.027.008-.051.008-.077v-10.32a3.731 3.731 0 0 0-3.72-3.72zM8.525 17.38a1.307 1.307 0 1 1 1.307-1.307 1.307 1.307 0 0 1-1.307 1.307z",fill:e.color}),(0,o.jsx)("rect",{x:12.806,y:28.42,width:6.643,height:3.58,rx:1,fill:e.color})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},98402:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{height:32,width:e.size,viewBox:"0 0 22 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,role:"presentation",alt:"","data-testid":"MapPinIcon",...e,children:(0,o.jsx)("path",{d:"M11.9998 3.00646e-06C10.5287 -0.00107524 9.07181 0.287885 7.71248 0.850356C6.35314 1.41283 5.11804 2.23777 4.07781 3.278C3.03758 4.31823 2.21263 5.55334 1.65016 6.91267C1.08769 8.27201 0.798729 9.72889 0.799808 11.2C0.799808 19.6 11.9998 32 11.9998 32C11.9998 32 23.1998 19.6 23.1998 11.2C23.2009 9.72889 22.9119 8.27201 22.3495 6.91267C21.787 5.55334 20.962 4.31823 19.9218 3.278C18.8816 2.23777 17.6465 1.41283 16.2871 0.850356C14.9278 0.287885 13.4709 -0.00107524 11.9998 3.00646e-06ZM11.9998 15.2C11.2087 15.2 10.4353 14.9654 9.77753 14.5259C9.11973 14.0864 8.60704 13.4616 8.30429 12.7307C8.00154 11.9998 7.92233 11.1956 8.07667 10.4196C8.23101 9.64372 8.61197 8.93099 9.17138 8.37158C9.73079 7.81217 10.4435 7.4312 11.2194 7.27686C11.9954 7.12252 12.7996 7.20173 13.5305 7.50448C14.2614 7.80724 14.8862 8.31993 15.3257 8.97772C15.7652 9.63552 15.9998 10.4089 15.9998 11.2C15.9994 12.2607 15.5779 13.2779 14.8278 14.028C14.0777 14.7781 13.0606 15.1996 11.9998 15.2Z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},95933:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44 34.22",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MegaphoneDarkIcon",...e,children:(0,o.jsx)("path",{d:"M29.55 0a1.91 1.91 0 0 1 1.93 1.87V10h.21a4.87 4.87 0 0 1 4.82 4.89v.2A4.87 4.87 0 0 1 31.69 20h-.21v8.1a1.91 1.91 0 0 1-1.93 1.87L19 22.45h-4.61l1.13 8.62a3.24 3.24 0 0 1-3.31 3.15h-1.66a3.24 3.24 0 0 1-3.31-3.15l-1.13-8.62H3.4A3.59 3.59 0 0 1 0 18.71v-7.49a3.6 3.6 0 0 1 3.4-3.74H18.95zm8.2 20.81a.6.6 0 0 1 .85.05l4.12 4.61a.62.62 0 0 1 0 .86.59.59 0 0 1-.41.16.6.6 0 0 1-.44-.2l-4.17-4.61a.63.63 0 0 1 .05-.87zm-6.06-8.39h-.21v5.09h.21a2.42 2.42 0 0 0 2.41-2.44v-.2a2.43 2.43 0 0 0-2.41-2.45zM43.4 14a.62.62 0 0 1 0 1.23h-4.67a.62.62 0 0 1 0-1.23h4.67zM41.83 3a.59.59 0 0 1 .85 0 .62.62 0 0 1 0 .86l-4.08 4.6a.62.62 0 0 1-.45.2.61.61 0 0 1-.4-.16.63.63 0 0 1 0-.87z",fillRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},31145:function(e,t,n){"use strict";n.d(t,{M:function(){return E},S:function(){return g},a:function(){return k}});var r=n(2784),i=n(28316),o=n(13980),a=n.n(o),s=n(61478),c=n(12870),l=n(7307),u=n(62989),d=n(9056),f=n(52322);const p=100,h=200,m=50,g=l.default.div.withConfig({componentId:"sc-8iezo5-0"})(["display:block;position:relative;pointer-events:none;transition:opacity ","ms ease-in-out ","ms,transform ","ms ease-in-out ","ms,pointer-events 0s linear;opacity:0;transform:scale(0.9) translate(0,0);transform-origin:center;",""],p,m,p,m,(({$visible:e})=>e&&(0,l.css)(["opacity:1;pointer-events:auto;transform:scale(1) translate(0,0);transition:opacity ","ms ease-in-out ","ms,transform ","ms ease-in-out ","ms,pointer-events 0s linear;"],h,m,h,m))),v=l.default.div.withConfig({componentId:"sc-8iezo5-1"})(["position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;pointer-events:none;z-index:1000;justify-content:center;align-items:center;"]),y=l.default.div.withConfig({componentId:"sc-8iezo5-2"})(["position:absolute;width:100%;height:100%;background-color:",";backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);opacity:0;pointer-events:none;transition:opacity ","ms ease-in-out ","ms,pointer-events 0s linear;",""],(({theme:e})=>e.scrim.dark),p,m,(({$visible:e})=>e&&(0,l.css)(["opacity:1;pointer-events:auto;transition:opacity ","ms ease-in-out,pointer-events 0s linear;"],h))),b=(0,l.default)(d.F).withConfig({componentId:"sc-8iezo5-3"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]),w=l.default.div.withConfig({componentId:"sc-8iezo5-4"})(["display:block;position:relative;pointer-events:none;transition:opacity ","ms ease-in-out ","ms,transform ","ms ease-in-out ","ms,pointer-events 0s linear,visibility 0s ","ms;width:calc(100% - 2rem);max-width:1068px;max-height:calc(100% - 5.5rem);margin:4.5rem 1rem 1rem;opacity:0;visibility:hidden;transform:scale(0.9) translate(0,0);transform-origin:center;"," ","{width:auto;height:auto;max-height:unset;}"],p,m,p,m,150,(({$visible:e})=>e&&(0,l.css)(["opacity:1;visibility:visible;pointer-events:auto;transform:scale(1) translate(0,0);transition:opacity ","ms ease-in-out ","ms,transform ","ms ease-in-out ","ms,pointer-events 0s linear;"],h,m,h,m)),(({theme:e})=>e.mediaQuery.tabletSmall)),k=(0,l.default)(u.B).withConfig({componentId:"sc-8iezo5-5"})(["position:absolute;cursor:pointer;color:",";width:48px;height:48px;top:calc(-1rem - 48px);right:0;","{border:none;}& span{line-height:0;top:1px;left:1px;}",""],(({theme:e})=>e.color.white),u.a,(({$closeButtonInside:e})=>e&&"\n top: 5px;\n transition: top 0.3s;\n z-index: 1;\n transform: translateX(-5px);\n @media screen and (min-height: 720px) {\n top: calc(-1rem - 48px);\n transform: translateX(0px);\n }\n ")),S=l.default.div.withConfig({componentId:"sc-8iezo5-6"})(["overflow:hidden;background-color:white;border-radius:",";"],(({theme:e})=>e.borderRadiusRound)),A=l.default.div.withConfig({componentId:"sc-8iezo5-7"})(["overflow:auto;width:100%;height:100%;max-height:calc(100vh - 5.5rem);"]),x=({visible:e,lang:t,onClose:n,triggerNode:o,children:a,containChildren:l,dialogLabel:u,className:d,closeButtonInside:p})=>{const{text:h}=(0,c.u)(),m=h("Close",{locale:t}),[x,E]=(0,r.useState)(!1),[N,C]=(0,r.useState)(),[_,O]=(0,r.useState)(),I=o&&o.current||_,T=(0,r.useCallback)((t=>{"escape"==t.key.toLowerCase()&&e&&n()}),[n,e]);return(0,r.useEffect)((()=>{C(document.body),O(document.activeElement)}),[]),(0,r.useEffect)((()=>{if(e)document.body.style.top=`-${window.scrollY}px`,document.body.style.position="fixed",document.body.style.overflowY="scroll",E(!0),O(document.activeElement);else{const e=parseInt(document.body.style.top);document.body.style.position="",document.body.style.top="",document.body.style.overflowY="",isNaN(e)||window.scrollTo(0,-1*e),E(!1)}}),[e]),N?i.createPortal((0,f.jsxs)(v,{onKeyDown:T,className:d,children:[(0,f.jsx)(y,{onClick:n,$visible:e}),(0,f.jsx)(b,{bindFocus:x,returnFocus:I,children:l?(0,f.jsxs)(w,{$visible:e,role:"dialog","aria-modal":"true","aria-label":u,children:[(0,f.jsx)(k,{variant:"ghost",round:!0,still:!0,onClick:n,"aria-label":m,$closeButtonInside:p,children:(0,f.jsx)(s.Z,{size:24})}),(0,f.jsx)(S,{children:(0,f.jsx)(A,{children:a})})]}):(0,f.jsxs)(g,{$visible:e,role:"dialog","aria-modal":"true","aria-label":u,children:[(0,f.jsx)(k,{variant:"ghost",round:!0,still:!0,onClick:n,"aria-label":m,$closeButtonInside:p,children:(0,f.jsx)(s.Z,{size:24})}),a]})})]}),N):null};x.propTypes={className:a().string,children:a().node.isRequired,containChildren:a().bool,lang:a().oneOf(["en","es","fr","pt"]),visible:a().bool,onClose:a().func.isRequired,triggerNode:a().object,dialogLabel:a().string.isRequired,closeButtonInside:a().bool},x.defaultProps={visible:!1,lang:"en",containChildren:!0};var E=x},7162:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});n(2784);var r=n(13980),i=n.n(r),o=n(52792),a=n(52322);const s=e=>{const{className:t,size:n}=e;return(0,a.jsx)(o.Y,{role:"presentation",alt:"",size:n,assetPath:"/Design System/Component Library/Icon/my-nintendo-gold-coin.png",className:t,"data-testid":"MyNintendoGoldCoinIcon"})};s.propTypes={className:i().string,size:i().oneOfType([i().number,i().string])},s.defaultProps={size:24}},80149:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});n(2784);var r=n(13980),i=n.n(r),o=n(52792),a=n(52322);const s=e=>{const{className:t,size:n}=e;return(0,a.jsx)(o.Y,{role:"presentation",alt:"",size:n,assetPath:"Design System/Component Library/Icon/my-nintendo-platinum-coin.png",className:t,"data-testid":"MyNintendoPlatinumCoinIcon"})};s.propTypes={className:i().string,size:i().oneOfType([i().number,i().string])},s.defaultProps={size:24}},52792:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(7307),i=n(77664);n(2784),n(52322);const o=(0,r.default)(i.I).withConfig({componentId:"sc-1yh2edi-0"})(["display:block;width:",";"],(({size:e})=>e?`${e}px`:"100%"))},70342:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 135 18",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MyNintendoStoreLogoIcon",...e,children:(0,o.jsx)("path",{d:"M76.974 9.947c-.19-.58-.727-1.197-1.672-1.197-.67 0-1.337.342-1.632 1.197h3.304zm1.781.54c0 .641-.42.81-1.25.81h-3.862c.187.86.965 1.313 1.632 1.313.658 0 1.155-.24 1.561-.761l1.553.564c-.505 1.03-1.674 1.854-3.098 1.854-1.956 0-3.44-1.76-3.44-3.6 0-1.78 1.45-3.578 3.422-3.578 2.27 0 3.455 1.996 3.483 3.398zm4.316-3.397c-.713 0-1.35.298-1.738.784h-.02V7.3h-1.904v6.758h1.903v-3.29c0-1.314.692-1.88 1.477-1.88.545 0 1.375.357 1.375 1.686v3.48h1.903V10.43c0-2.273-1.52-3.339-2.996-3.339zM70.409 5.435H68.51v1.863h-1.27v1.593h1.27v5.165h1.9V8.891h1.286V7.298H70.41V5.435h-.001zm29.304 5.246c0-1.001-.773-1.816-1.724-1.816-.95 0-1.723.815-1.723 1.816 0 1.002.773 1.817 1.724 1.817.95 0 1.724-.815 1.724-1.817h-.001zm1.771-.002c0 1.978-1.564 3.588-3.494 3.588-1.931 0-3.494-1.61-3.494-3.588 0-1.98 1.563-3.59 3.494-3.59 1.93 0 3.494 1.612 3.494 3.59zm1.184 3.093l-.147-.518h-.267v.805h.183l-.006-.603.169.603h.132l.168-.603-.006.603h.183v-.805h-.268l-.141.518zM91.96 10.677c0-1.022-.736-1.83-1.732-1.83-.995 0-1.755.822-1.755 1.83s.76 1.829 1.755 1.829c.996 0 1.732-.808 1.732-1.829zm-.01-6.133h1.904v9.515H91.95v-.5h-.032c-.15.231-.854.708-1.753.708-1.877 0-3.458-1.617-3.458-3.59 0-1.973 1.58-3.588 3.458-3.588.9 0 1.602.474 1.753.705h.032v-3.25zM35.933 4.48c-.484 0-1.023.197-1.45 1.202-.292.69-2.296 5.375-2.296 5.375h-.038l-2.298-5.378c-.427-1.002-.994-1.198-1.45-1.198-.661 0-1.276.451-1.276 1.53v8.046h2.042V8.753h.04l1.903 4.464c.33.773.697.902 1.057.902.361 0 .729-.129 1.058-.902l1.903-4.464h.04v5.303h2.042V6.018c0-1.079-.56-1.54-1.277-1.54zm65.714 8.955h.153v.625h.2v-.625h.153v-.18h-.506v.18zm-59.967-1.95L40.086 7.29h-2.128l2.844 6.63c-.182.876-.727 1.218-1.488 1.218h-.279v1.687h.362c1.454 0 2.207-.269 2.66-1.412.112-.28 3.2-8.123 3.2-8.123h-2.143l-1.434 4.194zM17.73 5.156C16.182 2.24 13.406.515 10.203.515c-3.769 0-7.667 2.59-7.667 6.922 0 3.042 2.526 4.287 2.635 4.338a.825.825 0 0 0 1.091-.376l1.445-2.78 1.044 2.113c.144.29.431.472.747.472s.604-.182.747-.472l1.039-2.1 1.413 2.762a.826.826 0 0 0 1.132.362.88.88 0 0 0 .35-1.17l-2.166-4.237a.846.846 0 0 0-.749-.461.835.835 0 0 0-.74.472L9.498 8.435 8.473 6.36a.835.835 0 0 0-.739-.472.837.837 0 0 0-.748.456l-1.762 3.39C4.757 9.3 4.213 8.557 4.213 7.437c0-3.249 3.045-5.191 5.99-5.191 2.715 0 5.054 1.55 6.256 4.145.148.32.47.513.813.49.08-.005.11-.003.125-.003.028.002.049.002.066.002 2.086 0 3.54 1.94 3.54 3.68 0 2.11-1.605 3.763-3.652 3.763-.81 0-1.602-.338-1.998-.651a.815.815 0 0 0-1.028.005 9.116 9.116 0 0 1-5.639 1.965c-3.375 0-5.863-1.94-6.8-3.085a.82.82 0 0 0-1.182-.104.886.886 0 0 0-.1 1.219c.31.379 3.168 3.7 8.082 3.7 2.867 0 4.98-1.106 6.19-1.967a5.305 5.305 0 0 0 2.474.649c2.988 0 5.33-2.414 5.33-5.494 0-2.537-1.978-5.25-4.95-5.403zm39.372 8.902h1.903V7.297h-1.903v6.762zm6.802-6.969c-.713 0-1.35.298-1.738.784h-.02V7.3h-1.903v6.758h1.903v-3.29c0-1.314.69-1.88 1.476-1.88.545 0 1.375.357 1.375 1.686v3.48H66.9V10.43c0-2.273-1.521-3.339-2.997-3.339zm-5.85-2.972c-.615 0-1.112.514-1.112 1.147 0 .634.497 1.148 1.111 1.148s1.112-.514 1.112-1.148c0-.633-.498-1.147-1.112-1.147zm-4.332 6.308l-3.86-5.239c-.398-.54-.778-.706-1.086-.706-.727 0-1.11.453-1.11 1.101v8.474h2.043V8.173l3.86 5.24c.398.54.777.707 1.085.707.729 0 1.11-.453 1.11-1.102V4.545H53.72v5.882zm71.964-2.516h-.021v-.612h-1.902v6.758h1.902V11.01c0-1.28.667-2.01 1.694-2.01h.065V7.09c-.666 0-1.39.277-1.738.82zm-4.267 2.771c0-1.001-.773-1.815-1.724-1.815-.95 0-1.723.814-1.723 1.816 0 1 .773 1.815 1.724 1.815.95 0 1.723-.814 1.723-1.816zm1.77-.002c0 1.978-1.562 3.588-3.493 3.588-1.93 0-3.494-1.61-3.494-3.588 0-1.98 1.564-3.59 3.494-3.59 1.93 0 3.494 1.612 3.494 3.59zm-8.428-5.244h-1.898v1.863h-1.272v1.594h1.272v5.164h1.898V8.892h1.287V7.298h-1.287V5.435zm17.965 4.512c-.192-.579-.729-1.197-1.674-1.197-.669 0-1.324.342-1.62 1.197h3.294zm.53 1.35h-3.87c.235.871.987 1.311 1.639 1.311.66 0 1.156-.236 1.561-.76l1.556.565c-.506 1.028-1.675 1.854-3.1 1.854-1.955 0-3.441-1.76-3.441-3.6 0-1.78 1.452-3.578 3.422-3.578 2.272 0 3.457 1.995 3.485 3.398 0 .641-.42.81-1.252.81zm-21.82.08c0 1.374-1.178 2.962-3.155 2.962-1.562 0-2.744-.99-3.345-1.768l1.744-1.252c.474.495 1.071.866 1.651.866.51 0 .992-.331.992-.808 0-.674-.92-.933-1.922-1.324-1.7-.663-2.225-1.681-2.225-2.882 0-1.445 1.224-2.908 3.108-2.908 1.223 0 2.283.75 2.957 1.605l-1.609 1.162c-.506-.485-.943-.659-1.425-.659-.696 0-.98.433-.98.783 0 .732.972.95 1.927 1.322 1.93.748 2.284 1.858 2.284 2.9h-.001z",fill:e.color,fillRule:"nonzero",mask:"url(#b)"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},92445:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"NewsIcon",...e,children:(0,o.jsx)("path",{fill:e.color,d:"M31.92 3.62a1.945 1.945 0 0 0-1.953-1.932H1.874A1.945 1.945 0 0 0-.08 3.62v10.068h32zm-32 11.692v7.201a2.027 2.027 0 0 0 1.954 1.998h8.711a2.777 2.777 0 0 1 2.178 1.073q2.97 4.736 3.315 4.728.344-.009 3.315-4.837a2.677 2.677 0 0 1 2.177-.964h8.398a2.027 2.027 0 0 0 1.953-1.998v-7.201zm14 5.15c0 .056-.07.1-.155.1H3.077c-.086 0-.156-.044-.156-.1v-1.051c0-.055.07-.1.156-.1h10.688c.086 0 .156.045.156.1z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},18019:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 97 24",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"NintendoRacetrackLogoIcon",...e,children:(0,o.jsx)("path",{d:"M17.945 14.157l-4.85-7.838H9.609V17.59h3.486V9.752l4.85 7.838h3.456V6.32h-3.486l.03 7.837zm27.554-4.04V8.993H43.68v-1.52h-3.395v1.52h-1.849v1.124h1.85v7.473h3.394v-7.473h1.82zM23.341 17.56h3.364v-7.474h-3.364v7.474zm0-8.932h3.395V6.319H23.34v2.309zm59.17.942c-2.728 0-4.941 1.883-4.941 4.192s2.213 4.193 4.94 4.193c2.729 0 4.942-1.884 4.942-4.193 0-2.309-2.213-4.192-4.941-4.192zm1.364 5.772c0 1.185-.698 1.67-1.364 1.67-.667 0-1.395-.485-1.395-1.67v-3.16c0-1.184.697-1.67 1.395-1.67.666 0 1.364.486 1.364 1.67v3.16zm-10.73-4.891c-.547-.304-1.123-.608-1.91-.669-2.426-.212-4.305 1.945-4.305 3.92 0 2.612 2 3.554 2.304 3.706 1.152.516 2.607.547 3.88-.274v.426h3.334V6.32h-3.334c.03 0 .03 2.4.03 4.13zm.03 3.342v1.336c0 1.155-.789 1.458-1.334 1.458-.546 0-1.334-.303-1.334-1.458v-2.673c0-1.155.788-1.458 1.334-1.458.515 0 1.333.303 1.333 1.458v1.337zM34.616 9.752c-1.122.03-2.031.516-2.698 1.124v-.79h-3.365v7.474h3.365v-4.922c0-.638.697-1.367 1.607-1.367.909 0 1.546.73 1.546 1.367v4.922h3.364v-4.071c0-2.947-2.546-3.798-3.82-3.737zm27.433 0a4.075 4.075 0 0 0-2.698 1.124v-.79h-3.365v7.474h3.365v-4.922c0-.638.697-1.367 1.606-1.367.91 0 1.546.73 1.546 1.367v4.922h3.365v-4.071c0-2.947-2.546-3.798-3.82-3.737zm-7.063 4.101c0-2.309-2.243-4.253-4.971-4.253-2.759 0-4.972 1.884-4.972 4.193 0 2.308 2.213 4.192 4.972 4.192 2.273 0 4.213-1.306 4.789-3.068H51.44v.455c0 1.367-.91 1.671-1.394 1.671-.515 0-1.425-.304-1.425-1.67v-1.55l6.366.03zm-6.123-2.643a1.391 1.391 0 0 1 1.182-.668c.455 0 .91.213 1.182.668.212.365.212.82.212 1.458H48.62c0-.637.03-1.063.243-1.458zm39.921-3.493c0-.365-.272-.547-.818-.547h-.758v1.914h.455v-.79h.242l.364.79h.515l-.424-.851c.273-.091.424-.273.424-.516zm-.879.273h-.242v-.547h.212c.273 0 .424.091.424.274 0 .212-.12.273-.394.273zm.03-1.58c-.94 0-1.727.79-1.727 1.732s.788 1.732 1.728 1.732 1.727-.79 1.727-1.732a1.73 1.73 0 0 0-1.727-1.732zm0 3.13a1.413 1.413 0 0 1-1.394-1.398c0-.76.637-1.398 1.395-1.398.757 0 1.394.638 1.394 1.398 0 .76-.637 1.397-1.394 1.397zM84.148 0H12.64C5.062-.03 0 5.438 0 11.97c0 6.53 5.062 11.939 12.67 11.939h71.508c7.608 0 12.67-5.408 12.67-11.94C96.818 5.44 91.726 0 84.148 0zm-.03 20.993H12.671c-6.033.03-9.7-4.041-9.7-9.023 0-4.983 3.698-8.993 9.7-9.023h71.446c6.002 0 9.7 4.04 9.7 9.023 0 4.982-3.668 9.023-9.7 9.023z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},8735:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"NsoIcon",...e,children:[(0,o.jsx)("path",{fill:e.color,d:"M0 0v32h32V0zm8.785 9.232a3.7 3.7 0 0 1 3.7-3.7h3.154a.106.106 0 0 1 .106.106v14.218a.106.106 0 0 1-.106.106h-3.154a3.7 3.7 0 0 1-3.7-3.7zM6.767 26.596a2.034 2.034 0 1 1 2.064-2.034 2.05 2.05 0 0 1-2.064 2.034zm6.473-.124h-.677l-2.032-2.547v2.547h-.773v-3.82h.77l1.9 2.464v-2.464h.812zm4.025 0H14.35v-3.82h.82v3.075h2.094zm1.616 0h-.82v-3.82h.82zm-1.586-6.51a.105.105 0 0 1-.106-.106V5.626a.093.093 0 0 1 .094-.094h2.232a3.7 3.7 0 0 1 3.7 3.7v7.03a3.7 3.7 0 0 1-3.7 3.7zm6.178 6.51h-.676l-2.033-2.547v2.547h-.772v-3.82h.769l1.901 2.464v-2.464h.811zm4.27-3.075H25.41v.76h2.22v.707h-2.22v.863h2.333v.745H24.59v-3.82h3.154z"}),(0,o.jsx)("path",{fill:e.color,d:"M6.767 23.306a1.257 1.257 0 1 0 1.214 1.256 1.236 1.236 0 0 0-1.214-1.256zm5.718-4.508h2.097V6.696h-2.097A2.536 2.536 0 0 0 9.95 9.232v7.03a2.536 2.536 0 0 0 2.536 2.536zm-.097-10.294a1.357 1.357 0 1 1-1.356 1.356 1.357 1.357 0 0 1 1.356-1.356zm7.655 3.506a1.459 1.459 0 1 0 1.46 1.458 1.459 1.459 0 0 0-1.46-1.458z"})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},79102:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"OffsiteIcon",...e,children:(0,o.jsx)("path",{d:"M12.7 5.3v4H4V28h17.3v-8.7h4v10c0 1.5-1.2 2.7-2.7 2.7h-20C1.2 32 0 30.8 0 29.3V8c0-1.5 1.2-2.7 2.7-2.7h10zM32 0v16h-4V6.8L15.1 19.9 12.2 17l13-13H16V0h16z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},97239:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52322);const s=o.default.div.withConfig({componentId:"sc-v8r1lj-0"})(["display:block;width:2px;height:",";background-color:",";margin-right:",";","{height:",";transform:translateY(2px);margin-right:",";}"],(({theme:e})=>e.font.size.bodyMobile),(({$accentColor:e})=>e||"transparent"),(({theme:e})=>e.pxToRem(4)),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.bodyDesktop),(({theme:e})=>e.pxToRem(6))),c=o.default.div.withConfig({componentId:"sc-v8r1lj-1"})(["display:flex;align-items:flex-start;font-size:",";font-weight:",";","{font-size:",";}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.font.weight.light),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.captionDesktop)),l=({accentColor:e,children:t,className:n})=>(0,a.jsxs)(c,{className:n,children:[(0,a.jsx)(s,{$accentColor:e}),(0,a.jsx)("span",{children:t})]});l.propTypes={className:i().string,accentColor:i().string,children:i().node},l.defaultProps={};var u=l},84011:function(e,t,n){"use strict";n.d(t,{P:function(){return _},p:function(){return C}});n(2784);var r=n(7307),i=n(13980),o=n.n(i),a=n(52322);const s=({className:e,index:t})=>(0,a.jsx)("sup",{className:e,children:(0,a.jsx)("a",{href:`#footnote-${t}`,children:t})});s.propTypes={className:o().string,index:o().number.isRequired},s.defaultProps={index:"1"};var c=s,l=n(91383),u=n(80149),d=n(29434),f=n(12870);const p=r.default.div.withConfig({componentId:"sc-1f0n8u6-0"})(["display:flex;flex-direction:row;align-items:center;transition:opacity 200ms ease-in-out;"]),h=r.default.div.withConfig({componentId:"sc-1f0n8u6-1"})(["display:flex;align-items:center;"]),m=(0,r.default)(l.S).withConfig({componentId:"sc-1f0n8u6-2"})(["position:absolute !important;overflow:hidden !important;clip:rect(1px,1px,1px,1px) !important;width:1px !important;height:1px !important;border:0 !important;padding:0 !important;margin:0 !important;"]),g=r.default.div.withConfig({componentId:"sc-1f0n8u6-3"})(["position:relative;background-color:",";border-radius:0 "," "," 0;color:",";font-size:",";font-weight:",";padding-right:",";line-height:",";margin-left:",";","{font-size:",";}&::before{content:'';background:url(",");background-repeat:no-repeat;position:absolute;height:100%;width:100%;left:-15%;}"],d.d.color.primary,(({theme:e})=>e.pxToRem(2)),(({theme:e})=>e.pxToRem(2)),(({theme:e})=>e.color.white),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.pxToRem(2)),(({theme:e})=>e.pxToRem(16)),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop),(({$tagLeftIcon:e})=>e)),v=(0,r.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.titleMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.titleDesktop)),y=(0,r.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h1SMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h1SDesktop)),b=r.default.span.withConfig({componentId:"sc-1f0n8u6-4"})(["position:relative;color:",";font-weight:",";margin-right:",";",";",";"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.font.weight.bold),(({theme:e,size:t})=>"large"===t?e.spacing[12]:e.spacing[8]),(({size:e})=>"medium"===e&&v),(({size:e})=>"large"===e&&y)),w=r.default.span.withConfig({componentId:"sc-1f0n8u6-5"})(["position:relative;color:",";font-weight:",";",";",";"," ","{","}"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.font.weight.bold),(({size:e})=>"medium"===e&&v),(({size:e})=>"large"===e&&y),(({$discounted:e})=>e&&(0,r.css)(["display:inline;color:",";font-size:",";font-weight:",";text-decoration:line-through;margin-left:",";"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.font.weight.light),(({$noteIdentifier:e,theme:t})=>e?t.spacing[12]:"0"))),(({theme:e})=>e.mediaQuery.tabletSmall),(({$discounted:e})=>e&&(0,r.css)(["font-size:",";"],(({theme:e})=>e.font.size.legalDesktop)))),k=(0,r.default)(c).withConfig({componentId:"sc-1f0n8u6-6"})(["position:absolute;top:-4px;font-size:smaller;"]),S=(0,r.default)(u.Z).withConfig({componentId:"sc-1f0n8u6-7"})(["width:18px;","{width:",";}"],(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.spacing[24])),A=r.default.div.withConfig({componentId:"sc-1f0n8u6-8"})(["display:flex;align-items:center;font-size:",";white-space:nowrap;","{font-size:",";}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.font.size.titleMobile)),x=r.default.span.withConfig({componentId:"sc-1f0n8u6-9"})(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.titleMobile),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.font.size.titleDesktop)),E=r.default.span.withConfig({componentId:"sc-1f0n8u6-10"})(["margin-left:",";","{margin-left:",";}"],(({theme:e})=>e.spacing[4]),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.spacing[8]));const N=({className:e,currency:t,lang:n,noteIdentifier:r,regPrice:i,salePrice:o,platinumPoints:s,showCurrency:c,showDiscountPercent:l,showMSRP:u,size:d})=>{const{text:v}=(0,f.u)(),y=v("Current Price:",{locale:n}),N=v("Regular Price:",{locale:n}),C=v("MSRP",{locale:n}),_=(O=((e,t)=>{const n=e=>"."===e[e.length-3]?e.replace(/[S//$,R]+/g,""):e.replace(/[$R.]+/g,"").replace(/[,]+/g,".").trim();if(e&&t){const r=n(e),i=Math.floor((r-n(t))/r*100);return isNaN(i)?null:`-${i}`}return null})(i,o),O?v("{0}%",{args:[O],locale:n}):null);var O;const I=(0,a.jsxs)(A,{"data-testid":"platinumPoints",children:[(0,a.jsx)(S,{}),(0,a.jsxs)(E,{children:[(0,a.jsx)(x,{children:s})," ",v("Platinum Points")]})]});return(0,a.jsx)(p,{className:e,children:(0,a.jsxs)(h,{children:[o?(0,a.jsxs)(b,{size:d,children:[(0,a.jsx)(m,{children:y}),o,c?` ${t.toUpperCase()}`:null,r?(0,a.jsx)(k,{index:r}):null]}):null,(0,a.jsxs)(w,{$discounted:Boolean(o),$noteIdentifier:r,size:d,children:[(0,a.jsx)(m,{children:N}),s?I:i,c&&!o?` ${t.toUpperCase()}`:null,u&&!o?(0,a.jsx)("sup",{children:C}):null,r&&!o?(0,a.jsx)(k,{index:r}):null]}),l&&_&&(0,a.jsx)(g,{$tagLeftIcon:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%207.36%2020%22%3E%20%20%20%20%3Cpath%20d%3D%22M7.369%200v20h-.181c-.558%200-1.094-.222-1.489-.617L.621%2014.305c-.397-.397-.62-.937-.616-1.5l.029-5.627c.003-.553.223-1.082.612-1.474L5.699.621C6.094.224%206.63%200%207.192%200h.177z%22%20fill%3D%22%23e60012%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E",size:d,children:_})]})})};N.propTypes={className:o().string,regPrice:o().string,salePrice:o().string,showDiscountPercent:o().bool,lang:o().oneOf(["en","es","fr","pt"]),platinumPoints:o().oneOfType([o().string,o().number]),currency:o().oneOf(["usd","cad","mxn","brl","cop","ars","clp","pen"]),showCurrency:o().bool,showMSRP:o().bool,size:o().oneOf(["medium","large"]),noteIdentifier:o().number},N.defaultProps={lang:"en",currency:"usd",showDiscountPercent:!0,size:"medium"};const C=N.propTypes;var _=N},7740:function(e,t,n){"use strict";n.d(t,{P:function(){return E}});var r=n(2784),i=n(13980),o=n.n(i),a=n(26455),s=n(7307),c=n(84433),l=n(25544),u=n(9069),d=n(97239),f=n(52322),p=n(58065);const h=s.default.div.withConfig({componentId:"sc-q6g3tu-0"})(["width:100%;color:",";position:relative;overflow:hidden;border-radius:",";border:solid 1px ",";background-color:",";"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.borderRadius),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.white)),m=s.default.div.withConfig({componentId:"sc-q6g3tu-1"})(["display:flex;flex-direction:column;justify-content:space-between;margin:",";width:100%;",""],(({theme:e})=>`${e.spacing[8]} ${e.spacing[12]}`),(({$contents:e})=>"single"==e&&(0,s.css)(["justify-content:center;"]))),g=s.default.div.withConfig({componentId:"sc-q6g3tu-2"})(["display:block;position:relative;width:100%;max-width:",";&::after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;background-color:",";opacity:0;transition:opacity "," "," ",";}"],(({theme:e,$maxWidth:t})=>e.pxToRem(t)),(({theme:e})=>e.color.black),(({theme:e})=>e.movement.duration),(({theme:e})=>e.movement.easing),(({theme:e})=>e.movement.delay)),v=s.default.div.withConfig({componentId:"sc-q6g3tu-3"})(["cursor:pointer;display:block;text-decoration:none;transition:",";"],(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`)),y=(0,s.default)(l.T).withConfig({componentId:"sc-q6g3tu-4"})(["margin:0;font-size:",";display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:calc("," * 2em);"],(({theme:e})=>e.font.size.titleMobile),(({theme:e})=>e.font.lineHeight)),b=s.default.div.withConfig({componentId:"sc-q6g3tu-5"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;","{align-self:flex-start;}","{margin-bottom:0.25rem;}","{margin:0 0 0 auto;width:1rem;height:1rem;svg{width:1rem;}}"],c.b,c.c,c.d),w=s.default.a.withConfig({componentId:"sc-q6g3tu-6"})(["display:flex;flex-direction:row;position:relative;opacity:",";transition:opacity 1s "," 0ms;"," @media (hover:hover) and (pointer:fine){&:hover{","{color:",";}","{&::after{opacity:0.3;}}}}&:active ","{&::after{opacity:0.3;}}"],(({$loaded:e})=>e?1:0),(({theme:e})=>e.movement.easing),(({$skeleton:e})=>e&&(0,s.css)(["background-color:",";opacity:",";position:absolute;left:0;top:0;z-index:5;pointer-events:none;width:100%;height:100%;"],(({theme:e})=>e.color.white),(({$loaded:e})=>e?0:1))),v,(({theme:e})=>e.color.primary),g,g),k=(0,s.default)(u.W).withConfig({componentId:"sc-q6g3tu-7"})(["position:absolute;bottom:0;right:0;padding:"," ",";-webkit-tap-highlight-color:transparent;svg{width:",";height:",";}"],(({theme:e})=>e.spacing[12]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.pxToRem(34)),(({theme:e})=>e.pxToRem(34))),S=(0,s.default)(c.S).withConfig({componentId:"sc-q6g3tu-8"})(["max-width:141px;& > div{margin-bottom:0;}"]),A=(0,s.default)(c.S).withConfig({componentId:"sc-q6g3tu-9"})(["margin-top:0;","{&:first-child{margin-top:0;}&:last-child{margin-bottom:0.25rem;}}"],c.c),x=e=>{const{artPath:t,backgroundFillColor:n,className:i,lang:o,platformColor:s,productCategory:l,productId:u,productLink:x,productPlatform:E,productTitle:N,wishlistProps:C,showLoader:_}=e,O=(0,a.u)(),I=!!C,[T,M]=(0,r.useState)(!_),P=(0,r.useCallback)((()=>{M(!0)}),[]);return(0,f.jsxs)(h,{className:i,"data-ignore":!N,children:[(0,f.jsx)(O,{href:x,children:(0,f.jsxs)(w,{$loaded:T,"aria-label":N,children:[(0,f.jsx)(g,{$maxWidth:141,children:(0,f.jsx)(p.K,{onKeyArtLoaded:P,backgroundFillColor:n,assetPath:t,showPlaceholder:!_})}),(0,f.jsxs)(m,{$contents:I||E?"full":"single",children:[(0,f.jsx)(v,{children:(0,f.jsx)(y,{variant:"title",children:N})}),(I||E)&&(0,f.jsx)(b,{children:E?(0,f.jsx)(d.P,{accentColor:s,children:E}):(0,f.jsx)("div",{})})]})]})}),_&&(0,f.jsxs)(w,{as:"div",$loaded:T,$skeleton:!0,children:[(0,f.jsx)(S,{type:"image",graphic:!0}),(0,f.jsxs)(m,{$contents:I||E?"full":"single",children:[(0,f.jsx)(A,{size:"caption",lines:2}),(I||E)&&(0,f.jsxs)(b,{children:[E&&(0,f.jsx)(c.S,{size:"caption",width:"100%"}),I&&(0,f.jsx)(c.S,{type:"icon"})]})]})]}),I&&(0,f.jsx)(k,{...C,iconOnly:!0,lang:o,productId:u,analyticsName:N,onClick:()=>C.onClick(l,u)})]})};x.propTypes={artPath:o().string.isRequired,backgroundFillColor:o().string,className:o().string,showLoader:o().bool,lang:o().oneOf(["en","es","fr","pt"]),productCategory:o().string,productId:o().string,productLink:o().string.isRequired,productPlatform:o().string,platformColor:o().string,productTitle:o().string.isRequired,wishlistProps:o().shape({isAdded:o().bool,iconOnly:o().bool,lang:o().oneOf(["en","es","fr","pt"]),onClick:o().func.isRequired,analyticsName:o().string})},x.defaultProps={showLoader:!0};var E=x},77682:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ReceiptIcon",...e,children:(0,o.jsx)("path",{d:"M26 1.6L24 0l-2 1.6L20 0l-2 1.6L16 0l-2 1.6L12 0l-2 1.6L8 0 6 1.6 4 0v30.4L6 32l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6 2-1.6V0l-2 1.6zM8 6h8v2H8V6zm16 20H8v-2h16v2zm0-4H8v-2h16v2zm0-4H8v-2h16v2zm0-4H8v-2h16v2z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},10723:function(e,t,n){"use strict";n.d(t,{R:function(){return _}});n(2784);var r=n(13980),i=n.n(r),o=n(34406);const a="https://www.nintendo.com",s="en-us",c="en-ca",l="fr-ca",u="es-mx",d="pt-br",f="es-ar",p="es-cl",h="es-co",m="es-pe",g=new Set([f,p,h,m]),v=new Set([u,d,...g]),y=new Set([s,c,l,...v]);new Set(Array.from(y).map((e=>e?.split("-")[0])).filter(Boolean)),[...y].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`})),o.env.DEV_PREVIEW_MODE;var b=n(7307),w=n(52322);const k=({country:e,width:t,...n})=>{const r=`https://assets.nintendo.com/image/upload/c_scale,w_${t},q_auto/ncom/global/flags-change-region/Flag${e}IconRegionSelect`;return(0,w.jsxs)("picture",{children:[(0,w.jsx)("source",{type:"image/webp",srcSet:`${r}.webp`}),(0,w.jsx)("img",{src:`${r}.png`,alt:`Flag of ${e}`,loading:"lazy",...n})]})};k.propTypes={country:i().oneOf(["Usa","Peru","Mexico","Colombia","Chile","Canada","Brazil","Argentina"]).isRequired,width:i().string.isRequired};var S=k;const A=b.default.a.withConfig({componentId:"sc-6879a6-0"})(["display:inline-flex;align-items:center;justify-content:center;"]),x=b.default.span.withConfig({componentId:"sc-6879a6-1"})(["border-radius:0.25rem;border:solid 1px white;overflow:hidden;img{display:block;}"]),E=b.default.span.withConfig({componentId:"sc-6879a6-2"})(["color:",";padding:0;font-size:",";font-weight:",";line-height:",";margin-left:",";border:none;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;transition:",";&:focus-visible,&:hover{border-bottom-color:",";}"],(({theme:e})=>e.color.white),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.lineHeight),(({theme:e})=>e.spacing[8]),(({theme:e})=>`border-bottom-color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}, color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.white)),N={"en-us":{country:"United States",flag:"Usa",language:"English"},"en-ca":{country:"Canada",flag:"Canada",language:"English"},"fr-ca":{country:"Canada",flag:"Canada",language:"French"},"es-mx":{country:"Mexico",flag:"Mexico",language:"Spanish"},"pt-br":{country:"Brazil",flag:"Brazil",language:"Portuguese"},"es-cl":{country:"Chile",flag:"Chile",language:"Spanish"},"es-co":{country:"Colombia",flag:"Colombia",language:"Spanish"},"es-pe":{country:"Peru",flag:"Peru",language:"Spanish"},"es-ar":{country:"Argentina",flag:"Argentina",language:"Spanish"}},C=e=>{const{flagOnly:t,locale:n,noLink:r}=e,{country:i,flag:o,language:s}=N[n]||{},c=((e,t)=>{const n=e?.pathname&&e?.origin&&e?.search?e:new URL(e,a),{returnAbsoluteUrl:r}=t||{},i=`${`/${n.pathname}/`.replace(/\/(\/)*\//g,"/")}${n.search}${n.hash}`;return r?`${n.origin}${i}`:`${i}`})(new URL("/us/regionselector/",a),{returnAbsoluteUrl:!0});return(0,w.jsxs)(A,{as:r?"span":"a",href:r?null:c,children:[(0,w.jsx)(x,{children:(0,w.jsx)(S,{country:o||i,width:"24"})}),!t&&(0,w.jsxs)(E,{"data-testid":"language-country",children:[s," ",`(${i})`]})]})};C.propTypes={locale:i().oneOf([...y]),flagOnly:i().bool,noLink:i().bool},C.defaultProps={noLink:!1};var _=C},75696:function(e,t,n){"use strict";n.d(t,{S:function(){return g}});var r=n(2784),i=n(13980),o=n.n(i),a=n(12870),s=n(97066),c=n(7307),l=n(52322);const u=c.default.div.withConfig({componentId:"sc-nxus5e-0"})(["align-items:center;display:grid;grid-template-columns:auto;svg{height:",";display:block;}",""],(({theme:e})=>e.pxToRem(60)),(({$hasDescriptors:e})=>e&&(0,c.css)(["grid-column-gap:",";grid-template-columns:auto auto;"],(({theme:e})=>e.spacing[12])))),d=c.default.div.withConfig({componentId:"sc-nxus5e-1"})(["display:flex;min-width:200px;max-width:352px;font-weight:",";font-size:",";line-height:",";padding:0;flex-direction:column;justify-content:center;width:fit-content;color:",";","{font-size:",";line-height:",";}"," "," ",""],(({theme:e})=>e.font.weight.light),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.pxToRem(14)),(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.pxToRem(16)),(({$entryCount:e})=>e<=3&&(0,c.css)(["max-width:200px;"])),(({$entryCount:e})=>4==e&&(0,c.css)(["max-width:276rem;"])),(({$entryCount:e})=>e>=5&&(0,c.css)(["max-width:352px;"]))),f=c.default.div.withConfig({componentId:"sc-nxus5e-2"})(["&:not(:last-child){border-bottom:1px solid ",";padding:0.25em 0;}&:first-child{padding:0 0 0.25em;}&:last-child{padding:0.25em 0 0;}"],(({theme:e,$isLight:t})=>t?e.color.white:e.color.darkGray2)),p=c.default.div.withConfig({componentId:"sc-nxus5e-3"})(["display:inline-block;text-decoration:none;"," ",""],(({$scrim:e,$isLight:t,theme:n})=>e&&(0,c.css)(["padding:",";border-radius:",";background-color:",";"],n.spacing[12],n.borderRadius,t?n.scrim.dark:n.scrim.light)),(({$mini:e,theme:t})=>e&&(0,c.css)(["","{font-size:",";min-width:",";}","{svg{height:",";","{min-height:",";}}}"],d,t.font.size.legalMobile,t.spacing[28],u,t.pxToRem(68),t.mediaQuery.desktopLarge,t.pxToRem(68))));const h={"smec-a-b":"Clasificaci\xf3n de A a B","smec-a-b15":"Clasificaci\xf3n de A a B15","smec-a-c":"Clasificaci\xf3n de A a C","smec-a-d":"Clasificaci\xf3n de A a D","smec-a":"Clasificaci\xf3n A por todas las edades","smec-b-b15":"Clasificaci\xf3n de B a B15","smec-b-c":"Clasificaci\xf3n de B a C","smec-b-d":"Clasificaci\xf3n de B a D","smec-b":"Clasificaci\xf3n B por adolescentes a partir de 12 a\xf1os.","smec-b15-c":"Clasificaci\xf3n de B15 a C","smec-b15-d":"Clasificaci\xf3n de B15 a D","smec-b15":"Clasificaci\xf3n B15 por adolescentes a partir de los 15 a\xf1os","smec-c-d":"Clasificaci\xf3n de C a D","smec-c":"Clasificaci\xf3n C por j\xf3venes y adultos mayores de 18 a\xf1os.","smec-d":"Clasificaci\xf3n D por \xfanicamente adultos","smec-rp-a":"De a\xfan sin claficar a todo p\xfablico","smec-rp-b":"De a\xfan sin claficar a 12+ a\xf1os","smec-rp-b15":"Clasificaci\xf3n de RP a B15","smec-rp-c":"De a\xfan sin claficar a adultos +18 a\xf1os","smec-rp-d":"Clasificaci\xf3n de RP a D","smec-rp":"A\xfan sin claficar"},m=({rating:e,descriptors:t,interactiveElements:i,notices:o,textColor:c,scrim:m,className:g,mini:v})=>{const[y,b]=(0,r.useState)(null),{text:w}=(0,a.u)(),k=(0,s.s)(t),S=(0,s.s)(i),A=(0,s.s)(o);(0,r.useEffect)((()=>{(function(e){switch(e){case"./icons/smec-a-b.svg":return n.e(761).then(n.bind(n,761));case"./icons/smec-a-b15.svg":return n.e(4195).then(n.bind(n,94195));case"./icons/smec-a-c.svg":return n.e(9126).then(n.bind(n,29126));case"./icons/smec-a-d.svg":return n.e(3004).then(n.bind(n,93004));case"./icons/smec-a.svg":return n.e(6550).then(n.bind(n,26550));case"./icons/smec-b-b15.svg":return n.e(2531).then(n.bind(n,52531));case"./icons/smec-b-c.svg":return n.e(7284).then(n.bind(n,27284));case"./icons/smec-b-d.svg":return n.e(6321).then(n.bind(n,26321));case"./icons/smec-b.svg":return n.e(1130).then(n.bind(n,91130));case"./icons/smec-b15-c.svg":return n.e(2538).then(n.bind(n,32538));case"./icons/smec-b15-d.svg":return n.e(8265).then(n.bind(n,8265));case"./icons/smec-b15.svg":return n.e(8263).then(n.bind(n,88263));case"./icons/smec-c-d.svg":return n.e(4944).then(n.bind(n,84944));case"./icons/smec-c.svg":return n.e(466).then(n.bind(n,90466));case"./icons/smec-d.svg":return n.e(3727).then(n.bind(n,3727));case"./icons/smec-rp-a.svg":return n.e(8422).then(n.bind(n,18422));case"./icons/smec-rp-b.svg":return n.e(2353).then(n.bind(n,2353));case"./icons/smec-rp-b15.svg":return n.e(5499).then(n.bind(n,95499));case"./icons/smec-rp-c.svg":return n.e(533).then(n.bind(n,10533));case"./icons/smec-rp-d.svg":return n.e(9213).then(n.bind(n,29213));case"./icons/smec-rp.svg":return n.e(129).then(n.bind(n,60129));default:return new Promise((function(t,n){("function"===typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}})(`./icons/${e.toLowerCase()}.svg`).then((e=>{b(e.ReactComponent)}))}),[e]);const x=k.length||S.length||A.length;return(0,l.jsx)(p,{className:g,$scrim:m,$isLight:"light"===c,$mini:v,children:(0,l.jsxs)(u,{$hasDescriptors:x,children:[y&&r.cloneElement(y,{role:"img",title:w(h[e])}),0===x?null:(0,l.jsxs)(d,{$entryCount:x,$isLight:"light"===c,children:[k.length>0&&(0,l.jsx)(f,{$isLight:"light"===c,children:k.join(",")}),S.length>0&&(0,l.jsx)(f,{$isLight:"light"===c,children:S.join(",")}),A.length>0&&(0,l.jsx)(f,{$isLight:"light"===c,children:A.join(",")})]})]})})};m.propTypes={className:o().string,rating:o().oneOf(["smec-a-b","smec-a-b15","smec-a-c","smec-a-d","smec-a","smec-b-b15","smec-b-c","smec-b-d","smec-b","smec-b15-c","smec-b15-d","smec-b15","smec-c-d","smec-c","smec-d","smec-rp-a","smec-rp-b","smec-rp-b15","smec-rp-c","smec-rp-d","smec-rp"]).isRequired,descriptors:o().string,interactiveElements:o().string,notices:o().string,textColor:o().oneOf(["light","dark"]),scrim:o().bool,mini:o().bool},m.defaultProps={mini:!1};var g=m},92102:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SalesTagIcon",...e,children:(0,o.jsx)("path",{d:"M16.5.4c.2-.3.6-.4 1-.4l9.4.2c.4 0 .7.2 1 .4l3.5 3.5c.3.3.4.6.4 1l.2 9.4c0 .4-.1.8-.4 1.1l-16 16c-.6.6-1.5.6-2.1 0L.4 18.5c-.6-.6-.6-1.5 0-2.1L16.5.4zm6.7 4.1c-1.2 1.2-1.2 3.1 0 4.3s3.1 1.2 4.3 0c1.2-1.2 1.2-3.1 0-4.3-1.2-1.2-3.2-1.2-4.3 0z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},91383:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52322);const s=o.default.span.withConfig({componentId:"sc-1gv8hi6-0"})(["position:absolute !important;overflow:hidden !important;clip:rect(1px,1px,1px,1px) !important;width:1px !important;height:1px !important;border:0 !important;padding:0 !important;margin:0 !important;"]),c=({children:e,...t})=>(0,a.jsx)(s,{...t,children:e});c.propTypes={children:i().node.isRequired};var l=c},4098:function(e,t,n){"use strict";n.d(t,{S:function(){return z},a:function(){return E}});var r=n(2784),i=n(13980),o=n.n(i),a=n(68020),s=n(31776),c=n(91516),l=n(7307),u=n(88582),d=n(36593),f=n(52322),p=n(61478);const h=l.default.div.withConfig({componentId:"sc-1hmmcs1-0"})(["position:relative;width:100%;",""],u.e),m=e=>({theme:e.selectTheme}),g=(0,l.default)(a.c.Control).attrs(m).withConfig({componentId:"sc-1hmmcs1-1"})(["&&&{padding:1px 0;border:1px solid ",";cursor:pointer;",";",";",";",";","}&&&:hover{","}"],(({theme:e})=>e.color.darkGray4),u.i,u.a,(({isFocused:e})=>e&&u.f),(({selectProps:e})=>e.hasError&&u.b),(({selectProps:e})=>e.isDisabled&&u.d),u.f),v=(0,l.default)(a.c.Option).attrs(m).withConfig({componentId:"sc-1hmmcs1-2"})(["&&&{background:",";cursor:pointer;"," ","}&&&:hover{background:",";}"],(({theme:e})=>e.color.white),(({theme:e})=>`\n color: ${e.color.black};\n font-size: ${e.font.size.bodyMobile};\n font-weight: ${e.font.weight.light};\n\n ${e.mediaQuery.tabletSmall} {\n font-size: ${e.font.size.bodyDesktop};\n }\n `),(({isFocused:e})=>e&&(0,l.css)(["background:",";"],(({theme:e})=>e.color.lightGray3))),(({theme:e})=>e.color.lightGray3)),y=(0,l.default)(a.c.Menu).attrs(m).withConfig({componentId:"sc-1hmmcs1-3"})(["overflow:hidden;&&&{border:1px solid ",";box-shadow:0 4px 3px rgba(0,0,0,0.15);z-index:5;}"],(({theme:e})=>e.color.darkGray4)),b=(0,l.default)(a.c.Placeholder).attrs(m).withConfig({componentId:"sc-1hmmcs1-4"})(["&&&{",";}"],u.p),w=(0,l.default)(a.c.IndicatorsContainer).attrs(m).withConfig({componentId:"sc-1hmmcs1-5"})(["& > *{","}"],(({isDisabled:e})=>e&&(0,l.css)(["color:",";"],(({theme:e})=>e.color.darkGray3)))),k=(0,l.default)(a.c.IndicatorSeparator).attrs(m).withConfig({componentId:"sc-1hmmcs1-6"})(["&&&{align-self:center;height:1.5rem;","{height:2rem;}}"],(({theme:e})=>e.mediaQuery.tabletSmall)),S=(0,l.default)(a.c.ValueContainer).attrs(m).withConfig({componentId:"sc-1hmmcs1-7"})(["&&&{padding-left:",";}"],(({theme:e})=>e.spacing[24])),A=(0,l.default)(d.T).attrs(m).withConfig({componentId:"sc-1hmmcs1-8"})(["&&&{margin-left:1rem;height:1rem;width:1rem;","{height:1.25rem;width:1.25rem;}}"],(({theme:e})=>e.mediaQuery.tabletSmall)),x=(0,l.default)(a.c.ClearIndicator).attrs(m).withConfig({componentId:"sc-1hmmcs1-9"})(["&&&{padding-top:",";padding-right:",";padding-bottom:",";padding-left:",";svg{height:0.75rem;width:0.75rem;","{height:1rem;width:1rem;}}}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.mediaQuery.tabletSmall)),E=l.default.label.withConfig({componentId:"sc-1hmmcs1-10"})(["display:block;",";margin-bottom:",";",""],u.l,u.c,(({required:e})=>e&&(0,l.css)(["&::after{content:' *';}"]))),N=(0,l.default)(a.c.SingleValue).attrs(m).withConfig({componentId:"sc-1hmmcs1-11"})(["&&&{max-width:calc(100% - ",");padding-right:",";margin-right:0;","}"],(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[12]),(({isDisabled:e})=>e&&u.d)),C=({children:e,theme:t,...n})=>(0,f.jsx)(g,{selectTheme:t,...n,children:e});C.propTypes={children:o().node};const _=({children:e,theme:t,...n})=>(0,f.jsx)(y,{selectTheme:t,...n,children:e});_.propTypes={children:o().node};const O=({children:e,theme:t,...n})=>(0,f.jsx)(b,{selectTheme:t,...n,children:e});O.propTypes={children:o().node};const I=({children:e,innerRef:t,theme:n,...r})=>(0,f.jsx)(v,{innerRef:t,selectTheme:n,...r,children:e});I.propTypes={children:o().node,innerRef:o().func};const T=({children:e,theme:t,...n})=>(0,f.jsx)(S,{selectTheme:t,...n,children:e});T.propTypes={children:o().node,innerRef:o().func};const M=({theme:e,...t})=>(0,f.jsx)(w,{selectTheme:e,...t}),P=({theme:e,...t})=>(0,f.jsx)(k,{selectTheme:e,...t}),j=({children:e,isFocused:t,selectProps:n,theme:r,...i})=>(0,f.jsx)(A,{focused:t,flip:n.menuIsOpen,selectTheme:r,...i,children:e});j.propTypes={children:o().node,isFocused:o().bool,selectProps:o().object};const D=({children:e,theme:t,...n})=>(0,f.jsx)(x,{selectTheme:t,...n,children:(0,f.jsx)(p.Z,{color:t.color.darkGray3})});D.propTypes={children:o().node,theme:o().object};const R=({children:e,theme:t,...n})=>(0,f.jsx)(N,{selectTheme:t,...n,children:e});R.propTypes={children:o().node};const L=/\s+/g,F=e=>{const{options:t,name:n,label:i,hasError:o,errorMessage:a,showErrors:d,required:p,replacementComponents:m,className:g,...v}=e,y=r.useContext(l.ThemeContext),b=`${n.replace(L,"-")}-label`,w=e.async?c.Z:s.ZP;return(0,f.jsxs)(h,{$hasError:o,className:g,children:[(0,f.jsx)(E,{required:p,id:b,children:i}),(0,f.jsx)(w,{name:n,"aria-labelledby":b,hasError:o,options:t,theme:e=>({...e,...y,colors:{...e.colors},spacing:{...e.spacing,...y.spacing}}),components:{Control:C,ValueContainer:T,Placeholder:O,IndicatorsContainer:M,IndicatorSeparator:P,DropdownIndicator:j,ClearIndicator:D,Option:I,Menu:_,SingleValue:R,...m},...v}),d&&(0,f.jsx)(u.S,{children:(0,f.jsx)(u.g,{$hasError:o,role:"alert",children:a})})]})};F.defaultProps={name:"Select",label:"Select Label",replacementComponents:{},isClearable:!0,showErrors:!0,options:[]},F.propTypes={className:o().string,name:o().string.isRequired,label:o().oneOfType([o().string,o().node]).isRequired,async:o().bool,loadOptions:function(e,t,n){if(e.async&&"function"!==typeof e[t])return new Error(`Must supply ${n} a function for the ${t} prop when \`async\` is true.`)},loadingMessage:o().func,defaultOptions:o().oneOfType([o().arrayOf(o().object),o().bool]),options:o().arrayOf(o().object).isRequired,placeholder:o().string,onChange:o().func,value:o().shape({label:o().string.isRequired,value:o().any.isRequired}),onInputChange:o().func,onFocus:o().func,onBlur:o().func,inputValue:o().string,isClearable:o().bool,noOptionsMessage:o().func,isDisabled:o().bool,isSearchable:o().bool,isMulti:o().bool,required:o().bool,showErrors:o().bool,hasError:o().bool,errorMessage:o().string,replacementComponents:o().shape({ClearIndicator:o().func,Control:o().func,DropdownIndicator:o().func,DownChevron:o().func,CrossIcon:o().func,Group:o().func,GroupHeading:o().func,IndicatorsContainer:o().func,IndicatorSeparator:o().func,Input:o().func,LoadingIndicator:o().func,Menu:o().func,MenuList:o().func,MenuPortal:o().func,LoadingMessage:o().func,NoOptionsMessage:o().func,MultiValue:o().func,MultiValueContainer:o().func,MultiValueLabel:o().func,MultiValueRemove:o().func,Option:o().func,Placeholder:o().func,SelectContainer:o().func,SingleValue:o().func,ValueContainer:o().func})};var z=F},31384:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{"data-name":"Layer 2 copy",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ShippingTruckArrowIcon",...e,children:[(0,o.jsx)("path",{d:"M6.57 27.352a3.373 3.373 0 1 1 3.372-3.372 3.376 3.376 0 0 1-3.373 3.372zm17.288 0a3.373 3.373 0 1 1 3.372-3.372 3.376 3.376 0 0 1-3.372 3.372z",fill:e.color}),(0,o.jsx)("path",{d:"M31.519 14.29l-3.889-3.888a1.643 1.643 0 0 0-1.161-.481h-4.4V4.648H3.436A3.327 3.327 0 0 0 0 7.831V23.98h2.196a4.373 4.373 0 0 1 8.746 0h8.535a4.373 4.373 0 0 1 8.746 0h2.134A1.643 1.643 0 0 0 32 22.336v-6.884a1.643 1.643 0 0 0-.481-1.162zM15.87 12.94l-3.946 3.946a.44.44 0 0 1-.311.13.445.445 0 0 1-.169-.034.44.44 0 0 1-.271-.407v-1.918H7.412a.44.44 0 0 1-.44-.44V11.04a.44.44 0 0 1 .44-.44h3.762V8.683a.44.44 0 0 1 .751-.311l3.946 3.946a.44.44 0 0 1 0 .622zm12.422 2.26a.66.66 0 0 1-.66.66h-4.718a.66.66 0 0 1-.66-.66v-2.834a.66.66 0 0 1 .66-.66h3.156a.66.66 0 0 1 .467.193l1.561 1.562a.66.66 0 0 1 .194.466z",fill:e.color})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},1205:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{"data-name":"Shopping cart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ShoppingCartIcon",...e,children:(0,o.jsx)("path",{fill:e.color,d:"M23.12 28.073a2.248 2.248 0 1 0 2.25-2.326h-.005a2.288 2.288 0 0 0-2.245 2.326zm2.397-7.29a1.728 1.728 0 0 0 1.498-.982l4.844-11.686a1.544 1.544 0 0 0-.15-1.551 1.593 1.593 0 0 0-1.349-.673H8.44l-.55-2.895A1.494 1.494 0 0 0 6.393 1.6H1.598A1.606 1.606 0 0 0 0 3.255a1.548 1.548 0 0 0 1.598 1.654h3.496L7.49 18.973l-1.098 4.706a1.67 1.67 0 0 0 .25 1.395 1.529 1.529 0 0 0 1.198.673h18.675a1.656 1.656 0 0 0 0-3.31H9.937l.4-1.654zm-18.726 7.29a2.248 2.248 0 1 0 2.25-2.326h-.005a2.288 2.288 0 0 0-2.245 2.326z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},84433:function(e,t,n){"use strict";n.d(t,{S:function(){return p},a:function(){return u},b:function(){return c},c:function(){return l},d:function(){return d}});n(2784);var r=n(13980),i=n.n(r),o=n(46658),a=n(7307),s=n(52322);const c=a.default.div.withConfig({componentId:"sc-lnzzcb-0"})(["position:relative;width:",";color:",";animation-name:",";animation-timing-function:ease-in-out;animation-duration:1000ms;animation-iteration-count:infinite;animation-direction:alternate;",""],(({width:e})=>e||"100%"),(({theme:e})=>e.color.lightGray1),(({theme:e,$animate:t})=>{return t?(n=e,(0,a.keyframes)(["from{color:",";}to{color:",";}"],n.color.lightGray2,n.color.lightGray3)):null;var n}),(({encloseTile:e})=>e&&(0,a.css)(["border:solid 1px currentcolor;background-color:",";border-radius:",";"],(({theme:e})=>e.color.white),(({theme:e})=>e.borderRadius)))),l=a.default.div.withConfig({componentId:"sc-lnzzcb-1"})(["width:",";background-color:currentcolor;height:calc(1em * ("," * 0.85));margin-top:",";"," "," ",""],(({width:e})=>e||"100%"),(({theme:e})=>e.font.lineHeight),(({theme:e})=>e.spacing[4]),(({size:e})=>"h3"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h3Mobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.h3Desktop))),(({size:e})=>"caption"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.captionDesktop))),(({size:e})=>"body"==e&&(0,a.css)(["font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.bodyMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.bodyDesktop)))),u=a.default.div.withConfig({componentId:"sc-lnzzcb-2"})(["width:",";height:0;background-color:currentcolor;padding-bottom:calc(","% - 2px);display:block;border:solid 1px currentcolor;"," ",""],(({width:e})=>e||"100%"),(({$aspectRatio:e})=>e),(({$graphic:e})=>e&&(0,a.css)(["svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:","%;display:block;z-index:10;path{fill:",";}}"],(({$aspectRatio:e})=>.8*e),(({theme:e})=>e.color.white))),(({$graphic:e})=>!e&&(0,a.css)(["svg{display:none;}"]))),d=a.default.div.withConfig({componentId:"sc-lnzzcb-3"})(["width:1.5rem;height:1.5rem;background-color:transparent;svg path{fill:currentcolor;}"]),f=({type:e,graphic:t,lines:n,size:r,width:i,imageAspectRatio:a,className:f,animate:p})=>(0,s.jsxs)(c,{className:f,$animate:p,children:["image"==e&&(0,s.jsx)(u,{$graphic:t,width:i,$aspectRatio:100*a,children:t&&(0,s.jsx)(o.Z,{})}),"icon"==e&&(0,s.jsx)(d,{children:(0,s.jsx)(o.Z,{})}),"text"==e&&[...Array(n)].map(((e,t)=>(0,s.jsx)(l,{"data-testid":"skeletonText",size:r,width:i},t)))]});f.propTypes={className:i().string,type:i().oneOf(["image","icon","text"]),graphic:i().bool,lines:i().number,size:i().oneOf(["h3","caption","body"]),width:i().string,imageAspectRatio:i().number,animate:i().bool},f.defaultProps={type:"text",size:"body",graphic:!0,lines:1,imageAspectRatio:.5634,animate:!0};var p=f},20669:function(e,t,n){"use strict";n.d(t,{S:function(){return d}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52322);const s=(e,t,n)=>e.spacing["vertical"===t?4:n],c=(e,t,n)=>e.spacing["horizontal"===t?4:n],l=o.default.span.withConfig({componentId:"sc-1su040v-0"})(["display:block;",""],(({theme:e,$axis:t,size:n})=>(0,o.css)(["width:",";min-width:",";height:",";min-height:",";"],s(e,t,n),s(e,t,n),c(e,t,n),c(e,t,n)))),u=({size:e,axis:t})=>(0,a.jsx)(l,{$axis:t,size:e});u.propTypes={size:i().oneOf([0,2,4,8,12,16,20,24,28,32,36,40,44,48,64,80,96]).isRequired,axis:i().oneOf(["horizontal","vertical"])};var d=u},55257:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"StarFilledIcon",...e,children:(0,o.jsx)("path",{d:"M31.993 12.369c-.107-.34-1.43-.62-5.599-1.09-2.626-.297-5.15-.455-5.175-.456a.577.577 0 0 1-.504-.37 137.666 137.666 0 0 0-1.982-4.837C17.093 1.821 16.428.71 15.973.713c-.412-.005-1.027 1.122-2.767 4.975a112.804 112.804 0 0 0-2.014 4.781.58.58 0 0 1-.506.367c-.025.002-2.527.146-5.13.43-4.145.453-5.48.706-5.552 1.069-.073.398.774 1.333 3.88 4.163a114.143 114.143 0 0 0 3.921 3.393.58.58 0 0 1 .193.594c-.006.025-.645 2.472-1.183 5.06-.615 2.958-1.072 5.368-.709 5.66.447.364 1.796-.484 5.182-2.416A123.355 123.355 0 0 0 15.75 26.1a.58.58 0 0 1 .622 0c.022.014 2.163 1.355 4.448 2.68 3.45 1.998 4.747 2.668 5.163 2.42.422-.301.042-2.118-.706-5.708a121.87 121.87 0 0 0-1.189-5.106.58.58 0 0 1 .195-.595c.019-.015 1.946-1.588 3.873-3.333 3.055-2.765 3.932-3.734 3.837-4.09",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},46658:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"StarPlayNintendoIcon",...e,children:(0,o.jsx)("path",{d:"M18.9 19.1c-.9 0-1-1.5-1-3.4s0-3.5 1-3.4c.9.1 1.1 1.4 1.1 3.3-.1 2-.2 3.5-1.1 3.5m-5.8 0c-.9 0-1-1.6-1-3.4 0-1.9.2-3.2 1.1-3.3 1-.1 1 1.5 1 3.4-.1 1.8-.2 3.3-1.1 3.3M32 12.4c-.1-.3-1.4-.6-5.6-1.1-2.6-.3-5.1-.5-5.2-.5-.2 0-.4-.2-.5-.4-.6-1.6-1.3-3.3-2-4.8C17.1 1.8 16.4.7 15.9.7c-.4 0-1 1.1-2.8 5-1.1 2.4-2 4.8-2 4.8-.1.2-.3.4-.5.4 0 0-2.5.1-5.1.4-4.1.4-5.4.7-5.5 1-.1.4.8 1.3 3.9 4.2 1.9 1.8 3.9 3.4 3.9 3.4.2.1.2.3.2.4v.1s-.6 2.5-1.2 5.1c-.6 3-1.1 5.4-.7 5.7.4.4 1.8-.5 5.2-2.4 2.3-1.3 4.4-2.7 4.5-2.7.2-.1.4-.1.6 0 0 0 2.2 1.4 4.4 2.7 3.4 2 4.7 2.7 5.2 2.4.4-.3 0-2.1-.7-5.7-.5-2.6-1.2-5.1-1.2-5.1v-.1c0-.2.1-.3.2-.4 0 0 1.9-1.6 3.9-3.3 3-2.9 3.9-3.9 3.8-4.2",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},3099:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"StorefrontIcon",...e,children:(0,o.jsx)("path",{d:"M27.86 7.757L32 13.508v3.312h-2.133v9.742a4.825 4.825 0 0 1-3.307 4.196V16.82h-6.637v14.088H6.302a4.271 4.271 0 0 1-4.169-4.351v-9.742H0v-3.307l4.14-5.752V4.449l.014-.051a4.211 4.211 0 0 1 4.042-3.306H23.65a4.532 4.532 0 0 1 4.21 3.357zM16.613 16.82H5.443v9.742a1.062 1.062 0 0 0 .982.994h10.188zm7.18-9.058H8.213L4.07 13.51h23.862z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},68374:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SupportIcon",...e,children:(0,o.jsx)("path",{d:"M28.126.862H3.876A3.904 3.904 0 0 0 0 4.757v17.838a3.905 3.905 0 0 0 3.875 3.896h8.375c.125 0 .125 0 .125.125l3.626 4.397a.122.122 0 0 0 .125.125c.125 0 .125 0 .25-.125L20 26.616a.122.122 0 0 1 .124-.125h8.001A3.904 3.904 0 0 0 32 22.595V4.757A3.903 3.903 0 0 0 28.126.862zM17.954 20.91a2.018 2.018 0 0 1-.438.64 2.062 2.062 0 0 1-1.446.58 2.092 2.092 0 0 1-.802-.154 1.944 1.944 0 0 1-.652-.43 1.98 1.98 0 0 1-.427-.642 2.119 2.119 0 0 1-.001-1.59 1.97 1.97 0 0 1 .43-.65 2.055 2.055 0 0 1 .643-.432 2.078 2.078 0 0 1 1.613 0 2.152 2.152 0 0 1 .64.428l.002.001a2.045 2.045 0 0 1 .438 2.25zm2.964-10.055a4.505 4.505 0 0 1-.662 1.159 5.04 5.04 0 0 1-.861.844l-.822.622a6.01 6.01 0 0 0-.626.538.766.766 0 0 0-.231.426l-.303 1.923h-2.517l-.222-2.13a1.824 1.824 0 0 1 .193-1.127 3.152 3.152 0 0 1 .648-.812 7.965 7.965 0 0 1 .838-.658 6.94 6.94 0 0 0 .782-.626 3.116 3.116 0 0 0 .574-.716 1.726 1.726 0 0 0 .208-.873 1.287 1.287 0 0 0-.112-.55 1.213 1.213 0 0 0-.318-.414 1.482 1.482 0 0 0-.506-.275 2.946 2.946 0 0 0-1.628.018 3.595 3.595 0 0 0-.666.277 8.824 8.824 0 0 0-.49.294.966.966 0 0 1-1.483-.33l-.872-1.378.24-.212a8 8 0 0 1 .86-.657 6.234 6.234 0 0 1 1.023-.55 6.4 6.4 0 0 1 1.192-.37 6.63 6.63 0 0 1 3.248.15 4.301 4.301 0 0 1 1.475.826 3.736 3.736 0 0 1 .966 1.314 4.161 4.161 0 0 1 .34 1.703 4.304 4.304 0 0 1-.268 1.584z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},56007:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SwitchIcon",...e,children:(0,o.jsx)("path",{d:"M13.54 0a.18.18 0 0 1 .17.17v31.66a.15.15 0 0 1-.17.17H8.11a6.86 6.86 0 0 1-6.85-6.8V6.74A6.81 6.81 0 0 1 8.11 0h5.43zm10.4 0a6.77 6.77 0 0 1 6.8 6.74V25.2a6.82 6.82 0 0 1-6.85 6.8h-5.43a.15.15 0 0 1-.17-.17V.17c0-.11.11-.17.22-.17h5.43zM7.49 19.6a1.26 1.26 0 1 0 0 2.51 1.32 1.32 0 0 0 1.31-1.25 1.28 1.28 0 0 0-1.31-1.26zm17-3.6a2.86 2.86 0 0 0-2.85 2.86A2.86 2.86 0 1 0 24.51 16zm-14.28.86a1.26 1.26 0 1 0 0 2.51 1.35 1.35 0 0 0 1.31-1.26 1.32 1.32 0 0 0-1.29-1.25zm-5.49 0a1.26 1.26 0 1 0 0 2.51 1.36 1.36 0 0 0 1.32-1.26 1.28 1.28 0 0 0-1.3-1.25zm2.75-2.69a1.26 1.26 0 1 0 0 2.52 1.37 1.37 0 0 0 1.33-1.26 1.28 1.28 0 0 0-1.31-1.26zm17-4a1.36 1.36 0 0 0-1.31 1.26 1.32 1.32 0 1 0 1.31-1.26zm-17-5.08a2.86 2.86 0 1 0 0 5.71 2.86 2.86 0 0 0 2.85-2.86 2.82 2.82 0 0 0-2.83-2.85zm19.77 2.4a1.26 1.26 0 1 0 1.31 1.25 1.32 1.32 0 0 0-1.29-1.25zm-5.43 0a1.26 1.26 0 1 0 1.31 1.25 1.29 1.29 0 0 0-1.29-1.25zm2.68-2.75A1.36 1.36 0 0 0 23.2 6a1.32 1.32 0 1 0 1.31-1.26z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},19843:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"TShirtIcon",...e,children:(0,o.jsx)("path",{d:"M7.735 29.333V11.101l-4.428 2.82L0 8.282l6.704-4.705a4.913 4.913 0 0 1 2.825-.891c.922 0 2.034-.005 2.66-.018.415 1.682 2.402 2.107 3.81 2.107 1.41 0 3.397-.425 3.812-2.107.626.013 1.738.019 2.66.018a4.906 4.906 0 0 1 2.825.891L32 8.281l-3.307 5.64-4.427-2.82v18.232H7.735z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},25544:function(e,t,n){"use strict";n.d(t,{T:function(){return h}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(54076),s=n(52322);const c=(0,o.default)(a.H).withConfig({componentId:"sc-w55g5t-0"})(["margin:0;font-weight:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.size.titleMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.titleDesktop)),l=o.default.p.withConfig({componentId:"sc-w55g5t-1"})(["margin:0;font-weight:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.weight.light),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.captionDesktop)),u=o.default.p.withConfig({componentId:"sc-w55g5t-2"})(["margin:0;font-weight:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.weight.light),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.legalDesktop)),d=o.default.span.withConfig({componentId:"sc-w55g5t-3"})(["margin:0;"]),f=o.default.p.withConfig({componentId:"sc-w55g5t-4"})(["margin:0;"]),p=({variant:e,as:t,className:n,children:r})=>{switch(e){case"body":return(0,s.jsx)(f,{as:t,className:n,children:r});case"title":return(0,s.jsx)(c,{as:t,className:n,children:r});case"caption":return(0,s.jsx)(l,{as:t,className:n,children:r});case"legal":return(0,s.jsx)(u,{as:t,className:n,children:r});default:return(0,s.jsx)(d,{as:t,className:n,children:r})}};p.propTypes={variant:i().oneOf(["body","title","caption","legal"]),as:i().string,children:i().node,className:i().string};var h=p},36593:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});n(2784);var r=n(13980),i=n.n(r),o=n(7307),a=n(52048),s=n(52322);const c=(0,o.default)(a.Z).withConfig({componentId:"sc-1ey2uhy-0"})(["color:",";margin-right:",";transition:",";@media (prefers-reduced-motion){transition:transform 0ms linear 0ms;}width:",";","{width:",";}"," ",""],(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.spacing[16]),(({theme:e})=>`transform ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.pxToRem(14)),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.pxToRem(16)),(({$focused:e})=>e&&(0,o.css)(["color:",";"],(({theme:e})=>e.color.darkGray2))),(({$flip:e})=>e&&(0,o.css)(["transform:rotate(180deg);color:",";"],(({theme:e})=>e.color.darkGray2)))),l=({children:e,className:t,flip:n,focused:r})=>(0,s.jsx)(c,{$flip:n,$focused:r,className:t,children:e});l.propTypes={children:i().node,className:i().string,flip:i().bool,focused:i().bool},l.defaultProps={flip:!1,focused:!1};var u=l},86719:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"TwitterIcon",...e,children:(0,o.jsx)("path",{d:"M19.0443 13.5498L30.9571 0H28.1341L17.7903 11.7651L9.52875 0H0L12.4931 17.7909L0 32H2.82309L13.7464 19.5756L22.4713 32H32L19.0437 13.5498H19.0443ZM15.1777 17.9477L13.9119 16.1761L3.84029 2.07949H8.1764L16.3043 13.4559L17.5701 15.2275L28.1355 30.0151H23.7994L15.1777 17.9484V17.9477Z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},68544:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsxs)("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"WalletIcon",...e,children:[(0,o.jsx)("path",{d:"M24.34241,7.19l-2.113-3.973A2.007,2.007,0,0,0,20.38341,2a1.98211,1.98211,0,0,0-.776.158L7.40441,7.191m17.616,1.884h-18a5.015,5.015,0,0,0-5,5V25a5.015,5.015,0,0,0,5,5h18a5.015,5.015,0,0,0,5-5V23.73929h-6.541A4.05936,4.05936,0,0,1,19.12018,19.537a4.06126,4.06126,0,0,1,4.35923-4.20467h6.541V14.075A5.015,5.015,0,0,0,25.02041,9.075Z",fill:e.color}),(0,o.jsx)("path",{d:"M23.47941,16.538a3,3,0,0,0,0,6h6.541v-6Zm.491,4.028a1.029,1.029,0,1,1,1.03-1.028,1.029,1.029,0,0,1-1.03,1.028Z",fill:e.color})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},9069:function(e,t,n){"use strict";n.d(t,{W:function(){return x}});var r=n(2784),i=n(13980),o=n.n(i),a=n(52322);const s=e=>(0,a.jsxs)("svg",{className:e.className,viewBox:"0 0 54 54",fill:e.color,stroke:e.color,width:e.size,role:"presentation",alt:"","data-testid":"HeartSparkIcon",...e,children:[(0,a.jsxs)("g",{className:"hearts",children:[(0,a.jsx)("path",{className:"heart heart-outline",d:"M27 38.9c-.4 0-.6-.1-.8-.4L16.7 29c-1.8-1.8-2.7-3.8-2.7-6 0-4.4 3.5-8 7.9-8 1.9 0 3.7.8 5.1 2.3 1.4-1.4 3.2-2.3 5.1-2.3 4.4 0 7.9 3.6 7.9 8 0 2.6-1.5 4.6-2.7 6.1l-9.5 9.4c-.2.3-.6.4-.8.4zm-5.1-21.4c-3.1 0-5.6 2.5-5.6 5.6 0 1.9 1.1 3.3 2 4.3l8.6 8.7 8.5-8.6c1.4-1.5 2.1-3 2.1-4.4 0-3.1-2.5-5.6-5.6-5.6-1.5 0-3 1-4.1 2.5-.5.6-1.4.6-1.9 0-1-1.6-2.4-2.5-4-2.5z"}),(0,a.jsx)("path",{className:"heart heart-filled",d:"M32.1 15.1c-1.9 0-3.7.8-5.1 2.3-1.4-1.4-3.2-2.3-5.1-2.3-4.4 0-7.9 3.6-7.9 8 0 2.1.9 4.2 2.7 6l9.5 9.5c.2.2.5.4.8.4.2 0 .6-.1.8-.4l9.5-9.4c1.2-1.4 2.7-3.5 2.7-6.1 0-4.4-3.5-8-7.9-8z"})]}),(0,a.jsxs)("g",{className:"sparks",children:[(0,a.jsx)("path",{className:"spark",d:"M27 8V0M27 46v8",strokeWidth:2}),(0,a.jsx)("path",{className:"spark",d:"M41.171 12.828l5.657-5.657M12.829 12.828L7.171 7.172",strokeWidth:1.99998}),(0,a.jsx)("path",{className:"spark",d:"M46 27h8M8 27H0",strokeWidth:2}),(0,a.jsx)("path",{className:"spark",d:"M41.172 41.172l5.657 5.656M12.829 41.171l-5.657 5.657",strokeWidth:1.99998})]})]});s.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},s.defaultProps={color:"currentColor",size:24};var c=n(12870),l=n(7307),u=n(29434);const d=(0,l.keyframes)(["30%{stroke-dashoffset:16;}70%{stroke-dashoffset:16;}100%{stroke-dashoffset:8;}"]),f=(0,l.keyframes)(["0%{transform:scale(0);opacity:0;}12.5%{opacity:1;transform:scale(0.1);}31.25%{transform:scale(1.25);}50%{transform:scale(0.8);}75%{transform:scale(1.05);}100%{opacity:1;transform:scale(1);}"]),p=(0,l.keyframes)(["0%{opacity:1;}31.25%{opacity:1;}32%{opacity:0;}100%{opacity:0;}"]),h=(0,l.keyframes)(["0%{transform:scale(1);opacity:1;}100%{transform:scale(0);opacity:0;}"]),m=(0,l.keyframes)(["to{opacity:1;}"]),g="ADDING",v="REMOVING",y=l.default.button.withConfig({componentId:"sc-1ud0cp0-0"})(["display:flex;align-items:center;appearance:none;border:none;background:none;cursor:pointer;padding:0.75em 1em;font-size:1em;font-family:inherit;line-height:1;color:",";transition:color 200ms ease-in-out 0s;"," & svg{display:block;width:3em;height:3em;flex:0 0 auto;margin:-0.75em;& .spark{stroke-dasharray:8;stroke-dashoffset:24;}& .heart-filled{transform-origin:27px 27px;animation:none;opacity:",";","}& .heart-outline{animation:none;","}}& span{font-weight:",";padding:0.375em 0;margin-left:0.75em;transition:box-shadow 200ms ease-in-out 0s;}&:hover{color:",";& span{box-shadow:0 2px 0 0;}& svg .spark{animation-timing-function:ease-in-out;animation-duration:500ms;animation-name:",";}}&:active{& span.label{box-shadow:0 2px 0 0;}}"],u.d.color.primary,(({$iconOnly:e})=>e&&(0,l.css)(["padding:0;"])),(({$isAdded:e,$state:t})=>null==t&&e?1:0),(({$state:e})=>e===g?b:e===v?w:null),(({$state:e})=>e===g?k:e===v?S:null),(({theme:e})=>e.font.weight.bold),u.d.color.primaryHover,d),b=(0,l.css)(["animation:800ms ease-in-out "," forwards;"],f),w=(0,l.css)(["animation:200ms ease-in-out "," forwards;"],h),k=(0,l.css)(["animation:800ms ease-in-out "," forwards;"],p),S=(0,l.css)(["animation:200ms ease-in-out "," forwards;"],m),A=({isAdded:e,iconOnly:t,lang:n,onClick:i,className:o})=>{const{text:l}=(0,c.u)(),u=l(e?"Remove from Wish List":"Add to Wish List",{locale:n}),[d,f]=(0,r.useState)(null),p=(0,r.useRef)(e);return(0,r.useEffect)((()=>{e&&!p.current?f(g):!e&&p.current?f(v):f(null),p.current=e}),[e]),(0,a.jsxs)(y,{$isAdded:e,className:o,$iconOnly:t,onClick:i,$state:d,title:u,"aria-label":u,"aria-pressed":d===g,children:[(0,a.jsx)(s,{"data-testid":"heartspark"}),t?null:(0,a.jsx)("span",{children:u})]})};A.propTypes={className:o().string,analyticsName:o().string,isAdded:o().bool,onClick:o().func.isRequired,iconOnly:o().bool,lang:o().oneOf(["en","es","fr","pt"]).isRequired};var x=A},96051:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"WrenchIcon",...e,children:(0,o.jsx)("path",{fill:e.color,d:"M23.0616 18.5338L15.0011 10.4733C15.3211 9.62528 15.4939 8.70691 15.4939 7.75014C15.4971 3.46868 12.0284 0 7.74694 0C6.78697 0 5.8686 0.175994 5.02383 0.492784L10.0125 5.48142L5.48142 10.0125L0.492784 5.02383C0.172794 5.8718 0 6.79017 0 7.74694C0 12.0252 3.46868 15.4939 7.74694 15.4939C8.70691 15.4939 9.62528 15.3179 10.4701 15.0011L18.5306 23.0616C19.7817 24.3128 21.8105 24.3128 23.0616 23.0616C24.3128 21.8105 24.3128 19.7817 23.0616 18.5306V18.5338ZM20.4921 21.9193C19.6729 21.9193 19.0106 21.2569 19.0106 20.4377C19.0106 19.6185 19.6729 18.9562 20.4921 18.9562C21.3113 18.9562 21.9737 19.6185 21.9737 20.4377C21.9737 21.2569 21.3113 21.9193 20.4921 21.9193Z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},61478:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(2784);var r=n(13980),i=n.n(r),o=n(52322);const a=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"XIcon",...e,children:(0,o.jsx)("path",{fill:e.color,d:"M32 4.53L27.47 0 16 11.47 4.53 0 0 4.53 11.47 16 0 27.47 4.53 32 16 20.53 27.47 32 32 27.47 20.53 16 32 4.53z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},30674:function(e,t,n){"use strict";n.d(t,{C:function(){return P},c:function(){return M}});var r=n(48459),i=n(69867),o=n(21282),a=n(25935);class s extends r.a{constructor(e){super(),this._actionModel={},this.addQualifier(new o.q("b",new i.N((0,a.M)(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:t}=e;return new this(t)}}var c=n(69123),l=n(3153);class u{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:(0,l.S)(`unsupported action ${this.constructor.name}`)}}}var d=n(96956);class f{constructor(){this.actions=[]}addAction(e){let t;if("string"===typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new u(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof f?this.actions=this.actions.concat(e.actions):this.actions.push(new u(e)),this}toString(){return this.actions.map((e=>e.toString())).filter((e=>e)).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new d.t("q",e)),this}format(e){return this.addAction(new d.t("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new s(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const t=new r.a;let n=e;return"string"===typeof e&&(n=new c.A(e)),t.addQualifier(n),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const n of this.actions){const r=n.toJson();if("error"in(t=r)&&t.error)return r;e.push(r)}var t;return{actions:e}}}class p extends f{}var h=class{filterOutNonSupportedKeys(e,t){const n=Object.create({});return"object"!==typeof(r=e)||r instanceof Array?Object.create({}):(Object.keys(e).forEach((r=>{t.indexOf(r)>=0?n[r]=e[r]:console.warn("Warning - unsupported key provided to configuration: ",r)})),n);var r}};const m=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class g extends h{constructor(e){super();const t=this.filterOutNonSupportedKeys(e,m);Object.assign(this,{secure:!0},t)}extend(e){const t=this.filterOutNonSupportedKeys(e,m);return new g(Object.assign({},this,t))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}var v=g;function y(e,t,n){let r=t>>0,i=String("undefined"!==typeof n?n:" ");return e.length>r?String(e):(r-=e.length,r>i.length&&(i+=function(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}(i,r/i.length)),i.slice(0,r)+String(e))}const b={};let w=0;function k(e){let t="";const n=6*e.split(".").length,r=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e),i=function(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map((e=>{const t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return y(e,2,"0")})).join(".")}(r);let o=parseInt(i.split(".").join("")).toString(2);if(o=y(o,n,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach((e=>{t+=b[e]})),t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((e=>{let t=w.toString(2);t=y(t,6,"0"),b[t]=e,w++}));var S=n(34406);function A(){const e="0.0.0";if("undefined"!==typeof window)return e;try{return S.versions.node||e}catch(t){return e}}function x(e){const t=function(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){const t={techVersion:A(),sdkCode:"T",sdkSemver:"1.19.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{const e=function(e){const t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),n=k(t.sdkSemver),r=k(e),i=function(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return b[o]+b[a]}(t.osVersion),o=t.feature,a=t.sdkCode,{product:s,osType:c}=t;return`${"D"}${s}${a}${n}${r}${c}${i}${o}`}catch(n){return"E"}}const E={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class N extends class{constructor(e,t={},n){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new v(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if("undefined"===typeof this.cloudName)throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){const e=function(e){return e||"image"}(this.assetType),t=function(e){return e||"upload"}(this.deliveryType),n=!!this.suffix,r=`${e}/${t}`,i=E[`${e}/${t}`],o=this.urlConfig.useRootPath,a=this.urlConfig.shorten;if(o){if("image/upload"===r)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${r} instead`)}if(a&&"image/upload"===r)return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(E).join(", ")}, Provided: ${r} instead`)}return r}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return n||i?n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),r=e?e.toString():"",i=function(e,t,n){const r=!1!==n;return t?`v${t}`:function(e){return e.match(/^v[0-9]+/)}(e)||function(e){return e.match(/^https?:\//)}(e)||function(e){return e.indexOf("/")<0}(e)?"":r?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if("string"===typeof e){return[n,this.getResourceType(),this.getSignature(),r,i,o.replace(/,/g,"%2C"),this.suffix].filter((e=>e)).join("/")}{const e=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(r),i,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((e=>e)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),s=!1!==this.urlConfig.analytics&&!o.includes("?");let c="";if("object"===typeof this.urlConfig.queryParams)try{const e=new URLSearchParams(this.urlConfig.queryParams);s&&e.set("_a",x(t)),c=e.toString()}catch(a){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else c=this.urlConfig.queryParams||"",s&&(c+=`${c.length>0?"&":""}_a=${x(t)}`);return c?`${e}?${c}`:e}}}{constructor(e,t,n,r){super(e,t,n),this.transformation=r}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new d.t("q",e)),this}format(e){return this.addAction(new d.t("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null===e||void 0===e?void 0:e.trackedAnalytics)}}class C extends N{constructor(e,t,n){super(e,t,n,new p)}}class _ extends f{}class O extends N{constructor(e,t,n){super(e,t,n,new _),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}const I={cloud_name:"ncom",private_cdn:"true",secure:"true",secure_distribution:"assets.nintendo.com"};let T;const M=async(e,t,r)=>(await async function(){return T||(T=n.e(2979).then(n.bind(n,44084))),(await T).videoPlayer}())(e,{...t,...I},r),P=new class{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new C(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new O(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}({cloud:{cloudName:"ncom"},url:{privateCdn:!0,secure:!0,secureDistribution:"assets.nintendo.com",analytics:!1,forceVersion:!1}})},29434:function(e,t,n){"use strict";n.d(t,{C:function(){return i},d:function(){return a}});var r=n(2784);const i={IP:"IP",GENERAL:"General"};const o={red600:"#E60012",red700:"#AC000D",blue50:"#E8EBFC",blue200:"#B2BBF0",blue500:"#4B5CCE",blue600:"#3946A0",blue800:"#2A3477",green100:"#E1F7D6",green700:"#2D8513",yellow300:"#FFFBB1",yellow700:"#BEA000",violet600:"#9531B9",gray50:"#F8F8F8",gray100:"#EFEFEF",gray200:"#DADADA",gray300:"#C8C8C8",gray400:"#969696",gray500:"#727272",gray600:"#484848",gray800:"#242424",white:"#ffffff",black:"#000000"};var a={name:"Nintendo Light Theme",slug:"nintendo-light-theme",category:i.GENERAL,description:"This is the default theme used on nintendo.com",color:{primary:"#e60012",primaryHover:"#ac000d",primaryLight:"#fde6e7",secondary:"#3946a0",secondaryHover:"#2a3477",secondaryLight:"#bdc3e8",black:"#000000",white:"#ffffff",darkGray1:"#242424",darkGray2:"#484848",darkGray3:"#727272",darkGray4:"#969696",lightGray1:"#c8c8c8",lightGray2:"#dadada",lightGray3:"#efefef",lightGray4:"#f8f8f8"},colors:{ui:{bgMain:o.white,bgAccent:o.gray50,line:o.gray200,accent:o.red600},text:{standard:o.gray600,link:o.red600,inverse:o.white},button:{background:{primary:o.red600,primaryHover:o.red700,secondary:o.blue600,secondaryHover:o.blue700,tertiary:o.white,tertiaryHover:o.red50,tertiarySelected:o.red600,quaternary:o.white,quaternaryHover:o.gray100,quaternarySelected:o.blue600,ghost:"rgba(0,0,0, 0.25)",ghostHover:"rgba(0,0,0, 0.5)",ghostFocus:"rgba(255,255,255, 0.25)",disabled:o.gray200},content:{primary:o.white,secondary:o.white,tertiary:o.red600,tertiarySelected:o.white,quaternary:o.blue600,quaternarySelected:o.white,ghost:o.white},stroke:{tertiary:o.red600,quaternary:o.blue600,ghost:o.white}},icon:{standard:o.gray600,primary:o.red600,inverse:o.white},descriptionTag:{red:o.red600,blue:o.blue500,violet:o.violet600,charcoal:o.gray600,text:o.white},alert:{text:o.gray600,errorBg:o.red50,errorIcon:o.red600,warningBg:o.yellow300,warningIcon:o.yellow700,successBg:o.green100,successIcon:o.green700,attentionBg:o.blue50,attentionIcon:o.blue600,maintenanceBg:o.gray100}},borderRadius:"var(--border-radius)",borderRadiusSmall:"var(--border-radius-small)",borderRadiusRound:"1rem",pxToRem:e=>e/16+"rem",font:{lineHeight:"1.4",family:"'museo-sans', -apple-system, BlinkMacSystemFont, sans-serif",weight:{bold:700,light:300},size:{h1LDesktop:"2.375rem",h1SDesktop:"1.75rem",h2Desktop:"1.3125rem",h3Desktop:"1.125rem",h4Desktop:"1rem",titleDesktop:"1rem",bodyDesktop:"1rem",captionDesktop:"0.875rem",legalDesktop:"0.75rem",h1LMobile:"1.75rem",h1SMobile:"1.3125rem",h2Mobile:"1.125rem",h3Mobile:"1rem",h4Mobile:"0.875rem",titleMobile:"0.875rem",bodyMobile:"0.875rem",captionMobile:"0.75rem",legalMobile:"0.625rem"}},spacing:{0:"0rem",2:"0.125rem",4:"0.25rem",8:"0.5rem",12:"0.75rem",16:"1rem",20:"1.25rem",24:"1.5rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",48:"3rem",64:"4rem",80:"5rem",96:"6rem",112:"7rem",128:"8rem"},page:{maxWidth:"90rem",slimMaxWidth:"71.5rem"},image:{mobile:{xxsmall:{width:"7.5rem",height:"4.25rem"}},desktop:{xxsmall:{width:"10rem",height:"5.5rem"}}},mediaQuery:{tabletSmall:"@media (min-width: 429px)",tablet:"@media (min-width: 768px)",desktop:"@media (min-width: 1025px)",desktopLarge:"@media (min-width: 1440px)"},scrim:{light:"rgba(255,255,255,0.6)",dark:"rgba(0,0,0,0.6)"},movement:{duration:"200ms",easing:"ease-in-out",delay:"25ms"},skeleton:{image:"star-play-nintendo",icon:"star-play-nintendo"},ProxyLink:function({href:e,children:t}){return(0,r.cloneElement)(r.Children.only(t),{href:e})},animation:{button:{hover:{scaleX:1.05,scaleY:1.05,transition:{scaleX:{type:"spring",stiffness:600},scaleY:{type:"spring",stiffness:600}}},tap:{scaleX:.99,scaleY:.99,transition:{ease:"anticipate",type:"tween",duration:.1}}},vertical:{standardBounce:{type:"spring",stiffness:284,damping:19},fastBounce:{type:"spring",stiffness:645,damping:25},gentleBounce:{type:"spring",stiffness:178,damping:18.3},standardEase:{type:"spring",stiffness:177.8,damping:20},fastEase:{type:"spring",stiffness:1024,damping:48}},horizontal:{standardBounce:{type:"spring",stiffness:284,damping:19},fastBounce:{type:"spring",stiffness:729,damping:24},standardEase:{type:"spring",stiffness:80.1,damping:13.4},fastEase:{type:"spring",stiffness:401.4,damping:30}}}}},68106:function(e,t,n){"use strict";n.d(t,{C2U:function(){return i},Ux8:function(){return d},nz8:function(){return p}});var r=n(29434),i=(n(2784),n(52322),n(50334),n(32899),n(71941),n(74930),n(6040),n(28316),n(264),n(48090),n(91516),{...r.d,name:"Animal Crossing",slug:"animal-crossing",category:r.C.IP,description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",color:{...r.d.color,primary:"#18ad5e",primaryHover:"#0F8546",primaryBtnColor:"#f8f8f0"}});r.d,r.C.IP,r.d.color,r.d,r.C.GENERAL,r.d.color,r.d,r.C.GENERAL,r.d.color,r.d,r.C.IP,r.d.color,r.d,r.C.IP,r.d.color,r.d,r.C.IP,r.d.color,r.d,r.C.IP,r.d.color;const o="rgb(0, 90, 225)",a="rgb(255, 25, 68)",s="rgb(172, 0, 250)",c="rgb(0, 215, 250)",l="rgb(255, 205, 28)",u="rgb(45, 0, 250)";var d={...r.d,name:"Tetris 99",slug:"tetris",category:r.C.IP,description:"All designs using Tetris assets need to be sent to TETRIS Company for approvals.",color:{...r.d.color,primary:o,primaryHover:u,primaryLight:c,secondary:a,secondaryHover:s,secondaryLight:l}};r.d,r.C.IP,r.d.color,r.d,r.C.IP,r.d.color,r.d,r.C.IP,r.d.color;const{createGlobalStyle:f}=n(7307);n(86534);var p=f` :root { --border-radius-small: 0.5rem; --border-radius: 0.75rem; } ${({theme:e})=>e.mediaQuery.desktop} { :root { --border-radius-small: 0.75rem; --border-radius: 1rem; } } @font-face { font-family: NOAVideo; src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABaAAAsAAAAAFjQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIGJWNtYXAAAAFoAAAAVAAAAFQXVtKaZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAEgQAABIECi20KGhlYWQAABPIAAAANgAAADYci6ScaGhlYQAAFAAAAAAkAAAAJAfEA9hobXR4AAAUJAAAAGAAAABgVgACZ2xvY2EAABSEAAAAMgAAADI3ADN0bWF4cAAAFLgAAAAgAAAAIAAgAVBuYW1lAAAU2AAAAYYAAAGGmUoJ+3Bvc3QAABZgAAAAIAAAACAAAwAAAAMD6AGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6RMDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkT//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAwAA/8AEAAPAABMAsAFNAAABISIGFTERFBYzMSEyNjUxETQmIwEOAQ8BDgEjKgEjMSoBIyImJxcuAScxLgEnNS4BNTA0OQE8ATE0NjcHPgE3MT4BNzM+ATMyFhcnHgEXNRcHDgEHMQ4BIyImJzEuASczLgEvAS4BJzEuAScjJiIjIgYHMw4BBzEOAQ8BDgEVMBQVMRwBMRQWFzUeARcxHgEXMx4BMzI2NzEyNjcxPgE3MT4BNzE+ATcxPgEzMhYXMRcFDgEPAQ4BIyoBIzEqASMiJicXLgEnMS4BJzUuATUwNDkBPAExNDY3FT4BNzE+ATczPgEzMhYXJx4BFycXBw4BBzEOASMiJicxLgEnMS4BLwEuAScxLgEnMSYiIyIGBzMOAQcxDgEHFQ4BFRwBFTEcATEUFhc1HgEXMR4BFzEeATMyNjcjMjY3Iz4BNyM+ATcxPgE3MT4BMzIWFzEXA6D8wCg4OCgDQCg4OCj+OAwfEQESKRYBAwEBAQEVJxMCEh8NDRMHBgcHCAEHFQ0NHxIBEigWFSgTAhEeDAofAgUCBAkFBQgDAwUDAQIFAgICBgQECAQBBQoGCxUKAQkPBgYKAwEDBAQEBAoHBg8IAQkWCwUKBAUJBAQIAwQHAwIFAgMHAwcLBCUBlA0eEgESKBYCAgEBAQEVKBIBEh8MDRMHBwcIBwcVDQ0fEQISKBYVKBMCER0NAQofAgQDAwkFBQgDAwYCAQUDAQMGAwQIBQULBQsVCgEJDwYHCgMDBAQEAwsGBg8JChUMBQkFAQUKBAEFBwQBBQcDAgQDAwcDBgsEJQPAOCj8wCg4OCgDQCg4/XIPFwgBCAgICAEIFg0OIBICESkVAgEBFikTAhMhDQ4VCAcICAcBCBMMAQorAwQCAwMCAgIDAgEDAQECAwEBAwEBBAMECwYIEgkBCxgNAQEBAQ0ZCwEKEggHCgQEBAEBAgIBBAICBgMCAwECAQUEKAsPFwgBCAgICAEIFg0OIBICESkVAgEBFikTAhMhDQ4VCAcICAcBCBMMAQorAwQCAwMCAgIDAgEDAQECAwEBAwEBBAMECwYIEgkBCxgMAQEBAQENGQsBChIIBwoEBAQBAQICAQQCAgYDAgMBAgEFBCgAAAAABAAA/8AEAAPAAAkAEwAdACcAAAEzFTM1NCYjMSMBNTM1IyIGFTEVARUjFTMyNjUxNQUjNSMVFBYzMTMCqdeAOCj3/dfX9yg4A4DX9yg4/VfXgDgo9wNA1/coOP6p14A4KPf+rteAOCj319f3KDgAAAIAjv/AA30DwAAWACsAAAE4ATMyFhU4ATkBERQGIyImNRE0NjMxITIWFTgBOQERFAYjIiY1MRE0NjMxAwUBMUZGMjFGRjH+ATFGRjEyRkYyA8BGMfzuMUZGMQMSMUZGMfzuMUZGMQMSMUYAAAMAAABgBAADIAAEABkAKgAAAREhESE3ISIGFTERFBYzMSEyNjUxETQmIzEBMzIWHQEUBisBIiY9ATQ2MwPA/IADgCD8QA0TEw0DwA0TEw3+j+QNExMN5A0TEw0C4P3AAkBAEw39gA0TEw0CgA0T/o0TDYkNExMNiQ0TAAABAGb/wAOaA8AAFwAACQEOASMiJjURNDYzMhYXMQEeARUUBgcxA239lQwcECk7OykQHAwCaxQZGRQBbf5kCAk6KgM4KjoJCP5kDisaGisOAAIAfP/AA4QDwAAGAA8AAAEjETMBEQElET4BNTQmLwEBHKCgAXz+hAG9SmFgSgEChv50/sYEAP7GGP5EFHtPT3sTAQAABgAA/78D/gPAAAkADAATABgANQBAAAABNCYvARUXPgE1AwcXJREzAREBIwkBBwE3AzgBFRQGBzcXPgE1NCcuAScmJyMVFhceARcWFzEBFT4BNwcnDgEPAQMIYUkBmAkK7NHR/eSgAXz+f5sC3f1/WgOiWoEZFgFdJiofH29MS1gDPjU1TBYVAf7gMlknAl0SKRYCAcBPexMBnpkULRgCAK3SRf50/sYBRAGC/rUCg1r8W1oBpwExWygBXTqLTF1UU4QtLRGDECMiYTw8Qv6PgwkkGQFeChAFAQAAAAMAAP/AA/wDwAAGACcAMAAAEyMRMwERAQEVFhceARcWFRQHDgEHBg8BFTY3PgE3NjU0Jy4BJyYnIxkBPgE1NCYvAaCgoAF8/oQBvT41NUwWFRUWTDQ0PgJZTExvIB8fH29MS1gDSmFgSgEChv50/sYEAP7GAS2DECIjYTw8QkM8PGEiIw8BgxEtLYVTVF1dU1OFLS0R/uv+RBR7T097EwEAAAAABABS/8QDrgO8ADoAWwCtAPoAAAE3JwcfATcnFhceARcWFRQHDgEHBiMiJy4BJyY1OAE5ASM4ARUUFx4BFxYzMjc+ATc2NTQnLgEnJicjAxUjNTM1PAE3Bw4BIzEqASMqATkBIiYjMS4BJzEnNzMVNxwBMRQGBzUOAQcxDgEHMQ4BIzgBIzE4ATEiJicxLgEnMS4BJzEuATU0NjcVPgE3MT4BNzU+ATM4ATkBMDIxMhYXNR4BFzEeARcVHgEVHAEVNSMwNDU0JicVLgEnMS4BJyMuASMxIgYHMw4BBzEOAQcVDgEVHAEVNRwBFRQWFzUeARc1HgEXMx4BMzEyNjcjPgE3NT4BNzE+ATU8ATUxAhxGXuMB4l5BOjIySRUVGBhTODg/Pzg4UxgYfCEidU5PWVlPTnUiIR8fbElKVAE3cyoBHgEDAQEBAQEBAQIBAQEBCz8e1wMDAgkFBQwHBw8IAQgPBwcMBQUIAwMDAwMDCAUFDAcHDwgBCA8HBwwFBQgDAwMlAgEBBQMCBwMBAwgEBAcEAQQHAgMEAgECAgECBAMCBwMBAwcEBAgEAQQHAgMFAQIBAyBCWtgB11k+BhobUTU0Oz84OFMYGBgYUzg4PwFZTk90IiIiInRPTllWTEt0IyQG/fUbG3oDCAMZAQEBAQEBDza2TgECDBcLAQkRBwYKAwMEBAMDCgYHEQkLGA0MGQsBChAHBgoDAQMDAwQBBAoGBxAJAQoWDAECAQECAQkSCAEHDAUEBgICAgICAgYEBQwGAQgRCQECAQEBAgEJEQkBBgwGAQQHAgECAgECBwMBBQsHCBEJAQIBAAAEAFL/xAOuA7wAOgBbAK0A+gAAASc3Fw8BJzcGBw4BBwYVFBceARcWMzI3PgE3NjU4ATkBMzgBFRQHDgEHBiMiJy4BJyY1NDc+ATc2NzMTFSM1MzU8ATcHDgEjMSoBIyoBOQEiJiMxLgEnMSc3MxU3HAExFAYHNQ4BBzEOAQcxDgEjOAEjMTgBMSImJzEuAScxLgEnMS4BNTQ2NxU+ATcxPgE3NT4BMzgBOQEwMjEyFhc1HgEXMR4BFxUeARUcARU1IzA0NTQmJxUuAScxLgEnIy4BIzEiBgczDgEHMQ4BBxUOARUcARU1HAEVFBYXNR4BFzUeARczHgEzMTI2NyM+ATc1PgE3MT4BNTwBNTEB5EZe4wHiXkE6MjJJFRUYGFM4OD8/ODhTGBh8ISJ1Tk9ZWU9OdSIhHx9sSUpUAQFzKgEeAQMBAQEBAQEBAgEBAQELPx7XAwMCCQUFDAcHDwgBCA8HBwwFBQgDAwMDAwMIBQUMBwcPCAEIDwcHDAUFCAMDAyUCAQEFAwIHAwEDCAQEBwQBBAcCAwQCAQICAQIEAwIHAwEDBwQECAQBBAcCAwUBAgEDIEJa2AHXWT4GGhtRNTQ7Pzg4UxgYGBhTODg/AVlOT3QiIiIidE9OWVZMS3QkIwb99RsbegMIAxkBAQEBAQEPNrZOAQIMFwsBCREHBgoDAwQEAwMKBgcRCQsYDQwZCwEKEAcGCgMBAwMDBAEECgYHEAkBChYMAQIBAQIBCRIIAQcMBQQGAgICAgICBgQFDAYBCBEJAQIBAQECAQkRCQEGDAYBBAcCAQICAQIHAwEFCwcIEQkBAgEAAAEAUv/EA64DvAA6AAABNycHHwE3JxYXHgEXFhUUBw4BBwYjIicuAScmNTgBOQEjOAEVFBceARcWMzI3PgE3NjU0Jy4BJyYnIwIcRl7jAeJeQToyMkkVFRgYUzg4Pz84OFMYGHwhInVOT1lZT051IiEfH2xJSlQBAyBCWtgB11k+BhobUTU0Oz84OFMYGBgYUzg4PwFZTk90IiIiInRPTllWTEt0IyQGAAIAAP/ABAADwAAbADAAAAEiBw4BBwYVFBceARcWMzI3PgE3NjU0Jy4BJyYTDgEHBQYmJy4BNRE0NjMyFhcFHgECAGpdXYspKCgpi11dampdXYspKCgpi11dVgIGBf79DiIKAgQZEQcKBQEDDwgDwCgpi11dampdXYspKCgpi11dampdXYspKP3qAwgCrQoIDwUMBQFaERgEAq0JIgAAAAADAAD/wAQAA8AAGwApADcAAAEiBw4BBwYVFBceARcWMzI3PgE3NjU0Jy4BJyYDFAYjIiY1ETQ2MzIWFRMUBiMiJjURNDYzMhYVAgBqXV2LKSgoKYtdXWpqXV2LKSgoKYtdXaQdFhUeHhUWHdceFRYeHhYVHgPAKCmLXV1qal1diykoKCmLXV1qal1diyko/V0WHR0WAUYWHR0W/roWHR0WAUYWHR0WAAADAAD/wAP8A8AABgAnADAAABMjETMBEQEBFRYXHgEXFhUUBw4BBwYPARU2Nz4BNzY1NCcuAScmJyMZAT4BNTQmLwGgoKABfP6EAb0+NTVMFhUVFkw0ND4CWUxMbyAfHx9vTEtYA0phYEoBAob+dP7GBAD+xgEtgxAiI2E8PEJDPDxhIiMPAYMRLS2FU1RdXVNThS0tEf7r/kQUe09PexMBAAAAAAIAAP/AAwgDwAAGAA8AABMjETMBEQElET4BNTQmLwGgoKABfP6EAb1KYWBKAQKG/nT+xgQA/sYY/kQUe09PexMBAAAAAQAA/8ACHAPAAAYAABMjETMBEQGgoKABfP6EAob+dP7GBAD+xgAAAAYAAP+/A/4DwAAJAAwAEwAYADUAQAAAATQmLwEVFz4BNQMHFyURMwERASMJAQcBNwM4ARUUBgc3Fz4BNTQnLgEnJicjFRYXHgEXFhcxARU+ATcHJw4BDwEDCGFJAZgJCuzR0f3koAF8/n+bAt39f1oDolqBGRYBXSYqHx9vTEtYAz41NUwWFQH+4DJZJwJdEikWAgHAT3sTAZ6ZFC0YAgCt0kX+dP7GAUQBgv61AoNa/FtaAacBMVsoAV06i0xdVFOELS0RgxAjImE8PEL+j4MJJBkBXgoQBQEAAAAEAAD/wAQAA8AACQATAB0AJwAAASM1IxUUFjMxMwEVIxUzMjY1MTUBNTM1IyIGFTEVJTMVMzU0JiMxIwQA14A5J/f819f3JzkB0tf3Jzn9V9eAOSf3AunX9yc5AVfXgDkn9/wA14A5J/fX1/cnOQAABwAAAGAEAAMgAAQAGQApADkASQBZAGoAAAERIREhNyEiBhUxERQWMzEhMjY1MRE0JiMxATMyFhUxFAYrASImNTE0NjczMhYVMRQGKwEiJjUxNDYXMzIWFTEUBisBIiY1MTQ2NzMyFhUxFAYrASImNTE0NiEzMhYVMRQGKwEiJjUxNDYzA8D8gAOAIPxADRMTDQPADRMTDfzc+Q8VFQ/5DxUVz/oPFRUP+g4VFc/6DhUVDvoPFBTTNg4VFQ42DxQU/co1DxUVDzUPFRUPAuD9wAJAQBMN/YANExMNAoANE/4MFQ4PFRUPDhWUFQ8OFRUODxWUFQ4PFRUPDhWUFQ8OFRUODxUVDw4VFQ4PFQAAAAACAAH/wAQBA8AAHgBKAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1MTQnLgEnJiMxESInLgEnJjUxMzgBMRQWMzI2NTQmJyMXByc3FwcWFx4BFxYVFAcOAQcGIzECAWpeXYsoKCgoi11eampdXYsoKSkoi11dajcxMEgVFU1uT05uYUYBKDqMjDorNC0tQxMTFBVIMDE2A8AoKIteXWpqXV6LKCgoKIteXWpqXV6LKCj85xUVSDAxN09ubk9IawgmN4WFNykEFhZHLi81NjEwSBUVAAAAAAEAAAAAAABHjqQLXw889QALBAAAAAAA3LYwEAAAAADctjAQAAD/vwQBA8AAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAP//BAEAAQAAAAAAAAAAAAAAAAAAABgEAAAAAAAAAAAAAAACAAAABAAAAAQAAAAEAACOBAAAAAQAAGYEAAB8BAAAAAQAAAAEAABSBAAAUgQAAFIEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAEAAAAAAAoAFAAeAcgCAAI2AnQCnAK+AywDfgS0BeoGPgaOBuIHNAdWB2oH2AgQCJgJAgAAAAEAAAAYAU4ABwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") format("woff"); font-weight: normal; font-style: normal; } /* Normalize */ *, *::before, *::after { box-sizing: border-box; } hr { height: 0; color: inherit; } table { text-indent: 0; border-color: inherit; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1; margin: 0; } button, select { text-transform: none; } button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; } ::-moz-focus-inner { border-style: none; padding: 0; } :-moz-focusring { outline: 1px dotted ButtonText; } :-moz-ui-invalid { box-shadow: none; } legend { padding: 0; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } /* Global Styles */ html, body { width: 100%; padding: 0; margin: 0; font-family: ${({theme:e})=>e.font.family}; font-size: 16px; line-height: ${({theme:e})=>e.font.lineHeight}; color: ${({theme:e})=>e.color.darkGray2}; -webkit-font-smoothing: antialiased; -webkit-overflow-scrolling: touch; } a { color: inherit; text-decoration: none; } button { color: inherit; } /* This class is added by the focus-visible polyfill */ .js-focus-visible :focus { &:not([data-focus-visible-added]), &:not(.focus-visible) { outline: none; } } .js-focus-visible .focus-visible, .js-focus-visible [data-focus-visible-added], button:focus-visible, a:focus-visible { outline: 3px dashed ${({theme:e})=>e.color.darkGray4}; } h1, h2, h3, h4, h5, h6 { font-weight: ${({theme:e})=>e.font.weight.bold}; letter-spacing: 0; margin: 0 0 1em; padding: 0; } /* Mobile Typography */ h1 { font-size: ${({theme:e})=>e.font.size.h1SMobile}; } h2 { font-size: ${({theme:e})=>e.font.size.h2Mobile}; } h3 { font-size: ${({theme:e})=>e.font.size.h3Mobile}; } h4, h5, h6 { font-weight: ${({theme:e})=>e.font.weight.bold}; font-size: ${({theme:e})=>e.font.size.titleMobile}; } p, ol, ul { font-weight: ${({theme:e})=>e.font.weight.light}; font-size: ${({theme:e})=>e.font.size.bodyMobile}; } strong, b { font-weight: ${({theme:e})=>e.font.weight.bold}; } em, i { font-style: italic; } u { text-decoration: underline; } caption { font-weight: ${({theme:e})=>e.font.weight.light}; font-size: ${({theme:e})=>e.font.size.captionMobile}; } ${({theme:e})=>e.mediaQuery.tabletSmall} { h1 { font-size: ${({theme:e})=>e.font.size.h1SDesktop}; line-height: 1.35; } h2 { font-size: ${({theme:e})=>e.font.size.h2Desktop}; } h3 { font-size: ${({theme:e})=>e.font.size.h3Desktop}; } h4, h5, h6 { font-size: ${({theme:e})=>e.font.size.titleDesktop}; } p, ol, ul { font-size: ${({theme:e})=>e.font.size.bodyDesktop}; } caption { font-size: ${({theme:e})=>e.font.size.captionDesktop}; } } `},97066:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r=(e="")=>e.length>0?e.split(","):[]},88582:function(e,t,n){"use strict";n.d(t,{S:function(){return i},a:function(){return s},b:function(){return l},c:function(){return d},d:function(){return p},e:function(){return a},f:function(){return h},g:function(){return o},i:function(){return c},l:function(){return u},p:function(){return f}});var r=n(7307);const i=r.default.div.withConfig({componentId:"sc-752cp2-0"})(["width:100%;height:16px;margin-top:",";text-align:right;color:#e60012;font-size:",";font-weight:",";"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.font.weight.bold)),o=r.default.div.withConfig({componentId:"sc-752cp2-1"})(["position:absolute;opacity:0;transition:bottom 300ms ease-in-out,opacity 300ms ease-in-out;z-index:-1;"]),a=(0,r.css)([""," > ","{bottom:24px;right:0;",";}"],i,o,(({$hasError:e})=>e&&(0,r.css)(["opacity:1;bottom:0;"]))),s=(0,r.css)(["height:3rem;","{height:4rem;}"],(({theme:e})=>e.mediaQuery.tabletSmall)),c=(0,r.css)(["color:",";font-weight:",";font-size:",";"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.size.bodyDesktop)),l="\n border-color: #e60012;\n box-shadow: 0 0 0 1px #e60012;\n",u=(0,r.css)(["",""],(({theme:e})=>`\n color: ${e.color.darkGray2};\n font-size: ${e.font.size.titleMobile};\n font-weight: ${e.font.weight.bold};\n\n ${e.mediaQuery.tabletSmall} {\n font-size: ${e.font.size.titleDesktop};\n }\n `)),d=({theme:e})=>e.spacing[8],f=(0,r.css)(["color:",";font-weight:",";"],(({theme:e})=>e.color.darkGray3),(({theme:e})=>e.font.weight.light)),p=(0,r.css)(["background-color:",";color:",";"],(({theme:e})=>e.color.lightGray4),(({theme:e})=>e.color.darkGray3)),h=(0,r.css)(["outline:none;background-color:",";",""],(({theme:e})=>e.color.lightGray3),(({hasError:e})=>!e&&(0,r.css)(["box-shadow:0 0 0 1px ",";"],(({theme:e})=>e.color.darkGray4))))},50717:function(e,t,n){"use strict";n.d(t,{R:function(){return s},T:function(){return c},a:function(){return l}});var r=n(7307),i=n(93556),o=n(25544),a=n(29434);const s=r.default.div.withConfig({componentId:"sc-eg7slj-0"})(["display:grid;grid-template-columns:1fr 2.5rem;margin-bottom:",";height:",";","{margin-bottom:",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.pxToRem(24)),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16])),c=(0,r.default)(i.m.div).attrs((({transition:e})=>({variants:{initial:{},hover:{color:a.d.color.primary,transition:e}}}))).withConfig({componentId:"sc-eg7slj-1"})(["text-decoration:none;display:block;position:relative;margin-bottom:",";height:",";","{margin-bottom:",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[64]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16])),l=(0,r.default)(o.T).withConfig({componentId:"sc-eg7slj-2"})(["font-size:",";font-weight:",";margin:0;display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;","{font-size:",";margin:0;}"],(({theme:e,$size:t})=>"large"===t?e.font.size.h3Mobile:e.font.size.titleMobile),(({theme:e})=>e.font.weight.bold),(({lines:e})=>e),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e,$size:t})=>"large"===t?e.font.size.h3Desktop:e.font.size.titleDesktop))},12870:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(2784),i=n(50334),o={"{0} day":{es:"{0} d\xeda",fr:"{0} jour",pt:"{0} dia"},"{0} days":{es:"{0} d\xedas",fr:"{0} jours",pt:"{0} dias"},"{0} hr.":{es:"{0} h.",fr:"{0} h",pt:"{0} h"},"{0} min.":{es:"{0} min.",fr:"{0} min",pt:"{0} min"},"Less than 1 min.":{es:"Menos de 1 min.",fr:"moins de 1 min.",pt:"menos de 1 min."},"Additional product cannot be added to cart":{es:"No es posible a\xf1adir m\xe1s art\xedculos a la cesta",fr:"Il n'est pas possible d'ajouter plus d'articles au panier",pt:"N\xe3o \xe9 poss\xedvel adicionar mais itens ao carrinho"},"Age verification":{es:"Verificaci\xf3n de edad",fr:"V\xe9rification de l'\xe2ge",pt:"Verifica\xe7\xe3o de idade"},"Back 10s [j]":{es:"Rebobinar 10s [j]",fr:"Rembobiner 10s [j]",pt:"Retroceder 10s [j]"},"Change region":{es:"Cambiar regi\xf3n",fr:"Changer de r\xe9gion",pt:"Mudar regi\xe3o"},"Current Price:":{es:"Precio promocional:",fr:"Prix promotionnel :",pt:"Pre\xe7o promocional:"},Everyone:{es:"Clasificado para ni\xf1os y adultos",fr:"Classe\u0301 pour enfants et adultes",pt:"Classificado para crian\xe7as e adultos"},"Everyone 10+":{es:"Clasificado para ni\xf1os y adultos a partir de 10 a\xf1os",fr:"Classe\u0301 pour enfants et adultes de 10 ans et plus",pt:"Classificado para crian\xe7as e adultos com 10 anos ou mais"},"Everyone 10+ to Mature 17+":{es:"Ni\xf1os y adultos clasificados de 10 a\xf1os en adelante a adultos j\xf3venes",fr:"Class\xe9s enfants et adultes de 10 ans et plus \xe0 jeunes adultes",pt:"Crian\xe7as e adultos avaliados com mais de 10 anos para jovens adultos"},"Everyone 10+ to Teen":{es:"Calificados para ni\xf1os y adultos de 10 a\xf1os o m\xe1s hasta adolescentes",fr:"Class\xe9s enfants et adultes de 10 ans et plus \xe0 adolescents",pt:"Crian\xe7as e adultos avaliados com idades entre 10+ e adolescentes"},"Everyone to Everyone 10+":{es:"Ni\xf1os y adultos clasificados para ni\xf1os y adultos mayores de 10 a\xf1os",fr:"Class\xe9s enfants et adultes \xe0 enfants et adultes de 10 ans et plus",pt:"Crian\xe7as e adultos avaliados para crian\xe7as e adultos 10+"},"Everyone to Mature 17+":{es:"Ni\xf1os y adultos calificados para adultos j\xf3venes",fr:"Class\xe9s enfants et adultes \xe0 jeunes adultes",pt:"Classificadas crian\xe7as e adultos para jovens adultos"},"Everyone to Teen":{es:"Ni\xf1os y adultos clasificados para adolescentes",fr:"Class\xe9s enfants et adultes \xe0 adolescents",pt:"Classificadas crian\xe7as e adultos para adolescentes"},"Forward 10s [l]":{es:"Adelante 10s [l]",fr:"Avancer 10s [l]",pt:"Avan\xe7ar 10s [l]"},"Fullscreen [f]":{es:"Pantalla completa [f]",fr:"Plein \xe9cran [f]",pt:"Tela cheia [f]"},"Go back":{es:"Regresar",fr:"Retour",pt:"Voltar"},Image:{es:"Imagen",fr:"Image",pt:"Imagem"},"Mature 17+":{es:"Calificado recomendado para adultos j\xf3venes",fr:"Classe\u0301 recommande\u0301 aux jeunes adultes",pt:"Classificado recomendado para jovens adultos"},"Please select an address option below":{es:"Seleccione una direcci\xf3n a continuaci\xf3n",fr:"Veuillez s\xe9lectionner une adresse ci-dessous",pt:"Selecione um endere\xe7o abaixo"},"Please verify your age to access the following content.":{es:"Introduce tu fecha de nacimiento",fr:"Entrez votre date de naissance",pt:"Digite sua data de nascimento"},"Rating Pending":{es:"Producto a\xfan no calificado",fr:"Produit pas encore class\xe9",pt:"Produto ainda n\xe3o classificado"},"Rating Pending to Everyone":{es:"Clasificados pendientes de calificar a ni\xf1os y adultos",fr:"Class\xe9s cote en attente \xe0 enfants et adultes",pt:"Classifica\xe7\xe3o pendente classificada para crian\xe7as e adultos"},"Rating Pending to Everyone 10+":{es:"Calificaci\xf3n pendiente de calificaci\xf3n para ni\xf1os y adultos mayores de 10 a\xf1os",fr:"Class\xe9s cote en attente \xe0 enfants et adultes de 10 ans et plus",pt:"Classifica\xe7\xe3o pendente classificada para crian\xe7as e adultos com 10 anos ou mais"},"Rating Pending to Mature 17+":{es:"Calificado pendiente de calificar a adultos j\xf3venes",fr:"Class\xe9s cote en attente \xe0 jeunes adultes",pt:"Classifica\xe7\xe3o pendente classificada para jovens adultos"},"Rating Pending to Teen":{es:"Calificaci\xf3n calificada pendiente para adolescentes",fr:"Class\xe9s cote en attente \xe0 adolescents",pt:"Classifica\xe7\xe3o graduada pendente para adolescentes"},"Regular Price:":{es:"Precio normal:",fr:"Prix normal :",pt:"Pre\xe7o normal:"},required:{es:"obligatorio",fr:"obligatoire",pt:"obrigatoriedade"},"Review your address":{es:"Comprobar tu direcci\xf3n",fr:"V\xe9rifiez votre adresse",pt:"Confirmar seu endere\xe7o"},"See Slide {0} - {1}":{es:"Ver diapositiva {0} - {1}",fr:"Voir diapositive {0} - {1}",pt:"Ver slide {0} - {1}"},"Slide {0} of {1}":{es:"Diapositiva {0} de {1}",fr:"Diapositive {0} sur {1}",pt:"Slide {0} de {1}"},"Sorry, you are not eligible to view or download this content at this time.":{es:"Lo sentimos. No tiene acceso a este contenido y no puede descargarlo.",fr:"Nous sommes d\xe9sol\xe9s. Vous n\u2019avez pas acc\xe8s \xe0 ce contenu et vous ne pouvez pas le t\xe9l\xe9charger.",pt:"Nos desculpe. Voc\xea n\xe3o tem acesso a este conte\xfado e n\xe3o pode baix\xe1-lo."},"Subtract item":{es:"Quitar un elemento",fr:"Retirer un article",pt:"Remover um item"},Teen:{es:"Adolescentes calificados",fr:"Classe\u0301 adolescents",pt:"Adolescentes avaliados"},"Teen to Mature 17+":{es:"Clasificados como adolescentes a adultos j\xf3venes",fr:"Class\xe9s adolescents \xe0 jeunes adultes",pt:"Classificados como adolescentes a adultos jovens"},"Use address as entered:":{es:"Usar la direcci\xf3n introducida:",fr:"Utiliser l'adresse saisie :",pt:"Usar o endere\xe7o inserido:"},"Use recommended address:":{es:"Usar la direcci\xf3n recomendada:",fr:"Utiliser l'adresse recommand\xe9e :",pt:"Use o endere\xe7o recomendado:"},"We were not able to verify the address you entered, but we found a close match.":{es:"No pudimos verificar la direcci\xf3n introducida, pero encontramos una que puede coincidir.",fr:"Nous n'avons pas pu v\xe9rifier l'adresse que vous avez saisie, mais nous avons trouv\xe9 une adresse qui pourrait correspondre.",pt:"N\xe3o foi poss\xedvel verificar o endere\xe7o inserido, mas encontramos um endere\xe7o correspondente."},"We were not able to verify the address you entered.":{es:"No pudimos verificar la direcci\xf3n introducida.",fr:"Nous n'avons pas pu v\xe9rifier l'adresse que vous avez saisie.",pt:"N\xe3o foi poss\xedvel verificar o endere\xe7o inserido."},"Available {0}":{es:"Disponible el {0}",fr:"Offert le {0}",pt:"Dispon\xedvel {0}"},"Releases {0}":{es:"Fecha de lanzamiento {0}",fr:"Date de sortie : {0}",pt:"Data de lan\xe7amento {0}"},"Ships {0}":{es:"Fecha de env\xedo {0}",fr:"Date d'exp\xe9dition : {0}",pt:"Data de envio {0}"},"Summer {0}":{es:"Verano de {0}",fr:"\xc9t\xe9 {0}",pt:"Ver\xe3o de {0}"},"Fall {0}":{es:"Oto\xf1o de {0}",fr:"Automne {0}",pt:"Outono de {0}"},"Winter {0}":{es:"Invierno de {0}",fr:"Hiver {0}",pt:"Inverno de {0}"},"Spring {0}":{es:"Primavera de {0}",fr:"Printemps {0}",pt:"Primavera de {0}"},TBD:{es:"Por determinarse",fr:"\xc0 d\xe9terminer",pt:"Data a ser determinada"},Holiday:{es:"Fiestas decembrinas",fr:"Temps des f\xeates",pt:"Festas de fim de ano"}};function a({locale:e}={}){const t=(0,r.useMemo)((()=>new i.Cf({locale:e,dictionaries:[o]})),[e]);return(0,r.useMemo)((()=>({text:(...e)=>t.text(...e),price:(...e)=>t.price(...e),date:(...e)=>t.date(...e)})),[t])}},26455:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(2784),i=n(7307);function o(){const{ProxyLink:e}=(0,r.useContext)(i.ThemeContext);return e}},74506:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(3517);const i=()=>(0,r.J)()},79175:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(2784),i=n(52322);const o=e=>{if(r.isValidElement(e))return e;if("function"===typeof e){const t=e;return(0,i.jsx)(t,{})}return null}},36447:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(92469),i=n(72354),o=n(34406);let a;function s(e){return a||(a=(e||i.hC)&&o.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN?(0,r.createClient)({space:"mqzfxe57488m",accessToken:o.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN||"",environment:"master",host:"preview.contentful.com"}):(0,r.createClient)({space:"mqzfxe57488m",accessToken:"8hWPdAy2ekSBsMOEdw3OuNdIWb0n4kxrh5HNklIx_Fo",environment:"master",host:"cdn.contentful.com"}),a)}},68622:function(e,t,n){"use strict";n.d(t,{zO:function(){return ot},pZ:function(){return ln},DK:function(){return Ea},nI:function(){return _a},ZP:function(){return Ca},Iz:function(){return xa},eV:function(){return cn}});var r=n(2784),i=n(13980),o=n.n(i),a=n(3517),s=n(93556),c=n(65239),l=n(35463),u=n(9311),d=n(7307),f=n(50334),p=n(32899),h=n(52322),m=n(86290),g=n(62989);const v=e=>(0,h.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"LogOutIcon",...e,children:(0,h.jsxs)("g",{fill:e.color,children:[(0,h.jsx)("path",{d:"M21.211 17.41l.001-3.849-13.867.063 4.21-4.09L8.84 6.897 0 15.486l8.84 8.588 2.715-2.637-4.211-4.09z"}),(0,h.jsx)("path",{d:"M32 2.886l-.01-.205A2.378 2.378 0 0 0 29.813.58l-.207-.01h-13.46l-.208.01c-1.135.1-2.04.993-2.154 2.127l-.01 7.683h3.824V4.31h10.58v23.38h-10.58v-6.08h-3.823v7.482a2.383 2.383 0 0 0 2.185 2.328l13.647.01a2.398 2.398 0 0 0 2.384-2.137l.009-.201V2.886z"})]})});v.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},v.defaultProps={color:"currentColor",size:24};var y=n(43499),b=n(91383),w=n(54076),k=n(65905),S=n(21203),A=n(10723),x=n(25338),E=n(89056);const N=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"HeartIcon",...e,children:(0,h.jsx)("path",{d:"M22.3 1.3c-2.3 0-4.5 1-6.3 2.8-1.7-1.8-3.9-2.8-6.3-2.8C4.4 1.3 0 5.7 0 11.2c0 2.6 1.2 5.1 3.3 7.3L15 30.2c.3.3.6.4 1 .4.3 0 .7-.1 1-.4l11.6-11.6c1.5-1.8 3.3-4.3 3.3-7.5.1-5.4-4.3-9.8-9.6-9.8z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});N.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},N.defaultProps={color:"currentColor",size:24};var C=n(92445),_=n(77682),O=n(79102),I=n(46658),T=n(3099),M=n(68374),P=n(56007);const j=e=>(0,h.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MyNintendoTileIcon",...e,children:(0,h.jsx)("path",{d:"M26.667 0H5.333A5.333 5.333 0 0 0 0 5.333v21.334A5.333 5.333 0 0 0 5.333 32h21.334A5.333 5.333 0 0 0 32 26.667V5.333A5.333 5.333 0 0 0 26.667 0zm-5.105 22.423a5.212 5.212 0 0 1-2.37-.602 10.482 10.482 0 0 1-13.67-1.608.803.803 0 0 1 1.228-1.036 8.866 8.866 0 0 0 11.914 1.04.803.803 0 0 1 .986-.005 3.461 3.461 0 0 0 5.41-2.888 3.495 3.495 0 0 0-3.39-3.416c-.016 0-.036 0-.063-.002a.962.962 0 0 0-.12.003.806.806 0 0 1-.778-.455 6.54 6.54 0 0 0-5.992-3.848c-2.82 0-5.738 1.802-5.738 4.819-.003.818.35 1.596.969 2.132l1.688-3.147a.803.803 0 0 1 1.423.015l.982 1.926.983-1.926a.8.8 0 0 1 .71-.438c.3 0 .574.164.716.428l2.076 3.933a.8.8 0 0 1-.03.804.802.802 0 0 1-1.391-.054l-1.353-2.564-.995 1.95a.803.803 0 0 1-1.431-.001l-1-1.96-1.384 2.58a.805.805 0 0 1-1.046.349 4.563 4.563 0 0 1-2.524-4.027C7.372 10.403 11.107 8 14.717 8a8.081 8.081 0 0 1 7.209 4.308 5.063 5.063 0 0 1-.363 10.115z",fill:e.color,fillRule:"evenodd"})});j.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},j.defaultProps={color:"currentColor",size:24};const D=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SnowflakeIcon",...e,children:(0,h.jsx)("path",{d:"M15 0s-.1 1.5-.1 3.7c0 0-1.3-.7-2.6-2.2l-1.6 1.2s1.3 1.9 1.9 2.8l2.1 2.4c-.2 2-.4 3.2-.6 4.3-1.5-.4-2.6-.8-4.2-1.5 0 0-.7-.9-1.2-2.7-.4-1.9-.5-2.8-.5-2.8l-2.1.6.4 1.6.2 1.6C4.6 7.9 2.9 7 2.9 7L1.8 9s1.7 1.1 3.8 2.5l-3.5 1.2.6 2.2s1.1-.2 2.5-.5c1.5-.3 3.6-.8 3.6-.8 1.4.9 2.8 1.8 4 2.5-1.2.7-3.1 1.9-4.5 2.8 0 0-.9-.2-2.7-.5-1.8-.2-3.8-.5-3.8-.5l.1 2.1 2.1.6 1.8.6C3.7 22.8 1 24.6 1 24.6l.8 1.4s2.8-1.4 4.9-2.5l-.6 3.6 1.9.3.7-2 1.4-3.6c1.4-1 2.9-2.1 4.4-3.2.1 2.9-.1 6.1-.1 6.1L12 27.4 10.6 29l1.6 1.6 2.6-2.3c.1 2.1.2 3.7.2 3.7h2.3s.1-1.6.2-3.8l1 .9 1.6 1.4 1.6-1.6-2.9-3.2-1.2-1.2c.1-2 .3-4 .5-5.7 1.3.7 2.6 1.7 4.2 2.5l1.3 3.4.8 2 1.8-.6-.4-2.1-.2-1c2.1 1.1 3.7 1.9 3.7 1.9l1.1-2s-1.7-1.1-3.8-2.5l1.5-.5 2-.7-.4-1.6-2.1.1-4.1.7c-1.4-1-2.4-1.8-3.3-2.5 1.3-1.1 2.8-2.5 4.6-3.8 0 0 1 .4 2.3.8 1.3.4 3 .7 3 .7s.2-1.1.4-1.8c-2-.7-3.4-1.3-3.4-1.3C29.3 9.1 31 8.1 31 8.1l-1.1-2s-1.6.8-3.8 2l.3-2 .2-1.7-1.8-.4s-.3 1.3-.7 2.6c-.4 1.4-1.2 2.7-1.2 2.7-1.6 1.2-3.3 2.4-4.6 3.1-.2-1.5-.3-2.8-.4-4.8.9-1.5 3.7-4.7 3.7-4.7l-1.3-1.1L17.4 4c-.1-2.4-.2-4-.2-4H15z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});D.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},D.defaultProps={color:"currentColor",size:24};var R=n(52048),L=n(51855);const F=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ChevronUpIcon",...e,children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:e.color,d:"M16 14.3L4.3 26.7 0 22.2 16 5.3l16 16.9-4.3 4.5z"})});F.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},F.defaultProps={color:"currentColor",size:24};var z=n(77664),B=n(25544);const V=e=>(0,h.jsx)("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CheckmarkIcon",...e,children:(0,h.jsx)("path",{fill:e.color,d:"M26.737 2L12.786 21.945 4.047 15.82.5 20.394 14.204 30 31.5 5.274 26.737 2z"})});V.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},V.defaultProps={color:"currentColor",size:24};var $=n(7162),U=n(80149);const q=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"QrCodeIcon",...e,children:[(0,h.jsx)("path",{fill:e.color,d:"M12.299 0H2.9C1.299 0 0 1.325 0 2.955v9.172c0 1.63 1.299 2.955 2.9 2.955h9.399c1.5 0 2.801-1.325 2.901-3.057v-9.07C15.2 1.325 13.9 0 12.299 0zM11.7 11.72H3.4V3.362h8.3v8.356zM6.1 26.292H9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406H6.1c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406z"}),(0,h.jsx)("path",{fill:e.color,d:"M6.1 9.376H9c.2 0 .4-.204.4-.408V6.114c0-.203-.2-.407-.4-.407H6.1c-.2 0-.4.204-.4.407v2.854c0 .204.2.408.4.408zm6.199 7.644H2.9c-1.601 0-2.9 1.323-2.9 2.954v9.07C0 30.674 1.299 32 2.9 32h9.399c1.5 0 2.801-1.326 2.901-2.956v-9.07c0-1.63-1.3-2.954-2.901-2.954zM11.7 28.636H3.4v-8.254h8.3v8.254zm11.2-19.26h2.899c.201 0 .401-.204.401-.408V6.114c0-.203-.2-.407-.401-.407H22.9c-.2 0-.4.204-.4.407v2.854c0 .204.2.408.4.408z"}),(0,h.jsx)("path",{fill:e.color,d:"M29.099 0H19.7c-1.601 0-2.901 1.325-2.901 2.955v9.172c0 1.63 1.3 2.955 2.901 2.955h9.399c1.5 0 2.801-1.325 2.901-3.057v-9.07C32 1.325 30.7 0 29.099 0zM28.5 11.72h-8.3V3.362h8.3v8.356zm-7.594 15.897h-2.899c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.899c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406zm0-4.995h-2.899c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zM25.942 17.63h-2.9c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zm0 9.987h-2.9c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.9c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406zM30.992 17.63h-2.9c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zm0 9.987h-2.9c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.9c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406z"})]});q.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},q.defaultProps={color:"currentColor",size:24};var Q=n(96447),G=n(1205),H=n(96051),W=n(20669),Z=n(31145),K=n(92102),Y=n(19843);const J=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"UserIcon",...e,children:(0,h.jsx)("path",{d:"M16.22 19.41A9.71 9.71 0 1 1 26 9.7a9.74 9.74 0 0 1-9.8 9.71M1.84 32a10.88 10.88 0 0 1 10.94-10.74h6.57A10.88 10.88 0 0 1 30.29 32H1.84",fill:e.color})});J.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},J.defaultProps={color:"currentColor",size:24};var X=n(30744),ee=n(49482),te=n(55257),ne=n(99109),re=n(9056),ie=n(18019),oe=n(29434),ae=n(8735);const se=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 65.62 43.47",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CompareArrowsIcon",...e,children:(0,h.jsx)("path",{fillRule:"evenodd",fill:e.color,d:"M33.64 14.63L19.01 29.25l-3.65-3.66 8.41-8.41L0 17.31v-5.37l23.77.13-8.41-8.41L19.01 0l14.63 14.63zM31.98 28.84L46.6 43.47l3.66-3.66-8.41-8.41 23.77.12v-5.36l-23.77.13 8.41-8.41-3.66-3.66-14.62 14.62z"})});se.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},se.defaultProps={color:"currentColor",size:24};var ce=n(95933),le=n(49446);const ue=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 61.22 42.34",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ForParentsIcon",...e,children:(0,h.jsx)("path",{d:"M46.32 32.31A7.13 7.13 0 0 1 41 29.94a1.05 1.05 0 0 1 .15-1.62 1.21 1.21 0 0 1 1.77.15 4.76 4.76 0 0 0 3.39 1.47 5.13 5.13 0 0 0 3.54-1.47 1.35 1.35 0 0 1 1.77-.15 1.17 1.17 0 0 1 .15 1.62 7.23 7.23 0 0 1-5.46 2.37M51.78 23A1.79 1.79 0 0 1 50 24.78 1.77 1.77 0 1 1 51.78 23m-7.23 0a1.79 1.79 0 0 1-1.77 1.77A1.77 1.77 0 1 1 44.55 23m12.68 2.8a10.77 10.77 0 0 0-21.53 0 10.68 10.68 0 0 0 10.77 10.49c6-.15 10.76-4.72 10.76-10.48M31 16.67a2.84 2.84 0 0 0-3-2.8 2.92 2.92 0 0 0-3 2.8 2.83 2.83 0 0 0 3 2.8 2.93 2.93 0 0 0 3-2.8m-12 0a2.84 2.84 0 0 0-3-2.8 2.93 2.93 0 0 0-2.95 2.8 2.84 2.84 0 0 0 2.95 2.8 2.93 2.93 0 0 0 3-2.8m3 15.19A12.62 12.62 0 0 0 31 28a2.06 2.06 0 0 0-.15-2.8h-.15a2.1 2.1 0 0 0-2.95.29A8 8 0 0 1 22 28a7.19 7.19 0 0 1-5.61-2.51 2.24 2.24 0 0 0-3-.29 1.93 1.93 0 0 0-.29 2.8v.15a12.12 12.12 0 0 0 8.9 3.71m24.47-20.35c8.11 0 14.75 6.34 14.75 14.16s-6.64 14.16-14.75 14.16a14.53 14.53 0 0 1-9.3-3.25 22.8 22.8 0 0 1-15 5.76C9.88 42.34 0 32.75 0 21.1S9.88 0 22.13 0A22.05 22.05 0 0 1 42 12.24a15.56 15.56 0 0 1 4.43-.73",fill:e.color,fillRule:"evenodd"})});ue.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},ue.defaultProps={color:"currentColor",size:24};const de=e=>(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 27.76",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ForKidsIcon",...e,children:[(0,h.jsx)("path",{d:"M45.55,0c-8,0-14.46,6.21-14.46,13.88s6.47,13.88,14.46,13.88S60,21.55,60,13.88,53.53,0,45.55,0m0,3.75c5.9,0,10.7,4.55,10.7,10.13S51.45,24,45.55,24,34.84,19.46,34.84,13.88,39.64,3.75,45.55,3.75",fill:e.color,fillRule:"evenodd"}),(0,h.jsx)("path",{d:"M43.66,11.28A1.75,1.75,0,0,1,41.93,13a1.67,1.67,0,0,1-1.74-1.6v-.13A1.74,1.74,0,1,1,43.66,11a1.13,1.13,0,0,1,0,.26m7.09,0A1.77,1.77,0,0,1,49,13a1.66,1.66,0,0,1-1.73-1.59v-.14A1.74,1.74,0,1,1,50.74,11a1.13,1.13,0,0,1,0,.26M45.4,20.39a7,7,0,0,1-5.21-2.32,1,1,0,0,1-.06-1.41.91.91,0,0,1,.21-.18,1.18,1.18,0,0,1,1.67.08l.06.07a4.76,4.76,0,0,0,3.33,1.44,5.06,5.06,0,0,0,3.47-1.44,1.32,1.32,0,0,1,1.73-.15,1.15,1.15,0,0,1,.15,1.59,7.08,7.08,0,0,1-5.35,2.32",fill:e.color,fillRule:"evenodd"}),(0,h.jsx)("path",{d:"M14.45,0C6.47,0,0,6.21,0,13.88S6.47,27.76,14.45,27.76s14.46-6.21,14.46-13.88S22.44,0,14.45,0m0,3.75c5.91,0,10.71,4.55,10.71,10.13S20.36,24,14.45,24,3.75,19.46,3.75,13.88,8.55,3.75,14.45,3.75",fill:e.color,fillRule:"evenodd"}),(0,h.jsx)("path",{d:"M12.57,11.28A1.75,1.75,0,0,1,10.84,13,1.67,1.67,0,0,1,9.1,11.4v-.12a1.67,1.67,0,0,1,1.6-1.74h.14a1.67,1.67,0,0,1,1.73,1.61v.13m7.09,0A1.76,1.76,0,0,1,17.92,13a1.67,1.67,0,0,1-1.74-1.6v-.13a1.74,1.74,0,1,1,3.48,0h0m-5.35,9.12A7,7,0,0,1,9.1,18.07,1,1,0,0,1,9,16.66a.91.91,0,0,1,.21-.18,1.18,1.18,0,0,1,1.67.08l.06.07a4.74,4.74,0,0,0,3.33,1.44,5.06,5.06,0,0,0,3.47-1.44,1.32,1.32,0,0,1,1.73-.15,1.15,1.15,0,0,1,.15,1.59,7.11,7.11,0,0,1-5.35,2.32",fill:e.color,fillRule:"evenodd"})]});de.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},de.defaultProps={color:"currentColor",size:24};var fe=n(70342),pe=n(95339);const he=e=>(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"HamburgerMenuIcon",...e,children:(0,h.jsx)("path",{fill:e.color,d:"M0 12.8h32v6.4H0zM0 24h32v6.4H0zM0 1.6h32V8H0z"})});he.propTypes={className:o().string,color:o().string,size:o().oneOfType([o().number,o().string])},he.defaultProps={color:"currentColor",size:24};n(71941);var me=n(7771),ge=n(6642),ve=n(70510);const ye=d.default.div.withConfig({componentId:"sc-ax1lsj-0"})(["position:relative;width:100%;height:100%;"]),be=d.default.input.attrs({type:"text",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",maxLength:"100"}).withConfig({componentId:"sc-ax1lsj-1"})(["color:",";width:100%;position:absolute;top:0;left:0;padding:0;border:0;background:transparent;z-index:2;"],(({theme:e})=>e.color.darkGray2)),we=(0,d.default)(be).withConfig({componentId:"sc-ax1lsj-2"})(["color:",";z-index:1;"],(({theme:e})=>e.color.darkGray4)),ke=r.forwardRef((function(e,t){const{className:n,placeholder:i,value:o,onInputChange:a,onFocus:s,onBlur:c,suggestions:l,...u}=e,d=((e,t)=>{if(!e.length||!t.length)return"";const n=t.filter((t=>{const n=t.toLowerCase(),r=e.toLowerCase();return n!==r&&n.startsWith(r)})).sort(((e,t)=>e.length-t.length)),r=n[0];return r?`${e}${r.substring(e.length)}`:""})(o,l),[f,p]=(0,r.useState)(!1),m=(0,r.useCallback)((e=>{9===e.keyCode&&d.length>0&&o!==d&&(e.preventDefault(),a&&a(d))}),[a,o,d]),g=(0,r.useCallback)((e=>{a&&a(e.target.value)}),[a]),v=(0,r.useCallback)((e=>{d&&p(!0),s&&s(e)}),[s,d]),y=(0,r.useCallback)((e=>{p(!1),c&&c(e)}),[c]);return(0,h.jsxs)(ye,{children:[(0,h.jsx)(be,{ref:t,className:n,placeholder:i,value:o,onKeyDown:m,onChange:g,onFocus:v,onBlur:y,...u}),f&&(0,h.jsx)(we,{className:n,value:d,disabled:!0})]})}));ke.defaultProps={value:"",suggestions:[]},ke.propTypes={className:o().string,placeholder:o().string,value:o().string,onInputChange:o().func,onFocus:o().func,onBlur:o().func,suggestions:o().arrayOf(o().string)};var Se=ke,Ae=n(53342);const xe=d.default.form.withConfig({componentId:"sc-1r59ztq-0"})(["display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid ",";height:",";width:100%;svg{margin-right:10px;}&:hover{transition:",";border-bottom:1px solid ",";}"," ","{max-width:",";font-size:",";}"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.pxToRem(34)),(({theme:e})=>`border-bottom ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primary),(({$inputEnabled:e,theme:t})=>e&&(0,d.css)(["border-bottom:1px solid ",";"],t.color.primary)),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.pxToRem(450)),(({theme:e})=>e.font.size.captionDesktop)),Ee=(0,d.default)(ve.Z).attrs((()=>({size:18}))).withConfig({componentId:"sc-1r59ztq-1"})(["color:",";transition:",";",""],(({theme:e})=>e.color.darkGray2),(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({$inputEnabled:e,theme:t})=>e&&(0,d.css)(["color:",";"],t.color.primary))),Ne=d.default.span.withConfig({componentId:"sc-1r59ztq-2"})(["width:100%;"]),Ce=d.default.button.withConfig({componentId:"sc-1r59ztq-3"})(["display:flex;align-items:center;flex:1;background:none;border:none;color:",";cursor:pointer;height:100%;width:100%;line-height:1.5;padding:0;transition:",";span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}&:hover{color:",";","{color:",";}}"],(({theme:e})=>e.color.darkGray3),(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primary),Ee,(({theme:e})=>e.color.primary)),_e=d.default.div.withConfig({componentId:"sc-1r59ztq-4"})(["display:flex;align-items:center;height:100%;width:100%;"]),Oe=(0,d.default)(Se).withConfig({componentId:"sc-1r59ztq-5"})(["width:100%;height:100%;line-height:1.5;flex:1;&:focus[data-focus-visible-added],&:focus-visible{outline:none;}::placeholder{color:",";}"],(({theme:e})=>e.color.darkGray3)),Ie=d.default.input.withConfig({componentId:"sc-1r59ztq-6"})(["position:absolute;visibility:hidden;"]),Te=(0,d.default)(Ae.S).withConfig({componentId:"sc-1r59ztq-7"})(["display:none;flex-basis:140px;flex-shrink:0;","{display:inline-block;}"],(({theme:e})=>e.mediaQuery.desktop)),Me=r.forwardRef((function(e,t){const{className:n,searchPath:i,inputEnabled:o,inputValue:a,selectedOption:s,onClick:c,onDropdownChange:l,onSearchSubmit:u,onInputChange:d,options:f,suggestions:m}=e,g={SEARCH_LABELS:me.S,...e.labels},[v,y]=(0,r.useState)(!1);(0,r.useEffect)((()=>{y(!0)}),[]);const{text:b}=(0,p.i1)(),{trackSearchClick:w}=(0,me.u)(),k=(0,r.useMemo)((()=>s&&{value:s.value,label:b(s.label)}),[s,b]),S=(0,r.useMemo)((()=>f.map((({value:e,label:t})=>({value:e,label:b(t)})))),[f,b]),A=(0,r.useCallback)((e=>{e.preventDefault(),c&&c()}),[c]),x=(0,r.useCallback)((e=>{d&&d(e)}),[d]),E=(0,r.useCallback)((e=>{l&&l(e)}),[l]),N=(0,r.useCallback)((e=>{e.target.select()}),[]),C=(0,r.useCallback)((e=>{if(e.preventDefault(),u){const e=a;e&&k?.label&&w(e,"User hit ",k?.label),u({queryValue:e,categoryValue:k?.value?.category})}}),[a,k,u,w]);return(0,h.jsxs)(xe,{className:n,$inputEnabled:o,onSubmit:C,action:i,method:"get",autoComplete:"off","data-testid":"form",children:[o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(_e,{children:[(0,h.jsx)(Ee,{$inputEnabled:o}),(0,h.jsx)(Oe,{name:"q",ref:t,value:a,type:"text","aria-label":b(g.placeholderLabel),placeholder:b(g.placeholderLabel),suggestions:m,onInputChange:x,onFocus:N})]}),(0,h.jsx)("input",{type:"hidden",name:"cat",value:k?.value?.category||S[0].value?.category}),(0,h.jsx)(Ie,{type:"submit"})]}):(0,h.jsx)(Ne,{ref:t,children:(0,h.jsxs)(Ce,{"aria-haspopup":"dialog",onClick:A,children:[(0,h.jsx)(Ee,{$inputEnabled:o}),v&&(0,h.jsx)("span",{children:a||b(g.placeholderLabel)})]})}),(0,h.jsx)(Te,{onSelect:E,value:k,options:S})]})}));Me.defaultProps={labels:me.S,options:me.C,suggestions:[]},Me.propTypes={className:o().string,searchPath:o().string,inputEnabled:o().bool,inputValue:o().string,suggestions:o().arrayOf(o().string),selectedOption:ge.O,onClick:o().func,onSearchSubmit:o().func,onDropdownChange:o().func,onInputChange:o().func,labels:ge.L,options:o().arrayOf(ge.O).isRequired};var Pe=Me,je=n(46420),De=n(16614),Re=n(61970),Le=n.n(Re);const Fe=e=>window.location.pathname.toLowerCase().includes(e?.toLowerCase()),ze=d.default.div.attrs({tabIndex:"-1","aria-hidden":"true"}).withConfig({componentId:"sc-14rqey7-0"})(["visibility:",";pointer-events:",";position:fixed;top:0;left:0;z-index:",";width:100%;height:100vh;background-color:",";transition:",";transition-property:visibility,background-color;"],(({$isOpen:e})=>e?"visible":"hidden"),(({$isOpen:e})=>e?"auto":"none"),2e3,(({theme:e,$isOpen:t})=>t?e.scrim.dark:"transparent"),(({theme:e})=>`all ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`)),Be=d.default.div.withConfig({componentId:"sc-14rqey7-1"})(["visibility:",";position:fixed;top:0;left:0;z-index:",";width:100%;",";overflow-y:auto;pointer-events:",";background-color:",";padding:0 ",";transition:",";transition-property:height visibility;","{position:absolute;overflow:hidden;padding:0;padding-right:",";height:",";}"],(({$isOpen:e})=>e?"visible":"hidden"),2001,(({$isOpen:e,theme:t})=>e?"\n height: 100vh;\n height: var(--app-height);\n ":`height: ${t.spacing[44]}`),(({$isOpen:e})=>e?"auto":"none"),(({theme:e})=>e.color.white),(({theme:e})=>e.spacing[16]),(({theme:e})=>`all ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.spacing[16]),(({$isOpen:e,theme:t,$contentHeight:n})=>e?t.pxToRem(52+n):t.pxToRem(52))),Ve=d.default.div.withConfig({componentId:"sc-14rqey7-2"})(["display:none;background-color:",";width:",";height:100%;","{display:flex;justify-content:center;align-items:center;color:white;margin-right:",";}"],(({theme:e})=>e.color.primary),(({theme:e})=>e.pxToRem(105)),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.spacing[16])),$e=(0,d.default)(Pe).withConfig({componentId:"sc-14rqey7-3"})([""]),Ue=d.default.div.withConfig({componentId:"sc-14rqey7-4"})(["display:flex;justify-content:space-between;align-content:center;height:",";> form{align-self:center;}","{justify-content:initial;padding:0;height:",";border-bottom:1px solid ",";}","{","{",";}}"],(({theme:e})=>e.spacing[44]),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.pxToRem(52)),(({theme:e})=>e.color.white),(({theme:e})=>e.mediaQuery.desktop),$e,(({$inputWidth:e,$isOpen:t,theme:n})=>(0,d.css)(["width:",";transition:",";"],t?"450px":`${e}px`,`width ${n.movement.duration} ${n.movement.easing} ${n.movement.delay}`))),qe=d.default.div.withConfig({componentId:"sc-14rqey7-5"})(["min-height:100%;","{padding:0 ",";}","{min-height:",";padding:",";}"],(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.pxToRem(280)),(({theme:e})=>`${e.spacing[12]} ${e.pxToRem(121)} ${e.spacing[40]}`)),Qe=d.default.button.withConfig({componentId:"sc-14rqey7-6"})(["opacity:",";border:none;background:transparent;padding:0;margin-left:16px;cursor:pointer;transition:",";","{margin-left:auto;}"],(({$isOpen:e})=>e?1:0),(({theme:e})=>`opacity ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.mediaQuery.desktop)),Ge=e=>{const{isOpen:t,searchPath:n,activeQuery:i,activeCategoryOption:o,onCloseClick:a,onSearchSubmit:s,options:c,labels:l,locale:u,allProductsIndexConfig:d,additionalResultsIndexConfig:f,defaultClientConfig:g,inputWidth:v}=e,y=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,p.fu)(),[k,S]=(0,r.useState)(i),[A,x]=(0,r.useState)(k),[E,N]=(0,r.useState)(k),[C,_]=(0,r.useState)(o),[O,I]=(0,r.useState)(0),{text:T}=(0,p.i1)(),[M,P]=(0,r.useMemo)((()=>u.toLowerCase().split("-")),[u]),j=(0,r.useCallback)((e=>{S(e)}),[]),D=(0,r.useCallback)((e=>{_(e)}),[]),R=(0,r.useCallback)((()=>{I(b.current?.offsetHeight)}),[]),L=(0,r.useCallback)((()=>{S(i),_(o),a&&a()}),[a,i,o]),F=(0,r.useCallback)((e=>{27===e.keyCode&&L()}),[L]),z=(0,r.useCallback)((()=>{t&&y.current?.blur()}),[t]),B=(0,r.useCallback)((({queryValue:e,categoryValue:t})=>{e!==k&&S(e),t!==C?.value?.category&&_(c.find((e=>e.value.category===t)));const r=Fe(n);(i!==e||o.value.category!==t||!r)&&s?s({queryValue:e,categoryValue:t}):L()}),[k,C,i,o,c,s,L,n]),V=(0,r.useCallback)((()=>{Fe(n)||k?.length>0?B({queryValue:k,categoryValue:C?.value?.category}):L()}),[k,C,B,L,n]),{suggestionsIndexName:$}=C?.value||{},{suggestions:U}=((e,t,n)=>{const[i,o]=(0,r.useState)([]),a=(0,r.useMemo)((()=>Le()(n.appId,n.appKey)),[n.appId,n.appKey]),s=(0,r.useMemo)((()=>a.initIndex(t)),[t,a]),c=(0,r.useMemo)((()=>({suggestions:i})),[i]);return(0,r.useEffect)((()=>{e?me.E&&s.search(e.toLowerCase(),{hitsPerPage:me.M}).then((({hits:e})=>{o(e.map((({query:e})=>e)))})):o([])}),[s,e]),c})(E,`${$}_${M}_${P}`,g),q=e.trendingResults||((0,De.i)(u)?me.L:me.T),Q=e.topStoreProductSkus||w?.searchContent?.topProducts||((0,De.i)(u)?me.a:me.b);return(0,r.useEffect)((()=>{S(i)}),[i]),(0,r.useEffect)((()=>{_(o)}),[c,o]),(0,r.useEffect)((()=>{const e=window.setTimeout((()=>{x(k)}),500);return()=>{clearTimeout(e)}}),[k]),(0,r.useEffect)((()=>{const e=window.setTimeout((()=>{N(k)}),100);return()=>{clearTimeout(e)}}),[k]),(0,r.useEffect)((()=>{let e;if(t){const t=`-${window.scrollY}px`;e=window.setTimeout((()=>{document.body.style.top=t,document.body.style.position="fixed",document.body.style.overflowY="scroll",y.current.focus()}),100)}else{const e=parseInt(document.body.style.top);document.body.style.position="",document.body.style.top="",document.body.style.overflowY="",isNaN(e)||window.scrollTo(0,-1*e)}return()=>{clearTimeout(e)}}),[t]),(0,r.useEffect)((()=>{const e=()=>document?.documentElement.style.setProperty("--app-height",`${window.innerHeight}px`),t=()=>{I(b.current?.offsetHeight),e()};return window.addEventListener("resize",t),e(),()=>{window.removeEventListener("resize",t)}}),[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Be,{$isOpen:t,role:"dialog",$contentHeight:O,"aria-modal":"true",onKeyDown:F,onScroll:z,children:[(0,h.jsxs)(Ue,{$inputWidth:v,$isOpen:t,children:[(0,h.jsx)(Ve,{children:(0,h.jsx)(ie.Z,{size:69})}),(0,h.jsx)($e,{ref:y,searchPath:n,inputEnabled:!0,inputValue:k,suggestions:U,selectedOption:C,onSearchSubmit:B,onDropdownChange:D,onInputChange:j,labels:l,options:c}),(0,h.jsx)(Qe,{onClick:V,"aria-label":T(l.closeLabel),$isOpen:t,children:(0,h.jsx)(m.Z,{size:24})})]}),(0,h.jsx)(qe,{ref:b,children:(0,h.jsx)(De.F,{selectedOption:C,locale:u,labels:l,fetchResults:t,onResultsChange:R,onSearchSubmit:B,query:A,allProductsIndexConfig:d,additionalResultsIndexConfig:f,topStoreProductSkus:Q,trendingResults:q,closeFlyover:L})})]}),(0,h.jsx)(ze,{$isOpen:t,"data-testid":"flyover-overlay",onClick:L})]})};Ge.defaultProps={activeCategoryOption:me.C[0],locale:De.D,searchPath:me.c,labels:me.S,options:me.C,defaultClientConfig:me.D,allProductsIndexConfig:me.d[me.e.ALL_PRODUCTS],additionalResultsIndexConfig:me.d[me.e.ALL]},Ge.propTypes={isOpen:o().bool,searchPath:o().string,activeQuery:o().string,activeCategoryOption:ge.O,labels:ge.L,locale:o().string,allProductsIndexConfig:ge.C,additionalResultsIndexConfig:ge.C,defaultClientConfig:ge.a.isRequired,onCloseClick:o().func,onSearchSubmit:o().func,options:o().arrayOf(ge.O).isRequired,topStoreProductSkus:o().arrayOf(o().string),trendingResults:o().arrayOf(o().shape({label:o().string,url:o().string}))};var He=Ge;const We=d.default.button.withConfig({componentId:"sc-2kugj4-0"})(["width:60px;height:60px;background:",";border:none;border-radius:50%;color:",";cursor:pointer;"],(({theme:e})=>e.color.primary),(({theme:e})=>e.color.white)),Ze=r.forwardRef((function(e,t){const{onButtonClick:n,...r}=e;return(0,h.jsx)(We,{onClick:n,ref:t,...r,children:(0,h.jsx)(ve.Z,{size:32})})}));Ze.propTypes={onButtonClick:o().func};var Ke=Ze;function Ye(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Je(e){void 0===e&&(e={});var t=e.onResize,n=(0,r.useRef)(void 0);n.current=t;var i=e.round||Math.round,o=(0,r.useRef)(),a=(0,r.useState)({width:void 0,height:void 0}),s=a[0],c=a[1],l=(0,r.useRef)(!1);(0,r.useEffect)((function(){return l.current=!1,function(){l.current=!0}}),[]);var u=(0,r.useRef)({width:void 0,height:void 0}),d=function(e,t){var n=(0,r.useRef)(null),i=(0,r.useRef)(null);i.current=t;var o=(0,r.useRef)(null);(0,r.useEffect)((function(){a()}));var a=(0,r.useCallback)((function(){var t=o.current,r=i.current,a=t||(r?r instanceof Element?r:r.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return(0,r.useEffect)((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),(0,r.useCallback)((function(e){o.current=e,a()}),[a])}((0,r.useCallback)((function(t){return o.current&&o.current.box===e.box&&o.current.round===i||(o.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Ye(r,o,"inlineSize"),s=Ye(r,o,"blockSize"),d=a?i(a):void 0,f=s?i(s):void 0;if(u.current.width!==d||u.current.height!==f){var p={width:d,height:f};u.current.width=d,u.current.height=f,n.current?n.current(p):l.current||c(p)}}))}),o.current.instance.observe(t,{box:e.box}),function(){o.current&&o.current.instance.unobserve(t)}}),[e.box,i]),e.ref);return(0,r.useMemo)((function(){return{ref:d,width:s.width,height:s.height}}),[d,s.width,s.height])}var Xe=n(20204),et=n(34406);const tt=1025,nt={MY_NINTENDO_STORE:"MY_NINTENDO_STORE",GAMES:"GAMES",NINTENDO_SWITCH:"NINTENDO_SWITCH",NEWS_EVENTS:"NEWS_EVENTS",PLAY_NINTENDO:"PLAY_NINTENDO",HOLIDAY_GIFT_GUIDE:"HOLIDAY_GIFT_GUIDE"},rt={LIST:"LIST",ICON:"ICON"},it={HAMBURGER:"HAMBURGER",ACCOUNT:"ACCOUNT"},ot={FLYOUT:"FLYOUT",TOP_DRAWER:"TOP_DRAWER"},at=200,st=200,ct=300,lt=300,ut=600,dt=800,ft={NAV_MOBILE:46,NAV_DESKTOP_TOP:52,NAV_DESKTOP_BOTTOM:44,DRAWER_HAMBURGER_MOBILE:"60vh",DRAWER_ACCOUNT_MOBILE:"80vh",DRAWER_HEADER_MOBILE:"4rem",ACCORDION_SUBITEM_WRAP_MOBILE:33,ACCORDION_SUBITEM_MOBILE:38,QR_CODE:174,MAINT_NOTIF:48};ft.NAV_DESKTOP=ft.NAV_DESKTOP_TOP+ft.NAV_DESKTOP_BOTTOM;const pt=400,ht=360,mt=1e3,gt={NORMAL:"NORMAL",SMILE:"SMILE",SURPRISE:"SURPRISE",SURPRISE_SPIN:"SURPRISE_SPIN",ANGER:"ANGER",FRUSTRATED:"FRUSTRATED"},vt={NONE:{name:"none",duration:"",iterationCount:""},SPIN_TWICE:{name:"spin",duration:dt/2+"ms",iterationCount:"2"}},yt=(0,i.shape)({navLocation:i.string.isRequired,navLocationLevel:i.number.isRequired,clickLocation:i.string}),bt=(0,i.shape)({mii:i.object,nickname:i.string,createdAt:i.string,id:i.string});(0,i.shape)({loading:i.bool,user:bt,promptLogin:i.func,promptLogout:i.func}).isRequired;const wt=(0,i.oneOf)(Array.from(f.nD,(e=>e.toLowerCase()))),kt=(0,i.shape)({pathname:i.string.isRequired,locale:wt.isRequired,basePath:i.string.isRequired}),St={homeUrl:"/",router:{locale:"en-us",pathname:"/",basePath:"/"},origin:"https://www-ng-stg.nintendo.com"};function At(){const e=navigator.userAgent;return e.includes("Mozilla/")&&e.includes("Firefox/")}function xt(){const e=document.querySelector("body"),t=document.querySelector("html");if("undefined"!==typeof window)if(At())"hidden"!==e.style.overflow&&(e.style.overflow="hidden",e.style.height="100%");else{const n=window.pageYOffset;"hidden"!==e.style.overflow&&(e.style.overflow="hidden",e.style.position="fixed",e.style.top=`-${n}px`,e.style.width="100%",t.style.height="calc(100vh - 1px)")}}function Et(){const e=document.querySelector("body");if("undefined"!==typeof window)if(At())e.style.removeProperty("overflow"),e.style.removeProperty("height");else if("hidden"===e.style.overflow){const t=-1*parseInt(e.style.top);e.style.removeProperty("overflow"),e.style.removeProperty("position"),e.style.removeProperty("top"),e.style.removeProperty("width"),window.scrollTo(0,t)}}function Nt({store:e,eshop:t}){const n=t?.scheduled||e?.scheduled,r=t?.active||e?.active;return r?{...r,shownDescription:r.description}:n?{...n,shownDescription:n.preMaintenanceDescription}:void 0}const Ct=r.createContext(null),_t=()=>(0,r.useContext)(Ct),Ot=new p.RD("maintenanceNotifOpen"),It=new p.RD("maintenanceNotifData"),Tt=e=>Math.max(new Date(Nt(e)?.end).getTime()-Date.now(),0),Mt=({homeUrl:e,router:t,origin:n,children:i,customData:o})=>{const[a,s]=(0,r.useState)({visible:!1,content:null,label:""}),[c,l]=(0,r.useState)(!1),u=(0,p.xe)(),d=(0,p.jD)(),f=(0,p.ON)(),m=(0,p.ag)("(min-width: 1025px)"),g=(0,p.K8)(),v=o?.router?o.router?.locale:t.locale,{text:y,date:b,price:w,DateFormat:k}=(0,p.i1)(v?{locale:v}:{locale:"en-us"}),S=(0,r.useMemo)((()=>o?.router?o.router?.pathname?.includes("/store"):t.pathname?.includes("/store")),[t.pathname,o]),A=(0,r.useCallback)((()=>{s((e=>({visible:!1,content:e.content,label:""})))}),[]),x=(0,r.useCallback)((({content:e,label:t})=>{s({visible:!0,content:e,label:t})}),[]),E=(0,r.useCallback)((()=>{Ot.set(!1,Tt(g)),l(!1)}),[g]);(0,r.useEffect)((()=>{const e=Nt(g),t=Ot.get(),n=It.get();void 0!==t?null===t||n!==JSON.stringify(e)?(Ot.delete(),It.set(JSON.stringify(e),Tt(g)),l(Boolean(e?.shownDescription))):l(t):l(Boolean(e?.shownDescription))}),[g]);const N=(0,r.useMemo)((()=>({state:{router:t,origin:n,accounts:u,cart:d,customer:f,maintenance:g,modal:a,maintenanceNotifOpen:c,isDesktop:m,onStorePage:S,cartUrl:"/cart",homeUrl:e,...o},actions:{closeModal:A,openModal:x,closeMaintenanceNotif:E},localizer:{text:y,date:b,price:w,DateFormat:k},methods:{promptLogin:u.promptLogin,promptLogout:u.promptLogout}})),[y,b,w,k,n,d,f,u,m,t,S,o,g,a,A,x,c,E,e]);return(0,h.jsx)(Ct.Provider,{value:N,children:i})};Mt.propTypes={homeUrl:i.string,router:kt,origin:i.string,children:i.node,customData:(0,i.shape)({router:(0,i.shape)({pathname:i.string,locale:wt,basePath:i.string}),accounts:(0,i.shape)({isLoggedIn:i.bool.isRequired,loading:i.bool.isRequired}),cart:(0,i.shape)({loading:i.bool.isRequired,data:(0,i.shape)({totalQuantity:i.number})}),customer:(0,i.shape)({loading:i.bool.isRequired,data:bt})})},Mt.defaultProps=St;var Pt=Mt;const jt="https://www.nintendo.com",Dt="en-us",Rt="en-ca",Lt="fr-ca",Ft=new Set([Dt,Rt,Lt]),zt="es-mx",Bt="pt-br",Vt="es-ar",$t="es-cl",Ut="es-co",qt="es-pe",Qt=new Set([Vt,$t,Ut,qt]),Gt=new Set([zt,Bt,...Qt]),Ht=new Set([Dt,Rt,Lt,...Gt]);new Set(Array.from(Ht).map((e=>e?.split("-")[0])).filter(Boolean));const Wt={default:"us",[Dt]:"us"};[...Ht].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`})),et.env.DEV_PREVIEW_MODE;function Zt(e){return Gt.has(e)}const Kt=()=>(0,a.J)();function Yt(e){return"string"!==typeof e?e:Wt[e.toLowerCase()]||e.toLowerCase()}const Jt={prevActiveDrawerIds:[],customDrawers:new Map},Xt="add_or_update_drawer",en="remove_drawer",tn="open_drawer",nn="close_drawer",rn=(e,{type:t,payload:n})=>{const r=new Map(e.customDrawers),{id:i,drawer:o}=n;switch(t){case Xt:{const t=r.get(i);return r.set(i,{...o,id:i,isOpen:t?.isOpen}),{...e,customDrawers:r}}case en:return r.delete(i),{...e,activeCustomDrawerId:i===e.activeCustomDrawerId?null:e.activeCustomDrawerId,customDrawers:r};case tn:{if(!r.has(i))return e;const t=r.get(i);if(i===e.activeCustomDrawerId&&t.isOpen)return e;const n=r.get(e.activeCustomDrawerId);return{...e,activeCustomDrawerId:i,prevActiveDrawerIds:[...e.prevActiveDrawerIds,n?.isOpen?n.id:null].filter(Boolean),customDrawers:new Map([...Array.from(r),[i,{...t,isOpen:!0}]].filter(Boolean))}}case nn:{if(!r.has(i))return e;const t=r.get(i);if(!t.isOpen)return e;r.set(i,{...t,isOpen:!1});let n=null;if(i===e.activeCustomDrawerId)do{const t=e.prevActiveDrawerIds.pop();n=r.get(t)}while(e.prevActiveDrawerIds.length>0&&!n?.isOpen);const o=n?.isOpen?n.id:e.activeCustomDrawerId;return{...e,activeCustomDrawerId:o,customDrawers:r}}}},on=()=>{},an=r.createContext({state:Jt,actions:{openDrawer:on,closeDrawer:on,addOrUpdateDrawer:on,removeDrawer:on}}),sn=e=>{const{children:t}=e,[{activeCustomDrawerId:n,customDrawers:i},o]=(0,r.useReducer)(rn,Jt),a=(0,r.useCallback)((e=>{o({type:tn,payload:{id:e}})}),[]),s=(0,r.useCallback)((e=>{o({type:nn,payload:{id:e}})}),[]),c=(0,r.useCallback)(((e,t)=>{o({type:Xt,payload:{id:e,drawer:t}})}),[]),l=(0,r.useCallback)((e=>{o({type:en,payload:{id:e}})}),[]),u=(0,r.useMemo)((()=>({state:{activeCustomDrawer:i.get(n),customDrawers:i},actions:{openDrawer:a,closeDrawer:s,addOrUpdateDrawer:c,removeDrawer:l}})),[n,i,a,s,c,l]);return(0,h.jsx)(an.Provider,{value:u,children:t})};sn.propTypes={children:o().node.isRequired};const cn=()=>(0,r.useContext)(an);var ln=sn;const un=r.createContext(null),dn=()=>(0,r.useContext)(un),fn=({customValue:e,children:t})=>{const[n,i]=(0,r.useState)(null),[o,a]=(0,r.useState)(!1),[s,c]=(0,r.useState)(!1),[l,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),[p,m]=(0,r.useState)({focus:()=>{}}),{state:{activeCustomDrawer:g},actions:{openDrawer:v,closeDrawer:y}}=cn(),b=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>clearTimeout(b.current)),[]);const w=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>clearTimeout(w.current)),[]);const k=(0,r.useCallback)((()=>{w.current=setTimeout((()=>u(!1)),at),c(!1)}),[]),S=(0,r.useCallback)((()=>{b.current=setTimeout((()=>i(null)),at),a(!1),f(!1)}),[]),A=(0,r.useCallback)(((e,t)=>{i(e),a(!0),k(),m(t),b.current=setTimeout((()=>f(!0)),at)}),[k]),x=(0,r.useCallback)((()=>{S()}),[S]),E=(0,r.useCallback)((()=>{c(!0),u(!0),S()}),[S]),N=(0,r.useCallback)((()=>{k()}),[k]);(0,r.useEffect)((()=>{o||s||g?.isOpen&&g?.enableScrim?xt():Et()}),[o,s,g]);const C=(0,r.useMemo)((()=>({state:{activeMenu:n,activeCustomDrawer:g,menuOpen:o,flyoutOpen:s,flyoutVisible:l,bindFocus:d,returnFocus:p},actions:{openMenu:A,openCustomDrawer:v,closeMenu:x,closeCustomDrawer:y,openFlyout:E,closeFlyout:N}})),[n,g,o,s,l,d,p,A,v,x,y,E,N]);return(0,h.jsx)(un.Provider,{value:e||C,children:t})};fn.propTypes={customValue:i.object,children:i.node};var pn=fn;const hn=r.createContext(null),mn=()=>(0,r.useContext)(hn),gn=({customValue:e,children:t})=>{const[n,i]=(0,r.useState)(null),[o,a]=(0,r.useState)(!1),[s,c]=(0,r.useState)(null),[l,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(null),[p,m]=(0,r.useState)(!1),[g,v]=(0,r.useState)(null),{state:{activeCustomDrawer:y},actions:{openDrawer:b,closeDrawer:w}}=cn(),k=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>clearTimeout(k.current)),[]);const S=(0,r.useCallback)((e=>{v((()=>n)),i(e),a(!0),u(!1)}),[n]),A=(0,r.useCallback)((()=>{k.current=setTimeout((()=>{i(null),u(!1)}),at),a(!1)}),[]),x=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>clearTimeout(x.current)),[]);const E=(0,r.useCallback)((e=>{c(e),u(!0)}),[]),N=(0,r.useCallback)((()=>{k.current=setTimeout((()=>{c(null),f(null)}),at),u(!1)}),[]),C=(0,r.useRef)(null);(0,r.useEffect)((()=>()=>clearTimeout(C.current)),[]);const _=(0,r.useCallback)((e=>{f(e),m(!0)}),[]),O=(0,r.useCallback)((()=>{m(!1),C.current=setTimeout((()=>f(null)),lt)}),[]);(0,r.useEffect)((()=>{o||y?.isOpen&&y?.enableScrim?xt():Et()}),[o,y]);const I=(0,r.useMemo)((()=>({state:{activeDrawer:n,activeCustomDrawer:y,drawerOpen:o,activeMenu:s,menuOpen:l,activeAccordion:d,accordionOpen:p,returnFocus:g,...e?.state},actions:{openDrawer:S,openCustomDrawer:b,closeDrawer:A,closeCustomDrawer:w,openMenu:E,closeMenu:N,openAccordion:_,closeAccordion:O}})),[n,y,o,s,l,d,p,g,S,b,A,w,E,N,_,O,e]);return(0,h.jsx)(hn.Provider,{value:I,children:t})};gn.propTypes={customValue:i.object,children:i.node};var vn=gn;const yn=d.default.button.attrs((({href:e,onClick:t})=>({as:e&&"a",onClick:t}))).withConfig({componentId:"sc-1empns-0"})(["display:inline-flex;align-items:center;border:none;background:transparent;cursor:",";padding:0;transition:",";*{color:",";}","{&:hover{color:",";transition:",";}}"],(({disabled:e})=>e?"initial":"pointer"),(({theme:e})=>`all ${e.movement.duration} ${e.movement.easing}`),(({theme:e,disabled:t})=>t?e.color.lightGray1:"inherit"),(({theme:e})=>e.mediaQuery.tablet),(({theme:e,disabled:t})=>t?e.color.lightGray1:e.color.primary),(({theme:e})=>`all ${e.movement.duration} ${e.movement.easing}`));var bn=yn;yn.propTypes={href:i.string,onClick:i.func};const wn=d.default.button.withConfig({componentId:"sc-auhxh6-0"})(["width:",";height:",";cursor:pointer;background:transparent;border:none;color:",";padding:0;transition:color ",";&:hover{color:",";}"],(({theme:e})=>e.pxToRem(26)),(({theme:e})=>e.pxToRem(26)),(({theme:e})=>e.color.lightGray1),(({theme:e})=>`${e.movement.duration} ${e.movement.easing}`),(({theme:e})=>e.color.darkGray2)),kn=({onClick:e,className:t})=>{const{localizer:{text:n}}=_t();return(0,h.jsx)(wn,{className:t,onClick:e,"aria-label":n("Close"),children:(0,h.jsx)(m.Z,{size:26})})};kn.propTypes={className:i.string,onClick:i.func};var Sn=kn;const An=r.forwardRef((({children:e,className:t,onClick:n,target:i,to:o,ariaLabel:a,ariaExpanded:s,ariaControls:c,disabled:l,analytics:u},f)=>{const{state:{router:{basePath:m,locale:g},origin:v}}=_t(),y=function(){const{ProxyLink:e}=(0,r.useContext)(d.ThemeContext);return e}(),{trackNavLinkClick:b}=(0,p.z$)(),w=/^https?:\/\//i.test(o),k=(0,r.useMemo)((()=>""===m||"/"===m?o:w?new URL(o,v).href:new URL(((e,t)=>`/${Yt(t)}${e}`)(o,g)||o,v).href),[m,o,v,g,w]),S={className:t,onClick:()=>{if(n&&n(),u){const{navLocation:t,navLocationLevel:n}=u,r=u.clickLocation||o||"none";try{b(t,n,r)}catch(e){console.log(e)}}},target:i,"aria-label":a,"aria-expanded":s,"aria-controls":c};return l?(0,h.jsx)(bn,{ref:f,...S,disabled:!0,children:e}):o?w?(0,h.jsx)(bn,{ref:f,href:k,...S,children:e}):(0,h.jsx)(y,{href:k,children:(0,h.jsx)(bn,{ref:f,...S,children:e})}):(0,h.jsx)(bn,{ref:f,...S,children:e})}));An.displayName="Link",An.propTypes={children:i.node,className:i.string,onClick:i.func,target:i.string,to:i.string,ariaLabel:i.string,ariaExpanded:i.string,ariaControls:i.string,disabled:i.bool,analytics:yt};var xn=An;const En=d.default.div.withConfig({componentId:"sc-7h29aw-0"})(["position:relative;width:","px;height:","px;overflow:hidden;border-radius:100%;background-color:",";"],(({size:e})=>e),(({size:e})=>e),(({theme:e})=>e.color.lightGray2)),Nn=d.default.img.withConfig({componentId:"sc-7h29aw-1"})(["position:absolute;left:0;top:0;height:100%;width:auto;",";@media (prefers-reduced-motion){animation:none;}"],(({$animation:e,size:t})=>"spin"===e.name?(0,d.css)(["animation-name:",";animation-duration:",";animation-timing-function:steps(16);animation-iteration-count:",";animation-direction:reverse;"],(e=>(0,d.keyframes)(["from{left:0px}to{left:-","px}"],16*e))(t),e.duration,e.iterationCount):(0,d.css)(["animation:none;"]))),Cn=d.default.img.withConfig({componentId:"sc-7h29aw-2"})(["width:","px;height:","px;"],(({size:e})=>e),(({size:e})=>e)),_n=({className:e,size:t,expression:n,animation:i})=>{const{state:{customer:{loading:o,data:a}},localizer:{text:s}}=_t(),c=(0,r.useMemo)((()=>{switch(n){case gt.SURPRISE:return"&expression=surprise&characterXRotate=350";case gt.SMILE:return"&expression=smile";case gt.ANGER:return"&expression=anger";case gt.FRUSTRATED:return"&expression=frustrated";default:return"&expression=normal"}}),[n]);if(o||!a?.mii)return(0,h.jsx)(Cn,{className:e,src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMThweCIgaGVpZ2h0PSIxOHB4IiB2aWV3Qm94PSIwIDAgMTggMTgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+SWNvbi9Vc2VyIGFjY291bnQvTm8gbG9naW4gKGNpcmNsZSk8L3RpdGxlPgogICAgPGRlZnM+CiAgICAgICAgPGNpcmNsZSBpZD0icGF0aC0xIiBjeD0iOSIgY3k9IjkiIHI9IjkiPjwvY2lyY2xlPgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJnbG9iYWwtbmF2LS8tZGVza3RvcC0vLXVuYXV0aCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyOTEuMDAwMDAwLCAtMTcuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0xMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOTUwLjAwMDAwMCwgNS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJMb2ctaW4tLy1TaWduLXVwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMzEuMDAwMDAwLCAwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxnIGlkPSJJY29uL1VzZXItYWNjb3VudC9Oby1sb2dpbi0oY2lyY2xlLWNyb3ApIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4wMDAwMDAsIDEyLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICAgICAgICAgICAgICA8L21hc2s+CiAgICAgICAgICAgICAgICAgICAgICAgIDx1c2UgaWQ9IkNyb3AiIGZpbGw9IiNEQURBREEiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS4wMTA4ODcxLDEyLjAyMjk4MzkgQzYuNDYzMzA2NDUsMTIuMDIyOTgzOSA0LjQwNTY0NTE2LDkuOTY1MzIyNTggNC40MDU2NDUxNiw3LjQxNzc0MTk0IEM0LjQwNTY0NTE2LDQuODcwMTYxMjkgNi40NjMzMDY0NSwyLjgxMjUgOS4wMTA4ODcxLDIuODEyNSBDMTEuNTU4NDY3NywyLjgxMjUgMTMuNjE2MTI5LDQuODcwMTYxMjkgMTMuNjE2MTI5LDcuNDE3NzQxOTQgQzEzLjYxNjEyOSw5Ljk2NTMyMjU4IDExLjU1ODQ2NzcsMTIuMDIyOTgzOSA5LjAxMDg4NzEsMTIuMDIyOTgzOSBaIE0yLjI1LDE4IEMyLjI1LDE1LjIwNzQ1OTcgNC41NTI2MjA5NywxMi45MDQ4Mzg3IDcuMzk0MTUzMjMsMTIuOTA0ODM4NyBMMTAuNDgwNjQ1MiwxMi45MDQ4Mzg3IEMxMy4zMjIxNzc0LDEyLjkwNDgzODcgMTUuNjI0Nzk4NCwxNS4yMDc0NTk3IDE1LjYyNDc5ODQsMTggTDIuMjUsMTgiIGlkPSJTaGFwZSIgZmlsbD0iIzk2OTY5NiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",size:t,alt:s("User Icon")});const l=`https://${a.mii.imageOrigin}/2.0.0/mii_images/${a.mii.id}/${a.mii.etag}.png?type=face&width=128${c}${i&&"&instanceCount=16"}`;return(0,h.jsx)(En,{className:e,size:t,children:(0,h.jsx)(Nn,{src:l,size:t,$animation:i,alt:s("User Mii")})})};_n.defaultProps={animation:{iterationCount:"infinite"},size:128},_n.propTypes={className:i.string,size:i.number,expression:(0,i.oneOf)(["NORMAL","SMILE","SURPRISE","ANGER","FRUSTRATED"]),animation:(0,i.shape)({name:(0,i.oneOf)(["none","spin"]),duration:i.string,iterationCount:i.string})};var On=_n;const{MY_NINTENDO_STORE:In,GAMES:Tn,NINTENDO_SWITCH:Mn,NEWS_EVENTS:Pn,PLAY_NINTENDO:jn,HOLIDAY_GIFT_GUIDE:Dn}=nt,{LIST:Rn,ICON:Ln}=rt,Fn="desktop",zn=({icon:e,image:t,width:n,label:r,to:i,type:o,hidden:a,excludeLocale:s})=>({icon:e,image:t,width:n,label:r,to:i,type:o||Rn,hidden:a||!1,excludeLocale:s||[]}),Bn=(0,i.arrayOf)((0,i.shape)({icon:i.string,image:i.string,width:i.string,label:i.string,to:i.string}));var Vn={[In]:{name:In,icon:"my-nintendo-tile",label:"My Nintendo Store",activeStateUrl:"/store/",excludeLocale:[...Gt],items:[[zn({icon:"d-pad",label:"Shop all",to:"/store/",type:Rn,hidden:Fn})],[zn({icon:"d-pad",label:"Games",to:"/store/games/",type:Rn}),zn({icon:null,label:"Shop all games",to:"/store/games/",type:Rn,hidden:Fn}),zn({icon:null,label:"Nintendo Switch games",to:"/store/games/nintendo-switch-games/",type:Rn}),zn({icon:null,label:"New releases",to:"/store/games/new-releases/",type:Rn}),zn({icon:null,label:"Sales & deals",to:"/store/sales-and-deals/",type:Rn})],[zn({icon:"controller",label:"Hardware",to:"/store/hardware/",type:Rn}),zn({icon:null,label:"Shop all hardware",to:"/store/hardware/",type:Rn,hidden:Fn}),zn({icon:null,label:"Nintendo Switch systems",to:"/store/hardware/systems/",type:Rn}),zn({icon:null,label:"Joy-Con & controllers",to:"/store/hardware/joy-con-and-controllers/",type:Rn}),zn({icon:null,label:"Cases & more",to:"/store/hardware/accessories/",type:Rn}),zn({icon:null,label:"amiibo",to:"/store/hardware/amiibo/",type:Rn})],[zn({icon:"t-shirt",label:"Merchandise",to:"/store/merchandise/",type:Rn}),zn({icon:null,label:"Shop all merchandise",to:"/store/merchandise/",type:Rn,hidden:Fn}),zn({icon:null,label:"Apparel & accessories",to:"/store/merchandise/apparel/",type:Rn}),zn({icon:null,label:"Home & office",to:"/store/merchandise/home-and-office/",type:Rn}),zn({icon:null,label:"Plush",to:"/store/merchandise/plush/",type:Rn}),zn({icon:null,label:"Toys",to:"/store/merchandise/toys/",type:Rn})],[zn({icon:"StarFilledIcon",label:"Store exclusives",to:"/store/exclusives/",type:Rn}),zn({icon:null,label:"Shop all store exclusives",to:"/store/exclusives/",type:Rn,hidden:Fn}),zn({icon:null,label:"Exclusive products",to:"/store/exclusives/products/",type:Rn}),zn({icon:null,label:"My Nintendo rewards",to:"/store/exclusives/rewards/",type:Rn}),zn({icon:null,label:"Nintendo Switch Online offers",to:"/store/exclusives/online/",type:Rn})],[zn({icon:"character",label:"Characters",to:"/store/characters/",type:Rn}),zn({icon:null,label:"Shop all characters",to:"/store/characters/",type:Rn,hidden:Fn}),zn({icon:null,label:"Pikmin",to:"/store/characters/pikmin/",type:Rn}),zn({icon:null,label:"Splatoon",to:"/store/characters/splatoon/",type:Rn}),zn({icon:null,label:"Super Mario",to:"/store/characters/mushroom-kingdom/",type:Rn}),zn({icon:null,label:"The Legend of Zelda",to:"/store/characters/zelda/",type:Rn})],[zn({icon:"sales-tag",label:"Sales & deals",to:"/store/sales-and-deals/",type:Rn})],null].filter(Boolean)},[Tn]:{name:Tn,icon:"d-pad",label:"Games",items:[[zn({icon:"switch",label:"Nintendo Switch games",to:"/store/games/nintendo-switch-games/",type:Ln})],[zn({icon:"SalesTagIcon",label:"Sales & deals",to:"/store/sales-and-deals/",type:Ln,excludeLocale:[...Ft]})],[zn({icon:"megaphone",label:"New releases",to:"/store/games/new-releases/",type:Ln})],[zn({icon:"calendar",label:"Coming soon",to:"/store/games/coming-soon/",type:Ln})],[zn({icon:"d-pad",label:"Shop games",to:"/store/games/",type:Ln})]]},[Mn]:{name:Mn,icon:"switch",label:"Nintendo Switch",items:[[zn({image:"/Dev/Global%20Navigation/lineup.png",label:"Nintendo Switch lineup",to:"/switch/",type:Ln,width:"260px"})],[zn({icon:"CompareArrowsIcon",label:"Compare systems",to:"/switch/compare/",type:Ln})],[zn({icon:"nso",label:"Online service",to:"/switch/online/",type:Ln})],[zn({image:"/Dev/Global%20Navigation/procon.png",label:"Accessories",to:"/store/hardware/",type:Ln,excludeLocale:[...Gt]})],[zn({image:"/Dev/Global%20Navigation/oled.png",label:"Shop systems",to:"/store/hardware/systems/",type:Ln,excludeLocale:[...Gt]})],[zn({image:"/Dev/Global%20Navigation/oled.png",label:"Systems",to:"/switch/buy-now/",type:Ln,excludeLocale:[...Ft,Bt,zt]})],[zn({image:"/Dev/Global%20Navigation/oled.png",label:"Systems",to:"/store/hardware/",type:Ln,excludeLocale:[...Ft,Bt,...Qt]})],[zn({image:"/Nclood/nav/switch-lineup-pt_br",label:"Systems",to:"/store/hardware/",type:Ln,excludeLocale:[...Ft,zt,...Qt]})]]},[Pn]:{name:Pn,icon:"news",label:"News & Events",items:[],to:"/whatsnew/"},[jn]:{name:jn,icon:"star-play-nintendo",label:"Play Nintendo",excludeLocale:["fr-ca",...Gt],items:[[zn({icon:"ForKidsIcon",label:"For kids",to:"https://play.nintendo.com/",type:Ln})],[zn({icon:"ForParentsIcon",label:"For parents",to:"https://play.nintendo.com/parents/",type:Ln})]]}};const $n=d.default.div.withConfig({componentId:"sc-1q588nn-0"})(["position:absolute;top:0;left:0;width:100%;background-color:",";","{height:100%;position:relative;}"],(({theme:e})=>e.color.lightGray3),(({theme:e})=>e.mediaQuery.navDesktop)),Un=d.default.div.withConfig({componentId:"sc-1q588nn-1"})(["height:calc("," - ",");overflow-y:scroll;padding-bottom:",";","{height:100vh;padding-bottom:",";}"],(({height:e})=>e),ft.DRAWER_HEADER_MOBILE,(({theme:e})=>e.spacing[48]),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.spacing[96])),qn=d.default.div.withConfig({componentId:"sc-1q588nn-2"})(["","{","}"],(({theme:e})=>e.mediaQuery.navDesktop),(({$user:e})=>e&&(0,d.css)(["margin-top:calc( ","px + "," );"],390,(({theme:e})=>e.spacing[28])))),Qn=d.default.div.withConfig({componentId:"sc-1q588nn-3"})(["margin-top:",";","{margin-top:",";}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.spacing[24])),Gn=(0,d.default)(g.B).attrs((()=>({variant:"tertiary",icon:v,buttonWidth:"full",still:!0}))).withConfig({componentId:"sc-1q588nn-4"})([""]);var Hn=Object.freeze({__proto__:null,Card:$n,ItemsWrap:qn,LogOutButton:Gn,MoreItems:Qn,Scrolling:Un});const Wn=(0,d.default)(bn).withConfig({componentId:"sc-q0gw4c-0"})(["position:absolute;left:0;display:flex;justify-content:center;padding:",";"],(({theme:e})=>e.spacing[16])),Zn=d.default.div.withConfig({componentId:"sc-q0gw4c-1"})(["position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:",";border-bottom:1px solid ",";background-color:",";","{justify-content:flex-start;background-color:transparent;border-bottom:none;}"],ft.DRAWER_HEADER_MOBILE,(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.white),(({theme:e})=>e.mediaQuery.navDesktop)),Kn=(0,d.default)(Sn).withConfig({componentId:"sc-q0gw4c-2"})(["position:absolute;right:",";top:50%;transform:translateY(-50%);","{right:0;}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.navDesktop)),Yn=({children:e,handleClose:t,handleBack:n})=>{const{text:r}=(0,p.i1)();return(0,h.jsxs)(Zn,{children:[n&&(0,h.jsxs)(Wn,{onClick:n,children:[(0,h.jsx)(y.Z,{size:14}),(0,h.jsx)(b.S,{children:r("Back")})]}),(0,h.jsx)(w.H,{children:e}),(0,h.jsx)(Kn,{onClick:t})]})};Yn.propTypes={children:i.node,handleBack:i.func,handleClose:i.func};var Jn=Yn;const Xn=(0,d.default)(xn).withConfig({componentId:"sc-gg9o27-0"})(["display:flex;width:100%;height:60px;border-top:1px solid ",";border-bottom:1px solid ",";margin-top:-1px;font-weight:bold;padding-left:",";padding-right:",";background-color:",";span{flex:1 auto;text-align:left;}","{border:1px solid ",";height:48px;&:first-child{border-top-left-radius:",";border-top-right-radius:",";}&:last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}}"],(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.color.white),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius),(({theme:e})=>e.borderRadius)),er=d.default.div.withConfig({componentId:"sc-gg9o27-1"})(["display:inline-flex;margin:0 "," 0 0;color:",";height:100%;align-items:center;img{display:block;}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.color.primary)),tr=d.default.div.withConfig({componentId:"sc-gg9o27-2"})(["justify-self:flex-end;transform:rotate(",");transition:",";"],(({$open:e})=>e?"180deg":"0deg"),(({theme:e})=>`transform ${e.movement.duration} ${e.movement.easing}`)),nr=d.default.div.withConfig({componentId:"sc-gg9o27-3"})(["justify-self:flex-end;"]),rr={"address-book":k.Z,"d-pad":S.Z,"region-selection":({locale:e})=>(0,h.jsx)(A.R,{flagOnly:!0,locale:e,noLink:!0}),gear:x.Z,gift:E.Z,heart:N,news:C.Z,receipt:_.Z,offsite:O.Z,"star-play-nintendo":I.Z,storefront:T.Z,support:M.Z,switch:P.Z,"my-nintendo-tile":j,snowflake:D},ir={down:R.Z,right:L.Z,up:F},or=({chevron:e,children:t,icon:n,secondaryIcon:r,open:i,to:o,self:a,...s})=>{const{state:{router:c}}=_t(),l=rr[n],u=e&&ir[e],d=r&&rr[r],f=/^https?:\/\//i.test(o);return(0,h.jsxs)(Xn,{target:f&&!a?"_blank":"_self",to:o,...s,children:[n&&(0,h.jsx)(er,{children:(0,h.jsx)(l,{size:18,locale:c.locale})}),(0,h.jsx)("span",{children:t}),u&&(0,h.jsx)(tr,{open:i,children:(0,h.jsx)(u,{size:14})}),d&&(0,h.jsx)(nr,{children:(0,h.jsx)(d,{size:14})})]})};or.propTypes={chevron:(0,i.oneOf)(Object.keys(ir)),children:i.string,icon:(0,i.oneOf)(Object.keys(rr)),secondaryIcon:(0,i.oneOf)(Object.keys(rr)),open:i.bool,self:i.bool,to:i.string};var ar=or;const sr=d.default.div.withConfig({componentId:"sc-1h06vbw-0"})(["position:relative;margin:",";perspective:1000px;","{margin-left:0;margin-right:0;","}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.navDesktop),(({$loggedIn:e})=>e&&(0,d.css)(["position:absolute;top:calc( "," + "," );right:",";margin:0;width:","px;transition:right ","ms ",";"],ft.DRAWER_HEADER_MOBILE,(({theme:e})=>e.spacing[4]),(({$flyoutOpen:e,theme:t})=>{if(e)return 0;return`calc(${ht-pt}px - ${t.spacing[40]})`}),pt,1.5*st,(({$flyoutOpen:e})=>e?st/2+"ms":null))));sr.propTypes={$loggedIn:i.bool.isRequired,$flyoutOpen:i.bool};var cr=sr;const lr=d.default.div.withConfig({componentId:"sc-11dpf8s-0"})(["padding-top:",";padding-bottom:",";padding-left:",";padding-right:",";background-color:",";border-radius:",";margin-bottom:",";"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[28]),(({theme:e})=>e.spacing[28]),(({theme:e})=>e.color.white),(({theme:e})=>e.borderRadius),(({theme:e})=>e.spacing[16])),ur=d.default.div.withConfig({componentId:"sc-11dpf8s-1"})(["margin-left:",";margin-right:",";"],(({theme:e})=>e.spacing[12]),(({theme:e})=>e.spacing[12])),dr=d.default.div.withConfig({componentId:"sc-11dpf8s-2"})(["display:flex;gap:",";margin-top:",";margin-bottom:",";p{font-weight:700;margin-top:0;margin-bottom:0;}svg{fill:",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.color.primary)),fr=(0,d.default)(g.B).withConfig({componentId:"sc-11dpf8s-3"})(["margin-top:",";&:hover{color:",";}&::before{background-color:transparent;border:none;}&:hover:not(:disabled)::before{background-color:transparent;border:none;}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.color.primaryHover)),pr=({promptLogin:e})=>{const{state:{accounts:t,router:{locale:n}},localizer:{text:i}}=_t(),o=(0,r.useMemo)((()=>{const e=new URL("/authorize_age_gate_us",t.connectOrigin),r="undefined"!==typeof window?window.location.href:"";return e.searchParams.set("redirect_uri",r),e.searchParams.set("lang",n),e.toString()}),[t.connectOrigin,n]),a=[i("Shop online"),i("Earn My Nintendo points"),i("Save a Wish List")];return(0,h.jsxs)(cr,{$loggedIn:!1,children:[(0,h.jsxs)(lr,{children:[(0,h.jsx)(z.I,{assetPath:"/Dev/Global%20Navigation/unauthd-asset.png",alt:""}),(0,h.jsxs)(ur,{children:[(0,h.jsx)(B.T,{variant:"title",children:i("With a free account, you can")}),a.map((e=>(0,h.jsxs)(dr,{children:[(0,h.jsx)(V,{size:11}),(0,h.jsx)(B.T,{variant:"caption",children:e})]},e)))]})]}),(0,h.jsx)(g.B,{onClick:e,buttonWidth:"full",still:!0,children:i("Log in")}),(0,h.jsx)(fr,{variant:"secondary",href:o,buttonWidth:"full",still:!0,children:i("Sign up")})]})};pr.propTypes={promptLogin:i.func};var hr=pr;const mr=d.default.div.withConfig({componentId:"sc-1v34ib3-0"})(["background-color:",";border:1px solid ",";border-radius:",";box-shadow:0 "," "," 0 rgba(72,72,72,0.15);overflow:hidden;transition:transform ","ms;transform-style:preserve-3d;backface-visibility:hidden;"],(({theme:e})=>e.color.white),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.borderRadiusRound),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.spacing[16]),ut),gr=d.default.button.withConfig({componentId:"sc-1v34ib3-1"})(["position:absolute;top:0;right:0;background-color:",";width:",";height:",";border:none;border-bottom-left-radius:",";display:flex;align-items:center;justify-content:center;cursor:pointer;"],(({theme:e})=>e.color.lightGray3),(({theme:e})=>e.spacing[48]),(({theme:e})=>e.spacing[48]),(({theme:e})=>e.borderRadiusRound)),vr=(0,d.default)(mr).withConfig({componentId:"sc-lf8zoa-0"})(["transform:",";"],(({$flipped:e})=>e?"rotateY(-180deg)":"none")),yr=d.default.div.withConfig({componentId:"sc-lf8zoa-1"})(["display:flex;justify-content:center;align-items:center;"," ","{","}"],(({theme:e})=>(0,d.css)(["margin:"," 0 ",";"],e.spacing[28],e.spacing[8])),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>(0,d.css)(["margin:"," 0 ",";"],e.spacing[32],e.spacing[8]))),br=d.default.div.withConfig({componentId:"sc-lf8zoa-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;"]),wr=d.default.a.withConfig({componentId:"sc-lf8zoa-3"})(["grid-row:1 / span 2;justify-self:flex-end;cursor:pointer;transition:background-color ",";&:hover{& > *{background-color:",";transition:background-color ",";}}& > *{transition:background-color ",";}"],(({theme:e})=>e.movement.duration),(({theme:e})=>e.color.darkGray4),(({theme:e})=>e.movement.duration),(({theme:e})=>e.movement.duration)),kr=(0,d.default)(w.H).withConfig({componentId:"sc-lf8zoa-4"})(["margin:0;font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.size.h1SMobile),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.font.size.h1SDesktop)),Sr=(0,d.default)(B.T).attrs((()=>({variant:"caption"}))).withConfig({componentId:"sc-lf8zoa-5"})(["margin:0;","{font-size:",";}"],(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.font.size.bodyDesktop)),Ar=d.default.div.withConfig({componentId:"sc-lf8zoa-6"})(["display:grid;grid-template-columns:repeat(2,auto);max-width:","px;margin-left:auto;margin-right:auto;margin-top:",";margin-bottom:",";","{margin-top:",";margin-bottom:",";max-width:","px;height:46px;}"],265,(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[28]),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[32]),287),xr=d.default.div.withConfig({componentId:"sc-lf8zoa-7"})(["display:grid;grid-template-columns:20px auto;grid-template-rows:repeat(2,20px);grid-column-gap:",";align-items:center;padding-left:",";&:first-child{border-right:1px solid ",";padding-left:",";padding-right:",";","{padding-left:0;}}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.mediaQuery.navDesktop)),Er=(0,d.default)($.Z).withConfig({componentId:"sc-lf8zoa-8"})(["align-self:start;grid-row:1/3;"]),Nr=(0,d.default)(U.Z).withConfig({componentId:"sc-lf8zoa-9"})(["align-self:start;grid-row:1/3;"]),Cr=(0,d.default)(B.T).withConfig({componentId:"sc-lf8zoa-10"})(["margin:0;","{font-size:",";}"],(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.font.size.bodyDesktop)),_r=(0,d.default)(xn).withConfig({componentId:"sc-lf8zoa-11"})(["display:flex;flex-direction:column;padding:",";border-top:1px solid ",";","{padding:",";}"],(({theme:e})=>e.spacing[20]),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.spacing[24])),Or=d.default.div.withConfig({componentId:"sc-lf8zoa-12"})(["display:flex;align-items:center;justify-content:flex-end;gap:",";svg{fill:",";}"],(({theme:e})=>e.spacing[8]),(({theme:e})=>e.color.primary)),Ir=(0,d.default)(B.T).withConfig({componentId:"sc-lf8zoa-13"})(["margin:0;font-weight:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.font.size.bodyDesktop)),Tr=(0,d.default)(B.T).withConfig({componentId:"sc-lf8zoa-14"})(["font-weight:",";color:",";font-size:",";","{font-size:",";}"],(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.color.primary),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.navDesktop),(({theme:e})=>e.font.size.bodyDesktop)),Mr=({flipped:e,toggleFlipped:t,miiExpression:n,setMiiExpression:i,miiAnimation:o})=>{const{state:{isDesktop:a,accounts:s,customer:{data:c}},localizer:{text:l,date:u,DateFormat:d}}=_t(),{membershipStatus:f,pointsWallet:p}=c,m=u(c.createdAt,{format:d.YEAR}),g=(0,r.useMemo)((()=>a?92:72),[a]);return(0,h.jsxs)(vr,{"aria-hidden":e,$flipped:e,children:[(0,h.jsx)(gr,{onClick:t,"aria-label":l("Show back"),children:(0,h.jsx)("div",{children:(0,h.jsx)(q,{size:26})})}),(0,h.jsx)(yr,{children:(0,h.jsx)(wr,{onMouseEnter:()=>i(gt.SMILE),onMouseLeave:()=>i(gt.NORMAL),href:`${s.connectOrigin}/mii_studio`,target:"_blank",children:(0,h.jsx)(On,{expression:n,animation:o,size:g})})}),(0,h.jsxs)(br,{children:[(0,h.jsx)(kr,{children:c.nickname}),(0,h.jsxs)(Sr,{children:[l("Member since")," ",m]})]}),(0,h.jsxs)(Ar,{children:[(0,h.jsxs)(xr,{children:[(0,h.jsx)(Er,{size:20}),(0,h.jsx)(Cr,{variant:"caption",children:l("Gold Points")}),(0,h.jsx)(Cr,{variant:"title",children:p?.gold?.total||0})]}),(0,h.jsxs)(xr,{children:[(0,h.jsx)(Nr,{size:20}),(0,h.jsx)(Cr,{variant:"caption",children:l("Platinum Points")}),(0,h.jsx)(Cr,{variant:"title",children:p?.platinum?.total||0})]})]}),(0,h.jsxs)(_r,{to:f?.active?"https://ec.nintendo.com/my/membership":"/switch/online/",children:[(0,h.jsxs)(Or,{children:[f?.active&&(0,h.jsx)(V,{size:12}),(0,h.jsx)(Ir,{variant:"caption",children:l(f?.active?"Nintendo Switch Online":"Level up with Nintendo Switch Online")})]}),(0,h.jsx)(Tr,{variant:"caption",children:l(f?.active?"Manage":"Shop now")})]})]})};Mr.propTypes={flipped:i.bool,toggleFlipped:i.func,miiExpression:(0,i.oneOf)(Object.values(gt)),setMiiExpression:i.func,miiAnimation:(0,i.shape)({name:i.string,duration:i.string,iterationCount:i.string})};var Pr=Mr;const jr=(0,d.default)(mr).withConfig({componentId:"sc-12lfjd-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;transform:",";"," ","{text-align:center;}"],(({$flipped:e})=>e?"none":"rotateY(180deg)"),(({theme:e})=>(0,d.css)(["padding:"," ",";"],e.spacing[36],e.spacing[16])),(({theme:e})=>e.mediaQuery.navDesktop)),Dr=(0,d.default)(On).withConfig({componentId:"sc-12lfjd-1"})(["width:28px;height:28px;"]),Rr=d.default.div.withConfig({componentId:"sc-12lfjd-2"})(["display:flex;flex-direction:row;gap:",";align-items:center;","{flex-direction:column;justify-content:center;align-items:center;}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.navDesktop)),Lr=d.default.div.withConfig({componentId:"sc-12lfjd-3"})(["canvas{display:block;}"]),Fr=d.default.div.withConfig({componentId:"sc-12lfjd-4"})(["","{width:100%;display:flex;justify-content:center;align-items:center;}"],(({theme:e})=>e.mediaQuery.desktop)),zr=(0,d.default)(B.T).withConfig({componentId:"sc-12lfjd-5"})(["font-size:",";span{font-size:",";}display:block;margin-bottom:",";margin-right:",";","{font-size:",";span{font-size:",";}}","{width:","px;margin-right:0;}"],(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[48]),(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.font.size.captionMobile),(({theme:e})=>e.mediaQuery.desktop),270),Br=(0,d.default)(B.T).withConfig({componentId:"sc-12lfjd-6"})(["font-size:",";margin-bottom:",";span{font-size:",";}","{font-size:",";span{font-size:",";}}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.spacing[8]),(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.font.size.legalDesktop)),Vr=d.default.div.withConfig({componentId:"sc-12lfjd-7"})(["","{width:100%;display:flex;align-items:center;justify-content:center;}"],(({theme:e})=>e.mediaQuery.desktop)),$r=(0,d.default)(B.T).withConfig({componentId:"sc-12lfjd-8"})(["font-size:",";margin-top:",";","{width:","px;}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.mediaQuery.desktop),200);const Ur=(0,r.lazy)((()=>n.e(9782).then(n.bind(n,29782)).then((({QRCodeCanvas:e})=>({default:e}))))),qr=({flipped:e,toggleFlipped:t})=>{const{state:{accounts:n,customer:{data:i,getVerifyUrl:o}},localizer:{text:a}}=_t(),[s,c]=(0,r.useState)();return(0,r.useEffect)((()=>{!s&&e&&i&&o().then(c)}),[s,o,e,i]),(0,h.jsxs)(jr,{$flipped:e,"aria-hidden":!e,children:[(0,h.jsx)(gr,{onClick:t,"aria-label":a("Show front"),children:(0,h.jsx)("div",{children:(0,h.jsx)(Dr,{data:i.mii})})}),(0,h.jsx)(Fr,{children:(0,h.jsxs)(zr,{variant:"title",children:[a("Present this QR Code\xae to check in at select Nintendo events and locations.")," ",(0,h.jsx)(Q.L,{href:`${n.connectOrigin}/qrcode`,children:a("Details")})]})}),(0,h.jsxs)(Rr,{children:[(0,h.jsx)(Lr,{children:s&&(0,h.jsx)(r.Suspense,{fallback:null,children:(0,h.jsx)(Ur,{"aria-label":a("User's QR Code"),value:s,level:"M",fgColor:"#2B2B2B",size:ft.QR_CODE,imageSettings:{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEyIiBoZWlnaHQ9IjExMiIgdmlld0JveD0iMCAwIDExMiAxMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Mi40ODgzIDYuNDM5MTRDNTQuMDA0MyAzLjY1OTM3IDU3Ljk5NTcgMy42NTkzOCA1OS41MTE3IDYuNDM5MTRMNzIuNTM2MyAzMC4zMjE0QzczLjExMTcgMzEuMzc2MyA3NC4xMzA3IDMyLjExNjcgNzUuMzExOCAzMi4zMzc5TDEwMi4wNSAzNy4zNDVDMTA1LjE2MiAzNy45Mjc4IDEwNi4zOTYgNDEuNzIzOSAxMDQuMjIgNDQuMDI0N0w4NS41MzE4IDYzLjc5MTlDODQuNzA2MyA2NC42NjUgODQuMzE3MSA2NS44NjMgODQuNDcxNyA2Ny4wNTQ2TDg3Ljk3MjIgOTQuMDMxNEM4OC4zNzk2IDk3LjE3MTQgODUuMTUwNSA5OS41MTc1IDgyLjI5MDEgOTguMTU5N0w1Ny43MTUzIDg2LjQ5NDJDNTYuNjI5OCA4NS45NzkgNTUuMzcwMiA4NS45NzkgNTQuMjg0NyA4Ni40OTQyTDI5LjcwOTkgOTguMTU5N0MyNi44NDk1IDk5LjUxNzUgMjMuNjIwNCA5Ny4xNzE0IDI0LjAyNzggOTQuMDMxNEwyNy41MjgzIDY3LjA1NDZDMjcuNjgyOSA2NS44NjMgMjcuMjkzNyA2NC42NjUgMjYuNDY4MiA2My43OTE5TDcuNzc5NjQgNDQuMDI0N0M1LjYwNDQgNDEuNzIzOSA2LjgzNzgyIDM3LjkyNzggOS45NSAzNy4zNDVMMzYuNjg4MiAzMi4zMzc5QzM3Ljg2OTMgMzIuMTE2NyAzOC44ODgzIDMxLjM3NjMgMzkuNDYzNyAzMC4zMjE0TDUyLjQ4ODMgNi40MzkxNFoiIGZpbGw9IiMyQjJCMkIiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzEwOV82MykiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYyLjM0MzcgNjAuMzc4MUM2MC4zNzUgNjAuMzc4MSA2MC4xNTYyIDU3LjA1IDYwLjE1NjIgNTIuODM0NEM2MC4xNTYyIDQ4LjYxODcgNjAuMTU2MiA0NS4wNjg3IDYyLjM0MzcgNDUuMjkwNkM2NC4zMTI1IDQ1LjUxMjUgNjQuNzUgNDguMzk2OSA2NC43NSA1Mi42MTI1QzY0LjUzMTIgNTcuMDUgNjQuMzEyNSA2MC4zNzgxIDYyLjM0MzcgNjAuMzc4MVpNNDkuNjU2MiA2MC4zNzgxQzQ3LjY4NzUgNjAuMzc4MSA0Ny40Njg3IDU2LjgyODEgNDcuNDY4NyA1Mi44MzQ0QzQ3LjQ2ODcgNDguNjE4NyA0Ny45MDYyIDQ1LjczNDQgNDkuODc1IDQ1LjUxMjVDNTIuMDYyNSA0NS4yOTA2IDUyLjA2MjUgNDguODQwNiA1Mi4wNjI1IDUzLjA1NjJDNTEuODQzNyA1Ny4wNSA1MS42MjUgNjAuMzc4MSA0OS42NTYyIDYwLjM3ODFaTTkxIDQ1LjUxMjVDOTAuNzgxMiA0NC44NDY5IDg3LjkzNzUgNDQuMTgxMiA3OC43NSA0My4wNzE5QzczLjA2MjUgNDIuNDA2MiA2Ny41OTM3IDQxLjk2MjUgNjcuMzc1IDQxLjk2MjVDNjYuOTM3NSA0MS45NjI1IDY2LjUgNDEuNTE4NyA2Ni4yODEyIDQxLjA3NUM2NC45Njg3IDM3LjUyNSA2My40Mzc1IDMzLjc1MzEgNjEuOTA2MiAzMC40MjVDNTguNDA2MiAyMS45OTM3IDU2Ljg3NSAxOS41NTMxIDU1Ljc4MTIgMTkuNTUzMUM1NC45MDYyIDE5LjU1MzEgNTMuNTkzNyAyMS45OTM3IDQ5LjY1NjIgMzAuNjQ2OUM0Ny4yNSAzNS45NzE5IDQ1LjI4MTIgNDEuMjk2OSA0NS4yODEyIDQxLjI5NjlDNDUuMDYyNSA0MS43NDA2IDQ0LjYyNSA0Mi4xODQ0IDQ0LjE4NzUgNDIuMTg0NEM0NC4xODc1IDQyLjE4NDQgMzguNzE4NyA0Mi40MDYyIDMzLjAzMTIgNDMuMDcxOUMyNC4wNjI1IDQzLjk1OTQgMjEuMjE4NyA0NC42MjUgMjEgNDUuMjkwNkMyMC43ODEyIDQ2LjE3ODEgMjIuNzUgNDguMTc1IDI5LjUzMTIgNTQuNjA5NEMzMy42ODc1IDU4LjYwMzEgMzguMDYyNSA2Mi4xNTMxIDM4LjA2MjUgNjIuMTUzMUMzOC41IDYyLjM3NSAzOC41IDYyLjgxODcgMzguNSA2My4wNDA2VjYzLjI2MjVDMzguNSA2My4yNjI1IDM3LjE4NzUgNjguODA5NCAzNS44NzUgNzQuNTc4MUMzNC41NjI1IDgxLjIzNDQgMzMuNDY4NyA4Ni41NTk0IDM0LjM0MzcgODcuMjI1QzM1LjIxODcgODguMTEyNSAzOC4yODEyIDg2LjExNTYgNDUuNzE4NyA4MS45QzUwLjc1IDc5LjAxNTYgNTUuMzQzNyA3NS45MDk0IDU1LjU2MjUgNzUuOTA5NEM1NiA3NS42ODc1IDU2LjQzNzUgNzUuNjg3NSA1Ni44NzUgNzUuOTA5NEM1Ni44NzUgNzUuOTA5NCA2MS42ODc1IDc5LjAxNTYgNjYuNSA4MS45QzczLjkzNzUgODYuMzM3NSA3Ni43ODEyIDg3Ljg5MDYgNzcuODc1IDg3LjIyNUM3OC43NSA4Ni41NTk0IDc3Ljg3NSA4Mi41NjU2IDc2LjM0MzcgNzQuNTc4MUM3NS4yNSA2OC44MDk0IDczLjcxODcgNjMuMjYyNSA3My43MTg3IDYzLjI2MjVWNjMuMDQwNkM3My43MTg3IDYyLjU5NjkgNzMuOTM3NSA2Mi4zNzUgNzQuMTU2MiA2Mi4xNTMxQzc0LjE1NjIgNjIuMTUzMSA3OC4zMTI1IDU4LjYwMzEgODIuNjg3NSA1NC44MzEyQzg5LjI1IDQ4LjM5NjkgOTEuMjE4NyA0Ni4xNzgxIDkxIDQ1LjUxMjVaIiBmaWxsPSIjRkZEMTAwIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTA5XzYzIj4KPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjcxIiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjEgMTgpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",width:76,height:76}})})}),(0,h.jsxs)("div",{children:[(0,h.jsxs)(Br,{variant:"title",children:[a("This QR Code contains your Nintendo Account information."),(0,h.jsx)("br",{}),a("See "),(0,h.jsx)(Q.L,{href:"/privacy-policy/",children:a("Nintendo Privacy Policy")})]}),(0,h.jsx)(Vr,{children:(0,h.jsx)($r,{variant:"legal",children:a("QR Code is a registered trademark of DENSO WAVE INCORPORATED.")})})]})]})]})};qr.propTypes={flipped:i.bool,toggleFlipped:i.func};var Qr=qr;const Gr=({flyoutOpen:e})=>{const[t,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(gt.NORMAL),[a,s]=(0,r.useState)(vt.NONE),c=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{t?(s(vt.SPIN_TWICE),c.current=setTimeout((()=>{o(gt.NORMAL),s(vt.NONE)}),dt+100)):o(gt.SURPRISE),n((e=>!e))}),[t]);return(0,r.useEffect)((()=>()=>clearTimeout(c.current)),[]),(0,h.jsxs)(cr,{$loggedIn:!0,$flyoutOpen:e,children:[(0,h.jsx)(Pr,{flipped:t,toggleFlipped:l,miiExpression:i,setMiiExpression:o,miiAnimation:a}),(0,h.jsx)(Qr,{flipped:t,toggleFlipped:l})]})};Gr.propTypes={flyoutOpen:i.bool};var Hr=Gr;const Wr=({flyoutOpen:e})=>{const{state:{customer:{data:t}},methods:{promptLogin:n}}=_t();return t?(0,h.jsx)(Hr,{flyoutOpen:e}):(0,h.jsx)(hr,{promptLogin:n})};Wr.propTypes={flyoutOpen:i.bool};var Zr=Wr;const Kr=({handleClose:e,flyoutOpen:t})=>{const{state:{accounts:n,customer:{data:i},maintenance:o,router:{locale:a}},localizer:{text:s},methods:{promptLogout:c,promptLogin:l}}=_t(),{trackNavLinkClick:u}=(0,p.z$)(),d=(e=>({internal:{unauthd:[zn({icon:"receipt",label:"Order status",to:"/orders",excludeLocale:[...Gt]})],authd:[zn({icon:"heart",label:"Wish List",to:"/wish-list"}),zn({icon:"receipt",label:"Order history",to:"/orders",excludeLocale:[...Gt]}),zn({icon:"receipt",label:"Purchase history",to:"https://ec.nintendo.com/my/#/",excludeLocale:[...Ft]}),zn({icon:"address-book",label:"Address book",to:"/address-book",excludeLocale:[...Gt]})]},external:[zn({icon:"my-nintendo-tile",label:"My Nintendo",to:e.myNintendoOrigin}),zn({icon:"gift",label:"Redeem code",to:`${e.checkoutOrigin}/redeem/#/`}),zn({icon:"gear",label:"Account settings",to:e.connectOrigin})]}))(n),f=(0,r.useMemo)((()=>i?d.internal.authd.map((t=>{if(null===t)return null;if(t.excludeLocale.includes(a))return null;const{label:n,icon:r,to:i}=t;return(0,h.jsx)(ar,{icon:r,to:i,onClick:e,disabled:o.store?.active&&"Wish List"!==n,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:s(n)},n)})):d.internal.unauthd.map((e=>{if(null===e)return null;if(e.excludeLocale.includes(a))return null;const{label:t,icon:n,to:r}=e;return(0,h.jsx)(ar,{icon:n,to:r,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:s(t)},t)}))),[i,s,d,e,o.store?.active,a]);return(0,h.jsxs)(Hn.Card,{children:[(0,h.jsx)(Jn,{handleClose:e,children:i?`${s("Welcome {0}",{args:[i.nickname]})}`:s("Log in / Sign up")}),(0,h.jsxs)(Hn.Scrolling,{height:ft.DRAWER_ACCOUNT_MOBILE,children:[(0,h.jsx)(Zr,{promptLogin:l,flyoutOpen:t}),(0,h.jsxs)(Hn.ItemsWrap,{$user:Boolean(i),children:[(0,h.jsx)("div",{children:f}),(0,h.jsx)(Hn.MoreItems,{children:d.external.map((({icon:t,label:n,to:r})=>(0,h.jsx)(ar,{icon:t,secondaryIcon:"offsite",to:r,onClick:e,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:s(n)},n)))}),i&&(0,h.jsx)(Hn.MoreItems,{children:(0,h.jsx)(Hn.LogOutButton,{onClick:()=>{u("mobile bottom",2,"Sign out"),c()},children:s("Sign out")})})]})]})]})};Kr.propTypes={handleClose:i.func,flyoutOpen:i.bool};var Yr=Kr;const Jr=d.default.div.withConfig({componentId:"sc-12ilsja-0"})(["visibility:",";opacity:",";transition:opacity ",";position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:",";z-index:10;","{z-index:9;}"],(({$visible:e})=>e?"visible":"hidden"),(({$active:e})=>e?"1":"0"),(({theme:e})=>e.movement.duration),(({theme:e})=>e.scrim.dark),(({theme:e})=>e.mediaQuery.navDesktop)),Xr=({className:e,active:t,onClick:n})=>{const i=(0,r.useContext)(d.ThemeContext),[o,a]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{let e=null;return t?a(!0):e=window.setInterval((()=>a(!1)),parseInt(i.movement.duration)),()=>{window.clearInterval(e)}}),[i,t]),(0,h.jsx)(Jr,{className:e,$active:t,$visible:o,onClick:n})};Xr.propTypes={className:i.string,active:i.bool,onClick:i.func};var ei=Xr;const ti=({theme:e,size:t})=>t?e.pxToRem(t):e.pxToRem(20),ni=({theme:e,size:t})=>t?e.pxToRem(.2*t):e.pxToRem(4),ri=d.default.div.withConfig({componentId:"sc-1gorow4-0"})(["display:inline-flex;align-items:center;justify-content:center;font-size:",";font-weight:700;width:auto;min-width:",";height:",";padding-left:",";padding-right:",";color:",";background-color:",";border-radius:",";border:1px solid ",";box-shadow:0 0 6px ",";"],(e=>(({theme:e,size:t})=>t?e.pxToRem(.6*t):e.pxToRem(12))(e)),(e=>ti(e)),(e=>ti(e)),(e=>ni(e)),(e=>ni(e)),(({theme:e})=>e.color.white),(({theme:e})=>e.color.primary),(e=>ti(e)),(({theme:e})=>e.color.white),(({theme:e})=>`${e.color.darkGray3}45`));ri.propTypes={count:i.number,size:i.number};var ii=ri;const oi=d.default.div.withConfig({componentId:"sc-9xtx9i-0"})(["display:grid;justify-content:center;position:relative;width:",";height:",";color:",";"],(({$iconSize:e})=>`${e}px`),(({$iconSize:e})=>`${e}px`),(({disabled:e,theme:t})=>e?t.color.lightGray1:"inherit")),ai=(0,d.default)(ii).withConfig({componentId:"sc-9xtx9i-1"})(["position:absolute;top:0;right:0;transform:translate(50%,-48%);"]),si=({iconSize:e,counterSize:t,disabled:n})=>{const{state:{cart:i}}=_t(),o=(0,r.useMemo)((()=>!i.loading&&i.data?.totalQuantity?(0,h.jsx)(ai,{size:t,"data-testid":"cart-count-badge",children:i.data?.totalQuantity}):null),[i.loading,i.data,t]);return(0,h.jsxs)(oi,{$iconSize:e,disabled:n,children:[(0,h.jsx)(G.Z,{size:e}),o]})};si.propTypes={iconSize:i.number,counterSize:i.number,disabled:i.bool};var ci=si;const li=(0,d.keyframes)(["from{opacity:.3}to{opacity:1}"]),ui=d.default.div.withConfig({componentId:"sc-8ypsl5-0"})(["position:relative;width:24px;height:24px;border:2px solid ",";border-radius:100%;"],(({theme:e})=>e.color.lightGray2)),di=d.default.div.withConfig({componentId:"sc-8ypsl5-1"})(["position:absolute;left:0;top:0;right:0;bottom:0;margin:auto;width:10px;height:10px;"]),fi=d.default.div.withConfig({componentId:"sc-8ypsl5-2"})(["position:absolute;width:4px;height:4px;background-color:",";opacity:0.3;border-radius:100%;animation-duration:0.4s;animation-timing-function:cubic-bezier(0.47,0,0.745,0.715);animation-iteration-count:infinite;animation-direction:alternate;animation-fill-mode:none;animation-play-state:running;animation-name:",";&:nth-child(1){top:0;left:0;animation-delay:0.2s;}&:nth-child(2){top:0;right:0;animation-delay:0.4s;}&:nth-child(3){bottom:0;right:0;animation-delay:0.6s;}&:nth-child(4){bottom:0;left:0;animation-delay:0.8s;}"],(({theme:e})=>e.color.darkGray3),li);var pi=()=>(0,h.jsx)(ui,{children:(0,h.jsxs)(di,{children:[(0,h.jsx)(fi,{}),(0,h.jsx)(fi,{}),(0,h.jsx)(fi,{}),(0,h.jsx)(fi,{})]})});const hi=d.default.div.withConfig({componentId:"sc-7r3tnc-0"})(["width:100%;"]),mi=d.default.div.withConfig({componentId:"sc-7r3tnc-1"})(["background-color:",";text-align:center;color:",";padding:",";"],(({theme:e})=>e.color.primary),(({theme:e})=>e.color.white),(({theme:e})=>e.spacing[8])),gi=d.default.div.withConfig({componentId:"sc-7r3tnc-2"})(["padding:",";text-align:center;"],(({theme:e})=>e.spacing[16])),vi=({type:e})=>{const{localizer:{text:t},actions:{closeModal:n}}=_t(),i=(0,r.useMemo)((()=>{if("cart"===e)return{heading:t("Cart down for maintenance"),icon:(0,h.jsx)(H.Z,{size:32}),body:t("Sorry, it\u2019s not possible to view your cart or check out right now.")}}),[t,e]);return(0,h.jsxs)(hi,{children:[(0,h.jsx)(mi,{children:(0,h.jsx)(w.H,{variant:"h3",children:i.heading})}),(0,h.jsxs)(gi,{children:[(0,h.jsx)("div",{children:i.icon}),(0,h.jsx)(W.S,{size:8}),(0,h.jsx)(B.T,{children:i.body}),(0,h.jsx)(W.S,{size:16}),(0,h.jsx)(g.B,{buttonWidth:"full",onClick:n,children:t("Close")})]})]})};vi.propTypes={type:(0,i.oneOf)(["cart"])};var yi=vi;const bi=d.default.div.withConfig({componentId:"sc-iz67m1-0"})(["border:1px solid ",";background-color:",";position:relative;z-index:2001;"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.color.lightGray3)),wi=d.default.span.withConfig({componentId:"sc-iz67m1-1"})(["height:","px;margin-right:",";"],(({size:e})=>e),(({theme:e})=>e.spacing[16])),ki=d.default.div.withConfig({componentId:"sc-iz67m1-2"})(["min-height:","px;display:flex;justify-content:center;align-items:center;height:100%;width:100%;max-width:",";padding-top:",";padding-bottom:",";padding-left:",";padding-right:",";margin:0 auto;*{margin-top:0;margin-bottom:0;}"],ft.MAINT_NOTIF,(({theme:e})=>e.page.maxWidth),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[48])),Si=(0,d.default)(Sn).withConfig({componentId:"sc-iz67m1-3"})(["position:absolute;right:",";top:50%;transform:translateY(-50%);color:",";"],(({theme:e})=>e.spacing[12]),(({theme:e})=>e.color.black)),Ai=d.default.div.withConfig({componentId:"sc-iz67m1-4"})(["a{font-weight:700;text-decoration:underline;}"]);var xi=()=>{const{state:{maintenance:e,maintenanceNotifOpen:t},actions:{closeMaintenanceNotif:n}}=_t(),{store:i,eshop:o}=e,a=(0,r.useMemo)((()=>Nt({store:i,eshop:o})),[i,o]);return t?(0,h.jsxs)(bi,{children:[(0,h.jsxs)(ki,{children:[(0,h.jsx)(wi,{size:24,children:(0,h.jsx)(H.Z,{size:24})}),(0,h.jsx)(Ai,{children:(0,Xe.h)(a?.shownDescription.json)})]}),(0,h.jsx)(Si,{onClick:n})]}):null};var Ei=()=>{const{state:{modal:e},actions:{closeModal:t}}=_t();return(0,h.jsx)(Z.M,{visible:e.visible,dialogLabel:e.label,onClose:t,children:e.content})};const Ni=d.default.nav.withConfig({componentId:"sc-q5sxim-0"})([""," width:100%;z-index:",";display:none;","{display:block;}"],(({$useUnstuckNav:e})=>e?"":"position: fixed; top: 0;"),mt,(({theme:e})=>e.mediaQuery.navDesktop)),Ci=d.default.div.withConfig({componentId:"sc-q5sxim-1"})(["display:none;","{display:",";}"],(({theme:e})=>e.mediaQuery.navDesktop),(({$useUnstuckNav:e})=>e?"none":" block")),_i=d.default.span.withConfig({componentId:"sc-1k9k6ch-0"})(["display:inline-flex;justify-content:center;align-items:center;margin:0 "," 0 0;svg{","}"],(({theme:e})=>e.pxToRem(6)),(({$type:e})=>{switch(e){case"primary":default:return(0,d.css)(["color:",";"],(({theme:e})=>e.color.primary));case"secondary":return(0,d.css)(["color:inherit;"])}})),Oi=d.default.div.withConfig({componentId:"sc-1k9k6ch-1"})(["display:inline-flex;margin:0 "," 0 0;"],(({theme:e})=>e.pxToRem(8))),Ii=(0,d.default)(B.T).withConfig({componentId:"sc-1k9k6ch-2"})(["font-weight:700;",""],(({$type:e})=>{switch(e){case"primary":default:return(0,d.css)(["font-size:",";"],(({theme:e})=>e.font.size.bodyDesktop));case"secondary":return(0,d.css)(["font-size:",";"],(({theme:e})=>e.font.size.captionDesktop))}})),Ti={"d-pad":S.Z,"sales-tag":K.Z,"t-shirt":Y.Z,user:J,heart:N,storefront:T.Z,support:M.Z,controller:X.Z,character:ee.Z,StarFilledIcon:te.Z,snowflake:D},Mi="icon",Pi="mii",ji="cart",Di=({iconType:e,iconName:t,mii:n,to:i,type:o,onClick:a,children:s,disabled:c,className:l,target:u,analytics:d})=>{const f=(0,r.useMemo)((()=>{let r=null;const i=Ti[t];switch(e){case Mi:r=(0,h.jsx)(_i,{$type:o,children:(0,h.jsx)(i,{size:18})});break;case Pi:r=(0,h.jsx)(_i,{children:(0,h.jsx)(On,{size:24,data:n})});break;case ji:r=(0,h.jsx)(Oi,{children:(0,h.jsx)(ci,{iconSize:20,counterSize:16})});break;default:r=(0,h.jsx)(_i,{$type:o,children:(0,h.jsx)(i,{})})}return(0,h.jsxs)(h.Fragment,{children:[r,(0,h.jsx)(Ii,{as:"span",variant:"title",$type:o,children:s})]})}),[s,t,e,n,o]);return c?(0,h.jsx)(bn,{className:l,disabled:!0,children:f}):i?(0,h.jsx)(xn,{to:i,className:l,onClick:a,target:u,analytics:d,children:f}):(0,h.jsx)(bn,{className:l,onClick:a,analytics:d,children:f})};Di.defaultProps={iconType:"icon"},Di.propTypes={iconType:(0,i.oneOf)(["icon","mii","cart","nso"]),iconName:(0,i.oneOf)(Object.keys(Ti)),mii:i.object,to:i.string,onClick:i.func,type:(0,i.oneOf)(["primary","secondary"]),children:i.node,disabled:i.bool,className:i.string,target:i.string,analytics:yt};var Ri=Di;const Li="\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n",Fi=(0,d.default)(Ri).withConfig({componentId:"sc-jxbhoc-0"})(["",""],Li),zi=d.default.div.withConfig({componentId:"sc-jxbhoc-1"})(["",""],Li);var Bi=()=>{const{state:{accounts:{loading:e},customer:{loading:t,data:n}},localizer:{text:r}}=_t(),{actions:{openFlyout:i}}=dn();return e||t?(0,h.jsx)(zi,{children:(0,h.jsx)(ne.L,{loadingIcon:"mushroom",loadingVariant:"fade"})}):n?(0,h.jsx)(Fi,{iconType:"mii",mii:n.mii,type:"secondary",onClick:i,children:n.nickname}):(0,h.jsx)(Fi,{iconName:"user",type:"secondary",onClick:i,children:r("Log in / Sign up")})};const Vi={navLocationLevel:1,navLocation:"desktop"},$i=d.default.header.withConfig({componentId:"sc-14wlync-0"})(["display:flex;justify-content:space-between;align-items:center;height:","px;border-bottom:1px solid ",";background-color:",";position:relative;z-index:",";"],ft.NAV_DESKTOP_TOP,(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.white),(({$flyoutOpen:e})=>e?"2":"100")),Ui=d.default.div.withConfig({componentId:"sc-14wlync-1"})(["display:flex;align-items:center;gap:",";padding:",";&:first-child{flex:1;}& + &{flex-shrink:0;}"],(({theme:e,$gap:t})=>e.spacing[t||28]),(({$padding:e})=>e)),qi=(0,d.default)(Ri).attrs({analytics:Vi}).withConfig({componentId:"sc-14wlync-2"})([""," padding-top:0.875rem;padding-bottom:0.875rem;"],(({$maintenance:e,theme:t})=>e&&(0,d.css)(["color:",";cursor:default;&:hover{color:",";}"],t.color.lightGray1,t.color.lightGray1))),Qi=d.default.div.withConfig({componentId:"sc-14wlync-3"})(["width:105px;height:52px;background-color:",";display:flex;justify-content:center;align-items:center;color:white;"],(({theme:e})=>e.color.primary)),Gi=(0,d.default)(Pe).withConfig({componentId:"sc-14wlync-4"})([""]),Hi=d.default.div.withConfig({componentId:"sc-14wlync-5"})(["","{flex-basis:",";}"],(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.pxToRem(450)));var Wi=()=>{const{state:{router:e,cartUrl:t,maintenance:n,homeUrl:i},actions:{openModal:o},localizer:{text:a}}=_t(),{state:{flyoutOpen:s},actions:{closeMenu:c}}=dn(),l=(0,r.useRef)(),{ref:u,width:d}=Je({round:e=>e}),f=(0,r.useMemo)((()=>Gt.has(e.locale)?me.y:me.C),[e.locale]),p=(0,r.useMemo)((()=>Gt.has(e.locale)?me.e.LATAM_ALL_PRODUCTS:me.e.ALL_PRODUCTS),[e.locale]),{state:{query:m,isSearchFlyoverOpen:g,selectedSearchOption:v},actions:{openSearchFlyover:y,closeSearchFlyover:w,onSearchOptionChange:k,onSearchSubmit:S}}=(0,je.N1)({router:e,categoryOptions:f}),x=(0,r.useMemo)((()=>l.current?(0,h.jsx)(re.F,{returnFocus:l.current,bindFocus:g,children:(0,h.jsx)(He,{isOpen:g,locale:e.locale,onCloseClick:w,activeQuery:m,activeCategoryOption:v,onSearchSubmit:S,options:f,allProductsIndexConfig:me.d[p],inputWidth:d})}):(0,h.jsx)(He,{isOpen:g,locale:e.locale,onCloseClick:w,activeQuery:m,activeCategoryOption:v,onSearchSubmit:S,options:f,allProductsIndexConfig:me.d[p],inputWidth:d})),[p,w,g,S,m,e.locale,v,f,d]),E=(0,r.useMemo)((()=>Boolean(n.store?.active)),[n.store]),N="/"===i?i:`${i}/${Yt(e.locale)}`;return(0,h.jsxs)($i,{$flyoutOpen:s,children:[(0,h.jsxs)(Ui,{$gap:16,children:[(0,h.jsxs)(xn,{to:N,analytics:Vi,children:[(0,h.jsx)(b.S,{children:"Nintendo"}),(0,h.jsx)(Qi,{children:(0,h.jsx)(ie.Z,{size:69})})]}),(0,h.jsx)(Hi,{ref:u,children:(0,h.jsx)(Gi,{ref:l,inputValue:m,selectedOption:v,onClick:y,onDropdownChange:k,options:f,labels:{placeholderLabel:a("Search")}})}),x]}),(0,h.jsxs)(Ui,{$padding:"0 1.25rem",children:[(0,h.jsx)(qi,{to:a("https://en-americas-support.nintendo.com/"),iconName:"support",type:"secondary",onClick:c,target:"_blank",children:a("Support")}),(0,h.jsx)(qi,{to:"/wish-list",iconName:"heart",type:"secondary",onClick:c,children:a("Wish List")}),Zt(e.locale)?null:(0,h.jsx)(qi,{to:E?null:t,iconType:"cart",type:"secondary",onClick:()=>E?o({label:a("Cart down for maintenance"),content:(0,h.jsx)(yi,{type:"cart"})}):c,$maintenance:E,children:a("Cart")}),(0,h.jsx)(Bi,{}),(0,h.jsx)(A.R,{locale:e.locale,flagOnly:!0})]})]})};const Zi=(0,d.default)(xn).withConfig({componentId:"sc-m78d24-0"})(["position:relative;padding:",";*{color:",";}",";"],(({theme:e})=>e.spacing[12]),(({active:e,$menuActive:t,theme:n})=>t||e?n.color.primary:"inherit"),(({active:e,theme:t})=>e&&(0,d.css)(["&::before{content:'';height:4px;position:absolute;bottom:2px;width:calc(100% - ",");background-color:",";}"],t.spacing[24],t.color.primary))),Ki=d.default.span.withConfig({componentId:"sc-m78d24-1"})(["display:flex;justify-content:center;align-items:center;margin:0 "," 0 0;"],(({theme:e})=>e.pxToRem(6))),Yi=d.default.span.withConfig({componentId:"sc-m78d24-2"})(["display:inline-flex;justify-content:center;align-items:center;margin:1px 0 0 ",";svg{transition:",";}",";"],(({theme:e})=>e.pxToRem(8)),(({theme:e})=>`transform ${e.movement.duration} ${e.movement.easing}`),(({$menuActive:e})=>e&&(0,d.css)(["svg{transform:rotate(180deg);}"]))),Ji=(0,d.default)(B.T).withConfig({componentId:"sc-m78d24-3"})(["","{font-size:",";font-weight:",";}"],(({theme:e})=>e.mediaQuery.tabletSmall),(({theme:e})=>e.font.size.titleMobile),(({theme:e})=>e.font.weight.bold)),Xi={storefront:T.Z,"d-pad":S.Z,switch:P.Z,news:C.Z,"star-play-nintendo":I.Z,"my-nintendo-tile":j,snowflake:D},eo=r.forwardRef((({icon:e,children:t,href:n,menuName:i,activeStateUrl:o,analytics:a},s)=>{const{state:{activeMenu:c,menuOpen:l},actions:{openMenu:u,closeMenu:d}}=dn(),{state:{router:f}}=_t(),p=(0,r.useMemo)((()=>c===i&&l),[c,i,l]),m=Xi[e];return(0,h.jsxs)(Zi,{ref:s,onClick:()=>n||p?d():u(i,s.current),$menuActive:p,ariaExpanded:p?"true":"false",ariaControls:i,active:f.pathname?.includes(o),to:n,analytics:a,children:[(0,h.jsx)(Ki,{children:(0,h.jsx)(m,{size:16})}),(0,h.jsx)(Ji,{as:"span",variant:"title",children:t}),!n&&(0,h.jsx)(Yi,{$menuActive:p,children:(0,h.jsx)(R.Z,{size:12})})]})}));eo.displayName="DropdownButton",eo.defaultProps={active:!1},eo.propTypes={children:i.node,href:i.string,icon:(0,i.oneOf)(Object.keys(Xi)),menuName:(0,i.oneOf)(Object.values(nt)),activeStateUrl:i.string,analytics:yt};var to=eo;const no=(0,d.default)(s.m.div).withConfig({componentId:"sc-82tvyz-0"})(["",""],(({$useUnstuckNav:e})=>e?"position: fixed;\n top: 0;\n width: 100%;\n z-index: 20;":"position: relative;")),ro=d.default.div.withConfig({componentId:"sc-82tvyz-1"})(["width:100%;height:",";background-color:",";"," overflow:hidden;padding-top:",";transition:height 150ms ease-in-out;"],(({$drawerHeight:e})=>e?e+"px":"0"),(({theme:e,$bgColor:t})=>t||e.color.white),(({$drawerOpen:e})=>e?`\n border: 1px solid\n ${({theme:e,$borderColor:t})=>t||e.color.lightGray3};\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);\n `:""),(({$offsetHeight:e})=>`${e}px`)),io=({className:e})=>{const{state:{activeCustomDrawer:t}}=dn(),n=Kt(),i=(0,r.useRef)({bgColor:null,borderColor:null}),o=(0,r.useMemo)((()=>t?.target===ot.TOP_DRAWER?t:null),[t]);i.current.bgColor=o?.bgColor||i.current.bgColor,i.current.borderColor=o?.borderColor||i.current.borderColor;const a=parseInt(o?.height)+5,s=(0,p.SS)("WDEV-1791-un-stick-navigation-for-desktop");return(0,h.jsx)(c.M,{children:o?.isOpen&&(0,h.jsx)(no,{transition:n?"none":oe.d.animation.vertical.standardEase,initial:{y:`-${o?.height}`,opacity:1},animate:{y:-5},exit:{y:`-${a+5}px`},$useUnstuckNav:s?.enabled,children:(0,h.jsx)(ro,{className:e,"aria-hidden":!o?.isOpen,"data-testid":"top-drawer",$bgColor:i.current.bgColor,$borderColor:i.current.borderColor,$drawerHeight:parseInt(o?.height)+5,$drawerOpen:o?.isOpen,$offsetHeight:5,children:o?.content})})})};io.propTypes={className:i.string};var oo=io;const{MY_NINTENDO_STORE:ao}=nt,so="0.25rem",co=d.default.div.withConfig({componentId:"sc-fwuyy1-0"})(["background-color:",";height:",";overflow:hidden;transition:",";"],(({theme:e})=>e.color.white),(({$menuOpen:e,$menuHeight:t})=>e?t:"0px"),(({theme:e})=>`height ${at}ms ${e.movement.easing}`)),lo=d.default.div.withConfig({componentId:"sc-fwuyy1-1"})(["padding-top:",";padding-bottom:",";display:flex;flex-direction:column;"],(({theme:e,$activeMenu:t})=>e.spacing[t===ao?0:8]),(({theme:e})=>e.spacing[12])),uo=d.default.div.withConfig({componentId:"sc-fwuyy1-2"})(["display:flex;justify-content:center;gap:",";padding-left:",";padding-right:",";max-width:1440px;min-width:calc(","px - ",");margin:0 auto;"],(({theme:e})=>e.spacing[28]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16]),tt,(({theme:e})=>e.spacing[32])),fo=d.default.div.withConfig({componentId:"sc-fwuyy1-3"})(["display:flex;flex-direction:column;justify-self:center;min-width:",";"],(({theme:e})=>e.pxToRem(120))),po=(0,d.default)(xn).withConfig({componentId:"sc-fwuyy1-4"})(["padding-top:",";padding-bottom:",";font-size:",";"],so,so,(({theme:e})=>e.font.size.captionDesktop)),ho=d.default.div.withConfig({componentId:"sc-fwuyy1-5"})(["display:flex;justify-content:flex-end;padding-right:",";padding-bottom:",";"],(({theme:e,$activeMenu:t})=>e.spacing[t===ao?0:16]),(({theme:e,$activeMenu:t})=>e.spacing[t===ao?24:4])),mo=(0,d.default)(xn).withConfig({componentId:"sc-fwuyy1-6"})(["display:block;text-align:center;width:",";"],(({width:e})=>e||"120px")),go=(0,d.default)(ae.Z).withConfig({componentId:"sc-fwuyy1-7"})(["background-color:white;color:",";"],(({theme:e})=>e.color.primary)),vo=(0,d.default)(se).attrs({width:62}).withConfig({componentId:"sc-fwuyy1-8"})([""]),yo=d.default.div.withConfig({componentId:"sc-fwuyy1-9"})(["display:flex;align-items:center;justify-content:center;width:100%;height:",";border:1px solid ",";border-radius:",";margin-bottom:",";background-color:white;transition-property:background-color,border-color;transition-duration:",";",":hover &{background-color:",";border-color:",";transition-property:background-color,border-color;transition-duration:",";& > ","{color:",";}& > svg{color:white;transition-property:color;transition-duration:",";}}img{width:auto;height:auto;max-width:100%;max-height:100%;padding:0;}"],(({theme:e})=>e.pxToRem(68)),(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.borderRadius),(({theme:e})=>e.spacing[8]),(({theme:e})=>e.movement.duration),mo,(({theme:e})=>e.color.primary),(({theme:e})=>e.color.primary),(({theme:e})=>e.movement.duration),go,(({theme:e})=>e.color.primary),(({theme:e})=>e.movement.duration)),bo=(0,d.default)(xn).withConfig({componentId:"sc-fwuyy1-10"})(["margin-top:",";align-self:center;color:",";"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.color.primary)),wo=(0,d.default)(Ri).withConfig({componentId:"sc-fwuyy1-11"})(["padding:"," 0;"],so),ko={switch:P.Z,megaphone:ce.Z,calendar:le.Z,"d-pad":S.Z,CompareArrowsIcon:vo,ForParentsIcon:ue,ForKidsIcon:de,nso:go,SalesTagIcon:K.Z};var So=()=>{const{state:{router:{locale:e}},localizer:{text:t}}=_t(),{state:{activeMenu:n},actions:{closeMenu:i}}=dn(),o=(0,r.useMemo)((()=>Vn[n]),[n]);return(0,h.jsx)(uo,{id:n,children:o?.items.map((n=>{const{hidden:r,excludeLocale:o}=n[0];if("desktop"!==r&&(!o||!o.includes(e)))return(0,h.jsx)(fo,{children:n.map((({icon:n,image:r,label:o,to:a,type:s,hidden:c,width:l,excludeLocale:u})=>{if("desktop"===c)return;if(u.includes(e))return;const d=ko[n];switch(s){case rt.LIST:return n?(0,h.jsx)(wo,{iconName:n,to:a,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(o)},o):(0,h.jsx)(po,{to:a,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(o)},o);case rt.ICON:return(0,h.jsxs)(mo,{to:a,onClick:i,width:l,analytics:{navLocation:"desktop",navLocationLevel:2},children:[d&&(0,h.jsx)(yo,{children:(0,h.jsx)(d,{size:42})}),r&&(0,h.jsx)(yo,{children:(0,h.jsx)(z.I,{assetPath:r,showPlaceholder:!0,alt:""})}),(0,h.jsx)(B.T,{variant:"caption",children:t(o)})]},o)}}))},`group ${n[0].label}`)}))})};const Ao=d.default.div.withConfig({componentId:"sc-12iyqmw-0"})(["width:100%;height:64px;background-color:",";display:flex;align-items:center;justify-content:center;color:",";position:relative;a{&:hover{color:",";}}"],(({theme:e})=>e.color.primary),(({theme:e})=>e.color.white),(({theme:e})=>e.color.white)),xo=(0,d.default)(Sn).withConfig({componentId:"sc-12iyqmw-1"})(["position:absolute;right:",";color:",";&:hover{color:",";}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.color.white),(({theme:e})=>e.color.lightGray2)),Eo=(0,d.default)(L.Z).withConfig({componentId:"sc-12iyqmw-2"})(["transform:translate(6px,2px);transition:",";"],(({theme:e})=>`${e.movement.duration} ${e.movement.easing}`)),No=(0,d.default)(xn).withConfig({componentId:"sc-12iyqmw-3"})(["&:hover{","{transform:translate(10px,2px);}}"],Eo);var Co=()=>{const{actions:{closeMenu:e}}=dn();return(0,h.jsxs)(Ao,{children:[(0,h.jsx)(No,{to:"/store",onClick:e,analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,h.jsx)(fe.Z,{size:188})}),(0,h.jsx)(xo,{onClick:e}),(0,h.jsx)(pe.F,{height:14,position:"bottom"})]})};const _o=({className:e})=>{const{localizer:{text:t}}=_t(),{state:{activeMenu:n,menuOpen:i,bindFocus:o,returnFocus:a},actions:{closeMenu:s}}=dn(),c=(0,r.useRef)(null),l=function(e,t){const[n,i]=(0,r.useState)("0");return(0,r.useEffect)((()=>{t&&i(e.current.getBoundingClientRect().height)}),[e,t]),n}(c,n);return(0,h.jsx)(co,{className:e,"data-testid":"dropdownMenu",$menuOpen:i,$menuHeight:l+"px",children:(0,h.jsx)(re.F,{bindFocus:o,returnFocus:a,children:(0,h.jsxs)(lo,{ref:c,$activeMenu:n,children:[(0,h.jsx)(ho,{$activeMenu:n,children:n===nt.MY_NINTENDO_STORE?(0,h.jsx)(Co,{}):(0,h.jsx)(Sn,{onClick:s})}),(0,h.jsx)(So,{}),n===nt.MY_NINTENDO_STORE&&(0,h.jsx)(bo,{to:"/store",analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,h.jsx)(g.B,{variant:"secondary",onClick:s,children:t("Shop all")})})]})})})};_o.propTypes={className:i.string};var Oo=_o;const Io=d.default.div.withConfig({componentId:"sc-ivev9d-0"})(["position:relative;z-index:",";"],(({$flyoutOpen:e})=>e?"2":"10")),To=d.default.div.withConfig({componentId:"sc-ivev9d-1"})(["display:flex;position:relative;justify-content:center;align-items:center;height:","px;border-bottom:1px solid ",";background-color:",";z-index:1;"],ft.NAV_DESKTOP_BOTTOM,(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.color.white)),Mo=d.default.div.withConfig({componentId:"sc-ivev9d-2"})(["display:flex;gap:",";padding:2px 0 0;"],(({theme:e})=>e.spacing[16])),Po=(0,d.default)(oo).withConfig({componentId:"sc-ivev9d-3"})(["position:absolute;top:0;left:0;"]),jo=(0,d.default)(Oo).withConfig({componentId:"sc-ivev9d-4"})(["position:absolute;top:","px;left:0;width:100%;z-index:50;"],ft.NAV_DESKTOP_BOTTOM),Do=()=>{const{state:{router:e},localizer:{text:t}}=_t(),{state:{menuOpen:n,flyoutOpen:i,activeCustomDrawer:o},actions:{closeMenu:a,closeFlyout:s,closeCustomDrawer:c}}=dn(),l=(0,r.useMemo)((()=>{const e=Object.keys(Vn).map((e=>[Vn[e].name,(0,r.createRef)()]));return Object.fromEntries(e)}),[]),u=(0,r.useCallback)((()=>{n?a():i?s():o?.isOpen&&o?.enableScrim&&c(o?.id)}),[n,i,a,s,o,c]),d=o?.isOpen&&o?.enableScrim;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Io,{$flyoutOpen:i,children:[(0,h.jsx)(To,{children:(0,h.jsx)(Mo,{children:Object.keys(Vn).map((n=>!Vn[n].excludeLocale?.includes(e.locale)&&(0,h.jsx)(to,{ref:l[Vn[n].name],menuName:Vn[n].name,icon:Vn[n].icon,href:Vn[n].to,activeStateUrl:Vn[n].activeStateUrl,analytics:{navLocation:"desktop",navLocationLevel:1,clickLocation:Vn[n].name},children:t(Vn[n].label)},Vn[n].name)))})}),(0,h.jsx)(jo,{}),(0,h.jsx)(Po,{})]}),(0,h.jsx)(ei,{active:n||i||d,onClick:u})]})};Do.propTypes={navRef:i.object};var Ro=Do;const Lo=d.default.div.withConfig({componentId:"sc-jqi7uv-0"})(["visibility:",";position:fixed;right:",";top:0;z-index:",";width:","px;height:100%;background-color:",";padding-left:",";padding-right:",";transition:all ","ms;display:none;","{display:block;}"],(({open:e})=>e?"visible":"hidden"),(({open:e})=>e?0:`-${ht}px`),mt,ht,(({theme:e,$bgColor:t})=>t||e.color.lightGray3),(({theme:e})=>e.spacing[20]),(({theme:e})=>e.spacing[20]),at,(({theme:e})=>e.mediaQuery.navDesktop)),Fo=({children:e})=>{const{state:{flyoutVisible:t,flyoutOpen:n,activeCustomDrawer:i}}=dn(),o=(0,r.useMemo)((()=>i?.target===ot.FLYOUT?i:null),[i]),a=(0,r.useMemo)((()=>!t&&o?o.content:e),[t,o,e]),s=n||o?.isOpen;return(0,h.jsx)(Lo,{"aria-hidden":!s,open:s,$bgColor:!t&&o?.bgColor,children:a})};Fo.propTypes={children:i.node};var zo=Fo;var Bo=()=>{const{state:{router:e,isDesktop:t}}=_t(),{actions:{closeSearchFlyover:n}}=(0,je.N1)({router:e}),{state:{flyoutOpen:i},actions:{closeFlyout:o,closeMenu:a}}=dn();(0,r.useEffect)((()=>{t||(o(),n(),a())}),[t,o,n,a]);const s=(0,p.SS)("WDEV-1791-un-stick-navigation-for-desktop");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Ni,{"aria-hidden":!t,$useUnstuckNav:s?.enabled,"data-testid":"desktop-nav",children:[(0,h.jsx)(xi,{}),(0,h.jsx)(Wi,{}),(0,h.jsx)(Ro,{})]}),t&&(0,h.jsx)(zo,{children:(0,h.jsx)(Yr,{flyoutOpen:i,handleClose:o})}),(0,h.jsx)(Ci,{$useUnstuckNav:s?.enabled,children:(0,h.jsx)(W.S,{size:ft.NAV_DESKTOP})})]})};const Vo=d.default.div.withConfig({componentId:"sc-nfbri6-0"})(["width:100%;z-index:",";","{display:none;}"],mt,(({theme:e})=>e.mediaQuery.navDesktop)),$o=(0,d.default)(Ke).withConfig({componentId:"sc-nfbri6-1"})(["margin-top:",";"],(({theme:e})=>`-${e.spacing[16]}`)),Uo=d.default.input.withConfig({componentId:"sc-nfbri6-2"})(["position:fixed;top:9px;left:32px;z-index:-1;border-color:transparent;background:transparent;"]),qo=d.default.div.withConfig({componentId:"sc-ueqadc-0"})(["position:relative;"]),Qo=(0,d.default)(Hn.Card).withConfig({componentId:"sc-ueqadc-1"})(["transform:translateX( "," );transition:",";"],(({$secondaryOpen:e})=>e?"-33%":"0"),(({theme:e})=>`transform ${ct}ms ${e.movement.easing}`)),Go=(0,d.default)(Hn.Card).withConfig({componentId:"sc-ueqadc-2"})(["transform:translateX( "," );transition:",";"],(({$secondaryOpen:e})=>e?"0":"100%"),(({theme:e})=>`transform ${ct}ms ${e.movement.easing}`)),Ho=()=>{const{state:{router:e},localizer:{text:t}}=_t(),{state:{menuOpen:n},actions:{openMenu:r,closeDrawer:i}}=mn(),o=((e,t)=>{const n=e?.pathname&&e?.origin&&e?.search?e:new URL(e,jt),{returnAbsoluteUrl:r}=t||{},i=`${`/${n.pathname}/`.replace(/\/(\/)*\//g,"/")}${n.search}${n.hash}`;return r?`${n.origin}${i}`:`${i}`})(new URL("/us/regionselector/",jt),{returnAbsoluteUrl:!0});return(0,h.jsxs)(Qo,{"data-testid":"primary-menu",$secondaryOpen:n,children:[(0,h.jsx)(Jn,{handleClose:i,children:t("Menu")}),(0,h.jsxs)(Hn.Scrolling,{height:ft.DRAWER_HAMBURGER_MOBILE,children:[Object.keys(Vn).map((n=>!Vn[n].excludeLocale?.includes(e.locale)&&(0,h.jsx)(ar,{icon:Vn[n].icon,chevron:Vn[n].to?null:"right",onClick:()=>Vn[n].to?i():r(Vn[n].name),to:Vn[n].to,analytics:{navLocation:"mobile bottom",navLocationLevel:2,clickLocation:Vn[n].to||Vn[n].name},children:t(Vn[n].label)},Vn[n].name))),(0,h.jsxs)(Hn.MoreItems,{children:[(0,h.jsx)(ar,{icon:"support",to:t("https://en-americas-support.nintendo.com/"),onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Support")}),(0,h.jsx)(ar,{icon:"region-selection",to:o,self:!0,onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Change Region")})]})]})]})};Ho.propTypes={secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var Wo=Ho;const Zo=d.default.div.withConfig({componentId:"sc-1lp5ej7-0"})(["overflow-y:hidden;height:auto;max-height:",";transition:max-height ","ms;"],(({$maxHeight:e,$open:t})=>t?e:0),lt),Ko=d.default.div.withConfig({componentId:"sc-1lp5ej7-1"})(["padding-top:",";padding-bottom:",";"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16])),Yo=(0,d.default)(xn).withConfig({componentId:"sc-1lp5ej7-2"})(["display:flex;align-items:center;padding-left:",";padding-right:",";height:","px;"],(({theme:e})=>e.spacing[32]),(({theme:e})=>e.spacing[16]),ft.ACCORDION_SUBITEM_MOBILE),Jo=({onClick:e,menuItem:t,open:n,handleClose:i})=>{const{localizer:{text:o}}=_t(),a=(0,r.useMemo)((()=>t[0]),[t]),s=(0,r.useMemo)((()=>`${(t.length-1)*ft.ACCORDION_SUBITEM_MOBILE+ft.ACCORDION_SUBITEM_WRAP_MOBILE}px`),[t]),c=(0,r.useMemo)((()=>t.slice(1).map((e=>(0,h.jsx)(Yo,{to:e.to,onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:3},children:o(e.label)},e.label)))),[t,o,i]);return c.length?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ar,{chevron:"down",open:n,onClick:e,"aria-expanded":n,"aria-controls":`collapse-${a.label}`,analytics:{navLocation:"mobile bottom",navLocationLevel:3,clickLocation:a.label},children:o(a.label)}),(0,h.jsx)(Zo,{id:`collapse-${a.label}`,$maxHeight:s,$open:n,"aria-label":o(a.label),children:(0,h.jsx)(Ko,{children:c})})]}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(ar,{to:a.to,onClick:i,children:o(a.label)})})};Jo.defaultProps={open:!1},Jo.propTypes={onClick:i.func,menuItem:Bn,open:i.bool,handleClose:i.func};var Xo=Jo;const ea=()=>{const{localizer:{text:e},state:{router:{locale:t}}}=_t(),{state:{activeMenu:n,menuOpen:i,activeAccordion:o,accordionOpen:a},actions:{closeDrawer:s,openAccordion:c,closeAccordion:l,closeMenu:u}}=mn(),d=(0,r.useCallback)((e=>o!==e?c(e):l()),[o,c,l]),f=(0,r.useMemo)((()=>Vn[n]?.items.map((e=>{const n=e.filter((e=>"mobile"!==e.hidden));if(!n.length)return;const r=n[0];return r.excludeLocale.includes(t)?void 0:(0,h.jsx)(Xo,{onClick:()=>d(r.label),handleClose:s,menuItem:n,open:o===r.label&&a},r.label)}))),[n,o,s,d,a,t]);return(0,h.jsxs)(Go,{"data-testid":"secondary-menu",$secondaryOpen:i,children:[(0,h.jsx)(Jn,{handleClose:s,handleBack:u,children:Vn[n]&&e(Vn[n].label)}),(0,h.jsx)(Hn.Scrolling,{height:ft.DRAWER_HAMBURGER_MOBILE,children:f})]})};ea.propTypes={activeMenu:(0,i.oneOf)(Object.keys(nt)),secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var ta=ea;const na=()=>(0,h.jsxs)(qo,{children:[(0,h.jsx)(Wo,{}),(0,h.jsx)(ta,{})]});na.propTypes={handleClose:i.func};var ra=na;const ia=(0,d.default)(s.m.div).withConfig({componentId:"sc-oe8kf6-0"})(["position:absolute;left:0;bottom:29px;width:100%;height:",";background-color:",";border:1px solid ",";border-top-left-radius:",";border-top-right-radius:",";overflow:hidden;z-index:-1;"],(({$drawerHeight:e})=>e||"0"),(({theme:e,$bgColor:t})=>t||e.color.white),(({theme:e,$borderColor:t})=>t||e.color.lightGray3),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16])),{HAMBURGER:oa,ACCOUNT:aa}=it;var sa=()=>{const{state:{activeDrawer:e,activeCustomDrawer:t,drawerOpen:n},actions:{closeDrawer:i}}=mn(),o=Kt(),a=(0,r.useMemo)((()=>{switch(e){case oa:return(0,h.jsx)(ra,{});case aa:return(0,h.jsx)(Yr,{handleClose:i})}if(t)return t.content}),[t,e,i]),s=e===it.HAMBURGER?ft.DRAWER_HAMBURGER_MOBILE:e===it.ACCOUNT?ft.DRAWER_ACCOUNT_MOBILE:t?.height;return(0,h.jsx)(c.M,{children:n||t?.isOpen?(0,h.jsx)(ia,{"aria-hidden":!e&&!t?.isOpen,"data-testid":"drawer",$bgColor:!e&&t?.bgColor,$borderColor:!e&&t?.borderColor,$drawerHeight:s,transition:o?"none":oe.d.animation.vertical.standardEase,initial:{height:"0px",opacity:1},animate:{height:s},exit:{height:"0px"},children:a}):null})};const ca="58px",la=d.default.div.withConfig({componentId:"sc-tvb962-0"})(["width:100%;height:calc("," + ",");background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,0.2));position:fixed;bottom:0;display:block;left:50%;transform:translateX(-50%);z-index:1000;","{display:none;}"],ca,(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.desktop)),ua=d.default.div.withConfig({componentId:"sc-tvb962-1"})(["margin:auto;height:",";width:96%;max-width:440px;","{display:none;}"],ca,(({theme:e})=>e.mediaQuery.desktop)),da=d.default.nav.withConfig({componentId:"sc-tvb962-2"})(["position:relative;height:",";display:flex;align-items:center;justify-content:space-between;padding-left:",";padding-right:",";background-color:",";border-radius:100px;box-shadow:0 "," "," 0 rgba(0,0,0,0.2);"],ca,(({theme:e})=>e.spacing[16]),(({theme:e})=>e.spacing[16]),(({theme:e})=>e.color.white),(({theme:e})=>e.pxToRem(4)),(({theme:e})=>e.pxToRem(8))),fa=(0,d.default)(xn).withConfig({componentId:"sc-tvb962-3"})(["display:flex;justify-content:center;flex:1 auto;position:relative;height:",";"],ca);d.default.div.withConfig({componentId:"sc-tvb962-4"})(["display:flex;justify-content:center;align-items:center;flex:1 auto;position:relative;height:",";"],ca);const{HAMBURGER:pa,ACCOUNT:ha}=it,ma=({children:e})=>{const{state:{accounts:{isLoggedIn:t,loading:n},customer:{loading:i},maintenance:o,cartUrl:a,router:{locale:s}},actions:{openModal:c},localizer:{text:l}}=_t(),{state:{activeDrawer:u,activeCustomDrawer:d,drawerOpen:f},actions:{closeDrawer:p,closeCustomDrawer:g,openDrawer:v}}=mn(),y=(0,r.useMemo)((()=>u===pa?(0,h.jsx)(m.Z,{}):(0,h.jsx)(he,{})),[u]),b=(0,r.useMemo)((()=>{let e=null;return n||i?(0,h.jsx)(pi,{}):(e=t?(0,h.jsx)(On,{size:24}):(0,h.jsx)(J,{}),u===ha?(0,h.jsx)(m.Z,{}):e)}),[u,n,t,i]),w=(0,r.useMemo)((()=>Zt(s)?(0,h.jsx)(fa,{to:"/store/games/",ariaLabel:l("Games"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,h.jsx)(S.Z,{})}):o.store?.active?(0,h.jsx)(fa,{ariaLabel:l("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},onClick:()=>c({label:l("Cart down for maintenance"),content:(0,h.jsx)(yi,{type:"cart"})}),children:(0,h.jsx)(ci,{disabled:!0})}):(0,h.jsx)(fa,{to:a,onClick:p,ariaLabel:l("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,h.jsx)(ci,{})})),[o,a,s,l,c,p]),k=(0,r.useCallback)((()=>u===pa?p():v(pa)),[u,p,v]),A=(0,r.useCallback)((()=>n||i?null:u===ha?p():v(ha)),[u,p,v,n,i]),x=(0,r.useCallback)((()=>{f?p():d?.isOpen&&d?.enableScrim&&g(d?.id)}),[f,p,d,g]),E=d?.isOpen&&d?.enableScrim;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(ei,{active:f||E,onClick:x}),(0,h.jsx)(la,{children:(0,h.jsx)(ua,{children:(0,h.jsxs)(da,{"data-testid":"mobile-nav",children:[(0,h.jsx)(fa,{ariaLabel:l("Main menu"),onClick:k,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"MAIN_MENU"},children:y}),(0,h.jsx)(fa,{to:"/wish-list",onClick:p,ariaLabel:l("Wish List"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,h.jsx)(N,{})}),e,w,(0,h.jsx)(fa,{ariaLabel:l("Account"),onClick:A,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"ACCOUNT_MENU"},children:b}),(0,h.jsx)(sa,{})]})})})]})};ma.propTypes={children:i.node};var ga=ma;const va=(0,d.default)(xn).withConfig({componentId:"sc-ogbajk-0"})(["&:hover{color:unset;}"]),ya=d.default.header.withConfig({componentId:"sc-ogbajk-1"})(["position:relative;width:100%;height:auto;"]),ba=d.default.div.withConfig({componentId:"sc-ogbajk-2"})(["display:flex;align-items:center;justify-content:space-between;width:100%;padding-left:1rem;padding-right:1rem;height:","px;z-index:1000;background-color:",";color:",";","{display:none;}"],ft.NAV_MOBILE,(({theme:e})=>e.color.primary),(({theme:e})=>e.color.white),(({theme:e})=>e.mediaQuery.desktop)),wa=d.default.div.withConfig({componentId:"sc-ogbajk-3"})(["height:100%;display:flex;align-items:center;"]);var ka=({searchButtonRef:e})=>{const{state:{onStorePage:t,router:n}}=_t(),i=(0,r.useMemo)((()=>Gt.has(n.locale)?me.y:me.C),[n.locale]),{state:{query:o,isSearchFlyoverOpen:a,selectedSearchOption:s},actions:{closeSearchFlyover:c,onSearchSubmit:l}}=(0,je.N1)({router:n,categoryOptions:i}),u=(0,r.useMemo)((()=>Gt.has(n.locale)?me.e.LATAM_ALL_PRODUCTS:me.e.ALL_PRODUCTS),[n.locale]),d=(0,r.useMemo)((()=>e?.current?(0,h.jsx)(re.F,{returnFocus:e.current,bindFocus:a,children:(0,h.jsx)(He,{isOpen:a,locale:n.locale,onCloseClick:c,activeQuery:o,activeCategoryOption:s,onSearchSubmit:l,options:i,allProductsIndexConfig:me.d[u]})}):(0,h.jsx)(He,{isOpen:a,locale:n.locale,onCloseClick:c,activeQuery:o,activeCategoryOption:s,onSearchSubmit:l,options:i,allProductsIndexConfig:me.d[u]})),[u,c,a,l,o,n.locale,s,i,e]);return(0,h.jsxs)(ya,{children:[d,(0,h.jsxs)(ba,{children:[(0,h.jsxs)(va,{to:"/",analytics:{navLocation:"mobile top",navLocationLevel:1},children:[(0,h.jsx)(b.S,{children:"Nintendo"}),(0,h.jsx)(ie.Z,{size:89})]}),(0,h.jsxs)(wa,{children:[(0,h.jsx)(xn,{to:"/store",ariaLabel:"My Nintendo Store",analytics:{navLocation:"mobile top",navLocationLevel:1},children:t&&(0,h.jsx)(fe.Z,{size:136})}),(0,h.jsx)(W.S,{size:20}),(0,h.jsx)(A.R,{locale:n.locale,flagOnly:!0})]})]})]})};var Sa=()=>{const{state:{router:e,isDesktop:t},localizer:{text:n}}=_t(),{state:{isSearchFlyoverOpen:i},actions:{openSearchFlyover:o,closeSearchFlyover:a}}=(0,je.N1)({router:e}),{actions:{closeDrawer:s}}=mn(),c=(0,r.useRef)(),l=(0,r.useRef)(),u=(0,r.useCallback)((()=>{o(),c.current.focus()}),[o]);return(0,r.useEffect)((()=>{t&&(s(),a())}),[t,s,a]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Uo,{ref:c,hidden:!i}),(0,h.jsxs)(Vo,{"aria-hidden":t,children:[(0,h.jsx)(xi,{}),(0,h.jsx)(ka,{searchButtonRef:l}),(0,h.jsx)(ga,{children:(0,h.jsx)($o,{ref:l,onClick:u,"aria-label":n("Search")})})]})]})};var Aa=()=>{const[e,t]=(0,r.useState)(!1);var n;return n=()=>t(!0),(0,r.useEffect)(n,[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(pn,{children:(0,h.jsx)(Bo,{})}),(0,h.jsx)(vn,{children:(0,h.jsx)(Sa,{})}),e&&(0,h.jsx)(Ei,{})]})},xa={Characters:{es:"Personajes",fr:"Personnages",pt:"Personagens"},Details:{es:"Detalles",fr:"D\xe9tails",pt:"Detalhes"},"Holiday Gift Guide":{fr:"Guide de cadeaux des f\xeates"},"https://en-americas-support.nintendo.com/":{es:"https://es-americas-support.nintendo.com/",fr:"https://fr-americas-support.nintendo.com/",pt:"https://pt-americas-support.nintendo.com/"},Manage:{es:"Administrar",fr:"G\xe9rer",pt:"Gerenciar"},"Member since":{es:"Miembro desde",fr:"Membre depuis",pt:"Membro desde"},"My Nintendo Store":{fr:"Boutique My Nintendo"},"Purchase history":{es:"Historial de compras",fr:"Historique d'achats",pt:"Hist\xf3rico de compras"},"Shop all":{es:"Explorar todas",fr:"Magasiner tout",pt:"Confira todas"},"Welcome {0}":{es:"\xa1Hola, {0}!",fr:"Content de vous revoir {0}",pt:"Ol\xe1, {0}"},"See ":{es:"QR Mira la ",fr:"Voir la ",pt:"Ver a "},"With a free account, you can":{es:"Con una cuenta gratuita podr\xe1s",fr:"Avec un compte gratuit, vous pouvez",pt:"Com uma conta gratuita, voc\xea pode"},"Shop online":{es:"Comprar en l\xednea",fr:"Magasiner en ligne",pt:"Comprar online"},"Earn My Nintendo points":{es:"Obtener puntos de My Nintendo",fr:"Obtenir des points My Nintendo",pt:"Obter pontos My Nintendo"},"Save a Wish List":{es:"Guardar art\xedculos en tu lista de deseos",fr:"Sauvegarder une liste de souhaits",pt:"Salvar uma lista de desejos"},"Log in":{es:"Iniciar sesi\xf3n",fr:"Se connecter",pt:"Iniciar sess\xe3o"},"Sign up":{es:"Reg\xedstrate",fr:"S'enregistrer",pt:"Criar uma conta"},Systems:{es:"Consolas",pt:"Consoles"},"Cart down for maintenance":{es:"Carrito en mantenimiento",fr:"Panier hors service pour des raisons de maintenance",pt:"Carrinho n\xe3o est\xe1 dispon\xedvel devido \xe0 manuten\xe7\xe3o"},"Sorry, it\u2019s not possible to view your cart or check out right now.":{es:"Lo sentimos, no es posible ver tu carrito ni finalizar compras en este momento.",fr:"Pour l\u2019instant, il n\u2019est pas possible d\u2019ajouter des articles au panier ou d\u2019effectuer des achats.",pt:"Desculpe, n\xe3o \xe9 poss\xedvel visualizar seu carrinho ou finalizar a compra neste momento."}};const Ea="@media (min-width: 1025px)",Na=e=>({...e,mediaQuery:{...e.mediaQuery,navDesktop:Ea}}),Ca=({router:e,origin:t})=>(0,h.jsx)(Pt,{router:e,origin:t,children:(0,h.jsx)(d.ThemeProvider,{theme:Na,children:(0,h.jsx)(l.X,{features:u.H,children:(0,h.jsx)(w.H.NewLevel,{children:(0,h.jsx)(Aa,{})})})})});Ca.propTypes={homeUrl:i.string,router:kt,origin:i.string},Ca.defaultProps=St;const _a={MOBILE:ft.NAV_MOBILE,DESKTOP:ft.NAV_DESKTOP}},50334:function(e,t,n){"use strict";n.d(t,{Cf:function(){return d},Td:function(){return c},nD:function(){return o},t6:function(){return l}});const r={"{0}%":{fr:"{0} %"},"{0} of {1}":{es:"{0} de {1}",fr:"{0} sur {1}",pt:"{0} de {1}"},"$0 - $4.99":{es:"$0 - $99.99",fr:"0 $ - 4,99 $",pt:"R$ 0 - R$ 24,99"},"$0 - $9.99":{es:"$0 - $199.99",fr:"0 $ - 9,99 $",pt:"R$ 0 - R$ 49,99"},"$5 - $9.99":{es:"$100 - $199.99",fr:"5 $ - 9,99 $",pt:"R$ 25 - R$ 49,99"},"$10 - $19.99":{es:"$200 - $399.99",fr:"10 $ - 19,99 $",pt:"R$ 50 - R$ 99,99"},"$20 - $39.99":{es:"$400 - $799.99",fr:"20 $ - 39,99 $",pt:"R$ 100 - R$ 199,99"},"$40 - $59.99":{es:"$800 - $1199.99",fr:"40 $ - 59,99 $",pt:"R$ 200 - R$ 299,99"},"$40+":{es:"$+800",fr:"40+ $",pt:"R$ 200,00+"},"$60+":{es:"$+1200",fr:"60+ $",pt:"R$ 300,00+"},Accessories:{es:"Accesorios",fr:"Accessoires",pt:"Acess\xf3rios"},Account:{es:"Cuenta",fr:"Compte",pt:"Conta"},"Account settings":{es:"Ajustes",fr:"Param\xe8tres de compte",pt:"Configura\xe7\xf5es da conta"},Action:{es:"Acci\xf3n",fr:"Action",pt:"A\xe7\xe3o"},"Add item":{es:"A\xf1adir art\xedculo",fr:"Ajouter un article",pt:"Adicionar item"},"Add to cart":{es:"Agregar al carrito de compras",fr:"Ajouter au panier",pt:"Adicionar ao carrinho"},"Add to Wish List":{es:"Agregar a la lista de deseos",fr:"Ajouter \xe0 la liste de souhaits",pt:"Adicionar \xe0 lista de desejos"},"Address book":{es:"Libreta de direcciones",fr:"Carnet d'adresses",pt:"Lista de contatos"},"Address Validation":{es:"Validaci\xf3n de direcci\xf3n",fr:"Confirmation de l'adresse",pt:"Confirma\xe7\xe3o do endere\xe7o"},Adventure:{es:"Aventura",fr:"Aventure",pt:"Aventura"},"All categories":{es:"Todas las categorias",fr:"Toutes les cat\xe9gories",pt:"Todas as categorias"},"Apparel & accessories":{es:"Moda y accesorios",fr:"V\xeatements et accessoires",pt:"Roupas e acess\xf3rios"},Application:{es:"Aplicaci\xf3n",fr:"Application",pt:"Aplicativo"},"Apt. or suite":{es:"Apartamento o suite",fr:"App. ou suite",pt:"Apartamento ou su\xedte"},Availability:{es:"Disponibilidad",fr:"Disponibilit\xe9",pt:"Disponibilidade"},"Available now":{es:"Disponible ya",fr:"Offert maintenant",pt:"J\xe1 disponivel"},"Billing details":{es:"Detalles del pago",fr:"D\xe9tails de facturation",pt:"Detalhes da cobran\xe7a"},"Board Game":{es:"Juego de mesa",fr:"Jeu de plateau",pt:"Jogo de tabuleiro"},"Board game":{es:"Juego de mesa",fr:"Jeu de plateau",pt:"Jogo de tabuleiro"},"Buy digital":{es:"Adquirir la versi\xf3n digital",fr:"Acheter la version num\xe9rique",pt:"Comprar vers\xe3o digital"},"Buy now":{es:"Compra ahora",fr:"Acheter maintenant",pt:"Compre agora"},"Buy physical":{es:"Adquiere la versi\xf3n f\xedsica",fr:"Acheter la version emball\xe9e",pt:"Comprar vers\xe3o f\xedsica"},Cart:{es:"Carrito de compras",fr:"Panier",pt:"Carrinho"},"Cases & more":{es:"Fundas y m\xe1s",fr:"\xc9tui de transport et plus",pt:"Bolsas e mais"},"Character or series":{es:"Personaje o serie",fr:"Personnage ou s\xe9rie",pt:"Personagem ou s\xe9rie"},City:{es:"Ciudad",fr:"Ville",pt:"Cidade"},Close:{es:"Cerrar",fr:"Fermer",pt:"Fechar"},"Coming soon":{es:"Pr\xf3ximos lanzamientos",fr:"Bient\xf4t offert",pt:"Em breve"},"Compare systems":{es:"Compara consolas",fr:"Comparer les consoles",pt:"Comparar consoles"},"Confirm changes":{es:"Confirmar cambios",fr:"Confirmer les modifications",pt:"Confirmar mudan\xe7as"},Continue:{es:"Continuar",fr:"Continuer",pt:"Continuar"},Country:{es:"Pa\xeds",fr:"Pays",pt:"Pa\xeds"},Day:{es:"D\xeda",fr:"Jour",pt:"Dia"},Delete:{es:"Borrar",fr:"Supprimer",pt:"Apagar"},Discount:{fr:"Rabais"},"Download demo":{es:"Descargar la versi\xf3n de prueba",fr:"T\xe9l\xe9charger la d\xe9mo",pt:"Baixar vers\xe3o demo"},Downloaded:{es:"Descargado",fr:"T\xe9l\xe9chargement termin\xe9",pt:"Baixados"},Edit:{es:"Editar",fr:"Modifier",pt:"Editar"},Edition:{es:"Versi\xf3n",fr:"Version",pt:"Vers\xe3o"},Education:{es:"Educativo",fr:"\xc9ducation",pt:"Educativo"},"Enter shipping address manually instead":{es:"Introduce manualmente tu direcci\xf3n de env\xedo",fr:"Entrer manuellement l'adresse d'exp\xe9dition",pt:"Insira manualmente o endere\xe7o de entrega "},Error:{es:"Error",fr:"Erreur",pt:"Erro"},"Error:":{es:"Error:",fr:"Erreur :",pt:"Erro:"},"ESRB rating":{es:"Clasificaci\xf3n ESRB",fr:"Classement ESRB",pt:"Classifica\xe7\xe3o Indicativa"},Everyone:{es:"Todos",fr:"Enfants et adultes",pt:"Livre"},"Everyone 10+":{es:"Todos +10",fr:"Enfants et adultes 10+",pt:"Livre - 10 -N\xe3o recomendado para menores de 10 (dez) anos"},Exclusive:{es:"Exclusivos",fr:"Exclusivit\xe9",pt:"Exclusivo"},"Exclusive products":{es:"Productos exclusivos",fr:"Produits exclusifs",pt:"Produtos exclusivos"},Featured:{es:"Destacados",fr:"\xc0 la une",pt:"Em destaque"},Fighting:{es:"Peleas",fr:"Combat",pt:"Luta"},"First name":{es:"Nombre",fr:"Pr\xe9nom",pt:"Nome"},"First-Person":{es:"Acci\xf3n en primera persona",fr:"\xc0 la premi\xe8re personne",pt:"Jogo em primeira pessoa"},"First-person":{es:"Acci\xf3n en primera persona",fr:"\xc0 la premi\xe8re personne",pt:"Jogo em primeira pessoa"},Fitness:{es:"Ejercicio",fr:"Exercice",pt:"Exerc\xedcio"},"For kids":{es:"Para los ni\xf1os",fr:"Pour les enfants",pt:"Para crian\xe7as"},"For parents":{es:"Para los padres",fr:"Pour les parents",pt:"Para os pais"},Free:{es:"Gratis",fr:"Gratuit",pt:"Gr\xe1tis"},"Free download":{es:"Descarga gratuita",fr:"D\xe9mo gratuite",pt:"Download gratuito"},"Free to start":{es:"Inicio gratuito",fr:"Jeu \xe0 acc\xe8s gratuit",pt:"Gratuito para come\xe7ar a jogar"},"Game type":{es:"G\xe9nero de juego",fr:"Type de jeu",pt:"Tipo de jogo"},Games:{es:"Juegos",fr:"Jeux",pt:"Jogos"},Genre:{es:"G\xe9nero",fr:"Genre",pt:"G\xeanero"},"Gold Points":{es:"Puntos de oro",fr:"Points or",pt:"Pontos de ouro"},Hardware:{es:"Equipo",fr:"Mat\xe9riel",pt:"Hardware"},Home:{es:"Inicio",fr:"Accueil",pt:"In\xedcio"},"Home & office":{es:"Hogar y oficina",fr:"Maison et bureau",pt:"Casa e escrit\xf3rio"},Indie:{es:"Independiente",fr:"Ind\xe9",pt:"Independente"},"Item(s) subtotal":{es:"Subtotal de art\xedculos",fr:"Total partiel des articles",pt:"Subtotal dos itens"},"Joy-Con & controllers":{es:"Joy-Con y controles",fr:"Joy-Con et manettes",pt:"Joy-Con e controles"},"Last name":{es:"Apellido",fr:"Nom",pt:"Sobrenome"},"Learn more":{es:"Conoce los detalles",fr:"Plus de d\xe9tails",pt:"Saiba mais"},"Level up with Nintendo Switch Online":{es:"Sube de nivel con Nintendo Switch Online",fr:"Passez au niveau sup\xe9rieur avec Nintendo Switch Online",pt:"Suba de n\xedvel com Nintendo Switch Online"},Lifestyle:{es:"Estilo de vida",fr:"Style de vie",pt:"Estilo de vida"},"Load more":{es:"Mostrar m\xe1s",fr:"Plus",pt:"Mostrar mais"},Loading:{es:"Cargando",fr:"Chargement",pt:"Carregando"},"Log in / create account":{es:"Iniciar sesi\xf3n / Crear una cuenta",fr:"Se connecter / Cr\xe9er un compte",pt:"Fazer login / criar conta"},"Log in / Sign up":{es:"Iniciar sesi\xf3n / Reg\xedstrate",fr:"Se connecter / S'enregistrer",pt:"Iniciar sess\xe3o / Criar uma conta"},Mature:{es:"Maduro",fr:"Jeunes adultes 17+",pt:"Jovens adultos maiores de 17 anos"},Merchandise:{es:"Mercanc\xeda",fr:"Marchandises",pt:"Mercanc\xeda"},Month:{es:"Mes",fr:"Mois",pt:"M\xeas"},DD:{fr:"JJ"},YYYY:{es:"AAAA",fr:"AAAA",pt:"AAAA"},MSRP:{es:"PVSF",fr:"PDSF",pt:"PVSF"},Multiplayer:{es:"Multijugador",fr:"Multijoueur",pt:"Multijogador"},Music:{es:"M\xfasica",fr:"Musique",pt:"M\xfasica"},"My Nintendo rewards":{es:"Recompensas de My Nintendo",fr:"R\xe9compenses My Nintendo",pt:"Recompensas My Nintendo"},"My Nintendo Store":{es:"Tienda My Nintendo",fr:"Boutique My Nintendo",pt:"My Nintendo Store"},"New releases":{es:"Nuevos lanzamientos",fr:"Nouvelles sorties",pt:"Novos lan\xe7amentos"},"News & Events":{es:"Noticias y eventos",fr:"Nouvelles et \xe9v\xe9nements",pt:"Novidades e eventos"},Next:{es:"Pr\xf3xima",fr:"Suivante",pt:"Pr\xf3xima"},"Next page":{es:"Siguiente p\xe1gina",fr:"Page suivante",pt:"Pr\xf3xima p\xe1gina"},"Nintendo.com home":{es:"Nintendo.com - Inicio",fr:"Accueil Nintendo.com",pt:"In\xedcio Nintendo.com"},"Nintendo Switch games":{es:"Juegos de Nintendo Switch",fr:"Jeux Nintendo Switch",pt:"Jogos do Nintendo Switch"},"Nintendo Switch lineup":{es:"Consolas Nintendo Switch",fr:"Consoles Nintendo Switch",pt:"Consoles Nintendo Switch"},"Nintendo Switch Online offers":{es:"Ofertas de Nintendo Switch Online",fr:"Offre Nintendo Switch Online",pt:"Ofertas Nintendo Switch Online"},"Nintendo Switch Online overview":{es:"Sinopsis de Nintendo Switch Online",fr:"Aper\xe7u Nintendo Switch Online",pt:"Vis\xe3o geral do Nintendo Switch Online"},"Nintendo Switch systems":{es:"Consolas Nintendo Switch",fr:"Consoles Nintendo Switch",pt:"Consoles Nintendo Switch"},"Nintendo Switch systems overview":{es:"Sinopsis de consolas Nintendo Switch",fr:"Aper\xe7u des consoles Nintendo Switch",pt:"Vis\xe3o geral dos consoles Nintendo Switch"},"No. of players":{es:"N\xfamero de jugadores",fr:"Nombre de joueurs",pt:"N\xfamero de jogadores"},"Online Play":{es:"Juego en l\xednea",fr:"Jeu en ligne",pt:"Partida online"},"Online service":{es:"Servicio en l\xednea",fr:"Service en ligne",pt:"Servi\xe7o Online"},"Order number":{es:"N\xfamero de orden",fr:"Num\xe9ro de commande",pt:"N\xfamero do pedido"},"Order status":{es:"Estado de la orden",fr:"Statut de la commande",pt:"Status do pedido"},"Order summary":{es:"Detalles de la compra",fr:"R\xe9capitulatif de la commande",pt:"Detalhes da compra"},"Order total":{es:"Total",fr:"Total de la commande",pt:"Total"},Other:{es:"Otros",fr:"Autres",pt:"Outros"},Party:{es:"Fiesta",fr:"F\xeate",pt:"Festa"},"Phone number":{es:"N\xfamero de tel\xe9fono",fr:"Num\xe9ro de t\xe9l\xe9phone",pt:"N\xfamero de telefone"},Platform:{es:"Plataforma",fr:"Plateforme",pt:"Plataforma"},Platformer:{es:"Plataformas",fr:"Plateforme",pt:"Plataforma"},"Platinum Points":{es:"Puntos de platino",fr:"Points platine",pt:"Pontos de platina"},Plush:{es:"Peluches",fr:"Peluches",pt:"Pel\xfacias"},Practical:{es:"Utilidades",fr:"Pratique",pt:"Pr\xe1tico"},"Pre-order":{es:"Reserva",fr:"Pr\xe9commander",pt:"Reserve"},"Present this QR Code\xae to check in at select Nintendo events and locations.":{es:"Presenta este c\xf3digo QR (QR Code\xae) para registrar tu asistencia en ciertos eventos y locaciones de Nintendo.",fr:"Pr\xe9sentez ce QR Code\xae pour vous enregistrer \xe0 certains \xe9v\xe9nements et lieux Nintendo.",pt:"Apresente este c\xf3digo QR (QR Code\xae) para registrar-se em certos eventos e locais da Nintendo."},Previous:{es:"Anterior",fr:"Pr\xe9c\xe9dente",pt:"Anterior"},"Previous page":{es:"Pagina anterior",fr:"Page pr\xe9c\xe9dente",pt:"P\xe1gina anterior"},"Price (high to low)":{es:"Precio (mayor a menor)",fr:"Prix (ordre d\xe9croissant)",pt:"Pre\xe7o (maior ao menor)"},"Price (low to high)":{es:"Precio (menor a mayor)",fr:"Prix (ordre croissant)",pt:"Pre\xe7o (menor ao maior)"},"Product information":{es:"Informaci\xf3n del producto",fr:"Informations sur le produit",pt:"Informa\xe7\xf5es do produto"},Puzzle:{es:"Rompecabezas",fr:"Casse-t\xeate",pt:"Quebra-cabe\xe7a"},"QR Code is a registered trademark of DENSO WAVE INCORPORATED.":{es:"QR Code is a registered trademark of DENSO WAVE INCORPORATED.",fr:"QR Code est une marque de commerce d\xe9pos\xe9e de DENSO WAVE INCORPORATED.",pt:"QR Code is a registered trademark of DENSO WAVE INCORPORATED."},Quantity:{es:"Cantidad",fr:"Quantit\xe9",pt:"Montante"},Racing:{es:"Carreras",fr:"Course",pt:"Corrida"},"Read more":{es:"Leer m\xe1s",fr:"Plus de d\xe9tails",pt:"Saiba mais"},"Recently viewed":{es:"Art\xedculos vistos recientemente",fr:"R\xe9cemment consult\xe9s",pt:"Visualizado recentemente"},"Redeem code":{es:"Canjear c\xf3digo",fr:"\xc9changer un code",pt:"Inserir c\xf3digo"},"Release date":{es:"Fecha de lanzamiento",fr:"Date de sortie",pt:"Data de lan\xe7amento"},Remove:{es:"Remover",fr:"Retirer",pt:"Remover"},"Remove from Wish List":{es:"Eliminar de la lista de deseos",fr:"Retirer de la liste de souhaits",pt:"Remover da lista de desejos"},"Replacement parts":{es:"Art\xedculos de repuesto",fr:"Pi\xe8ces de rechange",pt:"Pe\xe7as de reposi\xe7\xe3o"},Required:{es:"Requerido",fr:"Obligatoire",pt:"Requerido"},"Required fields":{es:"Campos requeridos",fr:"Requis",pt:"Campos obrigat\xf3rios"},"Role-Playing":{es:"Juego de rol",fr:"Jeu de r\xf4les",pt:"RPG"},"Role-playing":{es:"Juego de rol",fr:"Jeu de r\xf4les",pt:"RPG"},"Sales & deals":{es:"Descuentos y ofertas",fr:"Offres et aubaines",pt:"Descontos e promo\xe7\xf5es"},"Save Data Cloud":{es:"Guardado de datos en la nube",fr:"Nuage de donn\xe9es de sauvegarde",pt:"Dados salvos na nuvem"},Search:{es:"Buscar",fr:"Rechercher",pt:"Pesquisar"},"Search for another address":{es:"Buscar por otras direcciones",fr:"Recherche d'une autre adresse",pt:"Procurar por outro endere\xe7o"},"Search games, hardware, news, etc":{es:"Busca juegos, equipo, noticias y m\xe1s",fr:"Rechercher jeux, mat\xe9riels, nouvelles, etc",pt:"Procurar jogos, hardware, novidades, etc"},"Search Nintendo.com":{es:"Buscar en Nintendo.com",fr:"Rechercher Nintendo.com",pt:"Procurar em Nintendo.com"},"See all":{es:"Ver todo",fr:"Voir tous",pt:"Ver todos"},Shipping:{fr:"Exp\xe9dition"},"Shipping address":{es:"Direcci\xf3n de env\xedo",fr:"Adresse d'exp\xe9dition",pt:"Endere\xe7o de envio"},"Shipping method":{es:"M\xe9todo de env\xedo",fr:"M\xe9thode d'exp\xe9dition",pt:"M\xe9todo de envio"},Shooter:{es:"Disparos",fr:"Jeu de tir",pt:"Jogo de tiro"},"Shop all characters":{es:"Ver todos los personajes",fr:"Magasiner tous les personnages",pt:"Ver todos os personagens"},"Shop all games":{es:"Ver todos los juegos",fr:"Magasiner tous les jeux",pt:"Ver todos os jogos"},"Shop all hardware":{es:"Ver todas las consolas y los accesorios",fr:"Magasiner tous les mat\xe9riels",pt:"Ver todos os consoles e acess\xf3rios"},"Shop all merchandise":{es:"Mira toda la mercanc\xeda",fr:"Magasiner toutes les marchandises",pt:"Comprar todas mercadorias"},"Shop all store exclusives":{es:"Ver todos los art\xedculos exclusivos",fr:"Magasiner toutes les exclusivit\xe9s de la boutique",pt:"Ver todos os produtos exclusivos"},"Shop games":{es:"Compra juegos",fr:"Magasiner des jeux",pt:"Comprar jogos"},"Shop now":{es:"Comprar ya",fr:"Magasiner maintenant",pt:"Comprar agora"},"Shop systems":{es:"Compra consolas",fr:"Magasiner les consoles",pt:"Comprar consoles"},"Shopping cart":{es:"Carrito de compras",fr:"Panier",pt:"Carrinho"},"Show less":{es:"Mostrar menos",fr:"Afficher moins",pt:"Ver menos"},"Show more":{es:"Mostrar m\xe1s",fr:"Afficher plus",pt:"Ver mais"},"Sign out":{es:"Cerrar sesi\xf3n",fr:"Se d\xe9connecter",pt:"Sair"},Simulation:{es:"Simulaci\xf3n",fr:"Simulation",pt:"Simula\xe7\xe3o"},"Smartphone App":{es:"Aplicaci\xf3n para dispositivos inteligentes",fr:"Application pour t\xe9l\xe9phone intelligent",pt:"Aplicativo para dispositivos inteligentes"},"something fun":{es:"algo divertido",fr:"quelque chose de fun",pt:"algo divertido"},Sports:{es:"Deportes",fr:"Sports",pt:"Esporte"},"Start typing to find your address":{es:"Empieza a introducir tu direcci\xf3n para buscarla",fr:"Commencer la saisie pour trouver votre adresse",pt:"Comece a digitar para ver seu endere\xe7o"},State:{es:"Estado","en-CA":"Province",fr:"Province",pt:"Estado"},"Store exclusives":{es:"Exclusivos de la tienda",fr:"Exclusivit\xe9s de la boutique",pt:"Exclusividades da loja"},"Store support":{es:"Soporte de la tienda",fr:"Soutien de la boutique",pt:"Suporte da loja"},Strategy:{es:"Estrategia",fr:"Strat\xe9gie",pt:"Estrat\xe9gia"},"Street address":{es:"Direcci\xf3n",fr:"Adresse",pt:"Endere\xe7o"},Study:{es:"Aprendizaje",fr:"\xc9tude",pt:"Estudo"},Support:{es:"Soporte",fr:"Soutien",pt:"Assist\xeancia"},Tax:{es:"Impuestos",fr:"Taxes",pt:"Impostos"},Teen:{es:"Adolescentes",fr:"Adolescents",pt:"12 - N\xe3o recomendado para menores de 12 (doze) anos"},"The info you're looking for can't be found!":{es:"No se ha podido encontrar la informaci\xf3n que buscas. ",fr:"Les informations que vous recherchez n'ont pas \xe9t\xe9 trouv\xe9es.",pt:"A informa\xe7\xe3o que voc\xea est\xe1 procurando n\xe3o pode ser encontrada."},"This QR Code contains your Nintendo Account information.":{es:"Este c\xf3digo QR contiene los datos relativos a tu cuenta Nintendo.",fr:"Ce QR Code contient les informations de votre compte Nintendo.",pt:"Este c\xf3digo QR cont\xe9m informa\xe7\xf5es de sua conta Nintendo."},"This QR Code is valid for seven days. If the code has expired, please refresh the page. QR Code is a registered trademark of DENSO WAVE INCORPORATED.":{es:"Este c\xf3digo QR es v\xe1lido por siete d\xedas. Si el c\xf3digo ha expirado, vuelve a cargar la p\xe1gina. QR Code is a registered trademark of DENSO WAVE INCORPORATED.",fr:"Ce QR Code est valide pour 7 jours. Si le code expire, veuillez rafra\xeechir la page. QR Code est une marque de commerce d\xe9pos\xe9e de DENSO WAVE INCORPORATED.",pt:"Est\xe9 c\xf3digo QR \xe9 v\xe1lido por sete dias. Se o c\xf3digo estiver vencido, atualize a p\xe1gina. QR Code is a registered trademark of DENSO WAVE INCORPORATED."},"Title (A-Z)":{es:"T\xedtulo (A-Z)",fr:"Titre (A-Z)",pt:"T\xedtulo (A-Z)"},"Title (Z-A)":{es:"T\xedtulo (Z-A)",fr:"Titre (Z-A)",pt:"T\xedtulo (Z-A)"},"Top picks for you":{es:"Seleccionados para ti",fr:"Meilleures s\xe9lections",pt:"Escolhidos para voc\xea"},Toys:{es:"Juguetes",fr:"Jouets",pt:"Brinquedos"},"Track order":{es:"Seguimiento de orden",fr:"Suivre la commande",pt:"Acompanhar o pedido"},Training:{es:"Entrenamiento",fr:"Entra\xeenement",pt:"Treinamento"},Updates:{es:"Actualizaciones",fr:"Mises \xe0 jour",pt:"Atualiza\xe7\xf5es"},"Use original address":{es:"Usar la direcci\xf3n original",fr:"Utiliser l'adresse originale",pt:"Use o endere\xe7o original"},"Use recommended address":{es:"Usar la direcci\xf3n recomendada",fr:"Utiliser l'adresse recommand\xe9e",pt:"Use o endere\xe7o recomendado"},Utility:{es:"Herramientas",fr:"Utilitaires",pt:"Ferramentas"},Video:{es:"Video",fr:"Vid\xe9o",pt:"V\xeddeo"},"Whoops, something went wrong.":{es:"Uy, ocurri\xf3 un problema.",fr:"Oups! Une erreur est survenue.",pt:"Opa, ocorreu um problema."},"Whoops!":{es:"\xa1Uy!",fr:"Oups!",pt:"Opa!"},"Wish List":{es:"Lista de deseos",fr:"Liste des souhaits",pt:"Lista de desejos"},Year:{es:"A\xf1o",fr:"Ann\xe9e",pt:"Ano"},"Your phone number will only be used in cases of delivery issues.":{es:"Tu n\xfamero de tel\xe9fono solamente ser\xe1 utilizado si se presentan problemas con el env\xedo. ",fr:"Votre num\xe9ro de t\xe9l\xe9phone ne sera utilis\xe9 qu\u2019en cas de probl\xe8mes de livraison.",pt:"O seu telefone ser\xe1 usado somente em caso de problemas na entrega."},"ZIP code":{"en-CA":"Postal code",es:"C\xf3digo postal",fr:"Code postal",pt:"C\xf3digo postal"}},i="en-US",o=new Set(["de-DE","en-AU","en-CA","en-GB","en-US","es-AR","es-CL","es-CO","es-ES","es-MX","es-PE","fr-CA","fr-FR","it-IT","ja-JP","nl-NL","pt-BR","pt-PT","ru-RU"]),a=new Map([["de","de-DE"],["en","en-US"],["es","es-MX"],["fr","fr-CA"],["it","it-IT"],["ja","ja-JP"],["nl","nl-NL"],["pt","pt-BR"],["ru","ru-RU"]]),s=new Map([["US","en-US"]]),c=new Map([["AR","ARS"],["AU","AUD"],["BR","BRL"],["CA","CAD"],["CL","CLP"],["CO","COP"],["DE","EUR"],["ES","EUR"],["FR","EUR"],["GB","GBP"],["IT","EUR"],["JP","JPY"],["MX","MXN"],["NL","EUR"],["PE","PEN"],["PT","EUR"],["RU","RUB"],["US","USD"]]),l={SHORT:{day:"2-digit",month:"2-digit",year:"2-digit"},LONG:{day:"numeric",month:"long",year:"numeric"},YEAR:{year:"numeric"}},u={interpolation:/{(\d+)}|\[([^\]]+)\]\(([^)]+)\)/,splitter:/({\d+}|\[[^\]]+\]\([^)]+\))/};class d{constructor({locale:e,dictionaries:t,React:n,wrapLink:o,fallbackOriginal:a=!0}={}){if(e)this.locale=e;else if("undefined"!==typeof document){const e=document.documentElement;this.locale=e.dataset.locale||e.lang}this.locale||(this.locale=i),this.dictionary={...r},t&&this.use(t),this.React=n,this.wrapLink=o,this.fallbackOriginal=a}set locale(e){let[t,n]=e&&e.trim().split(/[-_]/)||[];t&&(t=t.toLowerCase()),n&&(n=n.toUpperCase()),t&&n?e=`${t}-${n}`:a.has(t)?e=a.get(t):t&&!n&&(n=t.toUpperCase(),s.has(n)&&(e=s.get(n))),"es-LA"===e&&(e="es-MX"),o.has(e)?this._locale=e:(this._locale=i,"undefined"!==typeof console&&console.warn(`The provided locale (${e}) is not supported. Defaulting to en-US instead`))}get locale(){return this._locale}get lang(){return this.locale.split("-")[0]}get region(){return this.locale.split("-")[1]}get currency(){return c.get(this.region)}use(e){if(e){Array.isArray(e)||(e=[e]);for(const t of e)Object.assign(this.dictionary,t)}return this}text(e,{locale:t=this.locale,args:n=[]}={}){const[r]=t.split("-"),i=(this.dictionary[e]?.[t]||this.dictionary[e]?.[r]||(this.fallbackOriginal?e:"")).split(u.splitter).filter((e=>e)).map((e=>{const t=u.interpolation.exec(e);if(t){const[,r,i,o]=[...t];if(r)return n[Number(r)]||e;if(i&&o&&"function"===typeof this.wrapLink)return this.wrapLink({text:i,url:o})}return e}));return i.some((e=>this.React?.isValidElement(e)))?this.React.createElement(this.React.Fragment,null,...i):i.join("")}price(e,{locale:t=this.locale,currency:n=this.currency,currencyDisplay:r="symbol",formatZero:i=!1,minimumFractionDigits:o,maximumFractionDigits:a}={}){try{if("string"===typeof e&&(e=Number(e)),0===e&&!i)return this.text("Free",{locale:t});if(isNaN(e))throw new Error("The price argument is not a number");return new Intl.NumberFormat(t,{style:"currency",currency:n,currencyDisplay:r,minimumFractionDigits:o,maximumFractionDigits:a}).format(e)}catch(s){return e}}date(e,{locale:t=this.locale,format:n=l.SHORT,timeZone:r="UTC"}={}){const i=e;if("string"!==typeof e&&"number"!==typeof e||(e=new Date(e)),!(e instanceof Date)||isNaN(e.getTime()))return i;const[o]=t.split("-");return e.toLocaleDateString(o,{...n,timeZone:r})}}},48444:function(e,t,n){"use strict";n.d(t,{D:function(){return i},S:function(){return v},g:function(){return y}});var r=n(34406);const i="en-us",o="en-ca",a="fr-ca",s="es-mx",c="pt-br",l="es-ar",u="es-cl",d="es-co",f="es-pe",p=new Set([l,u,d,f]),h=new Set([s,c,...p]),m=new Set([i,o,a,...h]);new Set(Array.from(m).map((e=>e?.split("-")[0])).filter(Boolean));const g={default:"us",[i]:"us"};[...m].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`}));const v="18cMeDk8McbZSTpTlG20d4";function y(e){return"string"!==typeof e?e:g[e.toLowerCase()]||e.toLowerCase()}r.env.DEV_PREVIEW_MODE},97224:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(39097),i=n.n(r),o=n(48444),a=n(52322);function s(e){const{locale:t,...n}=e;return(0,a.jsx)(i(),{passHref:!0,...n,locale:(0,o.g)(t)})}},64897:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2784),i=n(5632),o=n(32899);function a(){const e=(0,i.useRouter)();return(0,r.useMemo)((()=>({...e,locale:o.go.from(e.locale).toLowerCase().replace("_","-")})),[e])}},32899:function(e,t,n){"use strict";n.d(t,{BB:function(){return A},BV:function(){return ls},Zl:function(){return Ho},ac:function(){return To},V5:function(){return Do},Fv:function(){return ds},f3:function(){return Oo},rs:function(){return Ta},Us:function(){return Ao},go:function(){return xo},v4:function(){return Ra},ae:function(){return zo},s4:function(){return Ua},RD:function(){return d},Rr:function(){return fo},TN:function(){return ns},AH:function(){return Ha},uX:function(){return os},Vo:function(){return wo},U9:function(){return E},yo:function(){return is},mJ:function(){return f},xe:function(){return S},z$:function(){return O},fu:function(){return cs},jD:function(){return Wo},fP:function(){return Ro},ON:function(){return Io},SS:function(){return Ia},hJ:function(){return as},i1:function(){return Da},K8:function(){return Bo},ag:function(){return La},ZQ:function(){return qa},BG:function(){return po},Ei:function(){return rs}});var r=n(2784),i=n.t(r,2),o=n(13980),a=n.n(o);function s(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var l=new WeakSet;function u(){return this.useSessionStorage?sessionStorage:localStorage}var d=class{constructor(e,t){s(this,l);const{ttl:n,useSessionStorage:r}=t||{};this.key=e,this.ttl=n,this.useSessionStorage=r}get(){if("undefined"===typeof window)return null;const e=c(l,this,u).call(this);let t=JSON.parse(e.getItem(this.key));return t&&t.expiresAt<=Date.now()&&(e.removeItem(this.key),t=null),t&&t.value}set(e,t){if("undefined"===typeof window)return null;c(l,this,u).call(this).setItem(this.key,JSON.stringify({value:e,expiresAt:Date.now()+(t??this.ttl)}))}update(e){if("undefined"===typeof window)return null;const t=c(l,this,u).call(this),n=JSON.parse(t.getItem(this.key));n&&n.expiresAt>Date.now()?(n.value=e,t.setItem(this.key,JSON.stringify(n))):this.set(e)}delete(){if("undefined"===typeof window)return null;c(l,this,u).call(this).removeItem(this.key)}get expiresAt(){if("undefined"===typeof window)return null;return JSON.parse(c(l,this,u).call(this).getItem(this.key))?.expiresAt}},f={recentlyViewed:"nintendo.recentlyViewed.cache",oauthSession:"nintendo.oauth.session",guestCartId:"nintendo.guestCartId",graphLastPersisted:"nintendo.graph.lastPersisted",graphCache:"nintendo.graph.cache",featuresSessionId:"nintendo.features.sessionId",checkoutFormCache:"nintendo.checkout.formdata",checkoutPrevFormCache:"nintendo.checkout.prevFormdata",checkoutStateCache:"nintendo.checkout.state",checkoutSessionAuth:"nintendo.checkout.sessionAuth",checkoutErrors:"nintendo.checkout.errors",incorrectLocaleViewed:"nintendo.modal.incorrectLocaleViewed"},p=n(52322);const h="undefined"===typeof window,m=9e5,g=new d(f.oauthSession,{ttl:m});let v,y;const b=new Promise(((e,t)=>{v=e,y=t}));let w;const k=(0,r.createContext)();function S(){return(0,r.useContext)(k)}const A=(0,r.memo)((function({children:e,clientId:t,scope:n,sdk:i,connectOrigin:o,apiOrigin:a,myNintendoOrigin:s,checkoutOrigin:c}){const l=(0,r.useMemo)((()=>({clientId:t,scope:n,clientOrigin:h?null:window.location.origin,responseType:["code","id_token"],sdk:i,connectOrigin:o,apiOrigin:a})),[i,o,a,t,n]),[u,d]=(0,r.useState)({loading:!0,isLoggedIn:!1,clientId:t,connectOrigin:o,myNintendoOrigin:s,checkoutOrigin:c}),f=(0,r.useRef)(),m=(0,r.useRef)(),b=(0,r.useCallback)(((e,t)=>{m.current&&clearTimeout(m.current),f.current&&window.ninAcc.event.unsubscribe(f.current);const n=(e||t)?.response?.sessionState;if(t?.response?.idToken){const e=t.response;g.get()?.idToken!==e.idToken&&g.set(e);const{userId:n,country:r}=function(e){if(!e)return null;const[t]=e.split(".").slice(1,2).map((e=>JSON.parse(window.atob(e.replace(/-/g,"+").replace(/_/g,"/")))));return t?.sub&&{userId:t.sub,country:t.country}}(e.idToken);d((t=>({...t,loading:!1,isLoggedIn:!0,session:e,userId:n,country:r})))}else g.get()?.sessionState!==n&&g.set({sessionState:n}),d((e=>({...e,loading:!1,isLoggedIn:!1,session:null,userId:null,country:null})));f.current=window.ninAcc.event.subscribe("oauth.sessionStateChange",{sessionState:n},(()=>window.ninAcc.oauth.getConnectedStatus(l,b))),m.current=setTimeout((()=>{window.ninAcc.oauth.getConnectedStatus(l,b)}),Math.max(g.expiresAt-Date.now(),0))}),[l,f,d]),S=(0,r.useCallback)((()=>window.ninAcc.oauth.connect(l,b)),[l,b]),A=(0,r.useCallback)((()=>window.ninAcc.oauth.logout(b)),[b]);(0,r.useEffect)((()=>{u.error?y(u.error):u.loading||v()}),[u.loading,u.error]),(0,r.useEffect)((()=>{const e=async()=>{const e=g.get(),{sessionState:t}=await window.ninAcc.oauth.checkSessionState(e?.state);e?.sessionState!==t?window.ninAcc.oauth.getConnectedStatus(l,b):e?.idToken?b(null,{response:e}):b({response:{sessionState:t}})};return document.addEventListener("nintendoReady",e),async function(e){return w||(w=new Promise(((t,n)=>{const r=document.createElement("script");r.onload=t,r.onerror=()=>n(new Error("Failed to load accounts SDK")),r.async=!0,r.src=e,document.body.appendChild(r)}))),await w}(l.sdk).then((()=>window.ninAcc.init(l))).catch((e=>d((t=>({...t,loading:!1,error:e}))))),()=>{document.removeEventListener("nintendoReady",e),f.current&&window.ninAcc.event.unsubscribe(f.current),m.current&&clearTimeout(m.current)}}),[l,m,f,b,d]);const x=(0,r.useMemo)((()=>({...u,promptLogin:S,promptLogout:A})),[u,S,A]);return(0,p.jsx)(k.Provider,{value:x,children:e})}));function x(e){if(e&&"undefined"!==typeof window){window.dataLayer||(window.dataLayer=[]);try{e.ecommerce&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)}catch(t){console.warn("Failed to push analytics event due to:",t)}}}function E(e){"web-vital"==e.label&&x({event:"web-vitals",event_category:"Web Vitals",event_action:e.name,event_value:Math.round("CLS"===e.name?1e3*e.value:e.value),event_label:e.id})}function N(e,t){if(!Array.isArray(e))throw new Error("Invalid items");const[n]=e;if(!n)throw new Error("At least one item is required");return{price_2:n.prices?.minimum?.finalPrice,platform_type:n.platform?.label,ecommerce:{items:e.map(((e,n)=>function(e,t,n){if(!e?.sku)throw new Error("Invalid item");const r=function(e){const t=e.slice(0).sort(((e,t)=>e.level-t.level));return t.reduce(((e,t,n)=>({...e,[`item_category${n>0?n+1:""}`]:t.name})),{})}(e.categories??[]);return{item_id:e.sku,item_name:e.name,item_brand:e.manufacturer||"Nintendo",quantity:e.quantity||1,affiliation:"ncom",price:e.prices?.minimum?.finalPrice,currency:e.prices?.minimum?.currency,index:n,...r,...t&&{item_list_name:t.name,item_list_id:t.id}}}(e,t,e.index??n))),...t&&{item_list_name:t.name,item_list_id:t.id}}}}A.propTypes={children:a().node,clientId:a().string.isRequired,scope:a().arrayOf(a().string).isRequired,env:a().string};function C(e,t){e=e.map(((e,t)=>({...e,index:t})));for(let n=0;nx({event:"view-item-list",...N(e,t)})))},trackSelectItem:function(e,t,n,r,{pageName:i}={}){x({event:"select-item",click_location:i,category_name:t?.name,featureFlag:n,featureFlagVariant:r,...N([e],t)})},trackAddToCart:function(e,t){x({event:"add-to-cart",...N([e],t)})},trackRemoveFromCart:function(e,t){x({event:"remove-from-cart",...N([e],t)})},trackAddToWishlist:function(e,t,{pageName:n}={}){x({event:"add-to-wishlist",click_location:n,...N([e],t)})},trackViewCart:function(e,t){C(e,(e=>x({event:"view-cart",...N(e,t)})))},trackBeginCheckout:function(e,t){C(e,(e=>x({event:"begin-checkout",...N(e,t)})))},trackAddShippingInfo:function(e,t){C(e,(e=>x({event:"add-shipping-info",purchase_type:"physical",...N(e,t)})))},trackAddPaymentInfo:function(e,t,{paymentType:n,pointsApplied:r}={}){C(e,(e=>x({event:"add-payment-info",purchase_type:"physical",payment_type:n,points_applied:r,points_received:0,...N(e,t)})))},trackPurchase:function(e,t,{couponsApplied:n,pointsApplied:r}={}){const i=e.items?.map((e=>e.product?.softwarePublisher)).filter(Boolean).join(", "),o=e.items?.map((e=>({...e.product,quantity:e.quantityOrdered}))).filter(Boolean),a=function(e){return e.reduce(((e,t,n)=>({...e,["coupon"+(n>0?`_${n+1}`:"")]:t})),{})}(n??[]);x({event:"purchase",transaction_id:e.id,affiliation:"Nintendo Store Online",value:e.total?.grandTotal,tax:e.total?.totalTax,shipping:e.total?.totalShipping,currency:e.currency,payment_type:e.paymentMethod?.type,purchase_type:"physical",points_applied:r,points_received:0,publisher_name:i,...a,...N(o,t)})},trackViewPromotion:function(e){C(e,(e=>x({event:"view-promotion",...N(e)})))},trackSelectPromotion:function(e){C(e,(e=>x({event:"select-promotion",...N(e)})))},trackFilterInteraction:function(e,t,n){if(!e)throw new Error("The filter name is required");if(!Array.isArray(t))throw new Error("The filter options must be an array");x({event:"plp-filter-interaction",filter_name:e,filter_name_options:t.join(", "),category_name:n})},trackSortInteraction:function(e,t){if(!e)throw new Error("The sort name is required");x({event:"plp-sort-by",sort_name:e,category_name:t})},trackLoadMoreProducts:function(e){if(!e)throw new Error("The pageName is required");x({event:"plp-load-more",category_name:e})},trackFindRetailers:function(e){if(!e?.sku)throw new Error("Invalid item");x({event:"pdp-find-retailer",item_id_2:e.sku,item_name_2:e.name,purchase_type:"physical"})},trackRetailerMapClick:function(e,t){if(!e?.sku)throw new Error("Invalid item");if(!t)throw new Error("Retailer name is required");x({event:"pdp-retailer-flag-click",item_id_2:e.sku,item_name_2:e.name,purchase_type:"physical",retailer_name:t})},trackRetailerBuyNow:function(e,t){if(!e?.sku)throw new Error("Invalid item");if(!t)throw new Error("Retailer name is required");x({event:"pdp-retailer-buy-now-click",item_id_2:e.sku,item_name_2:e.name,purchase_type:"physical",retailer_name:t})},trackNutritionLabelClick:function(e,t){if(!e?.sku)throw new Error("Invalid item");x({event:"pdp-specification-click",item_id_2:e.sku,item_name_2:e.name,purchase_type:e.nsuid?"digital":"physical",specification_category:t})},trackDlcClick:function(e){if(!e?.sku)throw new Error("Invalid item");x({event:"pdp-dlc-click",item_id_2:e.sku,item_name_2:e.name,purchase_type:"digital",publisher_name:e.softwarePublisher})},trackDownloadDemo:function(e){if(!e?.sku)throw new Error("Invalid item");x({event:"pdp-download-demo",item_id_2:e.sku,item_name_2:e.name,purchase_type:e.nsuid?"digital":"physical",publisher_name:e.softwarePublisher})},trackNewsArticleClick:function(e,t="News Homepage"){if(!e?.title)throw new Error("Invalid article");x({event:"news-article-click",article_name:e.title,article_release_date:e.publishDate,click_location:t})},trackNewsArticleLinkClick:function(e){if(!e?.title)throw new Error("Invalid article");x({event:"news-article-link-click",article_name:e.title,article_release_date:e.publishDate})},trackNewsCategoryFilter:function(e){if(!e)throw new Error("Filter is required");x({event:"news-category-filter",news_filter:e})},trackLoadMoreNews:function(){x({event:"news-load-more"})},trackNavLinkClick:function(e,t,n){if(!e||!t||!n)throw new Error("Missing required arguments");x({event:"navigation-click",nav_location:e,nav_location_level:t,click_location:n})},trackCtaClick:function(e,t){if(!e||!t)throw new Error("Missing required arguments");x({event:"cta-click",category_name:e,click_location:t})},trackAccountSignUp:function(e){if(!e)throw new Error("Page name is required");x({event:"account-signup-click",click_location:e})},trackAccountModalOpen:function(e){if(!e)throw new Error("Page name is required");x({event:"account-modal-click",click_location:e})},trackAccountModalLinkClick:function(e,t){if(!e)throw new Error("Page name is required");if(!t)throw new Error("Link text is required");x({event:"account-modal-details-click",click_location:e,click_text:t})},trackSearchClick:function(e,t,n){if(!e)throw new Error("Search term is required");if(!t)throw new Error("Link text is required");if(!n)throw new Error("Category is required");x({event:"site-search-click",search_term:e,search_click_cta:t,search_menu_option:n})},trackSearchResultsViewed:function(e,t,n){if(!e)throw new Error("Search term is required");if(!t)throw new Error("Category is required");if(null==n)throw new Error("Number of results required");x({event:"search-view-results",search_term:e,search_filter:t,num_search_results:n})},trackSearchCategorySeeAll:function(e){if(!e)throw new Error("Category is required");x({event:"search-category-click",category_name:e})},trackSearchResultClick:function(e,t,n){if(!e?.sku&&!e?.title)throw new Error("Invalid search result");if(!t)throw new Error("Search term is required");if(!n)throw new Error("Category is required");x({event:"search-result-selected",search_term:t,category_name:n,item_id_2:e.sku,item_name_2:e.name,article_name:e.title,article_release_date:e.publishDate,publisher_name:e.softwarePublisher})},trackJoyConShareClick:function(e,t,n,r){if(!e||!t)throw new Error("Both Joy-con colors are required");if(!n||!r)throw new Error("Both Strap colors are required");x({event:"share",combination:`${e}&${t}&${n}&${r}`})}};function O(){return _}var I=n(33379),T=n(2756),M=n(3842),P=n(89130),j=n(26528),D=n.n(j),R=n(22970),L=n(80996);function F(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(Ko){return n.error(Ko)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[G]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=W(t,G);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return K(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(U("iterator")&&(r=W(t,Q)))return new n((function(e){J((function(){if(!e.closed){for(var n,i=F(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){J((function(){if(!e.closed){for(var n=0;n0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(ke(i),")")}return n.connection.key}var o=e;if(t){var a=ke(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===we.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(ke(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=ke;return ke=e,t}});function Ae(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return be(n,r,i,t)})),n}return null}function xe(e){return e.alias?e.alias.value:e.name.value}function Ee(e,t,n){for(var r,i=0,o=t.selections;i1)for(var r=new at,i=1;i=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}n=r.merge(n,t)})),n}var ut=Object.prototype.hasOwnProperty;function dt(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function ft(e,t){if(e.status>=300){Xe(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var pt=n(85717);const ht=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function mt(e){return gt[e.charCodeAt(0)]}const gt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];const vt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>yt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wt("(",yt(e.variableDefinitions,", "),")"),n=yt([e.operation,yt([e.name,t]),yt(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+wt(" = ",n)+wt(" ",yt(r," "))},SelectionSet:{leave:({selections:e})=>bt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=wt("",e,": ")+t;let a=o+wt("(",yt(n,", "),")");return a.length>80&&(a=o+wt("(\n",kt(yt(n,"\n")),"\n)")),yt([a,yt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wt(" ",yt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>yt(["...",wt("on ",e),yt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wt("(",yt(n,", "),")")} on ${t} ${wt("",yt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,pt.LZ)(e):`"${e.replace(ht,mt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+yt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+yt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wt("(",yt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>wt("",e,"\n")+yt(["schema",yt(t," "),bt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wt("",e,"\n")+yt(["scalar",t,yt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt("",e,"\n")+yt(["type",t,wt("implements ",yt(n," & ")),yt(r," "),bt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wt("",e,"\n")+t+(St(n)?wt("(\n",kt(yt(n,"\n")),"\n)"):wt("(",yt(n,", "),")"))+": "+r+wt(" ",yt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wt("",e,"\n")+yt([t+": "+n,wt("= ",r),yt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt("",e,"\n")+yt(["interface",t,wt("implements ",yt(n," & ")),yt(r," "),bt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wt("",e,"\n")+yt(["union",t,yt(n," "),wt("= ",yt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wt("",e,"\n")+yt(["enum",t,yt(n," "),bt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wt("",e,"\n")+yt([t,yt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wt("",e,"\n")+yt(["input",t,yt(n," "),bt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wt("",e,"\n")+"directive @"+t+(St(n)?wt("(\n",kt(yt(n,"\n")),"\n)"):wt("(",yt(n,", "),")"))+(r?" repeatable":"")+" on "+yt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>yt(["extend schema",yt(e," "),bt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>yt(["extend scalar",e,yt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>yt(["extend type",e,wt("implements ",yt(t," & ")),yt(n," "),bt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>yt(["extend interface",e,wt("implements ",yt(t," & ")),yt(n," "),bt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>yt(["extend union",e,yt(t," "),wt("= ",yt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>yt(["extend enum",e,yt(t," "),bt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>yt(["extend input",e,yt(t," "),bt(n)]," ")}};function yt(e,t=""){var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function bt(e){return wt("{\n",kt(yt(e,"\n")),"\n}")}function wt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function kt(e){return wt(" ",e.replace(/\n/g,"\n "))}function St(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var At,xt=Object.assign((function(e){var t=At.get(e);return t||(t=function(e){return Ue(e,vt)}(e),At.set(e,t)),t}),{reset:function(){At=new de.s(fe.Q.print||2e3)}});xt.reset(),!1!==globalThis.__DEV__&&(0,pe.zP)("print",(function(){return At?At.size:0}));var Et={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Nt=function(e,t){return t(e)};function Ct(e,t){for(var n=[],r=2;r=0;--a)t.definitions[a].kind===Ve.h.OPERATION_DEFINITION&&++o;var s=Pt(e),c=function(e){return(0,tt.O)(e)&&e.map(s).some((function(e){return e&&e.remove}))},l=new Map,u=!1,d={enter:function(e){if(c(e.directives))return u=!0,null}},f=Ue(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(c(e.directives))return u=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){l.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===l.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===Ve.h.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,u=!0,null):void 0}},Directive:{leave:function(e){if(s(e))return u=!0,null}}});if(!u)return t;var p=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){p(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},h=new Set;f.definitions.forEach((function(e){e.kind===Ve.h.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){h.add(e)})):e.kind!==Ve.h.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||h.add(e.name.value)})),h.forEach((function(e){p(r(e)).fragmentSpreads.forEach((function(e){h.add(e)}))}));var m={enter:function(e){if(t=e.name.value,!h.has(t)||r(t).removed)return null;var t}};return Mt(Ue(f,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size-1;){if(g=void 0,A=[s.slice(0,m),s.slice(m+a.length)],s=A[1],v=(g=A[0]).indexOf("\r\n\r\n"),y=dt(g.slice(0,v)),(b=y["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(w=g.slice(v))if(k=ft(e,w),Object.keys(k).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if(ct(k)){if(S={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];S=(0,R.pi)({},k.payload)}"errors"in k&&(S=(0,R.pi)((0,R.pi)({},S),{extensions:(0,R.pi)((0,R.pi)({},"extensions"in S?S.extensions:null),(x={},x[et.YG]=k.errors,x))})),t(S)}else t(k);else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):function(e){return function(t){return t.text().then((function(e){return ft(t,e)})).then((function(n){return Array.isArray(n)||ut.call(n,"data")||ut.call(n,"errors")||Xe(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),n}))}}(e)(t).then(o)})).then((function(){g=void 0,n.complete()})).catch((function(e){g=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){g&&g.abort()}}))}))},Vt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Bt(t).request)||this;return n.options=t,n}return(0,R.ZT)(t,e),t}(Le);const $t=()=>Object.create(null),{forEach:Ut,slice:qt}=Array.prototype,{hasOwnProperty:Qt}=Object.prototype;class Gt{constructor(e=!0,t=$t){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return Ut.call(e,(e=>t=t.getChildTrie(e))),Qt.call(t,"data")?t.data:t.data=this.makeData(qt.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&nglobalThis))||Jt((()=>global))||Object.create(null),tn=en[Xt]||Array[Xt]||function(e){try{Object.defineProperty(en,Xt,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Yt++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Zt;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Kt)break;return e!==Zt&&(Zt.slots[this.id]=t),!0}return Zt&&(Zt.slots[this.id]=Kt),!1}getValue(){if(this.hasValue())return Zt.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Zt;Zt={parent:o,slots:i};try{return t.apply(r,n)}finally{Zt=o}}static bind(e){const t=Zt;return function(){const n=Zt;try{return Zt=t,e.apply(this,arguments)}finally{Zt=n}}}static noContext(e,t,n){if(!Zt)return e.apply(n,t);{const r=Zt;try{return Zt=null,e.apply(n,t)}finally{Zt=r}}}}),{bind:nn,noContext:rn}=tn;const on=new tn;const{hasOwnProperty:an}=Object.prototype,sn=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function cn(e){const{unsubscribe:t}=e;"function"===typeof t&&(e.unsubscribe=void 0,t())}const ln=[];function un(e,t){if(!e)throw new Error(t||"assertion failure")}function dn(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function fn(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function pn(e){return e.slice(0)}class hn{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++hn.count}peek(){if(1===this.value.length&&!vn(this))return mn(this),this.value[0]}recompute(e){return un(!this.recomputing,"already recomputing"),mn(this),vn(this)?function(e,t){xn(e),on.withValue(e,gn,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{cn(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(Ko){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,vn(e))return;bn(e)}(e);return fn(e.value)}(this,e):fn(this.value)}setDirty(){this.dirty||(this.dirty=!0,yn(this),cn(this))}dispose(){this.setDirty(),xn(this),wn(this,((e,t)=>{e.setDirty(),En(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ln.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(sn(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),ln.push(this.deps),this.deps=null)}}function mn(e){const t=on.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),vn(e)?kn(t,e):Sn(t,e),t}function gn(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=pn(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!dn(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(i){}}catch(Ko){e.value[1]=Ko}e.recomputing=!1}function vn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function yn(e){wn(e,kn)}function bn(e){wn(e,Sn)}function wn(e,t){const n=e.parents.size;if(n){const r=sn(e.parents);for(let i=0;i0&&e.childValues.forEach(((t,n)=>{En(e,n)})),e.forgetDeps(),un(null===e.dirtyChildren)}function En(e,t){t.parents.delete(e),e.childValues.delete(t),An(e,t)}hn.count=0;const Nn={setDirty:!0,dispose:!0,forget:!0};function Cn(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=on.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(cn(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&an.call(Nn,n)?n:"setDirty";sn(r).forEach((e=>e[i]())),t.delete(e),cn(r)}},r}let _n;function On(...e){return(_n||(_n=new Gt("function"===typeof WeakMap))).lookupArray(e)}const In=new Set;function Tn(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=On,normalizeResult:i,subscribe:o,cache:a=Wt.e}=Object.create(null)){const s="function"===typeof a?new a(t,(e=>e.dispose())):a,c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new hn(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),In.add(s),on.hasValue()||(In.forEach((e=>e.clean())),In.clear()),c};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}var Mn=n(78807),Pn=n(61114),jn=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Tn(se,{max:fe.Q["cache.fragmentQueryDocuments"]||1e3,cache:Pn.k})}return e.prototype.batch=function(e){var t,n=this,r="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,R.pi)((0,R.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,R.pi)((0,R.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,R._T)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,R._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return void 0===i||null===i?r:(n.writeQuery((0,R.pi)((0,R.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return void 0===i||null===i?r:(n.writeFragment((0,R.pi)((0,R.pi)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(jn.prototype.getMemoryInternals=pe.Kb);var Dn=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,R.ZT)(t,e),t}(Error);const Rn=()=>Object.create(null),{forEach:Ln,slice:Fn}=Array.prototype,{hasOwnProperty:zn}=Object.prototype;class Bn{constructor(e=!0,t=Rn){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Ln.call(e,(e=>t=t.getChildTrie(e))),zn.call(t,"data")?t.data:t.data=this.makeData(Fn.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof cr?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Qn.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof cr;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Qn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){ye(e)&&(t[e.__ref]=!0),(0,ae.s)(e)&&Object.keys(e).forEach((function(t){var n=e[t];(0,ae.s)(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),or=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Cn():null,this.keyMaker=new Bn(Ze.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(ar(e,t));var n=Yn(t);n!==t&&this.d(ar(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ar(e,t),"__exists"===t?"forget":"setDirty")},e}();function ar(e,t){return t+"#"+e}function sr(e,t){dr(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new or(i))||this;return a.stump=new lr(a),a.storageTrie=new Bn(Ze.mr),o&&a.replace(o),a}return(0,R.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(ir||(ir={}));var cr=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,R.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){(0,Mn.D)(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,R.pi)((0,R.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Qn.call(this.data,t)?(0,R.pi)((0,R.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ir),lr=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new or(t.group.caching,t.group))||this}return(0,R.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(cr);function ur(e,t,n){var r=e[n],i=t[n];return(0,Mn.D)(r,i)?r:i}function dr(e){return!!(e instanceof ir&&e.group.caching)}var fr=function(){function e(){this.known=new(Ze.sy?WeakSet:Set),this.pool=new Bn(Ze.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,ae.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,ae.s)(e)){var t=function(e){return(0,ae.s)(e)?(0,tt.k)(e)?e.slice(0):(0,R.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,ae.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var l=s.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(e,t){l[e]=o[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function pr(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var hr=function(){function e(e){var t=this;this.knownResults=new(Ze.mr?WeakMap:Map),this.config=(0,Un.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:Zn(e)}),this.canon=e.canon||new fr,this.executeSelectionSet=Tn((function(e){var n,r=e.context.canonizeResults,i=pr(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,R.pi)((0,R.pi)({},o),{result:t.canon.admit(o.result)}):o:(sr(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||fe.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:pr,makeCacheKey:function(e,t,n,r){if(dr(n.store))return n.store.makeCacheKey(e,ye(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Tn((function(e){return sr(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||fe.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(dr(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new fr},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=(0,R.pi)((0,R.pi)({},Pe(Te(n))),o);var d,f=ve(i),p=this.executeSelectionSet({selectionSet:Me(n).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,R.pi)({store:t,query:n,policies:u,variables:o,varString:he(o),canonizeResults:l},er(n,this.config.fragments))});if(p.missing&&(d=[new Dn(mr(p.missing),p.missing,n,o)],!s))throw d[0];return{result:p.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(dr(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(ye(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u=[],d=new at;function f(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var p=new Set(n.selections);p.forEach((function(e){var n,h;if(Qe(e,s))if(Ne(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),g=xe(e);void 0===m?Rt.added(e)||(a=d.merge(a,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat(ye(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):(0,tt.k)(m)?m.length>0&&(m=f(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:o}),g)):e.selectionSet?null!=m&&(m=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:ye(m)?m:i,context:o}),g)):o.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&u.push(((h={})[g]=m,h))}else{var v=le(e,o.lookupFragment);if(!v&&e.kind===Ve.h.FRAGMENT_SPREAD)throw(0,L._K)(9,e.name.value);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(p.add,p)}}));var h={result:it(u),missing:a},m=o.canonizeResults?this.canon.admit(h):(0,qn.J)(h);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new at;function c(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(0,tt.k)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ye(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){(0,ae.s)(n)&&((0,L.kG)(!ye(n),10,function(e,t){return ye(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function mr(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var gr=Object.prototype.toString;function vr(e){return yr(e)}function yr(e,t){switch(gr.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=yr(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=yr(e[n],t)})),r;default:return e}}var br=n(63118),wr=new tn,kr=new WeakMap;function Sr(e){var t=kr.get(e);return t||kr.set(e,t={vars:new Set,dep:Cn()}),t}function Ar(e){Sr(e).vars.forEach((function(t){return t.forgetCache(e)}))}function xr(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){Sr(e).dep.dirty(r),Er(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=wr.getValue();s&&(i(s),Sr(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Sr(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Er(e){e.broadcastWatches&&e.broadcastWatches()}var Nr=Object.create(null);function Cr(e){var t=JSON.stringify(e);return Nr[t]||(Nr[t]=Object.create(null))}function _r(e){var t=Cr(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=Ir(e,(function(e){var i=Pr(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Qn.call(t,e[0])&&(i=Pr(t,e,Mr)),(0,L.kG)(void 0!==i,4,e.join("."),t),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function Or(e){var t=Cr(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=Ir(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return Pr(t,e)}else{var a=n.slice(1);if(i&&Qn.call(i,a)){var s=e.slice(0);return s[0]=a,Pr(i,s)}}else if(r&&(0,tt.O)(r.directives)){var c=n.slice(1),l=r.directives.find((function(e){return e.name.value===c})),u=l&&Ae(l,i);return u&&Pr(u,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function Ir(e,t){var n=new at;return Tr(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function Tr(e){var t=Cr(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){(0,tt.k)(t)?(Tr(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),(0,tt.k)(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function Mr(e,t){return e[t]}function Pr(e,t,n){return n=n||Mr,jr(t.reduce((function e(t,r){return(0,tt.k)(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function jr(e){return(0,ae.s)(e)?(0,tt.k)(e)?e.map(jr):Ir(Object.keys(e).sort(),(function(t){return Pr(e,t)})):e}function Dr(e){return void 0!==e.args?e.args:e.field?Ae(e.field,e.variables):null}var Rr=function(){},Lr=function(e,t){return t.fieldName},Fr=function(e,t,n){return(0,n.mergeObjects)(e,t)},zr=function(e,t){return t},Br=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,R.pi)({dataIdFromObject:Hn},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a=t&&t.storeObject||e,s=(0,R.pi)((0,R.pi)({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=$r(arguments,a);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var u=l((0,R.pi)((0,R.pi)({},e),a),s);if(!(0,tt.k)(u)){o=u;break}l=_r(u)}return o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=(0,R._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Qn.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?Fr:!1===t?zr:e.merge}a(r,t.merge),r.keyFn=!1===i?Rr:(0,tt.k)(i)?_r(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?Lr:(0,tt.k)(s)?Or(s):"function"===typeof s?s:r.keyFn,"function"===typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Lr)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,L.kG)(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Kn);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Qn.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=(0,R._T)(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d1?o:t}:(r=(0,R.pi)({},i),Qn.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&L.kG.warn(7,(0,br.v)(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function Ur(e){return function(t,n){if((0,tt.k)(t)||(0,tt.k)(n))throw(0,L._K)(8);if((0,ae.s)(t)&&(0,ae.s)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(ye(t)&&Xn(n))return e.merge(t.__ref,n),t;if(Xn(t)&&ye(n))return e.merge(t,n.__ref),n;if(Xn(t)&&Xn(n))return(0,R.pi)((0,R.pi)({},t),n)}return n}}function qr(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,R.pi)((0,R.pi)({},e),{clientOnly:t,deferred:n})),i}var Qr=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=_e(r),l=new at;a=(0,R.pi)((0,R.pi)({},Pe(c)),a);var u=(0,R.pi)((0,R.pi)({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:he(a)},er(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!ye(d))throw(0,L._K)(11,i);return u.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=ve(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(ye(c))return;i=c}if(!1!==globalThis.__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===l[Yn(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(ye(o))return;if((0,Mn.D)(o,a))return;if(Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Yn(n),l="".concat(s,".").concat(c);if(Yr.has(l))return;Yr.add(l);var u=[];(0,tt.k)(o)||(0,tt.k)(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||u.includes(t)||u.push(t)}));!1!==globalThis.__DEV__&&L.kG.warn(14,c,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",l,o,a)}(s,i,e,u.store)}))}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Ee(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"===typeof l&&(c.__typename=l);var u=function(){var e=$r(arguments,c,o.variables);if(ye(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField((0,R.pi)((0,R.pi)({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},d=new Set;this.flattenFields(i,r,o,l).forEach((function(e,n){var i,o=xe(n),f=r[o];if(d.add(n),void 0!==f){var p=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),h=Hr(a,p),m=t.processFieldValue(f,n,n.selectionSet?qr(e,!1,!1):e,h),g=void 0;n.selectionSet&&(ye(m)||Xn(m))&&(g=u("__typename",m));var v=s.getMergeFunction(l,n.name.value,g);v?h.info={field:n,typename:l,merge:v}:Kr(a,p),c=e.merge(c,((i={})[p]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Rt.added(n)||s.getReadFunction(l,n.name.value)||!1!==globalThis.__DEV__&&L.kG.error(12,xe(n),r)}));try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),p=f[0],h=f[1];n=n||p,h&&(c=o.merge(c,h))}catch(Ko){if(!n)throw Ko}if("string"===typeof n){var m=ve(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0)return m;if(g.push(i),this.reader&&this.reader.isFresh(r,m,i,o))return m;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,c),v.mergeTree=Wr(v.mergeTree,a),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:c,mergeTree:Zr(a)?void 0:a,fieldNodeSet:d}),m}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,tt.k)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,Hr(r,o));return Kr(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?vr(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Ee(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Bn(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(a){if(Qe(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!(0,tt.O)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=Ae(e,n.variables);r&&!1===r.if||(l=!0)}})),Ne(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,qr(n,s,l))}else{var d=le(a,n.lookupFragment);if(!d&&a.kind===Ve.h.FRAGMENT_SPREAD)throw(0,L._K)(13,a.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,qr(n,s,l))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!ye(n)){var s,c=(0,tt.k)(n)||!ye(t)&&!Xn(t)?void 0:t,l=n;c&&!i&&(i=[ye(c)?c.__ref:c]);var u=function(e,t){return(0,tt.k)(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=u(c,t),o=u(l,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&(0,L.kG)(i.pop()===t)}})),s&&(n=(0,tt.k)(l)?l.slice(0):(0,R.pi)({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),Gr=[];function Hr(e,t){var n=e.map;return n.has(t)||n.set(t,Gr.pop()||{map:new Map}),n.get(t)}function Wr(e,t){if(e===t||!t||Zr(t))return e;if(!e||Zr(e))return t;var n=e.info&&t.info?(0,R.pi)((0,R.pi)({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,Wr(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,Wr(t.map.get(n),e.map.get(n)))}))}return i}function Zr(e){return!e||!(e.info||e.map.size)}function Kr(e,t){var n=e.map,r=n.get(t);r&&Zr(r)&&(Gr.push(r),n.delete(t))}var Yr=new Set;var Jr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new $n(Rt),n.assumeImmutableResults=!0,n.makeVar=xr,n.txCount=0,n.config=function(e){return(0,Un.o)(Wn,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Br({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,R.ZT)(t,e),t.prototype.init=function(){var e=this.data=new ir.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new Qr(this,this.storeReader=new hr({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Zn(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=Tn((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||fe.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(dr(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,he({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,R.pi)((0,R.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(Ko){if(Ko instanceof Dn)return null;throw Ko}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Qn.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,R.pi)((0,R.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){Sr(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Ar(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;he.reset(),xt.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ye(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(Ko){!1!==globalThis.__DEV__&&L.kG.warn(Ko)}},t.prototype.evict=function(e){if(!e.id){if(Qn.call(e,"id"))return!1;e=(0,R.pi)((0,R.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),he.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Ar(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return s&&!this.txCount&&this.broadcastWatches((0,R.pi)((0,R.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches((0,R.pi)((0,R.pi)({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&(0,Mn.D)(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(jn);!1!==globalThis.__DEV__&&(Jr.prototype.getMemoryInternals=pe.q4);var Xr=Le.execute,ei=n(12674);function ti(e,t,n){return new oe((function(r){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then((function(){return r.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function ni(e){var t=ri(e);return(0,tt.O)(t)}function ri(e){var t=(0,tt.O)(e.errors)?e.errors.slice(0):[];return st(e)&&(0,tt.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var ii=n(99635);function oi(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function ai(e){function t(t){Object.defineProperty(e,t,{value:oe})}return Ze.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function si(e){return e&&"function"===typeof e.then}var ci=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),oi(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),oi(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?si(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),oi(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new oe(t)]),si(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,R.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(oe);ai(ci);var li=n(64368);function ui(e,t,n,r){var i=t.data,o=(0,R._T)(t,["data"]),a=n.data,s=(0,R._T)(n,["data"]);return(0,Mn.Z)(o,s)&&di(Me(e).selectionSet,i,a,{fragmentMap:ce(Ie(e)),variables:r})}function di(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!Qe(e,r.variables))return!0;if(fi(e))return!0;if(Ne(e)){var o=xe(e),a=t&&t[o],s=n&&n[o],c=e.selectionSet;if(!c)return(0,Mn.Z)(a,s);var l=Array.isArray(a),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=a.length;if(s.length!==d)return!1;for(var f=0;f0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(oe);function vi(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function yi(e){!1!==globalThis.__DEV__&&L.kG.error(23,e.message,e.stack)}function bi(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&L.kG.debug(24,e)}function wi(e){return"network-only"===e||"no-cache"===e||"standby"===e}function ki(e){return e.kind===Ve.h.FIELD||e.kind===Ve.h.FRAGMENT_SPREAD||e.kind===Ve.h.INLINE_FRAGMENT}ai(gi);var Si=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=rt(t.resolvers,e)})):this.resolvers=rt(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,R.mG)(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,R.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return(0,R.pi)((0,R.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Ge(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Ft(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,R.pi)((0,R.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,R.mG)(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,R.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,R.pi)((0,R.pi)({},t),e.exportedVariables)}))]:[2,(0,R.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Ue(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return $e}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Lt(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,R.mG)(this,arguments,void 0,(function(e,t,n,r,i,o){var a,s,c,l,u,d,f,p,h,m;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,R.Jh)(this,(function(g){return a=Me(e),s=Ie(e),c=ce(s),l=this.collectSelectionsToResolve(a,c),u=a.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(f=this).cache,h=f.client,m={fragmentMap:c,context:(0,R.pi)((0,R.pi)({},n),{cache:p,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return(0,R.mG)(this,void 0,void 0,(function(){var i,o,a,s,c,l=this;return(0,R.Jh)(this,(function(u){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],c=function(e){return(0,R.mG)(l,void 0,void 0,(function(){var c,l;return(0,R.Jh)(this,(function(u){return(t||r.selectionsToResolve.has(e))&&Qe(e,a)?Ne(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;"undefined"!==typeof t&&s.push(((n={})[xe(e)]=t,n))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(c=i[e.name.value],(0,L.kG)(c,18,e.name.value)):c=e,c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,o))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return it(s)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return(0,R.mG)(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,f,p=this;return(0,R.Jh)(this,(function(h){return n?(i=r.variables,o=e.name.value,a=xe(e),s=o!==a,c=n[a]||n[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(f=d[s?o:a])&&(l=Promise.resolve(wr.withValue(this.cache,f,[n,Ae(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(n){var i,o;if(void 0===n&&(n=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?p.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),Ue(i,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach((function(e){n(e)&&ki(e)&&o.add(e)}))},FragmentSpread:function(r,i,a,s,c){var l=t[r.name.value];(0,L.kG)(l,19,r.name.value);var u=e(l);u.size>0&&(c.forEach((function(e){n(e)&&ki(e)&&o.add(e)})),o.add(r),u.forEach((function(e){o.add(e)})))}})}return r.get(i)}(e)},e}(),Ai=new(Ze.mr?WeakMap:Map);function xi(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return Ai.set(e,(Ai.get(e)+1)%1e15),n.apply(this,arguments)})}function Ei(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ni=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Ai.has(n)||(Ai.set(n,0),xi(n,"evict"),xi(n,"modify"),xi(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||li.Ie.loading;return this.variables&&this.networkStatus!==li.Ie.loading&&!(0,Mn.D)(this.variables,e.variables)&&(t=li.Ie.setVariables),(0,Mn.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Ei(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,Mn.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;(!e||e.complete||(null===(t=this.observableQuery)||void 0===t?void 0:t.options.returnPartialData)||r&&r.complete)&&(this.updateLastDiff(e),this.dirty||(0,Mn.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():vi(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Ei(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,li.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,R.pi)((0,R.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,Mn.D)(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Ai.get(this.cache)&&(0,Mn.D)(t,n.variables)&&(0,Mn.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new at,a=(0,tt.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,tt.O)(e.incremental)){var s=lt(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Ci(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:Ai.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&(0,Mn.D)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=li.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=li.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Ci(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!ni(e);return!r&&n&&e.data&&(r=!0),r}var _i=Object.prototype.hasOwnProperty,Oi=Object.create(null),Ii=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=void 0!==o&&o,s=e.onBroadcast,c=e.ssrMode,l=void 0!==c&&c,u=e.clientAwareness,d=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults,h=void 0===p?!!t.assumeImmutableResults:p,m=e.defaultContext,g=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new de.s(fe.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Bn(!1);var v=new $n((function(e){return g.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,this.localState=f||new Si({cache:t}),this.ssrMode=l,this.assumeImmutableResults=h,this.documentTransform=i?v.concat(i).concat(v):v,this.defaultContext=m||Object.create(null),(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches((0,L._K)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,R.mG)(this,arguments,void 0,(function(e){var t,n,r,i,o,a,s,c=e.mutation,l=e.variables,u=e.optimisticResponse,d=e.updateQueries,f=e.refetchQueries,p=void 0===f?[]:f,h=e.awaitRefetchQueries,m=void 0!==h&&h,g=e.update,v=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":y,w=e.errorPolicy,k=void 0===w?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":w,S=e.keepRootFields,A=e.context;return(0,R.Jh)(this,(function(e){switch(e.label){case 0:return(0,L.kG)(c,26),(0,L.kG)("network-only"===b||"no-cache"===b,27),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),n=this.getDocumentInfo(c).hasClientExports,l=this.getVariables(c,l),n?[4,this.localState.addExportedVariables(c,l,A)]:[3,2];case 1:l=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:l,loading:!0,error:null}),i=u&&this.markMutationOptimistic(u,{mutationId:t,document:c,variables:l,fetchPolicy:b,errorPolicy:k,context:A,updateQueries:d,update:g,keepRootFields:S}),this.broadcastQueries(),o=this,[2,new Promise((function(e,n){return ti(o.getObservableFromLink(c,(0,R.pi)((0,R.pi)({},A),{optimisticResponse:i?u:void 0}),l,!1),(function(e){if(ni(e)&&"none"===k)throw new et.cA({graphQLErrors:ri(e)});r&&(r.loading=!1,r.error=null);var n=(0,R.pi)({},e);return"function"===typeof p&&(p=p(n)),"ignore"===k&&ni(n)&&delete n.errors,o.markMutationResult({mutationId:t,result:n,document:c,variables:l,fetchPolicy:b,errorPolicy:k,context:A,update:g,updateQueries:d,awaitRefetchQueries:m,refetchQueries:p,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:S})})).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){r&&(r.loading=!1,r.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),n(e instanceof et.cA?e:new et.cA({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Ci(r,e.errorPolicy)){if(st(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),st(r)&&(0,tt.O)(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=lt(a.result,r)),"undefined"!==typeof s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&_i.call(c,s)){var l=c[s],u=n.queries.get(o),d=u.document,f=u.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=l(h,{mutationResult:r,queryName:d&&Oe(d)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a,s=e.update,c=!(st(a=r)||function(e){return"hasNext"in e&&"data"in e}(a))||st(r)&&!r.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=(0,R.pi)((0,R.pi)({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}c&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables,{IGNORE:Oi}):e;return r!==Oi&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,R.pi)((0,R.pi)({},t),{result:{data:r}}),e)}catch(i){!1!==globalThis.__DEV__&&L.kG.error(i)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:He(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Ge(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:Dt([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Pe(_e(e)),asQuery:(0,R.pi)((0,R.pi)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,R.pi)((0,R.pi)({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,R.pi)((0,R.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);"undefined"===typeof(e=(0,R.pi)((0,R.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new Ni(this),r=new gi({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),(0,L.kG)(e.query,28),(0,L.kG)("Document"===e.query.kind,29),(0,L.kG)(!e.returnPartialData,30),(0,L.kG)(!e.pollInterval,31),this.fetchQuery(t,(0,R.pi)((0,R.pi)({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,L._K)(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=li.Ie.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"===typeof e?r.set(e,!1):(n=e,(0,ae.s)(n)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e),!1):(0,ae.s)(e)&&e.query&&i.add(e))})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=(0,ii.X)("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new gi({queryManager:t,queryInfo:i,options:(0,R.pi)((0,R.pi)({},e),{fetchPolicy:"network-only"})});(0,L.kG)(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),!1!==globalThis.__DEV__&&r.size&&r.forEach((function(e,t){e||!1!==globalThis.__DEV__&&L.kG.warn("string"===typeof t?33:34,t)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,c=void 0===s?{}:s;n=this.transform(n),a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,c,e).map((function(i){"no-cache"!==r&&(Ci(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=ni(i),s=(0,et.ls)(i);if(a||s){var c={};if(a&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[et.YG]),"none"===o||s)throw new et.cA(c)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,c).then(l);return new oe((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.getDocumentInfo(e),c=s.serverQuery,l=s.clientQuery;if(c){var u=this.inFlightLinkObservables,d=this.link,f={query:c,variables:n,operationName:Oe(c)||void 0,context:this.prepareContext((0,R.pi)((0,R.pi)({},t),{forceFetch:!r}))};if(t=f.context,r){var p=xt(c),h=he(n),m=u.lookup(p,h);if(!(o=m.observable)){var g=new ci([Xr(d,f)]);o=m.observable=g,g.beforeNext((function(){u.remove(p,h)}))}}else o=new ci([Xr(d,f)])}else o=new ci([oe.of({data:{}})]),t=this.prepareContext(t);return l&&(o=ti(o,(function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return ti(this.getObservableFromLink(i,n.context,n.variables),(function(o){var a=ri(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new et.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:li.Ie.ready};return s&&"ignore"!==n.errorPolicy&&(c.errors=a,c.networkStatus=li.Ie.error),c}),(function(t){var n=(0,et.MS)(t)?t:new et.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=li.Ie.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?l&&l.fetchPolicy||"cache-first":u,f=t.errorPolicy,p=void 0===f?l&&l.errorPolicy||"none":f,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,b=void 0===y?{}:y,w=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:v,context:b}),k=function(e){w.variables=e;var r=i.fetchQueryByPolicy(c,w,n);return"standby"!==w.fetchPolicy&&r.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),r},S=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){S(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(w.query).hasClientExports)o=new ci(this.localState.addExportedVariables(w.query,w.variables,w.context).then(k).then((function(e){return e.sources}))),a=!0;else{var A=k(w.variables);a=A.fromLink,o=new ci(A.sources)}return o.promise.then(S,S),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,ii.X)("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Ni&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var p=function(){return e.getDiff()},h=function(t,n){void 0===n&&(n=e.networkStatus||li.Ie.loading);var a=t.result;!1===globalThis.__DEV__||l||(0,Mn.D)(a,{})||bi(t.missing);var s=function(e){return oe.of((0,R.pi)({data:e,loading:(0,li.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===c&&n===li.Ie.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:n===li.Ie.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{query:i,variables:o,context:u,fetchPolicy:a,errorPolicy:c})},v=d&&"number"===typeof f&&f!==n&&(0,li.Oj)(n);switch(a){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[h(y,e.markReady())]}:l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=p()).complete||l||v?{fromLink:!0,sources:[h(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[h(p(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[h(p()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return v?{fromLink:!0,sources:[h(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ni(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,R.pi)((0,R.pi)((0,R.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),Ti=n(58769),Mi=!1,Pi=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,L._K)(15);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,c=void 0!==s&&s,l=e.ssrForceFetchDelay,u=void 0===l?0:l,d=e.connectToDevTools,f=void 0===d?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,p=e.queryDeduplication,h=void 0===p||p,m=e.defaultOptions,g=e.defaultContext,v=e.assumeImmutableResults,y=void 0===v?o.assumeImmutableResults:v,b=e.resolvers,w=e.typeDefs,k=e.fragmentMatcher,S=e.name,A=e.version,x=e.link;x||(x=n?new Vt({uri:n,credentials:r,headers:i}):Le.empty()),this.link=x,this.cache=o,this.disableNetworkFetches=c||u>0,this.queryDeduplication=h,this.defaultOptions=m||Object.create(null),this.typeDefs=w,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ei.i,this.localState=new Si({cache:o,client:this,resolvers:b,fragmentMatcher:k}),this.queryManager=new Ii({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:a,queryDeduplication:h,ssrMode:c,clientAwareness:{name:S,version:A},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),f&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"===typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}Mi||!1===globalThis.__DEV__||(Mi=!0,setTimeout((function(){if("undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"===typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&L.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,Ti.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,R.pi)((0,R.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,Ti.J)(this.defaultOptions.query,e)),(0,L.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,R.pi)((0,R.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,Ti.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Xr(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){!1!==globalThis.__DEV__&&L.kG.debug(17,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Pi.prototype.getMemoryInternals=pe.su);var ji=n(38421),Di=n(42370),Ri=function(e){var t=e.client,n=e.children,r=(0,Di.K)(),i=ji.useContext(r),o=ji.useMemo((function(){return(0,R.pi)((0,R.pi)({},i),{client:t||i.client})}),[i,t]);return(0,L.kG)(o.client,46),ji.createElement(r.Provider,{value:o},n)};function Li(e){var t=Object.create(null),n=Object.create(null);return(0,tt.O)(e)&&e.forEach((function(e){var r;t[e.message]=e,"string"==typeof(null===(r=e.extensions)||void 0===r?void 0:r.code)&&(n[e.extensions.code]=e)})),{persistedQueryNotSupported:!(!t.PersistedQueryNotSupported&&!n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!(!t.PersistedQueryNotFound&&!n.PERSISTED_QUERY_NOT_FOUND)}}var Fi={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};var zi=function(e){var t;function n(){t=void 0}(0,L.kG)(e&&("function"===typeof e.sha256||"function"===typeof e.generateHash),40);var r=(0,Un.o)(Fi,e),i=r.sha256,o=r.generateHash,a=void 0===o?function(e){return Promise.resolve(i(xt(e)))}:o,s=r.disable,c=r.retry,l=r.useGETForHashedQueries,u=!0,d=function(e){return new Promise((function(t){return t(a(e))}))};return Object.assign(new Le((function(e,r){(0,L.kG)(r,41);var i=e.query;return new oe((function(o){var a,f,p=!1,h=!1,m=function(t,i){var o=t.response,l=t.networkError;if(!p&&(o&&o.errors||l)){p=!0;var d=[],m=o&&o.errors;(0,tt.O)(m)&&d.push.apply(d,m);var v=void 0;"string"!==typeof(null===l||void 0===l?void 0:l.result)&&(v=l&&l.result&&l.result.errors),(0,tt.O)(v)&&d.push.apply(d,v);var y={response:o,networkError:l,operation:e,graphQLErrors:(0,tt.O)(d)?d:void 0,meta:Li(d)};if((u=!s(y))||n(),c(y))return a&&a.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:u},fetchOptions:{method:"POST"}}),h&&e.setContext({fetchOptions:f}),void(a=r(e).subscribe(g))}i()},g={next:function(e){m({response:e},(function(){return o.next(e)}))},error:function(e){m({networkError:e},(function(){return o.error(e)}))},complete:o.complete.bind(o)};return e.setContext({http:{includeQuery:!u,includeExtensions:u}}),l&&u&&!function(e){return e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))}(e)&&(e.setContext((function(e){var t=e.fetchOptions,n=void 0===t?{}:t;return f=n,{fetchOptions:(0,R.pi)((0,R.pi)({},n),{method:"GET"})}})),h=!0),u?function(e){if(!e||"object"!==typeof e)return d(e);t||(t=new de.s(fe.Q["PersistedQueryLink.persistedQueryHashes"]||2e3));var n=t.get(e);return n||t.set(e,n=d(e)),n}(i).then((function(t){e.extensions.persistedQuery={version:1,sha256Hash:t},a=r(e).subscribe(g)})).catch(o.error.bind(o)):a=r(e).subscribe(g),function(){a&&a.unsubscribe()}}))})),{resetHashCache:n},!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{PersistedQueryLink:{persistedQueryHashes:null!==(e=null===t||void 0===t?void 0:t.size)&&void 0!==e?e:0}}}}:{})};var Bi=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]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]this.maxSize&&!this.paused?[4,this.purge()]:[3,4];case 3:return n.sent(),this.paused=!0,[2];case 4:return this.paused?[2]:[4,this.storage.write(e)];case 5:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,7];case 6:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 7:return[2]}}))}))},e.prototype.restore=function(){return Zi(this,void 0,void 0,(function(){var e,t;return Ki(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},e.prototype.purge=function(){return Zi(this,void 0,void 0,(function(){var e;return Ki(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},e}(),Ji=Yi,Xi=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i{},uo=(0,r.createContext)({createCache:lo,clearAllCache:lo});function fo({children:e}){const t=(0,r.useRef)(new Map),n=(0,r.useCallback)(((e,n)=>{if(!t.current.get(e)){const r=new d(e,n);t.current.set(e,r)}return t.current.get(e)}),[]),i=(0,r.useCallback)(((e,t)=>{for(let r of e){n(r,t).delete()}}),[n]),o=(0,r.useCallback)((()=>{for(let[,e]of t.current)e.delete()}),[]),a=(0,r.useMemo)((()=>({createOrGetCache:n,clearAllCache:o,clearCacheByKeys:i})),[n,o,i]);return(0,p.jsx)(uo.Provider,{value:a,children:e})}function po(e,t){const{createOrGetCache:n,...i}=(0,r.useContext)(uo);if(e){return{webCache:n(e,t),...i}}return i}fo.propTypes={children:o.node};var ho={AvailableShippingMethod:{keyFields:["carrierCode","methodCode"],merge:!1},AdvisoryRatings:{merge:!0},Cart:{fields:{items:{merge:(e,t)=>t}}},CartPrices:{merge:!0},CloudinaryAsset:{merge:!0},ContentDescriptor:{keyFields:["id","locale"]},ContentRating:{keyFields:["id","locale"]},Country:{keyFields:["id","locale"]},Customer:{merge:!0,keyFields:[],fields:{orderHistory:{merge:!0},recentlyViewed:{merge:!1},wishList:{keyArgs:["pageSize"],merge(e={},t){const{items:n=[]}=e,{items:r,...i}=t,o=new Set(n.map((e=>e.__ref)));return{...i,items:r.some((e=>o.has(e.__ref)))?r:[...n,...r]}}}}},EshopDetails:{merge:!0},Facets:{merge:!0},Media:{keyFields:["id","locale"]},MediaGallery:{keyFields:["id","locale"]},NewsArticle:{keyFields:["id","locale"]},NintendoDirect:{keyFields:["id","locale"]},NintendoDirectHeadline:{keyFields:["id","locale"]},OrderHistory:{totals:{merge:!0},orders:{merge:!1}},Page:{keyFields:["id","locale"]},Platform:{merge:!0},Price:{merge:!0},PriceRange:{merge:!0},Query:{fields:{features:{merge:(e,t)=>t}}},RichText:{merge:!0},SEOMetadata:{keyFields:["id","locale"]},StoreOrder:{keyFields:["number"]},StoreProduct:{keyFields:["sku","locale"]},WishlistEntry:{keyFields:["category","id"]}};const mo="undefined"===typeof window,go=new d(f.graphLastPersisted,{ttl:m});async function vo(e){if(mo){return(await Promise.resolve().then(n.t.bind(n,71941,23))).createHash("sha256").update(e).digest("hex")}if(window.crypto){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("");return r}}let yo,bo;function wo({uri:e,cache:t,appName:n,appVersion:r,authorization:i={},connectToDevTools:o=!1}){if(!yo||mo){const c=new Vt({uri:e,ssrMode:mo,fetch:D()}),l=zi({useGETForHashedQueries:!0,sha256:vo}),u=(s=async(e,t)=>{if(!mo&&t.authenticated){await b;const e=g.get();if(e&&!e.accessToken){const t=await async function({code:e,idToken:t,excludeCustomerToken:n}){return ko||(ko=yo.mutate({mutation:P.ZP` mutation GenerateTokens( $code: String! $excludeCustomerToken: Boolean = false ) { tokens: generateTokens(code: $code) { accessToken customerToken @skip(if: $excludeCustomerToken) } } `,variables:{code:e,excludeCustomerToken:n},context:{headers:{authorization:`Bearer ${t}`}},fetchPolicy:"no-cache",errorPolicy:"all"}).then((({data:e})=>e.tokens)).catch((()=>null)).finally((()=>ko=null))),await ko}({...e,...i});t&&g.update(Object.assign(e,t))}e?.idToken&&(t.headers={...t.headers,authorization:`Bearer ${e.idToken}`},e.accessToken&&(t.headers["x-access-token"]=e.accessToken),e.customerToken&&(t.headers["x-customer-token"]=e.customerToken))}return t.preview&&(t.headers={...t.headers,"x-preview-token":t.preview}),t},new Le((function(e,t){var n=(0,R._T)(e,[]);return new oe((function(r){var i,o=!1;return Promise.resolve(n).then((function(t){return s(t,e.getContext())})).then(e.setContext).then((function(){o||(i=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){o=!0,i&&i.unsubscribe()}}))}))),d=new Le(((e,t)=>{const{authenticated:n,headers:r}=e.getContext();return n&&!r?.authorization?null:t(e)})),p=Le.from([l,u,d,c]);t||(t=new Jr({typePolicies:ho}),mo||(go.get()||(localStorage.removeItem(f.graphCache),go.set(!0)),bo=new co(localStorage),a={cache:t,storage:bo,key:f.graphCache},new oo(a).restoreSync())),yo=new Pi({uri:e,cache:t,link:p,connectToDevTools:o,name:n,version:r})}var a,s;return yo}let ko=null;const So=P.ZP` fragment CustomerFragment on Customer { id } `,Ao=(0,r.memo)((function({client:e,children:t}){const n=S(),{clearAllCache:i,clearCacheByKeys:o}=po();return(0,r.useEffect)((()=>{if(n.loading)return;const t=e.cache.readFragment({id:"Customer:{}",fragment:So});null!=t?.id&&t.id!==n.userId&&(e.cache.evict({id:"Customer:{}"}),e.cache.gc(),i(),o([f.checkoutFormCache,f.checkoutPrevFormCache,f.checkoutStateCache],{useSessionStorage:!0}))}),[e,n.loading,n.userId,i,o]),(0,p.jsx)(Ri,{client:e,children:t})}));Ao.propTypes={client:a().object,children:a().node};const xo={cz_CZ:"cz_CZ",da_DK:"da_DK",de_AT:"de_AT",de_CH:"de_CH",de_DE:"de_DE",el_GR:"el_GR",en_AU:"en_AU",en_CA:"en_CA",en_GB:"en_GB",en_NZ:"en_NZ",en_US:"en_US",en_ZA:"en_ZA",es_AR:"es_AR",es_CL:"es_CL",es_CO:"es_CO",es_ES:"es_ES",es_MX:"es_MX",es_PE:"es_PE",es_US:"es_MX",fr_BE:"fr_BE",fr_CA:"fr_CA",fr_CH:"fr_CH",fr_FR:"fr_FR",fr_US:"fr_US",ga_IE:"ga_IE",he_IL:"he_IL",hu_HU:"hu_HU",it_CH:"it_CH",it_IT:"it_IT",ja_JP:"ja_JP",nl_BE:"nl_BE",nl_NL:"nl_NL",no_NO:"no_NO",pl_PL:"pl_PL",pt_BR:"pt_BR",pt_PT:"pt_PT",pt_US:"pt_US",ru_RU:"ru_RU",sk_SK:"sk_SK",sv_FI:"sv_FI",sv_SW:"sv_SE",us:"en_US",from(e){if("string"===typeof e){if("default"===e)return xo.en_US;const[t,n]=e.split(/[-_]/),r=[t?.toLowerCase(),n?.toUpperCase()].filter(Boolean).join("_");if(xo[r])return xo[r]}throw new Error(`Unsupported locale for Graph: ${e}`)}};var Eo=P.ZP` fragment CustomerAddressFields on CustomerAddress { city company country { id locale } defaultBilling defaultShipping id firstName fullName lastName postcode region { code id name } street telephone } `,No=P.ZP` ${Eo} fragment CustomerFields on Customer { addresses { ...CustomerAddressFields } analyticsPermissions { internalAnalysis targetMarketing } birthday country createdAt email firstName fullName gender id isChild lastName locale membershipStatus { active } mii { favoriteColor etag id image imageOrigin } nickname pointsWallet { gold { total } platinum { total } } productsOwned { quantity sku } region restrictions { eshop } } `;var Co=e=>({queries:{Customer:P.ZP` ${e?"":No} query Customer($locale: Locale!) { customer(locale: $locale) { ${e||"...CustomerFields"} } } `,VerifyUrl:P.ZP` query CustomerVerifyUrl($locale: Locale!) { customer(locale: $locale) { verifyUrl } } `},mutations:{CreateCustomerAddress:P.ZP` ${Eo} mutation CreateCustomerAddress( $address: CustomerAddressInput! $locale: Locale! ) { address: createCustomerAddress(address: $address, locale: $locale) { ...CustomerAddressFields } } `,UpdateCustomerAddress:P.ZP` ${Eo} mutation UpdateCustomerAddress( $id: ID! $address: CustomerAddressInput! $locale: Locale! ) { address: updateCustomerAddress( id: $id address: $address locale: $locale ) { ...CustomerAddressFields } } `,DeleteCustomerAddress:P.ZP` mutation DeleteCustomerAddress($id: ID!, $locale: Locale!) { deleted: deleteCustomerAddress(id: $id, locale: $locale) } `}});const _o=(0,r.createContext)({loading:!0});function Oo({children:e,locale:t,fields:n}={}){t=t?xo.from(t):xo.en_US;const i=S(),[o,a]=(0,r.useState)(!1),[s,c]=(0,r.useState)({loading:!0,setCalled:a}),{queries:l,mutations:u}=(0,r.useMemo)((()=>Co(n)),[n]),{loading:d,data:f,errors:h}=(0,T.a)(l.Customer,{context:{authenticated:!0},variables:{locale:t},skip:!o||i.loading||!i.isLoggedIn,errorPolicy:"all"}),[m]=(0,M.t)(l.VerifyUrl,{context:{authenticated:!0},variables:{locale:t},errorPolicy:"all"}),g=(0,r.useCallback)((async()=>{const{data:e,error:t}=await m();if(t)throw new Error(t.message);return e?.customer?.verifyUrl}),[m]),[v]=(0,I.D)(u.CreateCustomerAddress,{context:{authenticated:!0},variables:{locale:t},update(e,{data:n}){const r=e.readQuery({query:l.Customer,variables:{locale:t}});if(!r||!n?.address)return;const{defaultBilling:i,defaultShipping:o}=n.address,a=r.customer.addresses.map((e=>({...e,defaultBilling:!i&&e.defaultBilling,defaultShipping:!o&&e.defaultShipping}))),s={...r,customer:{...r.customer,addresses:[...a,n.address]}};e.writeQuery({query:l.Customer,variables:{locale:t},data:s})}}),y=(0,r.useCallback)((e=>v({variables:{address:e}})),[v]),[b]=(0,I.D)(u.UpdateCustomerAddress,{context:{authenticated:!0},variables:{locale:t},update(e,{data:n}){const r=e.readQuery({query:l.Customer,variables:{locale:t}});if(!r||!n?.address)return;const{defaultBilling:i,defaultShipping:o}=n.address,a={...r,customer:{...r.customer,addresses:r.customer.addresses.map((e=>e.id===n.address.id?n.address:{...e,defaultBilling:!i&&e.defaultBilling,defaultShipping:!o&&e.defaultShipping}))}};e.writeQuery({query:l.Customer,variables:{locale:t},data:a})}}),w=(0,r.useCallback)(((e,t)=>b({variables:{id:e,address:t}})),[b]),[k]=(0,I.D)(u.DeleteCustomerAddress,{context:{authenticated:!0},variables:{locale:t},update(e,{data:n},{variables:r}){const i=e.readQuery({query:l.Customer,variables:{locale:t}});if(!i||!n?.deleted)return;const o={...i,customer:{...i.customer,addresses:i.customer.addresses.filter((({id:e})=>e!==r.id))}};e.writeQuery({query:l.Customer,variables:{locale:t},data:o})}}),A=(0,r.useCallback)((({id:e})=>k({variables:{id:e}})),[k]);return(0,r.useEffect)((()=>{c((e=>({...e,loading:!o||(i.loading||d),data:d?null:f?.customer,errors:h,createAddress:y,updateAddress:w,deleteAddress:A,getVerifyUrl:g})))}),[i.loading,o,d,f,h,y,w,A,g]),(0,p.jsx)(_o.Provider,{value:s,children:e})}function Io(){const e=(0,r.useContext)(_o);return(0,r.useEffect)((()=>e.setCalled?.(!0))),e}Oo.propTypes={children:a().node,locale:a().string,fields:a().string};const To={STRICTLY_NECESSARY:"C0001",PERFORMANCE:"C0002",FUNCTIONAL:"C0003",TARGETING:"C0004"},Mo=()=>{},Po=(0,r.createContext)({cookies:new Map,consentedGroups:new Set,setCookie:Mo,openConsentModal:Mo,closeConsentModal:Mo});function jo(){return"undefined"===typeof window?null:document.cookie.split("; ").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n),i=t.substring(n+1);return e.set(r,i),e}),new Map)}function Do({children:e,domainId:t,optIn:n}){const[i,o]=(0,r.useState)(!0),[a,s]=(0,r.useState)(jo()),c=(0,r.useCallback)((e=>{if("undefined"!==typeof window&&e){if(window.cookieStore)return window.cookieStore.set(e);!function(e){const{name:t,value:n,domain:r,path:i,maxAge:o,secure:a,sameSite:s}=e,c=[`${t}=${n}`];r&&c.push(`domain=${r}`),i&&c.push(`path=${i}`),o&&c.push(`max-age=${o}`),a&&c.push("secure"),s&&c.push("samesite"),document.cookie=c.join("; ")}(e),s(jo())}}),[s]),l=a?.get("OptanonConsent")||`groups=${(e=>Object.values(To).map((t=>`${t}:${e?0:1}`)).join(","))(n)}`,u=(0,r.useMemo)((()=>(new URLSearchParams(l).get("groups")?.split(",")??[]).reduce(((e,t)=>{const[n,r]=t.split(":");return"1"===r&&e.add(n),e}),new Set)),[l]),d=(0,r.useCallback)((()=>{i||window.OneTrust?.ToggleInfoDisplay()}),[i]),f=(0,r.useCallback)((()=>{i||window.OneTrust?.AllowAll()}),[i]),h=(0,r.useCallback)((()=>{i||window.OneTrust?.RejectAll()}),[i]),m=(0,r.useCallback)((()=>{i||window.OneTrust?.Close()}),[i]);(0,r.useEffect)((()=>{i||window.OneTrust?.OnConsentChanged((()=>s(jo())))}),[s,i]);const g=(0,r.useMemo)((()=>({loading:i,cookies:a,consentedGroups:u,setCookie:c,openConsentModal:d,closeConsentModal:m,allowAll:f,rejectAll:h})),[i,a,u,c,d,m,f,h]);return(0,r.useEffect)((()=>{if(!window.OneTrust&&t){window.OptanonWrapper=()=>o(!1);const e=document.createElement("script");e.defer=!0,e.setAttribute("data-domain-script",t),e.setAttribute("data-document-language","true"),e.onerror=()=>o(!1),e.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",document.head.appendChild(e)}else o(!1)}),[o,t]),(0,p.jsx)(Po.Provider,{value:g,children:e})}function Ro(){return(0,r.useContext)(Po)}Do.propTypes={children:o.node,domainId:o.string,optIn:o.bool};const Lo={MaintenanceWindows:P.ZP` query MaintenanceWindows( $locale: Locale! $where: MaintenanceWindowFilter $limit: Int $skip: Int $sort: [MaintenanceWindowSort!] ) { maintenanceWindows( locale: $locale where: $where limit: $limit skip: $skip sort: $sort ) { items { id description { json } preMaintenanceDescription { json } start end services } } } `},Fo=(0,r.createContext)({loading:!0});function zo({children:e,locale:t,pollInterval:n}={}){t=t?xo.from(t):xo.en_US;const[i,o]=(0,r.useState)(!1),{cookies:a}=Ro(),s="true"===a?.get("nintendo.maintenance.disabled"),c=!i||s,l=(0,T.a)(Lo.MaintenanceWindows,{variables:{locale:t},skip:c,fetchPolicy:"network-only",nextFetchPolicy:"cache-first",pollInterval:n}),u=c?!s:l.loading,d=(0,r.useMemo)((()=>{const e=l.data?.maintenanceWindows?.items,t=new Date;return e?.reduce(((e,n)=>{const r=new Date(n.start),i=new Date(n.end),o=t>=i?"finished":r>t?"scheduled":"active",a=Boolean(n.description?.json||n.preMaintenanceDescription?.json);return n.services.includes("MY_NINTENDO_STORE")&&(e.store[o]={...n,visible:a}),n.services.includes("NINTENDO_ESHOP")&&(e.eshop[o]={...n,visible:a}),e}),{store:{},eshop:{}})}),[l.data]),[f,h]=(0,r.useState)({...d,loading:u,error:l.error,setCalled:o});return(0,r.useEffect)((()=>{h((e=>({...e,...d,loading:u,error:l.error,setCalled:o})))}),[i,u,l.error,d,o]),(0,p.jsx)(Fo.Provider,{value:f,children:e})}function Bo(){const e=(0,r.useContext)(Fo);return(0,r.useEffect)((()=>e.setCalled?.(!0))),e}zo.propTypes={locale:a().string,children:a().node,pollInterval:a().number},zo.defaultProps={pollInterval:6e4,locale:xo.en_US};var Vo=P.ZP` fragment BaseCartFields on Cart { id items { id quantity product { ageGate contentRating { id locale requiresAgeGate } isSalableQty locale maxQtyAllowedInCart name nsuid qtyAllowedPerCustomer requiresLogin requiresSubscription sku } } prices { grandTotal } totalQuantity } `;var $o=e=>({queries:{CustomerCart:P.ZP` ${e?"":Vo} query CustomerCart($locale: Locale) { customer(locale: $locale) { cart(locale: $locale) { ${e||"...BaseCartFields"} } } } `,GuestCart:P.ZP` ${e?"":Vo} query GuestCart($cartId: ID!, $locale: Locale) { cart: guestCart(cartId: $cartId, locale: $locale) { ${e||"...BaseCartFields"} } } `},mutations:{AddProductsToCart:P.ZP` ${e?"":Vo} mutation AddProductsToCart($cartId: ID!, $products: [AddCartItemInput!]!, $locale: Locale) { cart: addProductsToCart(cartId: $cartId, products: $products, locale: $locale) { ${e||"...BaseCartFields"} } } `,UpdateCartItems:P.ZP` ${e?"":Vo} mutation UpdateCartItems($cartId: ID!, $items: [UpdateCartItemInput!]!, $locale: Locale) { cart: updateCartItems(cartId: $cartId, cartItems: $items, locale: $locale) { ${e||"...BaseCartFields"} } } `,RemoveCartItem:P.ZP` ${e?"":Vo} mutation RemoveCartItem($cartId: ID!, $itemId: ID!, $locale: Locale) { cart: removeCartItem(cartId: $cartId, itemId: $itemId, locale: $locale) { ${e||"...BaseCartFields"} } } `,CreateGuestCart:P.ZP` mutation CreateGuestCart($locale: Locale) { guestCartId: createGuestCart(locale: $locale) } `,MergeGuestCart:P.ZP` ${e?"":Vo} mutation MergeGuestCart($guestCartId: ID!, $locale: Locale) { cart: mergeGuestCart(guestCartId: $guestCartId, locale: $locale) { ${e||"...BaseCartFields"} } } `,ApplyCouponToCart:P.ZP` ${e?"":Vo} mutation ApplyCouponToCart($cartId: ID!, $couponCode: String!, $locale: Locale) { cart: applyCouponToCart(cartId: $cartId, couponCode: $couponCode, locale: $locale) { ${e||"...BaseCartFields"} } } `,RemoveCouponsFromCart:P.ZP` ${e?"":Vo} mutation RemoveCouponsFromCart($cartId: ID!, $locale: Locale) { cart: removeCouponsFromCart(cartId: $cartId, locale: $locale) { ${e||"...BaseCartFields"} } } `,SetBillingAddressOnCart:P.ZP` ${e?"":Vo} mutation SetBillingAddressOnCart( $cartId: ID!, $addressId: ID, $address: CartAddressInput, $save: Boolean, $sameAsShipping: Boolean, $locale: Locale ) { cart: setBillingAddressOnCart( cartId: $cartId, addressId: $addressId, address: $address, save: $save, sameAsShipping: $sameAsShipping, locale: $locale ) { ${e||"...BaseCartFields"} } } `,SetShippingAddressOnCart:P.ZP` ${e?"":Vo} mutation SetShippingAddressOnCart( $cartId: ID!, $addressId: ID, $address: CartAddressInput, $save: Boolean, $locale: Locale ) { cart: setShippingAddressOnCart( cartId: $cartId, addressId: $addressId, address: $address, save: $save, locale: $locale ) { ${e||"...BaseCartFields"} } } `,SetShippingMethodsOnCart:P.ZP` ${e?"":Vo} mutation SetShippingMethodsOnCart( $cartId: ID!, $shippingMethods: [ShippingMethodInput!]!, $locale: Locale ) { cart: setShippingMethodsOnCart( cartId: $cartId, shippingMethods: $shippingMethods, locale: $locale ) { ${e||"...BaseCartFields"} } } `,SetPaymentMethodOnCart:P.ZP` ${e?"":Vo} mutation SetPaymentMethodOnCart( $cartId: ID!, $paymentMethod: PaymentMethodCode!, $locale: Locale ) { cart: setPaymentMethodOnCart( cartId: $cartId, paymentMethod: $paymentMethod, locale: $locale ) { ${e||"...BaseCartFields"} } } `}});const Uo=new d(f.guestCartId,{ttl:864e5}),qo=(0,r.createContext)({loading:!0});function Qo(e,{errors:t},n){const r=t?.some((e=>"OUT_OF_STOCK"===e.extensions?.code));if(r&&n.variables?.products){const{locale:t,products:r}=n.variables;r.forEach((({sku:n})=>{e.modify({id:e.identify({__typename:"StoreProduct",sku:n,locale:t}),fields:{isSalableQty:()=>!1}})}))}}function Go(){}function Ho({children:e,locale:t,fields:n,disableAutoMerge:i}={}){t=t?xo.from(t):xo.en_US;const[o,a]=(0,r.useState)(!1),s=S(),c=Io();if(!c)throw new Error("CustomerProvider is required to use this hook");const l=Bo(),u=(0,r.useRef)(null),d=!1===u.current&&s.isLoggedIn,[f,h]=(0,r.useState)(Uo.get()?.[t]),{queries:m,mutations:g}=(0,r.useMemo)((()=>$o(n)),[n]),v=!o||s.loading||l.loading||l.store?.active,[y]=(0,I.D)(g.CreateGuestCart,{variables:{locale:t}}),[b,w]=(0,I.D)(g.MergeGuestCart,{context:{authenticated:!0},variables:{locale:t},update:Qo}),k=w.loading,A=(0,T.a)(m.CustomerCart,{variables:{locale:t,id:s.userId},context:{authenticated:!0},skip:v||!s.isLoggedIn||k||d&&f}),x=(0,T.a)(m.GuestCart,{variables:{locale:t,cartId:f},skip:v||s.isLoggedIn||!f}),E=A.data?.customer?.cart??x.data?.cart,N=E?.id||f,C=(0,r.useMemo)((()=>new Map(E?.items.map((e=>[e.product.sku,e]))??[])),[E?.items]),[_,O]=(0,I.D)(g.AddProductsToCart,{context:{authenticated:s.isLoggedIn},variables:{locale:t},errorPolicy:"all",update:Qo}),[M,P]=(0,I.D)(g.UpdateCartItems,{context:{authenticated:s.isLoggedIn},variables:{cartId:E?.id,locale:t},update:Qo,onError:Go}),[j,D]=(0,I.D)(g.RemoveCartItem,{context:{authenticated:s.isLoggedIn},variables:{cartId:E?.id,locale:t},update:Qo}),[R]=(0,I.D)(g.SetShippingAddressOnCart,{context:{authenticated:!0}}),[L]=(0,I.D)(g.SetBillingAddressOnCart,{context:{authenticated:!0}}),[F]=(0,I.D)(g.SetShippingMethodsOnCart,{context:{authenticated:!0}}),[z]=(0,I.D)(g.SetPaymentMethodOnCart,{variables:{paymentMethod:"NCL",cartId:E?.id,locale:t},context:{authenticated:!0}}),B=!o||(s.loading||A.loading||x.loading||w.loading),V=D.loading||P.loading||O.loading,$=A.error||x.error||w.error||O.error||P.error||D.error,U=(0,r.useCallback)((({sku:e})=>C.has(e)),[C]),q=(0,r.useCallback)((async({sku:e},{quantity:n=1,couponCode:r,selectedOptions:i=[]}={})=>{if(!e&&n<=0)throw new Error("Product sku is required and a quantity > 0");const o=[{sku:e,quantity:n,couponCode:r,selectedOptions:i}];if(N)return _({variables:{cartId:N,products:o}});{const{data:{guestCartId:e}}=await y();Uo.set({...Uo.get(),[t]:e});const n=await _({variables:{cartId:e,products:o}});return h(e),n}}),[_,N,y,t]),Q=(0,r.useCallback)((({ageGate:e,contentRating:t,isSalableQty:n,maxQtyAllowedInCart:r,qtyAllowedPerCustomer:i,requiresLogin:o,requiresSubscription:a,sku:l,...u})=>{const{isChild:d,membershipStatus:f,productsOwned:p,restrictions:h}=c.data??{};if(!n||o&&!s.isLoggedIn||a&&!f?.active||(e||t?.requiresAgeGate)&&(d||h?.eshop))return 0;let m=r||10;if(null!=i)if("BUNDLE"===u.productType)u.bundleItems.forEach((e=>{1===e.options.length&&e.options.forEach((e=>{const t=p?.find((t=>t.sku===e.product.sku)),n=i-(t?.quantity??0);m=Math.min(n,m)}))}));else{const e=p?.find((e=>e.sku===l)),t=i-(e?.quantity??0);m=Math.min(t,m)}return Math.max(0,m)}),[c,s]),G=(0,r.useCallback)((e=>{const t=E?.items?.find((t=>t.product.sku===e.sku));return Math.max(0,Q(e)-(t?.quantity??0))}),[Q,E?.items]),H=(0,r.useCallback)((async(e,{quantity:t}={})=>0===t?j({variables:{itemId:e.id}}):M({variables:{items:[{id:e.id,quantity:t}]}})),[M,j]),W=(0,r.useCallback)((e=>j({variables:{itemId:e.id}})),[j]),Z=(0,r.useCallback)((async({sku:e})=>{const t=C.get(e);if(t)return W(t);throw new Error("Product is not in the cart")}),[W,C]);(0,r.useEffect)((()=>{!s.loading&&o&&(d&&f&&(i?h(null):b({variables:{guestCartId:f}}).finally((()=>{Uo.delete(),h(null)}))),u.current=s.isLoggedIn)}),[o,s,f,d,i,b,h]);const K=(0,r.useMemo)((()=>({loading:B,errors:$,merging:k,data:E,hasProduct:U,updating:V,addProduct:q,purchasableQty:Q,addableQty:G,updateItem:H,removeItem:W,removeProduct:Z,setCalled:a,setBillingAddress:L,setPaymentMethod:z,setShippingAddress:R,setShippingMethod:F})),[B,$,k,E,U,q,Q,G,H,W,Z,L,z,R,F,V]);return(0,p.jsx)(qo.Provider,{value:K,children:e})}function Wo(){const e=(0,r.useContext)(qo);return(0,r.useEffect)((()=>e.setCalled?.(!0))),e}Ho.propTypes={locale:a().string,children:a().node,fields:a().string};var Zo=function(e,t){return Zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Zo(e,t)},Ko=function(){return Ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&setTimeout((function(){e.startTimer(),e.sendMetrics()}),2e3)},e.prototype.stop=function(){this.timer&&(clearTimeout(this.timer),delete this.timer)},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){var e,t=((e={})[this.headerName]=this.clientKey,e.Accept="application/json",e["Content-Type"]="application/json",e);return Object.entries(this.customHeaders).filter(na).forEach((function(e){var n=e[0],r=e[1];return t[n]=r})),t},e.prototype.sendMetrics=function(){return Yo(this,void 0,void 0,(function(){var e,t,n;return Jo(this,(function(r){switch(r.label){case 0:if(e="".concat(this.url,"/client/metrics"),t=this.getPayload(),this.bucketIsEmpty(t))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetch(e,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return r.sent(),this.onSent(t),[3,4];case 3:return n=r.sent(),console.error("Unleash: unable to send feature metrics",n),this.onError(n),[3,4];case 4:return[2]}}))}))},e.prototype.count=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][t?"yes":"no"]++,!0)},e.prototype.countVariant=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[t]?this.bucket.toggles[e].variants[t]+=1:this.bucket.toggles[e].variants[t]=1,!0)},e.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var e=this;this.timer=setInterval((function(){e.sendMetrics()}),this.metricsInterval)},e.prototype.bucketIsEmpty=function(e){return 0===Object.keys(e.bucket.toggles).length},e.prototype.getPayload=function(){var e=Ko(Ko({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:e,appName:this.appName,instanceId:"browser"}},e}(),oa=function(){function e(){this.store=new Map}return e.prototype.save=function(e,t){return Yo(this,void 0,void 0,(function(){return Jo(this,(function(n){return this.store.set(e,t),[2]}))}))},e.prototype.get=function(e){return Yo(this,void 0,void 0,(function(){return Jo(this,(function(t){return[2,this.store.get(e)]}))}))},e}(),aa=function(){function e(){this.prefix="unleash:repository"}return e.prototype.save=function(e,t){return Yo(this,void 0,void 0,(function(){var n,r;return Jo(this,(function(i){n=JSON.stringify(t),r="".concat(this.prefix,":").concat(e);try{window.localStorage.setItem(r,n)}catch(e){console.error(e)}return[2]}))}))},e.prototype.get=function(e){try{var t="".concat(this.prefix,":").concat(e),n=window.localStorage.getItem(t);return n?JSON.parse(n):void 0}catch(e){console.error(e)}},e}();let sa;const ca=new Uint8Array(16);function la(){if(!sa&&(sa="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sa(ca)}const ua=[];for(let fs=0;fs<256;++fs)ua.push((fs+256).toString(16).slice(1));var da={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function fa(e,t,n){if(da.randomUUID&&!t&&!e)return da.randomUUID();const r=(e=e||{}).random||(e.rng||la)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return ua[e[t+0]]+ua[e[t+1]]+ua[e[t+2]]+ua[e[t+3]]+"-"+ua[e[t+4]]+ua[e[t+5]]+"-"+ua[e[t+6]]+ua[e[t+7]]+"-"+ua[e[t+8]]+ua[e[t+9]]+"-"+ua[e[t+10]]+ua[e[t+11]]+ua[e[t+12]]+ua[e[t+13]]+ua[e[t+14]]+ua[e[t+15]]}(r)}var pa=function(){function e(){}return e.prototype.generateEventId=function(){return fa()},e.prototype.createImpressionEvent=function(e,t,n,r,i,o){var a=this.createBaseEvent(e,t,n,r,i);return o?Ko(Ko({},a),{variant:o}):a},e.prototype.createBaseEvent=function(e,t,n,r,i){return{eventType:r,eventId:this.generateEventId(),context:e,enabled:t,featureName:n,impressionData:i}},e}(),ha=["userId","sessionId","remoteAddress","currentTime"],ma=function(e){return ha.includes(e)},ga="initialized",va="error",ya="ready",ba="update",wa="impression",ka="sent",Sa="recovered",Aa={name:"disabled",enabled:!1,feature_enabled:!1},xa="repo",Ea=function(e){function t(t){var n=t.storageProvider,r=t.url,i=t.clientKey,o=t.disableRefresh,a=void 0!==o&&o,s=t.refreshInterval,c=void 0===s?30:s,l=t.metricsInterval,u=void 0===l?30:l,d=t.disableMetrics,f=void 0!==d&&d,p=t.appName,h=t.environment,m=void 0===h?"default":h,g=t.context,v=t.fetch,y=void 0===v?function(){try{if("undefined"!=typeof window&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(t){console.error('Unleash failed to resolve "fetch"',t)}}():v,b=t.createAbortController,w=void 0===b?function(){try{if("undefined"!=typeof window&&"AbortController"in window)return function(){return new window.AbortController};if("fetch"in globalThis)return function(){return new globalThis.AbortController}}catch(t){console.error('Unleash failed to resolve "AbortController" factory',t)}}():b,k=t.bootstrap,S=t.bootstrapOverride,A=void 0===S||S,x=t.headerName,E=void 0===x?"Authorization":x,N=t.customHeaders,C=void 0===N?{}:N,_=t.impressionDataAll,O=void 0!==_&&_,I=t.usePOSTrequests,T=void 0!==I&&I,M=e.call(this)||this;if(M.toggles=[],M.etag="",M.readyEventEmitted=!1,M.usePOSTrequests=!1,M.started=!1,!r)throw new Error("url is required");if(!i)throw new Error("clientKey is required");if(!p)throw new Error("appName is required.");return M.eventsHandler=new pa,M.impressionDataAll=O,M.toggles=k&&k.length>0?k:[],M.url=r instanceof URL?r:new URL(r),M.clientKey=i,M.headerName=E,M.customHeaders=C,M.storage=n||("undefined"!=typeof window?new aa:new oa),M.refreshInterval=a?0:1e3*c,M.context=Ko({appName:p,environment:m},g),M.usePOSTrequests=T,M.sdkState="initializing",M.ready=new Promise((function(e){M.init().then(e).catch((function(t){console.error(t),M.sdkState="error",M.emit(va,t),e()}))})),y||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),w||console.error('Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.'),M.fetch=y,M.createAbortController=w,M.bootstrap=k&&k.length>0?k:void 0,M.bootstrapOverride=A,M.metrics=new ia({onError:M.emit.bind(M,va),onSent:M.emit.bind(M,ka),appName:p,metricsInterval:u,disableMetrics:f,url:M.url,clientKey:i,fetch:y,headerName:E,customHeaders:C}),M}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Zo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.getAllToggles=function(){return function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i0&&(this.timerRef=setInterval((function(){return t.fetchToggles()}),e)),[2]}}))}))},t.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},t.prototype.resolveSessionId=function(){return Yo(this,void 0,void 0,(function(){var e;return Jo(this,(function(t){switch(t.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get("sessionId")];case 1:return(e=t.sent())?[3,3]:(e=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",e)]);case 2:t.sent(),t.label=3;case 3:return[2,e]}}))}))},t.prototype.getHeaders=function(){var e,t=this.usePOSTrequests,n=((e={})[this.headerName]=this.clientKey,e.Accept="application/json",e);return t&&(n["Content-Type"]="application/json"),this.etag&&(n["If-None-Match"]=this.etag),Object.entries(this.customHeaders).filter(na).forEach((function(e){var t=e[0],r=e[1];return n[t]=r})),n},t.prototype.storeToggles=function(e){return Yo(this,void 0,void 0,(function(){return Jo(this,(function(t){switch(t.label){case 0:return this.toggles=e,this.emit(ba),[4,this.storage.save(xa,e)];case 1:return t.sent(),[2]}}))}))},t.prototype.fetchToggles=function(){return Yo(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s;return Jo(this,(function(c){switch(c.label){case 0:if(!this.fetch)return[3,9];this.abortController&&this.abortController.abort(),this.abortController=this.createAbortController&&this.createAbortController(),e=this.abortController?this.abortController.signal:void 0,c.label=1;case 1:return c.trys.push([1,7,8,9]),t=this.usePOSTrequests,n=t?this.url:function(e,t){var n=new URL(e.toString());return Object.entries(t).filter(na).forEach((function(e){var t=e[0],r=e[1];"properties"===t&&r?Object.entries(r).filter(na).forEach((function(e){var t=e[0],r=e[1];return n.searchParams.append("properties[".concat(t,"]"),r)})):n.searchParams.append(t,r)})),n}(this.url,this.context),r=t?"POST":"GET",i=t?JSON.stringify({context:this.context}):void 0,[4,this.fetch(n.toString(),{method:r,cache:"no-cache",headers:this.getHeaders(),body:i,signal:e})];case 2:return o=c.sent(),"error"===this.sdkState&&o.status<400&&(this.sdkState="healthy",this.emit(Sa)),o.ok&&304!==o.status?(this.etag=o.headers.get("ETag")||"",[4,o.json()]):[3,5];case 3:return a=c.sent(),[4,this.storeToggles(a.toggles)];case 4:return c.sent(),"healthy"!==this.sdkState&&(this.sdkState="healthy"),this.bootstrap||this.readyEventEmitted||(this.emit(ya),this.readyEventEmitted=!0),[3,6];case 5:o.ok||304===o.status||(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.sdkState="error",this.emit(va,{type:"HttpError",code:o.status})),c.label=6;case 6:return[3,9];case 7:return s=c.sent(),console.error("Unleash: unable to fetch feature toggles",s),this.sdkState="error",this.emit(va,s),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}}))}))},t}(ta);const Na=r.createContext(null),Ca={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:"http://localhost",appName:"offline",clientKey:"not-used"},_a=i.startTransition||(e=>e()),Oa=({config:e,children:t,unleashClient:n,startClient:i=!0})=>{const o=e||Ca,a=r.useRef(n||new Ea(o)),[s,c]=r.useState(!!(n?null!=e&&e.bootstrap&&!1!==(null==e?void 0:e.bootstrapOverride):o.bootstrap&&!1!==o.bootstrapOverride)),[l,u]=r.useState(null);r.useEffect((()=>{!o&&!n&&console.error("You must provide either a config or an unleash client to the flag provider.\n If you are initializing the client in useEffect, you can avoid this warning\n by checking if the client exists before rendering.");const e=e=>{_a((()=>{u((t=>t||e))}))},t=e=>{_a((()=>{u(null)}))};let r;const s=()=>{r=setTimeout((()=>{_a((()=>{c(!0)}))}),0)};return a.current.on("ready",s),a.current.on("error",e),a.current.on("recovered",t),i&&(a.current.stop(),a.current.start()),function(){a.current&&(a.current.off("error",e),a.current.off("ready",s),a.current.off("recovered",t),a.current.stop()),r&&clearTimeout(r)}}),[]);const d=async e=>{await a.current.updateContext(e)},f=e=>a.current.isEnabled(e),p=e=>a.current.getVariant(e),h=(e,t,n)=>a.current.on(e,t,n),m=r.useMemo((()=>({on:h,updateContext:d,isEnabled:f,getVariant:p,client:a.current,flagsReady:s,flagsError:l,setFlagsReady:c,setFlagsError:u})),[s,l]);return r.createElement(Na.Provider,{value:m},t)};function Ia(e){const t=(e=>{const{isEnabled:t,client:n}=(0,r.useContext)(Na),[i,o]=(0,r.useState)(!!t(e)),a=(0,r.useRef)();return a.current=i,(0,r.useEffect)((()=>{if(!n)return;const r=()=>{const n=t(e);n!==a.current&&(a.current=n,o(!!n))},i=()=>{const n=t(e);a.current=n,o(n)};return n.on("update",r),n.on("ready",i),()=>{n.off("update",r),n.off("ready",i)}}),[n]),i})(e),n=(()=>{const{flagsReady:e,flagsError:t}=(0,r.useContext)(Na);return{flagsReady:e,flagsError:t}})(),i=(e=>{const{getVariant:t,client:n}=(0,r.useContext)(Na),[i,o]=(0,r.useState)(t(e)),a=(0,r.useRef)({name:i.name,enabled:i.enabled});return a.current=i,(0,r.useEffect)((()=>{if(!n)return;const r=()=>{const n=t(e);((e,t)=>{var n,r,i,o;return!(e.name===(null==t?void 0:t.name)&&e.enabled===(null==t?void 0:t.enabled)&&e.feature_enabled===(null==t?void 0:t.feature_enabled)&&(null==(n=e.payload)?void 0:n.type)===(null==(r=null==t?void 0:t.payload)?void 0:r.type)&&(null==(i=e.payload)?void 0:i.value)===(null==(o=null==t?void 0:t.payload)?void 0:o.value))})(a.current,n)&&(o(n),a.current=n)},i=()=>{const n=t(e);a.current.name=null==n?void 0:n.name,a.current.enabled=null==n?void 0:n.enabled,o(n)};return n.on("update",r),n.on("ready",i),()=>{n.off("update",r),n.off("ready",i)}}),[n]),i||{}})(e);return{loading:!n.flagsReady,enabled:t,id:e,variant:{...i,payload:(o=i?.payload,"string"===o?.type?o:"json"===o?.type?{value:JSON.parse(o.value)}:"csv"===o?.type?{value:o.value.split("\n").map((e=>e.split(",")))}:void 0)}};var o}function Ta(e){const{appName:t,children:n,clientKey:r,refreshInterval:i,url:o}=e;return(0,p.jsx)(Oa,{config:{appName:t,clientKey:r,refreshInterval:i,url:o},children:n})}Ta.propTypes={appName:a().string.isRequired,clientKey:a().string.isRequired,children:a().node,refreshInterval:a().number,url:a().string.isRequired},Ta.defaultProps={refreshInterval:0};var Ma=n(50334);const Pa=()=>{},ja=(0,r.createContext)({text:Pa,date:Pa,price:Pa,DateFormat:Ma.t6});function Da(){return(0,r.useContext)(ja)}function Ra({children:e,locale:t,translations:n,wrapLink:i,fallbackOriginal:o=!0}){const a=(0,r.useMemo)((()=>{const e=new Ma.Cf({locale:t,React:r,dictionaries:n,wrapLink:i,fallbackOriginal:o});return{text:(t,n)=>e.text(t,n),date:(t,n)=>e.date(t,n),price:(t,n)=>e.price(t,n),currency:e.currency,locale:t.toLowerCase(),DateFormat:Ma.t6}}),[t,n,o,i]);return(0,p.jsx)(ja.Provider,{value:a,children:e})}function La(e){const[t,n]=(0,r.useState)(null),i=(0,r.useCallback)((()=>{n((()=>"undefined"!==typeof window?window.matchMedia(e).matches:null))}),[e]);return(0,r.useEffect)((()=>{const t=window.matchMedia(e);return i(),t.addEventListener("change",i),()=>{t.removeEventListener("change",i)}}),[e,i]),t}Ra.propTypes={children:o.node,locale:o.string,translations:(0,o.oneOfType)([o.object,(0,o.arrayOf)(o.object)]),fallbackOriginal:o.bool};var Fa=P.ZP` fragment BaseProductFields on StoreProduct { ageGate availability categories { id name } demoNsuid dlcType { id code label } eshopDetails(personalized: $personalized) { isPurchased isPurchasable isPreordered isPreorderable purchaseUrl discountPriceEnd goldPointOfferValue goldPointOfferType } exclusive isSalableQty locale name nsuid platform { id code label } facets { corePlatforms } prices(personalized: $personalized) { minimum { currency discounted finalPrice regularPrice } } productImage { publicId resourceType type } platinumPoints releaseDate releaseDateDisplay sku topLevelCategory { id code label } urlKey } `;var za=e=>({queries:{RecentlyViewedProducts:P.ZP` ${e?"":Fa} query RecentlyViewedProducts($locale: Locale, $personalized: Boolean) { customer { recentlyViewed(locale: $locale) { ${e||"...BaseProductFields"} } } } `,ProductBySku:P.ZP` ${e?"":Fa} query ProductBySku($sku: String!, $locale: Locale, $personalized: Boolean) { products: storeProducts(where: { sku: { eq: $sku } }, locale: $locale) { ${e||"...BaseProductFields"} } } `,ProductsBySku:P.ZP` ${e?"":Fa} query ProductsBySku($skus: [String!]!, $locale: Locale, $personalized: Boolean) { products: storeProducts(where: { sku: { in: $skus } }, locale: $locale) { ${e||"...BaseProductFields"} } } `},mutations:{AddRecentlyViewedProduct:P.ZP` ${e?"":Fa} mutation AddRecentlyViewedProduct($sku: String!, $locale: Locale, $personalized: Boolean) { product: addRecentlyViewedProduct(sku: $sku, locale: $locale) { ${e||"...BaseProductFields"} } } `}});const Ba=new d(f.recentlyViewed,{ttl:18e5}),Va=(0,r.createContext)({loading:!0}),$a=!1;function Ua({limit:e=12,locale:t,fields:n,children:i}){t=t?xo.from(t):xo.en_US;const o=S(),a=(0,r.useRef)(null),[s,c]=(0,r.useState)(!1),{queries:l,mutations:u}=(0,r.useMemo)((()=>za(n)),[n]),[d,f]=(0,r.useReducer)(((t,{updates:n,addedProduct:r})=>{if(r){const n=(t.products??[]).filter((({sku:e})=>e!==r.sku)),i=[r,...n.slice(0,e-1)];return Ba.set(i.map((({sku:e})=>e))),{...t,products:i}}return n?{...t,...n}:t}),{loading:!0,setCalled:c}),{loading:h,data:m,errors:g}=(0,T.a)(l.RecentlyViewedProducts,{context:{authenticated:!0},variables:{locale:t,personalized:$a},skip:o.loading||!o.isLoggedIn||!s}),[v]=(0,M.t)(l.ProductsBySku,{variables:{locale:t,personalized:$a},onCompleted({products:e}){f({updates:{loading:!1,products:e}})},onError(e){f({updates:{loading:!1,errors:[e]}})}}),[y]=(0,I.D)(u.AddRecentlyViewedProduct,{context:{authenticated:!0},variables:{locale:t,personalized:$a},update(n,{data:r}){const i=n.readQuery({query:l.RecentlyViewedProducts,variables:{locale:t,personalized:$a}}),o=r?.product;if(o&&i){const r=i.customer.recentlyViewed.filter((({sku:e})=>e!==o.sku));n.writeQuery({query:l.RecentlyViewedProducts,variables:{locale:t,personalized:$a},data:{...i,customer:{...i.customer,recentlyViewed:[o,...r.slice(0,e-1)]}}})}},onError(e){f({updates:{errors:[e]}})}}),[b]=(0,M.t)(l.ProductBySku,{variables:{locale:t,personalized:$a},onCompleted({products:e}){const[t]=e;f({addedProduct:t})},onError(e){f({updates:{errors:[e]}})}}),w=(0,r.useCallback)((({sku:e})=>{const t={variables:{sku:e}};return o.isLoggedIn?y(t):b(t)}),[o.isLoggedIn,b,y]);return(0,r.useEffect)((()=>{d.products&&d.addProduct!==w&&f({updates:{addProduct:w}})}),[d.addProduct,d.products,w]),(0,r.useEffect)((()=>{if(o.loading||!s)return;const e=!0===a.current&&!o.isLoggedIn;o.isLoggedIn?f({updates:{loading:h,errors:g,products:h?null:m?.customer.recentlyViewed}}):d.products?e&&Ba.set(d.products?.map((({sku:e})=>e))):Ba.get()?.length?v({variables:{skus:Ba.get()}}):f({updates:{loading:!1,products:[]}}),a.current=o.isLoggedIn}),[s,o,v,d.products,h,m,g]),(0,p.jsx)(Va.Provider,{value:d,children:i})}function qa(){const e=(0,r.useContext)(Va);return(0,r.useEffect)((()=>e.setCalled?.(!0))),e}Ua.propTypes={limit:a().number,locale:a().string,fields:a().string,children:a().node};var Qa=e=>({queries:{Wishlist:P.ZP` ${e?"":Fa} query Wishlist( $categories: [WishListCategory!]! $page: Int! $pageSize: Int! $locale: Locale $includeProductInfo: Boolean! $personalized: Boolean ) { customer { wishList(categories: $categories, page: $page, pageSize: $pageSize, locale: $locale) { items { id category createdAt product @include(if: $includeProductInfo) { ${e||"...BaseProductFields"} } } hasNextPage } } } `},mutations:{AddWishlistEntry:P.ZP` ${e?"":Fa} mutation AddWishlistEntry( $entry: WishlistEntryInput! $locale: Locale $includeProductInfo: Boolean! $personalized: Boolean ) { entry: addWishlistEntry(entry: $entry, locale: $locale) { id category createdAt product @include(if: $includeProductInfo) { ${e||"...BaseProductFields"} } } } `,RemoveWishlistEntry:P.ZP` mutation RemoveWishlistEntry( $entry: WishlistEntryInput! $locale: Locale ) { entry: removeWishlistEntry(entry: $entry, locale: $locale) { id category } } `}});const Ga=(0,r.createContext)({loading:!0}),Ha={FULL_LIST:"FULL_LIST",PAGED_LIST:"PAGED_LIST"},Wa="ESHOP_PRODUCT",Za="NOA_PRODUCT";function Ka(e){return`${e.category}:${e.id}`}function Ya({nsuid:e,sku:t},n){if(e&&n)return{id:e,category:Wa};if(t)return{id:t,category:Za};throw new Error("Unable to determine wishlist category. Product needs either an nsuid or a sku")}function Ja(e,t,n){return{...e,customer:{...e.customer,wishList:{...e.customer.wishList,items:t,hasNextPage:n}}}}function Xa(e,t,n){const r=e?.customer.wishList.items;if(!r)return null;const i=[...r];if("add"===t)i.push(n);else{const e=i.findIndex((e=>Ka(n)===Ka(e)));-1!==e&&i.splice(e,1)}return i}function es(e,t,n,r,{data:i}){const o=i?.entry,a={...n,pageSize:1e3},s={...n,pageSize:25},c=r.readQuery({query:t,variables:a}),l=r.readQuery({query:t,variables:s}),u=Xa(c,e,o);if(u){const e=Ja(c,u,c.customer.wishList.hasNextPage);r.writeQuery({query:t,variables:a,data:e})}if("add"!==e){const n=Xa(l,e,o);if(n){const e=Ja(l,n,u?u.length>n.length:l.customer.wishList.hasNextPage);r.writeQuery({query:t,variables:s,data:e})}}else r.evict({id:"Customer:{}",fieldName:"wishList",args:{pageSize:25}})}function ts({categories:e=[Wa,Za],pageSize:t,includeProductInfo:n,fields:i,locale:o,isProd:a,loadList:s}){o=o?xo.from(o):xo.en_US;const c=S(),{queries:l,mutations:u}=(0,r.useMemo)((()=>Qa(i)),[i]),d=(0,r.useMemo)((()=>({categories:e,page:1,pageSize:t,locale:o,includeProductInfo:n,personalized:true})),[n,t,o,e]),f=(0,T.a)(l.Wishlist,{variables:d,context:{authenticated:!0},skip:c.loading||!c.isLoggedIn||!s,notifyOnNetworkStatusChange:!0}),p=(0,r.useMemo)((()=>f.data?.customer.wishList?.items||[]),[f]),h=(0,r.useMemo)((()=>new Set(p.map(Ka))),[p]),m=f.data?.customer.wishList?.hasNextPage,[g]=(0,I.D)(u.AddWishlistEntry,{variables:{locale:o,includeProductInfo:n,personalized:true},context:{authenticated:!0},update:(...e)=>es("add",l.Wishlist,d,...e)}),v=(0,r.useCallback)((e=>{const t=Ya(e,a),r={entry:{__typename:"WishlistEntry",...t,createdAt:(new Date).toISOString()}};return n&&(r.entry.product={__typename:"StoreProduct",...e}),g({variables:{entry:t},optimisticResponse:r})}),[g,n,a]),[y]=(0,I.D)(u.RemoveWishlistEntry,{context:{authenticated:!0},update:(...e)=>es("remove",l.Wishlist,d,...e)}),b=(0,r.useCallback)((({id:e,category:t})=>{const n={id:e,category:t};return y({variables:{entry:n,locale:o},optimisticResponse:{entry:n}})}),[y,o]),w=(0,r.useCallback)((e=>{const t=Ya(e,a);return b(t)}),[b,a]),k=(0,r.useCallback)((e=>{const t=Ya(e,a);return h.has(Ka(t))}),[h,a]),A=(0,r.useCallback)((()=>{const e=function(e,t){const n=e.length>0&&e.length%t===0,r=parseInt(e.length/t),i=n?r:r+1;return n?i+1:i}(p,t);f.fetchMore({variables:{...f.variables,page:e}})}),[f,t,p]),x=!s||(c.loading||c.isLoggedIn&&f.loading),E=f.errors,N=p.length>0;return(0,r.useMemo)((()=>({loading:x,entries:x&&!N?null:p,errors:E,hasMoreEntries:m,currentPageSize:t,loadMoreEntries:A,addProduct:v,removeEntry:b,removeProduct:w,hasProduct:k})),[x,p,E,m,N,t,v,b,w,k,A])}function ns({categories:e=[Wa,Za],children:t,fields:n,locale:i,isProd:o}={}){const[a,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(!1),u=ts({categories:e,pageSize:1e3,includeProductInfo:c,fields:n,locale:i,isProd:o,loadList:a}),d=(0,r.useMemo)((()=>({...u,locale:i,setLoadList:s,setIncludeProductInfo:l})),[u,i,s,l]);return(0,p.jsx)(Ga.Provider,{value:d,children:t})}function rs({type:e=Ha.FULL_LIST,includeProductInfo:t=!1}={}){const[n,i]=(0,r.useState)(!1),o=(0,r.useContext)(Ga),a=ts({includeProductInfo:t,pageSize:25,loadList:n,locale:o.locale});return(0,r.useEffect)((()=>{e===Ha.FULL_LIST&&o.setLoadList?.(!0),e===Ha.PAGED_LIST&&i(!0)}),[o,e]),(0,r.useEffect)((()=>{t&&o.setIncludeProductInfo?.(!0)}),[o,t]),e===Ha.FULL_LIST?o:a}ns.propTypes={categories:a().arrayOf(a().string),fields:a().string,locale:a().string,children:a().node,isProd:a().bool};const is=e=>"#"+new URLSearchParams(e).toString(),os=e=>{if("undefined"===typeof window)return{};const[,t]=e?e.split("#"):window.location.hash.split("#"),n=new URLSearchParams(t);return Object.fromEntries(n.entries())},as=()=>{const[e,t]=(0,r.useState)(os);return(0,r.useEffect)((()=>{const e=()=>t(os());return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)}),[]),e},ss=r.createContext(null),cs=()=>(0,r.useContext)(ss),ls=({children:e,content:t})=>{const n=(0,r.useMemo)((()=>t),[t]);return(0,p.jsx)(ss.Provider,{value:n,children:e})};var us=e=>e?.length?e?.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{}):null;var ds=class{constructor(e,t){if(this.key=e,this.maxAgeInSeconds=t/1e3,"undefined"!==typeof window){const{hostname:e}=window.location;this.domain=e.endsWith(".nintendo.com")?"nintendo.com":e}}get(e){try{const t=us(document.cookie)[this.key]??null;return e?t:JSON.parse(t)}catch{return null}}set(e,t){try{const n=[`${this.key}=${e?JSON.stringify(e):""}`,`domain=${this.domain}`,`max-age=${t??this.maxAgeInSeconds}`,"path=/","samesite=strict"];document.cookie=n.join("; ")}catch{}}delete(){this.set("",0)}}},16614:function(e,t,n){"use strict";n.d(t,{D:function(){return F},F:function(){return Ce},L:function(){return K},Q:function(){return Y},a:function(){return ie},f:function(){return ee},g:function(){return re},i:function(){return X},p:function(){return oe},u:function(){return ae}});var r=n(2784),i=n(13980),o=n.n(i),a=n(61970),s=n.n(a),c=n(32899),l=n(34723),u=n(7307),d=n(52322);const f=u.default.div.withConfig({componentId:"sc-8eh15t-0"})(["display:flex;align-items:center;gap:6px;font-size:",";font-weight:",";","{font-size:",";}"],(({theme:e})=>e.font.size.legalMobile),(({theme:e})=>e.font.weight.light),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.font.size.legalDesktop)),p=u.default.div.withConfig({componentId:"sc-8eh15t-1"})(["height:16px;width:18px;border-radius:3px;border:1px solid ",";background:",";"],(({theme:e})=>e.color.lightGray2),(({$hex:e})=>Array.isArray(e)?`no-repeat linear-gradient(145deg,\n #${e[0]} 50%,\n #${e[1]} 50%\n)`:`#${e}`)),h=e=>e.map(((t,n)=>{const r=e.length;return n>3?null:3===n?"+ "+(r-3):(0,d.jsx)(p,{"data-testid":`Hex code: ${t}`,$hex:t},t+n)})),m=({colorSwatches:e})=>(0,d.jsx)(f,{children:h(e)});m.propTypes={colorSwatches:(0,i.arrayOf)((0,i.oneOfType)([i.string,(0,i.arrayOf)(i.string)]))};var g=m,v=n(25544),y=n(12192),b=n(96447),w=n(55257),k=n(21203),S=n(30744),A=n(19843),x=n(92445),E=n(68374),N=n(79102),C=n(54076),_=n(7771),O=n(6642),I=n(50334),T=(n(71941),n(77329)),M=n(7740);const P=/^[257]\d{13}$/;var j=({lang:e,product:t,analytics:n})=>{const{isLoggedIn:i,promptLogin:o}=(0,c.xe)(),{trackAddToWishlist:a}=(0,c.z$)(),s=(0,c.Ei)(),{loading:l}=s,u=t.platformCode!==_.P.MOBILE&&(e=>e?.sku&&(!e?.nsuid||P.test(e.nsuid)))(t)&&!l,d=(0,r.useMemo)((()=>u&&s.hasProduct(t)),[s,t,u]),f=(0,r.useCallback)((()=>{if(u)if(i)if(d)s.removeProduct(t);else{const{itemListDetails:e,pageName:r}=n||{};a(t,e,{pageName:r}),s.addProduct(t)}else o()}),[i,d,s,n,t,u,o,a]),p=(0,r.useMemo)((()=>u?{lang:e,onClick:f,isAdded:d}:null),[e,f,d,u]);return(0,r.useMemo)((()=>({wishlistConfig:p,toggleWishlistItem:f,isInWishlist:d})),[p,d,f])};const D=e=>{const{artPath:t,padImage:n,productLink:i,productTitle:o,productPlatform:a,platformCode:s,platformColor:l,productCategory:u,productId:f,releaseDate:p,priceProps:h,manufacturer:m,lang:g,imageProps:v,sku:y,softwarePublisher:b,nsuid:w,analytics:k}=e,{date:S}=(0,c.i1)(),A=(0,r.useMemo)((()=>({...y?{name:o}:{title:o},sku:y,releaseDate:S(p),platform:{label:a},prices:{minimum:{currency:h?.currency,finalPrice:h?.finalPrice}},manufacturer:m,softwarePublisher:b})),[S,y,o,p,a,h,m,b]),x=(0,r.useMemo)((()=>({sku:y,nsuid:w,platformCode:s,...A})),[y,w,s,A]),E=(0,r.useRef)(),{wishlistConfig:N}=j({lang:g,product:x,analytics:k}),{itemClicked:C}=(0,T.u)(),{trackResultClick:O}=(0,_.u)(),I=(0,r.useCallback)((async e=>{const t=e.target.closest("a");if(E.current.contains(t)){O({result:A,...k});const{objectId:e,...t}=k||{};await C(e,t)}}),[C,A,O,k]);return(0,d.jsx)("div",{ref:E,onClick:I,children:(0,d.jsx)(M.P,{artPath:t,padImage:n,productLink:i,productTitle:o,productPlatform:a,productCategory:u,platformColor:l,productId:f,lang:g,imageProps:v,wishlistProps:N})})};D.propTypes={artPath:o().string,padImage:o().bool,productLink:o().string,productTitle:o().string,productPlatform:o().string,platformCode:o().string,platformColor:o().string,productCategory:o().string,releaseDate:o().string,productId:o().string,priceProps:o().shape({currency:o().string,regPrice:o().string,finalPrice:o().string,salePrice:o().string}),lang:o().string,manufacturer:o().string,sku:o().string,softwarePublisher:o().string,nsuid:o().string,imageProps:o().shape({showPlaceholder:o().bool,lazyLoad:o().bool}),analytics:o().shape({objectId:o().string,searchId:o().string,eventName:o().string,position:o().number,locale:o().string,pageName:o().string,itemListDetails:o().shape({id:o().string.isRequired,name:o().string.isRequired}),query:o().string,categoryName:o().string})};var R=D,L=n(34406);const F="en-us",z="en-ca",B="fr-ca",V="es-mx",$="pt-br",U="es-ar",q="es-cl",Q="es-co",G="es-pe",H=new Set([U,q,Q,G]),W=new Set([V,$,...H]),Z=new Set([F,z,B,...W]);new Set(Array.from(Z).map((e=>e?.split("-")[0])).filter(Boolean));const K={default:"us",[F]:"us"};[...Z].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`}));const Y={HIDE_NAV_FOOT:"hideNavFooter",CAMPAIGN_CODE:"cid",UTM_CODE:"utm_id"};L.env.DEV_PREVIEW_MODE;const J=(e,t,n,r={formatZero:!0})=>"number"!==typeof e||"coins"===t?e:n.price(e,r);function X(e){return W.has(e)}var ee=(e,t)=>{const n=e?.pathname&&e?.origin&&e?.search?e:new URL(e,"https://www.nintendo.com"),{returnAbsoluteUrl:r}=t||{},i=`${`/${n.pathname}/`.replace(/\/(\/)*\//g,"/")}${n.search}${n.hash}`;return r?`${n.origin}${i}`:`${i}`};function te(e){return{"New!":"red","New season":"red",Exclusive:"red","Available now":"red","Shop now":"red","{0}x Gold Points":"red","+{0} Gold Point":"red","+{0} Gold Points":"red","Sale ends: {0}":"red","Now on sale":"red","Pre-order now":"blue","Pre-purchase now":"blue","Learn more":"blue","Tune in":"blue","Watch now":"blue","Free demo":"blue","Coming soon":"blue",DLC:"violet","Free download":"violet",Free:"violet","DLC bundle":"violet","Game + DLC bundle":"violet","Game bundle":"violet","Sold out":"gray"}[e]||""}var ne=e=>{if("string"!==typeof e)return null;const t=e.indexOf(_.h);return e.substring(t)};var re=(e,t)=>{const{availability:n=[],demoNsuid:r,discounted:i,discountPriceEnd:o,onDiscountEnd:a,dlcType:s,exclusive:c,finalPrice:u,generalCategory:f,goldPointOfferType:p,goldPointOfferValue:h,isSalableQty:m,releaseDate:g}=e,v={DLC_TYPE:s?.toUpperCase(),AVAILABLE_NOW:"Available now",COMING_SOON:"Coming soon",NEW_RELEASES:"New releases",EXCLUSIVES:"Exclusives",EXCLUSIVE:"Exclusive",SOLD_OUT:"Sold out",PLUS_GOLD_POINT:"+{0} Gold Point",PLUS_GOLD_POINTS:"+{0} Gold Points",X_GOLD_POINTS:"{0}x Gold Points",SALE_ENDS:"Sale ends: {0}",PRE_ORDER_NOW:"Pre-order now",NEW:"New!",FREE_DOWNLOAD:"Free download",FREE:"Free",DLC:"DLC",DLC_BUNDLE:"DLC bundle",GAME_DLC_BUNDLE:"Game + DLC bundle",GAME_BUNDLE:"Game bundle",NOW_ON_SALE:"Now on sale",FREE_DEMO:"Free demo"},y=v.DLC_TYPE,b=t.text(v.AVAILABLE_NOW),w=t.text(v.COMING_SOON),k=t.text(v.NEW_RELEASES),S=t.text(v.EXCLUSIVE),A=!n?.length||n?.includes(b);if(A){if(!m)return{bgColor:te(v.SOLD_OUT),children:t.text(v.SOLD_OUT)};if(c||f===v.EXCLUSIVES)return{bgColor:te(v.EXCLUSIVE),children:S};if(p){let e=v.X_GOLD_POINTS;return"FIXED"===p&&(e=1===h?v.PLUS_GOLD_POINT:v.PLUS_GOLD_POINTS),{bgColor:te(e),children:t.text(e,{args:[h]})}}if(o){const e=new Date,n=new Date(o);return n.getTime(){if(Array.isArray(e)){const t=new Set,n=new Set,r=new Set;if(e.forEach((e=>{const i=e.product,o=_.i.get(i?.color?.code)||[];i?.size?.label?t.add(i.size.label):i?.capacity?.label?n.add(i.capacity.label):o?.length&&r.add(o.length>1?o:o[0])})),t.size>0){const e=Array.from(t);return e.length>1?`${e[0]} - ${e[e.length-1]}`:e[0]}if(n.size>0){const e=Array.from(n);return e.length>1?`${e[0]} - ${e[e.length-1]}`:e[0]}if(r.size>0)return(0,d.jsx)(g,{colorSwatches:Array.from(r)})}return null};var oe=(e,t={})=>{const{placeholderImage:n=_.l,locale:r,localizer:i,indexName:o}=t,[a,s]=r.toLowerCase().split("-");return(e||[]).map((({objectID:e,availability:t,blurb:c,title:l,type:u,description:d,demoNsuid:f,dlcType:p,eshopDetails:h,exclusive:m,manufacturer:g,softwarePublisher:v,topLevelCategory:y,topLevelCategoryCode:b,corePlatforms:w,platform:k,platformCode:S,price:A,horizontalHeaderImage:x,productImage:E,platinumPoints:N,thumbnail:C,headerImage:O,nsuid:M,sku:P,isSalableQty:j,url:D,releaseDate:R,releaseDateDisplay:L,variations:F,publishDate:z,_highlightResult:B,__queryID:V,__position:$})=>{const U=I.Td.get(s?.toUpperCase()),q=J(A?.regPrice,U,i,{formatZero:!1}),Q=J(A?.finalPrice,U,i,{formatZero:!1}),G=J(A?.salePrice,U,i),H=ne(E||C||O||x),W=z||R,Z=re({availability:t,goldPointOfferType:h?.goldPointOfferType,goldPointOfferValue:h?.goldPointOfferValue,demoNsuid:f,discounted:!!A?.salePrice,discountPriceEnd:h?.discountPriceEnd,dlcType:p,exclusive:m,finalPrice:A?.finalPrice,generalCategory:y,releaseDate:R,releaseDateDisplay:L,isSalableQty:j},i),K=ie(F),Y=w?.[0]||k,ee=b===_.j.GAMES?Y:y||Y,te=b===_.j.GAMES?ee?.toUpperCase().replace(/ /g,"_")||S:y||S,oe=[_.j.EXCLUSIVES,_.j.HARDWARE,_.j.MERCHANDISE].includes(b),ae=(0,T.g)(V,o,r),se=Boolean(M),ce=X(r)&&b===_.j.HARDWARE;return{objectID:e||M,productId:M||P,artPath:H||n,artPathNoPlaceholder:H,padImage:oe,productLink:D,productTitle:l||c,productPlatform:ee,platformCode:S,productDescription:d||c,platformColor:_.k[te]||_.k.DEFAULT,priceProps:L&&se||ce?null:{currency:I.Td.get(s?.toUpperCase())?.toLowerCase(),regPrice:q,salePrice:G,finalPrice:Q,platinumPoints:N||null},type:u,sku:P,nsuid:M,lang:a,manufacturer:g,softwarePublisher:v,imageProps:{showPlaceholder:!0,lazyLoad:!0},releaseDate:W,releaseDateDisplay:L,highlights:B,descriptionTag:ce?null:Z,expansionSlot:K,searchId:ae,resultsPosition:$}}))};var ae=(e,t)=>{const{placeholderImage:n=_.l,locale:i,localizer:o,indexName:a}=t;return(0,r.useMemo)((()=>oe(e,{locale:i,localizer:o,placeholderImage:n,indexName:a})),[e,o,i,n,a])};const se=u.default.div.withConfig({componentId:"sc-ngspk1-0"})(["display:grid;padding:"," 0;","{grid-template-columns:1fr 2fr;column-gap:",";padding:0;}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.desktopLarge),(({theme:e})=>e.spacing[40])),ce=u.default.div.withConfig({componentId:"sc-ngspk1-1"})(["display:grid;padding:"," 0;","{row-gap:",";padding:0;}"],(({theme:e})=>e.spacing[16]),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.spacing[24])),le=(0,u.default)(v.T).withConfig({componentId:"sc-ngspk1-2"})(["font-size:",";margin-bottom:",";","{font-size:",";margin-bottom:",";}","{margin-top:0;}"],(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.font.size.titleDesktop),(({theme:e})=>e.spacing[12]),(({theme:e})=>e.mediaQuery.desktopLarge)),ue=u.default.div.withConfig({componentId:"sc-ngspk1-3"})(["display:grid;column-gap:",";grid-template-columns:minmax(auto,343px);grid-template-rows:auto;row-gap:",";margin-bottom:",";","{grid-template-columns:repeat(2,minmax(auto,343px));}",""],(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.mediaQuery.tablet),(({$hasQuery:e})=>e&&(0,u.css)(["","{grid-template-columns:repeat(2,minmax(auto,343px));margin-bottom:0;}","{grid-template-columns:repeat(3,minmax(auto,343px));}"],(({theme:e})=>e.mediaQuery.desktop),(({theme:e})=>e.mediaQuery.desktopLarge)))),de=u.default.div.withConfig({componentId:"sc-ngspk1-4"})(["display:flex;flex-direction:column;width:100%;align-items:flex-start;"]),fe=(0,u.default)(y.D).withConfig({componentId:"sc-ngspk1-5"})(["border-left:0;border-top:0;padding-left:0;line-height:initial;:first-child{padding-top:0;}> span{display:grid;grid-template-columns:1fr auto;}span > span{align-self:flex-start;}svg{color:",";}"],(({theme:e})=>e.color.darkGray2)),pe=(0,u.default)(b.L).withConfig({componentId:"sc-ngspk1-6"})(["padding:",";> span{font-size:",";}"],(({theme:e})=>`${e.spacing[8]} 0`),(({theme:e})=>e.font.size.bodyDesktop)),he=u.default.div.withConfig({componentId:"sc-ngspk1-7"})(["display:flex;flex-direction:column;margin-bottom:",";","{margin-bottom:0;}"],(({theme:e})=>e.spacing[24]),(({theme:e})=>e.mediaQuery.desktopLarge)),me=(0,u.default)(b.L).withConfig({componentId:"sc-ngspk1-8"})(["font-size:",";font-weight:",";height:calc("," * 1em);margin-bottom:",";text-decoration:none;> span{border-bottom:none;}","{margin-bottom:",";}"],(({theme:e})=>e.font.size.titleDesktop),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.font.lineHeight),(({theme:e})=>e.spacing[24]),(({theme:e})=>e.mediaQuery.tablet),(({theme:e})=>e.spacing[8])),ge=(0,u.default)(R).withConfig({componentId:"sc-ngspk1-9"})([""]),ve=e=>{const{query:t,selectedOption:n,indexName:i,hits:o,locale:a,onResultsChange:s,placeholderImage:l,topResultsLabel:u,noResultsLabel:f,closeFlyover:p}=e,h=(0,c.i1)();(0,r.useEffect)((()=>{s&&s(o)}),[s,o]);const m=ae(o,{locale:a,localizer:h,placeholderImage:l,indexName:i}),g=(0,r.useCallback)((e=>{e.target.closest("button")||p()}),[p]),v=(0,r.useMemo)((()=>m.map((({objectID:e,sku:r,searchId:i,resultsPosition:o,...s})=>{const c=e&&i&&o?{objectId:e,eventName:r?"Flyover Top Results: Product Clicked":"Flyover Top Results: News/Support Clicked",searchId:i,position:o,locale:a}:null;return(0,d.jsx)("div",{onClick:g,children:(0,d.jsx)(ge,{productCategory:"ESHOP_PRODUCT",sku:r,...s,analytics:{...c,pageName:"Search Flyover Top Results",itemListDetails:{id:"search-flyover-top-results",name:"Search Flyover Top Results"},query:t,categoryName:n?.label}})},e)}))),[m,g,a,t,n]);return m.length>0?(0,d.jsxs)("div",{children:[(0,d.jsx)(le,{variant:"title",children:u}),(0,d.jsx)(ue,{$hasQuery:Boolean(t),children:v})]}):(0,d.jsx)(le,{variant:"title",children:f})};ve.defaultProps={hits:[]},ve.propTypes={query:o().string,selectedOption:O.O,indexName:o().string,locale:o().string.isRequired,hits:o().arrayOf(o().object),onResultsChange:o().func,placeholderImage:o().string,topResultsLabel:o().string,noResultsLabel:o().string,closeFlyover:o().func};var ye=ve;const be=e=>{const{icon:t,href:n,onClick:i,analytics:o,children:a}=e,{itemClicked:s}=(0,T.u)(),{trackResultClick:c}=(0,_.u)(),l=(0,r.useCallback)((async()=>{c(o);const{objectId:e,...t}=o||{};await s(e,t),i()}),[s,c,i,o]);return(0,d.jsx)(fe,{icon:t,href:n,onClick:l,children:a})};be.propTypes={icon:o().oneOfType([o().element,o().elementType]),href:o().string.isRequired,onClick:o().func,children:o().node,analytics:o().shape({objectId:o().string,searchId:o().string,eventName:o().string,position:o().number,locale:o().string,pageName:o().string,itemListDetails:o().shape({id:o().string.isRequired,name:o().string.isRequired}),query:o().string,categoryName:o().string,result:o().shape({title:o().string,publishDate:o().string})})};var we=be;const ke={[_.e.ALL]:w.Z,[_.e.GAMES]:k.Z,[_.e.HARDWARE]:S.Z,[_.e.MERCHANDISE]:A.Z,[_.e.NEWS]:x.Z,[_.e.SUPPORT]:E.Z,[_.m.ARTICLE]:x.Z,[_.m.GAMES]:k.Z,[_.m.MICROSITE]:N.Z,[_.m.SUPPORT]:E.Z},Se=e=>{const{indexName:t,locale:n,placeholderImage:i,additionalResultsLabel:o,noResultsLabel:a,allResultsLinkLabel:s,hits:l,onResultsChange:u,onSearchSubmit:f,query:p,selectedOption:h,closeFlyover:m}=e,g=(0,c.i1)(),v=ae(l,{locale:n,localizer:g,placeholderImage:i,indexName:t}),y=(0,r.useMemo)((()=>v.map((({objectID:e,productTitle:t,productLink:r,publishDate:i,type:o,searchId:a},s)=>{const c=e&&a?{objectId:e,searchId:a,eventName:"Flyover Additional Results: Item Clicked",position:s+1,locale:n}:null;return(0,d.jsx)(we,{icon:ke[o||h?.value.category],href:r,onClick:m,analytics:{...c,pageName:"Search Flyover Additional Results",itemListDetails:{id:"search-flyover-additional-results",name:"Search Flyover Additional Results"},query:p,categoryName:h?.label,result:{title:t,publishDate:i}},children:t},e)}))),[v,m,p,h,n]);(0,r.useEffect)((()=>{u&&u(l)}),[u,l]);const b=(0,r.useCallback)((e=>{e.preventDefault(),f&&f({queryValue:p,categoryValue:_.e.ALL})}),[p,f]);return v.length>0?(0,d.jsxs)("div",{children:[(0,d.jsxs)(le,{variant:"title",children:[o,":"]}),(0,d.jsxs)(de,{children:[y,(0,d.jsx)(pe,{onClick:b,children:s})]})]}):(0,d.jsx)(le,{variant:"title",children:a})};Se.defaultProps={hits:[]},Se.propTypes={indexName:o().string,locale:o().string,placeholderImage:o().string,additionalResultsLabel:o().string,allResultsLinkLabel:o().string,noResultsLabel:o().string,hits:o().arrayOf(o().object),onResultsChange:o().func,onSearchSubmit:o().func,query:o().string,selectedOption:O.O,closeFlyover:o().func};var Ae=Se;const xe=e=>{const{trendingResults:t,trendingResultsLabel:n,closeFlyover:i}=e,o=(0,c.i1)(),{trackSearchClick:a}=(0,_.u)(),s=(0,r.useCallback)((e=>{a("",e,_.n[_.e.ALL]),i&&i()}),[i,a]),l=(0,r.useMemo)((()=>t.map((({label:e,labelArgs:t,url:n},r)=>(0,d.jsx)("div",{children:(0,d.jsx)(me,{href:n,onClick:()=>s(o.text(e,{args:t})),children:o.text(e,{args:t})})},r)))),[t,o,s]);return(0,d.jsxs)("div",{children:[(0,d.jsx)(le,{variant:"title",children:n}),(0,d.jsx)(he,{children:l})]})};xe.defaultProps={trendingResults:[],trendingResultsLabel:"Trending topics"},xe.propTypes={trendingResults:o().arrayOf(o().shape({label:o().string,url:o().string})),trendingResultsLabel:o().string,closeFlyover:o().func};var Ee=xe;const Ne=e=>{const{allProductsIndexConfig:t,additionalResultsIndexConfig:n,fetchResults:i,locale:o,selectedOption:a,onResultsChange:l,onSearchSubmit:u,labels:f,query:p,topStoreProductSkus:h,trendingResults:m,defaultResultsConfig:g,defaultClientConfig:v,closeFlyover:y}=e,[b,w]=(0,r.useMemo)((()=>o.toLowerCase().split("-")),[o]),{text:k}=(0,c.i1)(),{trackSearchClick:S}=(0,_.u)(),[A,x]=(0,r.useState)(!1),[E,N]=(0,r.useState)({topResults:[],additionalResults:[]}),[O,I]=(0,r.useState)(!0),T=!!p,M=a.value,P=`${M.indexName}_${b}_${w}`,j=`${t.indexName}_${b}_${w}`,D=`${n.indexName}_${b}_${w}`,R=E.topResults.length>0||E.additionalResults.length>0,L=!O||R;(0,r.useEffect)((()=>{x(!0)}),[]);const F=(0,r.useMemo)((()=>s()(v.appId,v.appKey)),[v]),z=(0,r.useMemo)((()=>[{indexName:P,query:p,params:{...g,...M.resultsConfig||{},hitsPerPage:6}},{indexName:D,query:p,params:{...g,offset:M.indexName===n.indexName?6:0,hitsPerPage:3}}]),[p,M,g,P,D,n]),B=(0,r.useCallback)((e=>{const{queryValue:t}=e||{};t&&S(t,k(f.allResultsLinkLabel,{args:[t]}),_.n[_.e.ALL]),u&&u(e)}),[u,S,k,f]);return(0,r.useEffect)((()=>{!O&&l&&l()}),[O,l,E]),(0,r.useEffect)((()=>{if(i)if(I(!0),T)F.multipleQueries(z).then((({results:e})=>{I(!1),N({topResults:(e?.[0]?.hits||[]).map(((t,n)=>({...t,__queryID:e?.[0]?.queryID,__position:n+1}))),additionalResults:(e?.[1]?.hits||[]).map(((t,n)=>({...t,__queryID:e?.[1]?.queryID,__position:n+1})))})}));else{F.initIndex(j).getObjects(h.slice(0,4)).then((({results:e})=>{I(!1),N({topResults:(e||[]).filter(Boolean).map(((e,t)=>({...e,__position:t+1}))),additionalResults:[]})}))}}),[j,F,z,T,i,h]),A?T?(0,d.jsx)(ce,{children:L&&(R?(0,d.jsxs)(C.H.NewLevel,{children:[(0,d.jsx)(ye,{indexName:P,query:p,selectedOption:a,locale:o,hits:E.topResults,category:M.category,placeholderImage:k(f.placeholderImageUrl),topResultsLabel:k(M.title),noResultsLabel:k(M.noResultsLabel,{args:[p]}),closeFlyover:y}),(0,d.jsx)(Ae,{indexName:D,hits:E.additionalResults,locale:o,additionalResultsLabel:k(f.additionalResultsLabel,{args:[p]}),noResultsLabel:k(n.noResultsLabel,{args:[p]}),allResultsLinkLabel:k(f.allResultsLinkLabel,{args:[p]}),placeholderImage:k(f.placeholderImageUrl),onSearchSubmit:B,query:p,selectedOption:a,closeFlyover:y})]}):(0,d.jsx)(le,{variant:"title",children:k(M.noResultsLabel,{args:[p]})}))}):(0,d.jsxs)(se,{children:[(0,d.jsx)(Ee,{locale:o,trendingResultsLabel:k(f.trendingResultsLabel),trendingResults:m,closeFlyover:y}),(0,d.jsx)(ye,{query:p,selectedOption:a,hits:E.topResults,locale:o,onResultsChange:l,placeholderImage:k(f.placeholderImageUrl),topResultsLabel:k(f.topResultsLabel),closeFlyover:y})]}):null};Ne.defaultProps={fetchResults:!0,topStoreProductSkus:[],trendingResults:[],defaultResultsConfig:_.o,defaultClientConfig:_.D,locale:F},Ne.propTypes={selectedOption:O.O,locale:o().string,onResultsChange:o().func,onSearchSubmit:o().func,labels:O.L,query:o().string,fetchResults:o().bool,allProductsIndexConfig:O.C,additionalResultsIndexConfig:O.C,topStoreProductSkus:o().arrayOf(o().string),trendingResults:o().arrayOf(o().shape({label:o().string,url:o().string})),defaultResultsConfig:O.R,defaultClientConfig:O.a,closeFlyover:o().func};var Ce=Ne},53342:function(e,t,n){"use strict";n.d(t,{S:function(){return E}});var r=n(2784),i=n(13980),o=n.n(i),a=n(68020),s=n(31776),c=n(7307),l=n(6642),u=n(52048),d=n(52322);const f=(0,c.default)(a.c.ValueContainer).attrs((({selectTheme:e})=>({theme:e}))).withConfig({componentId:"sc-190tvj8-0"})(["&&&{padding:",";}"],(({theme:e})=>`${e.spacing[2]} ${e.spacing[4]} ${e.spacing[2]} ${e.spacing[8]}`)),p=(0,c.default)(a.c.SingleValue).attrs((({selectTheme:e})=>({theme:e}))).withConfig({componentId:"sc-190tvj8-1"})(["&&&{color:",";margin-left:0;transition:",";","}"],(({theme:e})=>e.color.darkGray2),(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({selectProps:e})=>e.menuIsOpen&&(0,c.css)(["color:",";"],(({theme:e})=>e.color.primary)))),h=(0,c.default)(a.c.Menu).attrs((({selectTheme:e})=>({theme:e}))).withConfig({componentId:"sc-190tvj8-2"})(["&&&{box-shadow:0 0 8px 0 rgba(0,0,0,0.2);border:solid 1px ",";border-radius:",";font-size:",";font-weight:",";margin-top:",";z-index:2002;overflow:hidden;}"],(({theme:e})=>e.color.lightGray2),(({theme:e})=>e.borderRadius),(({theme:e})=>e.font.size.legalDesktop),(({theme:e})=>e.font.weight.bold),(({theme:e})=>e.spacing[4])),m=(0,c.default)(a.c.Option).attrs((({selectTheme:e})=>({theme:e}))).withConfig({componentId:"sc-190tvj8-3"})(["&&&{background:",";color:",";cursor:pointer;padding:"," ",";&:hover{background:",";}"," ","}"],(({theme:e})=>e.color.white),(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.spacing[4]),(({theme:e})=>e.spacing[8]),(({theme:e})=>e.color.lightGray3),(({isFocused:e})=>e&&(0,c.css)(["background:",";"],(({theme:e})=>e.color.lightGray2))),(({selectProps:e})=>e.isFocused&&(0,c.css)(["background:",";"],(({theme:e})=>e.color.lightGray3)))),g=(0,c.default)(u.Z).attrs((({selectTheme:e})=>({size:14,theme:e,selectTheme:void 0}))).withConfig({componentId:"sc-190tvj8-4"})(["color:",";margin-right:",";transition-property:transform,color;"," ",""],(({theme:e})=>e.color.darkGray2),(({theme:e})=>e.spacing[8]),(({theme:e})=>(0,c.css)(["transition-delay:",";transition-duration:",";transition-timing-function:",";"],e.movement.delay,e.movement.duration,e.movement.easing)),(({$menuIsOpen:e})=>e&&(0,c.css)(["transform:rotate(180deg);color:",";"],(({theme:e})=>e.color.primary)))),v=(0,c.default)(a.c.Control).attrs((({selectTheme:e})=>({theme:e}))).withConfig({componentId:"sc-190tvj8-5"})(["&&&{border:none;cursor:pointer;font-size:",";font-weight:",";min-height:fit-content;"," &:hover{","{transition:",";color:",";}","{transition:",";color:",";}}}"],(({theme:e})=>e.font.size.captionDesktop),(({theme:e})=>e.font.weight.bold),(({isFocused:e,theme:t})=>e&&(0,c.css)(["box-shadow:0 0 0 1px ",";outline:none;","{transition:",";color:",";}","{color:",";}"],t.color.white,p,(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primary),g,(({theme:e})=>e.color.primary))),p,(({theme:e})=>`color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primary),g,(({theme:e})=>`transform ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}, color ${e.movement.duration} ${e.movement.easing} ${e.movement.delay}`),(({theme:e})=>e.color.primary)),y=({selectProps:e,theme:t})=>(0,d.jsx)(g,{$menuIsOpen:e.menuIsOpen,selectTheme:t}),b=({theme:e,...t})=>(0,d.jsx)(v,{selectTheme:e,...t}),w=({theme:e,...t})=>(0,d.jsx)(h,{selectTheme:e,...t}),k=({theme:e,...t})=>(0,d.jsx)(m,{selectTheme:e,...t}),S=({theme:e,...t})=>(0,d.jsx)(p,{selectTheme:e,...t}),A=({theme:e,...t})=>(0,d.jsx)(f,{selectTheme:e,...t});y.propTypes={selectProps:o().shape({menuIsOpen:o().bool})};const x=e=>{const{onSelect:t,options:n,replacementComponents:i,value:o,...a}=e,l=r.useContext(c.ThemeContext);return(0,d.jsx)(s.ZP,{components:{Control:b,DropdownIndicator:y,IndicatorSeparator:()=>null,Menu:w,Option:k,SingleValue:S,ValueContainer:A,...i},defaultValue:n?.[0],onChange:t,options:n,isClearable:!1,isSearchable:!1,"aria-label":o?.label||n?.[0].label,theme:e=>({...e,...l,spacing:{...e.spacing,...l.spacing}}),value:o,...a})};x.defaultProps={replacementComponents:{}},x.propTypes={onSelect:o().func.isRequired,value:l.O,options:o().arrayOf(l.O).isRequired,replacementComponents:o().shape({ClearIndicator:o().func,Control:o().func,CrossIcon:o().func,DownChevron:o().func,DropdownIndicator:o().func,Group:o().func,GroupHeading:o().func,IndicatorSeparator:o().func,IndicatorsContainer:o().func,Input:o().func,LoadingIndicator:o().func,LoadingMessage:o().func,Menu:o().func,MenuList:o().func,MenuPortal:o().func,MultiValue:o().func,MultiValueContainer:o().func,MultiValueLabel:o().func,MultiValueRemove:o().func,NoOptionsMessage:o().func,Option:o().func,Placeholder:o().func,SelectContainer:o().func,SingleValue:o().func,ValueContainer:o().func})};var E=x},7771:function(e,t,n){"use strict";n.d(t,{A:function(){return v},B:function(){return Y},C:function(){return H},D:function(){return h},E:function(){return m},F:function(){return E},G:function(){return J},H:function(){return X},I:function(){return ee},J:function(){return te},K:function(){return ne},L:function(){return oe},M:function(){return w},N:function(){return S},O:function(){return p},P:function(){return C},S:function(){return j},T:function(){return ie},a:function(){return ce},b:function(){return se},c:function(){return k},d:function(){return G},e:function(){return O},f:function(){return T},g:function(){return g},h:function(){return A},i:function(){return Q},j:function(){return N},k:function(){return D},l:function(){return x},m:function(){return _},n:function(){return I},o:function(){return y},p:function(){return Z},q:function(){return P},r:function(){return b},s:function(){return M},t:function(){return c},u:function(){return a},y:function(){return W},z:function(){return K}});var r=n(2784),i=n(32899),o=n(34406);var a=()=>{const e=(0,i.z$)();return(0,r.useMemo)((()=>({...e,trackResultClick:t=>{const{query:n,categoryName:r,result:i,pageName:o,itemListDetails:a}=t;i.sku?e.trackSelectItem(i,a,{pageName:o}):i.title&&e.trackNewsArticleClick(i,a,{pageName:o}),n&&r&&(i.sku||i.title)&&e.trackSearchResultClick(i,n,r)}})),[e])};const s=(e,t)=>e.sort-t.sort;var c=e=>e.map((e=>{const t=parseInt((e.label||"").split("-")[0].replace(/\D/g,"").trim());return{value:e,sort:isNaN(t)?-1:t}})).sort(s).map((({value:e})=>e));const l=e=>(t,n)=>e[t.label]-e[n.label],u={EC:0,E:1,E10:2,T:3,M:4,AO:5,RP:6},d={A:0,B:1,B15:2,C:3,D:4,RP:5},f={L:0,E10:1,E12:2,E14:3,E16:4,E18:5},p=e=>{const t=l(u);return e.sort(t)},h={appId:"U3B6GR4UA3",appKey:"a29c6927638bfd8cee23993e51e721c9"},m=o.env.ENABLE_SEARCH_TYPEAHEAD||!1,g="ANONYMOUS_USER_TOKEN",v="__",y={filters:"",hitsPerPage:40,analytics:!0,facetingAfterDistinct:!0,clickAnalytics:!0,highlightPreTag:"^*^^",highlightPostTag:"^*",attributesToHighlight:["description"],facets:["*"],maxValuesPerFacet:100},b={query:!0,page:!0,category:!0,sortBy:!0,refinementList:!0},w=3,k="/search",S="https://www.nintendo.com",A="ncom/",x="/ncom/global/missing-product-image",E="**",N={EXCLUSIVES:"EXCLUSIVES",GAMES:"GAMES",HARDWARE:"HARDWARE",MERCHANDISE:"MERCHANDISE"},C={MOBILE:"MOBILE",NINTENDO_3DS:"NINTENDO_3DS",NINTENDO_SWITCH:"NINTENDO_SWITCH"},_={ARTICLE:"article",GAMES:"game",MICROSITE:"microsite",SUPPORT:"support"},O={ALL_PRODUCTS:"all_products",LATAM_ALL_PRODUCTS:"latam_all",ALL:"all",GAMES:"gme",HARDWARE:"hdw",MERCHANDISE:"merch",NEWS:"news",SUPPORT:"sup"},I={[O.ALL]:"All categories",[O.GAMES]:"Games",[O.HARDWARE]:"Hardware",[O.MERCHANDISE]:"Merchandise",[O.NEWS]:"News & Events",[O.SUPPORT]:"Support"},T={DEFAULT:"",TITLE_ASC:"title_asc",TITLE_DESC:"title_des",PRICE_ASC:"price_asc",PRICE_DESC:"price_des",RELEASE_DATE:"release_des"},M={[T.DEFAULT]:"Featured",[T.RELEASE_DATE]:"Release date",[T.TITLE_ASC]:"Title (A-Z)",[T.TITLE_DESC]:"Title (Z-A)",[T.PRICE_DESC]:"Price (high to low)",[T.PRICE_ASC]:"Price (low to high)"},P={[T.DEFAULT]:"df",[T.TITLE_ASC]:"ta",[T.TITLE_DESC]:"td",[T.PRICE_ASC]:"pa",[T.PRICE_DESC]:"pd",[T.RELEASE_DATE]:"rd"},j={placeholderLabel:"Search games, hardware, news, etc",additionalResultsLabel:'Additional results for "{0}"',allResultsLinkLabel:'All results for "{0}"',topResultsLabel:"Top store products",trendingResultsLabel:"Trending topics",placeholderImageUrl:x,closeLabel:"Close"},D={NINTENDO_SWITCH:"#E60012",NINTENDO_SWITCH_LITE:"#E60012",NINTENDO_3DS:"#A90005",NEW_NINTENDO_3DS:"#A90005",NINTENDO_3DS_XL:"#A90005",NEW_NINTENDO_3DS_XL:"#A90005",NINTENDO_2DS:"#A90005",NEW_NINTENDO_2DS_XL:"#A90005",ANDROID_MOBILE:"#00BEFF",WII_U:"#0096C8",WII:"#0096C8",WII_MINI:"#0096C8",IOS_MOBILE:"#00BEFF",HARDWARE:"#727272",MERCHANDISE:"#3946A0",MY_NINTENDO_REWARDS:"#E60012",EXCLUSIVES:"#E60012",DEFAULT:"#3946A0"},R="000000",L="3242B1",F="787B7F",z="17AFD6",B="1EE240",V="FDA70D",$="9407A2",U="F83132",q="C8F249",Q=new Map([[424,[R]],[23312,[R,F]],[1390,[L]],[1273,[L,q]],[439,["CFA00A"]],[382,["5B4926"]],[442,["590001"]],[1384,["1D5ACA"]],[337,[F]],[1387,["866738"]],[445,["1F7720"]],[18593,["2180C4"]],[448,["353B73"]],[358,[z]],[26342,[z,U]],[18657,[B]],[1366,[V]],[1360,["FC2F73",B]],[1369,[$]],[1282,[$,V]],[361,[U]],[1294,[U,z]],[1372,[q]],[610,["F84A0A"]],[18570,["C1EFFA"]],[18573,["96D998"]],[1381,["F4D54F"]],[388,["F9646F"]],[811,["45255D"]],[1408,["D00016"]],[18596,["CCC8C0"]],[1378,["8C5730"]],[18582,["15ABAA"]],[385,["FFFFFF"]],[814,["FBDF54"]]]),G={[O.ALL]:{indexName:"store_additional",suggestionsIndexName:"store_all_products_suggestions",category:O.ALL,title:"Top store products",noResultsLabel:'No results found for "{0}".'},[O.ALL_PRODUCTS]:{indexName:"store_all_products",suggestionsIndexName:"store_all_products_suggestions",category:O.ALL,title:"Top store products",noResultsLabel:'No results found for "{0}".'},[O.LATAM_ALL_PRODUCTS]:{indexName:"store_game",suggestionsIndexName:"store_all_products_suggestions",category:O.ALL,title:"Top store products",noResultsLabel:'No results found for "{0}".'},[O.GAMES]:{indexName:"store_game",suggestionsIndexName:"store_all_products_suggestions",category:O.GAMES,title:"Top featured games",noResultsLabel:'No featured games found for "{0}".'},[O.HARDWARE]:{indexName:"store_hardware",suggestionsIndexName:"store_all_products_suggestions",category:O.HARDWARE,title:"Top featured hardware",noResultsLabel:'No featured hardware found for "{0}".'},[O.MERCHANDISE]:{indexName:"store_merch",suggestionsIndexName:"store_all_products_suggestions",category:O.MERCHANDISE,title:"Top featured merchandise",noResultsLabel:'No featured merchandise found for "{0}".'},[O.NEWS]:{indexName:"store_news",suggestionsIndexName:"store_all_products_suggestions",category:O.NEWS,title:"Top featured news & events",noResultsLabel:'No featured news & events found for "{0}".'},[O.SUPPORT]:{indexName:"crawler_support",suggestionsIndexName:"store_all_products_suggestions",category:O.SUPPORT,title:"Top featured support",noResultsLabel:'No featured support found for "{0}".'}},H=[{value:G[O.ALL_PRODUCTS],label:I[O.ALL]},{value:G[O.GAMES],label:I[O.GAMES]},{value:G[O.HARDWARE],label:I[O.HARDWARE]},{value:G[O.MERCHANDISE],label:I[O.MERCHANDISE]},{value:G[O.NEWS],label:I[O.NEWS]},{value:G[O.SUPPORT],label:I[O.SUPPORT]}],W=[{value:G[O.LATAM_ALL_PRODUCTS],label:I[O.ALL]},{value:G[O.GAMES],label:I[O.GAMES]},{value:G[O.NEWS],label:I[O.NEWS]},{value:G[O.SUPPORT],label:I[O.SUPPORT]}],Z={[O.ALL_PRODUCTS]:[{label:M[T.DEFAULT],value:T.DEFAULT},{label:M[T.RELEASE_DATE],value:T.RELEASE_DATE},{label:M[T.TITLE_ASC],value:T.TITLE_ASC},{label:M[T.TITLE_DESC],value:T.TITLE_DESC},{label:M[T.PRICE_DESC],value:T.PRICE_DESC},{label:M[T.PRICE_ASC],value:T.PRICE_ASC}],[O.GAMES]:[{label:M[T.DEFAULT],value:T.DEFAULT},{label:M[T.RELEASE_DATE],value:T.RELEASE_DATE},{label:M[T.TITLE_ASC],value:T.TITLE_ASC},{label:M[T.TITLE_DESC],value:T.TITLE_DESC},{label:M[T.PRICE_DESC],value:T.PRICE_DESC},{label:M[T.PRICE_ASC],value:T.PRICE_ASC}],[O.HARDWARE]:[{label:M[T.DEFAULT],value:T.DEFAULT},{label:M[T.RELEASE_DATE],value:T.RELEASE_DATE},{label:M[T.TITLE_ASC],value:T.TITLE_ASC},{label:M[T.TITLE_DESC],value:T.TITLE_DESC},{label:M[T.PRICE_DESC],value:T.PRICE_DESC},{label:M[T.PRICE_ASC],value:T.PRICE_ASC}],[O.MERCHANDISE]:[{label:M[T.DEFAULT],value:T.DEFAULT},{label:M[T.RELEASE_DATE],value:T.RELEASE_DATE},{label:M[T.TITLE_ASC],value:T.TITLE_ASC},{label:M[T.TITLE_DESC],value:T.TITLE_DESC},{label:M[T.PRICE_DESC],value:T.PRICE_DESC},{label:M[T.PRICE_ASC],value:T.PRICE_ASC}]},K={ACCESSORY_TYPE:"accessoryType",APPAREL_TYPE:"apparelType",AVAILABILITY:"availability",CHARACTERS:"franchises",CLASSIND_RATING:"classindRating",COLLECTIBLE_TYPE:"collectibleType",COLLECTION_PRICE_RANGE:"collectionPriceRange",COLOR:"baseColors",CONTROLLER_TYPE:"controllerType",COUNTRY_OF_MANUFACTURER:"countryOfManufacture",COUNTRY_OF_ORIGIN:"countryOfOrigin",EDITION:"editions",ESRB_RATING:"esrbRating",GENRES:"genres",HARDWARE_TYPE:"hardwareType",HOME_OFFICE_TYPE:"homeOfficeType",MANUFACTURER:"manufacturer",NSO_FEATURES:"nsoFeatures",PLAYER_COUNT:"playerCount",PLUSH_TYPE:"plushType",PRICE_RANGE:"priceRange",PlATFORM:"corePlatforms",REPLACEMENT_PARTS:"replacementPart",SIZE:"size",SMEC_RATING:"smecRating",SOFTWARE_DEVELOPER:"softwareDeveloper",SOFTWARE_PUBLISHER:"softwarePublisher",SYSTEMS:"currentSystems",TOP_LEVEL_FILTERS:"topLevelFilters",TOY_TYPE:"toyType"},Y={[K.ESRB_RATING]:"-Rating",[K.SMEC_RATING]:"-SMEC",[K.CLASSIND_RATING]:"-CLASSIND"},J={title:"Clasificaci\xf3n",attribute:K.SMEC_RATING,sort:e=>{const t=l(d);return e.sort(t)},operator:"and"},X={title:"Game Rating",attribute:K.CLASSIND_RATING,sort:e=>{const t=l(f);return e.sort(t)},operator:"and"},ee=[{attribute:K.TOP_LEVEL_FILTERS,operator:"and"},{title:"Nintendo Switch Online features",attribute:K.NSO_FEATURES,operator:"and"},{title:"Platform",attribute:K.PlATFORM,operator:"and"},{title:"Availability",attribute:K.AVAILABILITY,operator:"and"},{title:"Game type",attribute:K.GENRES,operator:"and"},{title:"Edition",attribute:K.EDITION,operator:"and"},{title:"Character or series",attribute:K.CHARACTERS,operator:"and"},{title:"Price",attribute:K.PRICE_RANGE,sort:c,operator:"and"},{title:"Game Rating",attribute:K.ESRB_RATING,operator:"and",sort:p},{title:"No. of players",attribute:K.PLAYER_COUNT,operator:"and"},{attribute:K.SOFTWARE_PUBLISHER,hidden:!0,operator:"and"},{attribute:K.SOFTWARE_DEVELOPER,hidden:!0,operator:"and"}],te=[{title:"Nintendo Switch systems",attribute:K.SYSTEMS,operator:"and"},{title:"Joy-Con & controllers",attribute:K.CONTROLLER_TYPE,operator:"and"},{title:"Cases & more",attribute:K.ACCESSORY_TYPE,operator:"and"},{title:"Replacement parts",attribute:K.REPLACEMENT_PARTS,operator:"and"},{title:"Character or series",attribute:K.CHARACTERS,operator:"and"},{title:"Price",attribute:K.PRICE_RANGE,sort:c,operator:"and"},{title:"Color",attribute:K.COLOR,operator:"and"},{attribute:K.MANUFACTURER,hidden:!0,operator:"and"},{attribute:K.COUNTRY_OF_MANUFACTURER,hidden:!0,operator:"and"},{attribute:K.COUNTRY_OF_ORIGIN,hidden:!0,operator:"and"}],ne=[{attribute:K.TOP_LEVEL_FILTERS,operator:"and"},{title:"Apparel & accessories",attribute:K.APPAREL_TYPE,operator:"and"},{attribute:K.COLLECTIBLE_TYPE,operator:"and"},{attribute:K.PLUSH_TYPE,operator:"and"},{title:"Toys",attribute:K.TOY_TYPE,operator:"and"},{title:"Home & office",attribute:K.HOME_OFFICE_TYPE,operator:"and"},{title:"Character or series",attribute:K.CHARACTERS,operator:"and"},{title:"Price",attribute:K.PRICE_RANGE,sort:c,operator:"and"},{title:"Color",attribute:K.COLOR,operator:"and"},{title:"Size",attribute:K.SIZE,operator:"and"},{attribute:K.MANUFACTURER,hidden:!0,operator:"and"},{attribute:K.COUNTRY_OF_MANUFACTURER,hidden:!0,operator:"and"},{attribute:K.COUNTRY_OF_ORIGIN,hidden:!0,operator:"and"}],re=[{label:"Nintendo Switch",url:"/switch/"},{label:"Super Mario Bros. Wonder",url:"/store/products/super-mario-bros-wonder-switch/"},{label:"Nintendo Switch games",url:"/store/games/nintendo-switch-games/"},{label:"{0} games",labelArgs:["Zelda"],url:"/store/games/#p=1&sort=df&f=franchises&franchises=Zelda"}],ie=[{label:"Nintendo Switch\u2122 - OLED Model: Mario Red Edition",url:"/store/products/nintendo-switch-oled-model-mario-red-edition-112872/"},...re],oe=[...re,{label:"{0} games",labelArgs:["Pok\xe9mon"],url:"/store/games/#p=1&sort=df&f=franchises&franchises=Pok%C3%A9mon"}],ae=["7100068688","7100068683","7100068678"],se=["112872",...ae],ce=["7100068693",...ae]},46420:function(e,t,n){"use strict";n.d(t,{Aw:function(){return x},LV:function(){return K},N1:function(){return H},Rx:function(){return U},X$:function(){return $},en:function(){return J},hV:function(){return q},oD:function(){return Z},sI:function(){return W}});var r=n(6642),i=n(7771),o=n(32899),a=n(2784),s=n(52322),c=n(16614),l=n(71941),u=n.n(l),d=n(13980),f=n.n(d),p=n(61970),h=n.n(p);n(50334);function m(e){return"string"!==typeof e?e:c.L[e.toLowerCase()]||e.toLowerCase()}var g=(e,t)=>{const n=i.p[e]||[];if(!n.length)return"";const r=Object.keys(i.q).find((e=>i.q[e]===t));return!!n.find((e=>e.value===r))?r:""};var v=(e,t)=>{const n=i.p[e]||[];if(!n.length)return i.q[i.f.DEFAULT];const r=i.q[t];return!(!r||!n.find((e=>e.value===t)))?r:i.q[i.f.DEFAULT]};const y=new Set(["q","cat","sort","p","f"]),{CAMPAIGN_CODE:b,UTM_CODE:w}=c.Q,k=new Set([b,w,"slug"]);var S=(0,a.createContext)({state:{},actions:{}});var A=({searchState:e,category:t,sortBy:n})=>{const{query:r,page:i,refinementList:o,...a}=e||{},s=(e=>{if(!e)return{};const t=Object.keys(e).filter((t=>e[t].length>0));return t.length>0?{f:t,...t.reduce(((t,n)=>({...t,[n]:e[n]})),{})}:{}})(o);return{...r?{q:r}:{},...i?{p:i}:{},...t?{cat:t}:{},...n?{sort:n}:{},...a||{},...s}};var x=e=>{const t=e||[];return Array.isArray(t)?t:"string"===typeof t?t.replace(/([A-z]),([A-z])/g,"$1^^$2").split("^^"):[t]};const E=e=>{const{q:t,p:n}=e||{},r=(e=>{const{f:t}=e||{};return t?x(t).reduce(((t,n)=>({...t,[n]:x(e[n])})),{}):{}})(e),i=parseInt(n);return{query:(t||"").trim(),page:isNaN(i)?1:i,refinementList:r}},N=(e,t={})=>Object.keys(t).reduce(((n,r)=>({...n,...t[r]&&"undefined"!==typeof e[r]?{[r]:e[r]}:{}})),{}),C="apply_custom_params",_="update_refinement",O="clear_refinement",I="search_started",T="load_more",M="update_search_results",P="update_state_from_hash",j="update_query",D="update_category",R="update_applied_sort",L="sync_applied",F=(e,t)=>{const n=new Set(e.map((({objectID:e})=>e))),r=t.filter((({objectID:e})=>!n.has(e)));return[...e,...r]},z=(e,t,n)=>{const[r,o]=t.split(i.F),a=new Set(e?.[r]||[]);return n||a.has(o)?a.delete(o):a.add(o),{...e||{},[r]:Array.from(a)}};var B=(e,{type:t,payload:n})=>{const r=e.searchState||{};switch(t){case I:return{...e,isSearching:!0};case M:return{...e,searchResults:{[n.key]:{...n.results,hits:e.swapResults?n.results.hits:F(e.searchResults[n.key]?.hits||[],n.results.hits||[])}},isSearching:!1,swapResults:!1};case _:return{...e,searchState:{...r,refinementList:z(r.refinementList,n.refinement,n.forceRemove),page:1},syncUrl:!0,swapResults:!0};case O:return{...e,searchState:{...r,refinementList:{},page:1},syncUrl:!0,swapResults:!0};case T:return{...e,searchState:{...r,page:r.page+1},syncUrl:!0};case P:return{...e,...n,syncUrl:!1};case L:return{...e,currentUrlHash:n.currentUrlHash,syncUrl:!1};case C:return{...e,searchState:{...r,...n},syncUrl:!0};case j:return{...e,searchState:{...r,query:n.query,refinementList:{},page:1},sortBy:"",syncUrl:!0};case D:return{...e,searchState:{...r,refinementList:{},page:1},category:n.category,sortBy:"",syncUrl:!0};case R:return{...e,searchState:{...r,page:1},...n,syncUrl:!0,swapResults:!0}}};const V=e=>{const{preserveQueryParamKeys:t,sortByCategories:n,defaultCategory:r,categoryConfig:l,sortByToParamLookup:d,paramToSortByLookup:f,children:p,defaultClientConfig:m,defaultResultsConfig:g,searchParamWhitelist:v,queryOverride:b,customLocalizer:w,router:x}=e,F=(0,o.hJ)(),{locale:z,push:V,pathname:$,query:U}=x,q=(0,o.i1)(),Q=w||q,G=(0,a.useMemo)((()=>({...v,searchState:!0})),[v]),[{isSearching:H,searchState:W,searchResults:Z,category:K,currentUrlHash:Y,sortBy:J,syncUrl:X},ee]=(0,a.useReducer)(B,{isSearching:!0,syncUrl:!1,searchResults:{},searchState:N(E(F),G),currentUrlHash:(0,o.yo)(F),category:F?.cat||r,sortBy:F?.sort?f(F?.cat||r,F?.sort):""}),[te,ne]=(0,a.useMemo)((()=>z.toLowerCase().split("-")),[z]),{indexName:re,resultsConfig:ie=g}=(0,a.useMemo)((()=>l[K]||l[i.e.ALL]),[l,K]),oe=J?`${re}_${te}_${ne}_${J}`:`${re}_${te}_${ne}`,ae=(0,a.useMemo)((()=>u().createHash("sha1").update(`${oe}:${W.query}`).digest("hex")),[oe,W]),se=(0,a.useMemo)((()=>h()(m.appId,m.appKey).initIndex(oe)),[m.appId,m.appKey,oe]),ce=(0,a.useMemo)((()=>Z[ae]?.hits||[]),[ae,Z]),le=(0,a.useMemo)((()=>(0,c.p)(ce,{locale:z,localizer:Q,indexName:oe})),[oe,z,Q,ce]),ue=(0,a.useMemo)((()=>{const e=Z[ae]?.totalPages||0;return W.page(e=>Object.entries(e).flatMap((([e,t])=>t.map((t=>({attribute:e,label:t,value:`${e}${i.F}${t}`}))))))(W.refinementList||{})),[W]),pe=(0,a.useMemo)((()=>((e,t)=>Object.keys(e).reduce(((n,r)=>{const o=new Set(t[r]||[]),a=Object.keys(e[r]).map((t=>({value:`${r}${i.F}${t}`,label:t,count:e[r][t],isRefined:o.has(t)})));return{...n,[r]:a}}),{}))(Z[ae]?.facets||{},W.refinementList||{})),[ae,Z,W]),he=(0,a.useCallback)((({query:e,category:t})=>{G.query&&"string"===typeof e&&ee({type:j,payload:{query:e}}),G.category&&t&&ee({type:D,payload:{category:t}})}),[G]),me=(0,a.useCallback)((()=>{ee({type:T})}),[]),ge=(0,a.useCallback)((e=>{ee({type:_,payload:{refinement:e}})}),[]),ve=(0,a.useCallback)((()=>{ee({type:O})}),[]),ye=(0,a.useCallback)((e=>{ee({type:_,payload:{refinement:e,forceRemove:!0}})}),[]),be=(0,a.useCallback)((e=>{const t=(0,o.yo)(e);ee({type:P,payload:{currentUrlHash:t,searchState:N(E(e),G),category:e?.cat||r,sortBy:e?.sort?f(e?.cat||r,e?.sort):""}});const n=e?.cat;n&&K!==n&&window.scrollTo({top:0})}),[r,K,f,G]),we=(0,a.useCallback)((e=>{ee({type:C,payload:e})}),[]),ke=(0,a.useCallback)((e=>{ee({type:R,payload:{sortBy:e}})}),[ee]);var Se;(0,a.useEffect)((()=>{if(X){const n=(0,o.uX)()||{},r=N(W,G),i=A(N({searchState:r,category:K,sortBy:d(K,J)},G)),a=(e=n,t.reduce(((t,n)=>({...t,...e[n]?{[n]:e[n]}:{}})),{})),s=(0,o.yo)({...i,...a});V({pathname:$,query:U,hash:s},null,{shallow:!0}).catch((e=>{if(!e.cancelled)throw e}));const c=(0,o.uX)(Y);!(!!n.cat&&!!n.q)||n.cat===i.cat&&n.cat===c.cat&&n.q===i.q&&n.q===c.q||window.scrollTo({top:0})}var e}),[$,U,V,X,t,K,Y,W,J,d,G]),(0,a.useEffect)((()=>{const e=`#${x.asPath.split("#")?.[1]||""}`;if(X)ee({type:L,payload:{currentUrlHash:e}});else if(e!==Y){const e=(0,o.uX)(x.asPath);be(e)}}),[be,x.asPath,Y,X]),Se=()=>{const e=(e=>{if("undefined"===typeof window)return;const[,t]=window.location.search.split("?"),n={...Object.fromEntries(new URLSearchParams(t).entries()),...e?.query||{}};if(Object.keys(n).some((e=>y.has(e)))){const{query:t,preserved:r}=Object.keys(n).reduce(((e,t)=>(k.has(t)?e.preserved={...e.preserved,[t]:n[t]}:e.query={...e.query,[t]:n[t]},e)),{query:{},preserved:{}}),i=(0,o.yo)(t);return e.replace({pathname:e.pathname,query:r,hash:i},null,{shallow:!0}),i}})(x);if(e){const t=(0,o.uX)(e);be(t)}},(0,a.useEffect)(Se,[]);const Ae=(0,a.useMemo)((()=>b?{...W,query:b}:W),[b,W]),xe=(0,a.useMemo)((()=>{const{filters:e=""}=ie;return((e,t)=>[t,Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.length>0?[...t,`(${r.map((e=>`${n}:"${e}"`)).join(" AND ")})`]:t}),[]).join(" AND ")].filter(Boolean).join(" AND "))(W.refinementList||{},e)}),[ie,W.refinementList]),Ee=(0,a.useMemo)((()=>({...g,...ie,page:W.page-1,filters:xe})),[g,ie,xe,W.page]);(0,a.useEffect)((()=>{ee({type:I}),se.search(Ae.query,{...Ee}).then((e=>{const{hits:t,nbHits:n,nbPages:r,facets:i,queryID:o,page:a,hitsPerPage:s}=e;ee({type:M,payload:{key:ae,results:{hits:t.map(((e,t)=>({...e,__queryID:o,__position:t+s*a}))),totalHits:n,totalPages:r,facets:i}}})}))}),[K,ae,se,Ae.query,Ee]);const Ne=(0,a.useMemo)((()=>({state:{isSearching:H,activeFilters:fe,activeIndexName:oe,availableRefinements:pe,rawSearchHits:ce,searchHits:le,totalHits:de,hasMore:ue,query:Ae.query,category:K,sortBy:J,sortByOptions:n[K]||[],searchParamWhitelist:G},actions:{applySortBy:ke,applyCustomParams:we,executeSearch:he,loadMore:me,refine:ge,clearFilters:ve,removeFilter:ye}})),[H,fe,oe,pe,ce,le,ue,de,J,ke,we,he,me,ge,ve,ye,n,Ae,K,G]);return(0,s.jsx)(S.Provider,{value:Ne,children:p})};V.defaultProps={preserveQueryParamKeys:["slug"],sortByCategories:i.p,categoryConfig:i.d,defaultCategory:i.e.ALL,defaultClientConfig:i.D,defaultResultsConfig:i.o,sortByToParamLookup:v,paramToSortByLookup:g,searchParamWhitelist:i.r},V.propTypes={preserveQueryParamKeys:f().arrayOf(f().string),defaultCategory:f().string.isRequired,categoryConfig:f().objectOf(r.C),sortByToParamLookup:f().func.isRequired,paramToSortByLookup:f().func.isRequired,searchParamWhitelist:f().object,sortByCategories:f().objectOf(f().arrayOf(r.O)),children:f().node.isRequired,defaultResultsConfig:r.R,defaultClientConfig:r.a.isRequired,queryOverride:f().string,customLocalizer:f().shape({text:f().func,price:f().func,date:f().func}),router:f().shape({isReady:f().bool,locale:f().string,query:f().object,push:f().func}).isRequired};var $=V;var U=()=>(0,a.useContext)(S);var q=e=>{const{query:t,category:n,sortBy:r}=e;return(0,o.yo)({...t?{q:t}:{},p:1,cat:n||i.e.ALL,sort:r||i.q[i.f.DEFAULT]})};const Q="searchapp-on-toggle-flyover",G=({query:e="",category:t=i.e.ALL,router:n})=>{const r=q({query:e,category:t});if(""===n.basePath)n.push({pathname:i.c,query:n.query,hash:r},null,{shallow:n.pathname===i.c});else{const e=`${"https://www.nintendo.com".replace(/\/$/,"")}${`/${m(n.locale)}${i.c}`}${r}`;window.location=e}};var H=e=>{const{skipToggleFlyoverListener:t,categoryOptions:n=i.C,router:r}=e||{},{locale:s}=r,{state:{query:c,category:l,isSearching:u,searchHits:d,totalHits:f},actions:{executeSearch:p=G}}=U(),h=(0,a.useMemo)((()=>(0,o.uX)(`#${r?.asPath?.split("#")?.[1]||""}`)||{}),[r]),m=c||h?.q,g=l||n.find((e=>e?.value?.category===h.cat))?.value.category||n[0]?.value?.category,[v,y]=(0,a.useState)(),[b,w]=(0,a.useState)(!1),k=(0,a.useCallback)((()=>{window.dispatchEvent(new CustomEvent(Q,{detail:{isOpen:!0}}))}),[]),S=(0,a.useCallback)((()=>{window.dispatchEvent(new CustomEvent(Q,{detail:{isOpen:!1}}))}),[]),A=(0,a.useCallback)((({value:{category:e}})=>{y(e)}),[y]),x=(0,a.useCallback)((({queryValue:e,categoryValue:t})=>{p({query:e,category:t,locale:s,router:r}),S()}),[p,s,r,S]);(0,a.useEffect)((()=>{if(t)return;const e=({detail:e})=>{w(e.isOpen)};return window.addEventListener(Q,e),()=>window.removeEventListener(Q,e)}),[t]),(0,a.useEffect)((()=>{y(g)}),[g]);const E=(0,a.useMemo)((()=>n.find((({value:e})=>e.category===v))),[n,v]);return(0,a.useMemo)((()=>({state:{isSearching:u,query:m,category:g,searchHits:d,totalHits:f,isSearchFlyoverOpen:b,selectedSearchOption:E},actions:{executeSearch:p,openSearchFlyover:k,closeSearchFlyover:S,onSearchOptionChange:A,onSearchSubmit:x}})),[u,m,g,d,f,b,E,p,k,S,A,x])};var W=e=>{const{sortBy:t,sortByOptions:n,applySortBy:r,analytics:o}=e,[s,c]=(0,a.useState)(!1),{trackSortInteraction:l}=(0,i.u)(),u=(0,a.useMemo)((()=>n.find((({value:e})=>e===t))),[n,t]),d=(0,a.useCallback)((e=>{c("boolean"===typeof e?e:e=>!e)}),[]),f=(0,a.useCallback)((({value:e})=>{const{pageName:t}=o||{},n=i.s[e];t&&n&&l(n,t),r(e)}),[r,o,l]);return(0,a.useMemo)((()=>({isFilterModalOpen:s,toggleModalFiltersMenu:d,selectedSortByOption:u,handleSortByChange:f})),[s,d,u,f])};var Z=(e,t)=>{const{lang:n,country:r,categoryOptions:i,clientConfig:o,readyToFetch:s=!0}=t,[c,l]=(0,a.useState)(),[u,d]=(0,a.useState)(!1),f=(0,a.useMemo)((()=>h()(o.appId,o.appKey)),[o]),p=(0,a.useMemo)((()=>({hasResultsInitialized:!!c,isLoadingHasResults:u,hasResultsByIndex:c,hasSomeResults:c&&Object.values(c).includes(!0)})),[c,u]);return(0,a.useEffect)((()=>{if(!s)return;d(!0);const t=i.map((({value:t})=>({indexName:`${t.indexName}_${n}_${r}`,query:e,params:{hitsPerPage:1,...t.resultsConfig||{}}})));f.multipleQueries(t).then((({results:e})=>{d(!1);const t=e.reduce(((e,t,n)=>({...e,[i[n].value.category]:t.hits.length>0})),{});l({...t})}))}),[f,e,n,r,i,s]),p};var K=(e,t)=>{if(!e)return null;const n=e[t];if(!n)return null;return n.value.split("^*").map(((e,t)=>e.startsWith("^^")?(0,s.jsx)("em",{children:e.substring(2)},t):e))};const Y=(e,t)=>(Object.entries(t||{}).forEach((([t,n])=>{e.searchParams.set(t,n)})),e);var J=(e,t,n,r)=>{const i=e?.trim()||"";if(i.startsWith("http"))return(0,c.f)(Y(new URL(i,t),r),{returnAbsoluteUrl:!0});const o=m(n?.toLowerCase()||c.D);if(o&&(i.startsWith(`/${o}`)||i.startsWith(o)))return(0,c.f)(Y(new URL(`${i}`,t),r),{returnAbsoluteUrl:!0});const a=i.startsWith("/")?new URL(`/${o}${i}`,t):new URL(`/${o}/${i}`,t);return(0,c.f)(Y(a,r),{returnAbsoluteUrl:!0})}},6642:function(e,t,n){"use strict";n.d(t,{C:function(){return a},L:function(){return s},O:function(){return c},R:function(){return l},a:function(){return o}});var r=n(13980),i=n.n(r);const o=i().shape({appId:i().string.isRequired,appKey:i().string.isRequired}),a=i().shape({indexName:i().string,category:i().string,title:i().string,noResultsLabel:i().string,clientConfig:o}),s=i().shape({placeholderLabel:i().string,additionalResultsLabel:i().string,allResultsLinkLabel:i().string,topResultsLabel:i().string,trendingResultsLabel:i().string,placeholderImageUrl:i().string,closeLabel:i().string}),c=i().shape({value:i().oneOfType([i().object,i().string,i().func,a]).isRequired,label:i().string.isRequired}),l=i().shape({filters:i().string,hitsPerPage:i().number,analytics:i().bool,enablePersonalization:i().bool,highlightPreTag:i().string,highlightPostTag:i().string})},77329:function(e,t,n){"use strict";n.d(t,{g:function(){return d},u:function(){return b}});var r=n(2784),i=n(32899),o=n(7771);const a={ad:"additional",ne:"news",ga:"game",me:"merch",ha:"hardware",al:"all_products",su:"support"},s={ta:o.f.TITLE_ASC,td:o.f.TITLE_DESC,pa:o.f.PRICE_ASC,pd:o.f.PRICE_DESC,rd:o.f.RELEASE_DATE},c="store_",l="crawler_",u=(e,t)=>{const[,n,r]=e.match(t)||[],i=(n||"").substring(0,2),[o,a]=(r||"").substring(1).split("_"),s=o&&a?`${o.substring(0,1)}${a.substring(0,1)}`:null;return s?`${i}-${s}`:i},d=(e,t,n)=>{if(!e||!t||!n)return;const r=t&&((e,t)=>{const[n,r]=t.toLowerCase().split("-");if((e||"").startsWith(c)){const t=new RegExp(`^store_(\\w+)_${n}_${r}(\\w*)$`);return u(e,t)}if((e||"").startsWith(l)){const t=new RegExp(`^crawler_(\\w+)_${n}_${r}(\\w*)$`);return u(e,t)}return null})(t,n);return r&&`${e}${o.A}${r}`},f=(e,t)=>{const[n,r]=(e||"").split(o.A),i=((e,t)=>{const[n,r]=(t||"").toLowerCase().split("-"),[i,o]=(e||"").split("-"),c=a[i];if(!c)return null;const l=s[o]?`_${s[o]}`:"";return c!==a.su?`store_${c}_${n}_${r}${l}`:`crawler_${c}_${n}_${r}${l}`})(r,t);return{queryId:n,indexName:i}};const p=new i.Fv("nintendo.algolia.cart",6048e5),h=new i.Fv("nintendo.algolia.searchId",18e5);let m;const g=async()=>(m||(m=(await n.e(1759).then(n.t.bind(n,61759,23))).default,m("init",{appId:o.D.appId,apiKey:o.D.appKey})),m),v=async(e,t,n)=>{const{eventName:r,locale:i,cache:a}=n,s=a?.get();if(!Boolean(Array.isArray(e)&&e?.length>0&&r&&i&&s))return;const c=e.reduce(((e,t)=>{const n=s[t];if(n){const r=e[n]||[];return{...e,[n]:[...r,t]}}return e}),{}),l=Object.entries(c).map((([e,n])=>{const{queryId:a,indexName:s}=f(e,i);return a&&s?{eventType:"conversion",userToken:t||o.g,queryID:a,index:s,objectIDs:Array.from(new Set(n)),eventName:r}:null})).filter(Boolean);if(l.length>0){(await g())("sendEvents",l)}!function(e,t){if(!e||!Array.isArray(t)||!t?.length)return;const n=e.get()||{};let r=!1;t.forEach((e=>{n[e]&&(delete n[e],r=!0)})),r&&(Object.keys(n).length>0?e.set({...n}):e.delete())}(a,e)},y=async(e,t)=>{const{queryId:n,eventName:r,indexName:i,position:a,objectId:s,isConversion:c}=e||{};if(!Boolean(r&&i&&s))return;const l=`${c?"converted":"clicked"}ObjectIDs${n?"AfterSearch":""}`;(await g())(l,{userToken:t||o.g,index:i,eventName:r,objectIDs:[s],...n?{queryID:n,...!c&&a?{positions:[a]}:null}:null})};var b=()=>{const e=(0,i.xe)(),{consentedGroups:t}=(0,i.fP)();return(0,r.useMemo)((()=>({trackEvent:(n,r)=>{if(!t?.has(i.ac.PERFORMANCE))return;const o=h.get(),{queryId:a,indexName:s}=f(o,r);y({...n,queryId:a,indexName:s},e?.userId)},itemClicked:(n,r)=>{t?.has(i.ac.PERFORMANCE)&&(async(e,t,n)=>{const{locale:r,eventName:i,searchId:o,position:a,cache:s}=n,{queryId:c,indexName:l}=f(o,r);Boolean(e&&i&&c&&l&&r&&s)&&(s.set(o),await y({queryId:c,indexName:l,eventName:i,position:a,objectId:e},t))})(n,e?.userId,{...r,cache:h})},addToCart:(n,r)=>{if(!t?.has(i.ac.PERFORMANCE))return;const o=h.get();(async(e,t,n)=>{const{locale:r,eventName:i,searchId:o,cache:a}=n,{queryId:s,indexName:c}=f(o,r);Boolean(e&&i&&s&&c&&r&&a)&&(function(e,t,n){if(!e||!t||!n)return;const r=e.get()||{};t&&e.set({...r,[n]:t})}(a,o,e),await y({queryId:s,indexName:c,eventName:i,objectId:e,isConversion:!0},t))})(n,e?.userId,{...r,searchId:o,cache:p})},purchaseComplete:(n,r)=>{t?.has(i.ac.PERFORMANCE)&&v(n,e?.userId,{...r,cache:p})}})),[e?.userId,t])}},62191:function(e,t,n){"use strict";var r=n(35962),i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t0?new c.cA({graphQLErrors:o}):void 0,h=e.onError||(null===(n=p.current.options)||void 0===n?void 0:n.onError);if(s&&h&&h(s,d),u===p.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:i,error:s,client:l};p.current.isMounted&&!(0,a.D)(p.current.result,m)&&f(p.current.result=m)}var g=e.onCompleted||(null===(r=p.current.options)||void 0===r?void 0:r.onCompleted);return s||null===g||void 0===g||g(t.data,d),t})).catch((function(t){var n;if(u===p.current.mutationId&&p.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:l};(0,a.D)(p.current.result,r)||f(p.current.result=r)}var i=e.onError||(null===(n=p.current.options)||void 0===n?void 0:n.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t}))}),[]),m=i.useCallback((function(){if(p.current.isMounted){var e={called:!1,loading:!1,client:n};Object.assign(p.current,{mutationId:0,result:e}),f(e)}}),[]);return i.useEffect((function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}}),[]),[h,(0,r.pi)({reset:m},d)]}},2756:function(e,t,n){"use strict";n.d(t,{A:function(){return E},a:function(){return A}});var r=n(22970),i=n(80996),o=n(38421),a=n.t(o,2),s=n(43869),c=!1,l=a.useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||c||r===t()||(c=!0,!1!==globalThis.__DEV__&&i.kG.error(58));var a=o.useState({inst:{value:r,getSnapshot:t}}),l=a[0].inst,d=a[1];return s.JC?o.useLayoutEffect((function(){Object.assign(l,{value:r,getSnapshot:t}),u(l)&&d({inst:l})}),[e,r,t]):Object.assign(l,{value:r,getSnapshot:t}),o.useEffect((function(){return u(l)&&d({inst:l}),e((function(){u(l)&&d({inst:l})}))}),[e]),r};function u(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(r){return!0}}var d=n(78807),f=n(58769),p=n(42370),h=n(45832),m=n(64368),g=n(87274),v=n(56675),y=n(23180),b=n(9428),w=n(43056),k=Symbol.for("apollo.hook.wrappers");var S=Object.prototype.hasOwnProperty;function A(e,t){return void 0===t&&(t=Object.create(null)),function(e,t,n){var r=n.queryManager,i=r&&r[k],o=i&&i[e];return o?o(t):t}("useQuery",x,(0,v.x)(t&&t.client))(e,t)}function x(e,t){return E((0,v.x)(t.client),e).useQuery(t)}function E(e,t){var n=o.useRef();n.current&&e===n.current.client&&t===n.current.query||(n.current=new N(e,t,n.current));var r=n.current;return r.forceUpdateState=o.useReducer((function(e){return e+1}),0)[1],r}var N=function(){function e(e,t,n){var r=this;this.client=e,this.query=t,this.forceUpdate=function(){return r.forceUpdateState()},this.ssrDisabledResult=(0,y.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.Ie.loading}),this.skipStandbyResult=(0,y.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.Ie.ready}),this.toQueryResultCache=new(s.mr?WeakMap:Map),(0,g.Vp)(t,g.n_.Query);var i=n&&n.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.kG.warn(51)},e.prototype.executeQuery=function(e){var t,n=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var r=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;r.subscribe({next:function(e){t=e},error:function(){e(n.toQueryResult(n.observable.getCurrentResult()))},complete:function(){e(n.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=o.useContext((0,p.K)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=l(o.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var r=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&(0,d.D)(e.data,r.data)||t.setResult(r)},i=function(e){if(o.unsubscribe(),o=n.resubscribeAfterError(r,i),!S.call(e,"graphQLErrors"))throw e;var a=t.result;(!a||a&&a.loading||!(0,d.D)(e,a.error))&&t.setResult({data:a&&a.data,error:e,loading:!1,networkStatus:m.Ie.error})},o=n.subscribe(r,i);return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(r),this.toQueryResult(r)},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(0,d.D)(r,i)||(this.watchQueryOptions=r,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(f.J)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,r._T)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(i,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),n){var a=o.fetchPolicy,s=void 0===a?this.getDefaultFetchPolicy():a,c=o.initialFetchPolicy,l=void 0===c?s:c;Object.assign(o,{initialFetchPolicy:l,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=o.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var n=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then((function(){r?n.onError(r):e.data&&(null===t||void 0===t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===m.Ie.ready&&n.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}))}},e.prototype.toApolloError=function(e){return(0,w.O)(e.errors)?new h.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,(0,r._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,r.pi)((0,r.pi)((0,r.pi)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,w.O)(e.errors)&&(t.error=new h.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:m.Ie.refetch}),this.observable.refetch())},e}()},87274:function(e,t,n){"use strict";n.d(t,{Vp:function(){return d},n_:function(){return r}});var r,i,o=n(80996),a=n(50734),s=n(44245),c=n(80892);function l(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function u(e){i||(i=new a.s(s.Q.parser||1e3));var t,n,c=i.get(e);if(c)return c;(0,o.kG)(!!e&&!!e.kind,59,e);for(var l=[],u=[],d=[],f=[],p=0,h=e.definitions;p0}},43869:function(e,t,n){"use strict";n.d(t,{DN:function(){return s},JC:function(){return u},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var r=n(80996),i="function"===typeof WeakMap&&!(0,r.wY)((function(){return"ReactNative"==navigator.product&&!global.HermesInternal})),o="function"===typeof WeakSet,a="function"===typeof Symbol&&"function"===typeof Symbol.for,s=a&&Symbol.asyncIterator,c="function"===typeof(0,r.wY)((function(){return window.document.createElement})),l=(0,r.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,u=c&&!l},9428:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t")}},80996:function(e,t,n){"use strict";n.d(t,{CO:function(){return h},kG:function(){return v},wY:function(){return p},_K:function(){return y}});var r=n(22970),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n=i);var r=e.call(this,"number"===typeof n?i+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=i,a(r,t.prototype),r}return(0,r.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new s(t)}var l=["debug","log","warn","error","silent"],u=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=u){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(c||(c={}));var f=n(12674);function p(e){try{return e()}catch(o){}}var h=p((function(){return globalThis}))||p((function(){return window}))||p((function(){return self}))||p((function(){return global}))||p((function(){return p.constructor("return this")()})),m=n(63118);function g(e){return function(t){for(var n=[],r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},12215:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(59147);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},32802:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86522);function i(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},86522:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:function(){return r}})},59147:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(926);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},28546:function(e,t,n){"use strict";n.d(t,{uN:function(){return c}});n(96956),n(69867);var r=n(21282),i=n(10831);n(76575);i.x;var o=n(48459);o.a;o.a;var a=n(49313);class s extends o.a{constructor(e){super(),this._actionModel={actionType:"dpr"};const t=(0,a.l)(e);this._actionModel.dpr=t,this.addQualifier(new r.q("dpr",t))}static fromJson(e){const{dpr:t}=e;return new this(t)}}function c(e){return new s(e)}},10831:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(48459),i=n(69867);class o extends i.N{constructor(e){super(e),this.val=e}getValue(){return this.val}}var a=n(21282),s=n(76575);class c extends r.a{constructor(e,t,n){let r;super(),this._actionModel={},r=t instanceof o?t.getValue():t,this._actionModel.actionType=s.yX[e],this._actionModel[n]=r,this.addQualifier(new a.q(e,t))}}},96956:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(75751),i=n(10831),o=n(69123);class a extends o.A{constructor(e){super("progressive",e)}}class s extends i.x{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag((0,r.Mw)()),this}progressive(e){return e instanceof a?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag((0,r.c5)(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag((0,r.mC)()),this}static fromJson(e){const{formatType:t,lossy:n,progressive:r,preserveTransparency:i}=e;let o;return o=t?new this("f",t):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}}},81440:function(e,t,n){"use strict";n.d(t,{hl:function(){return Z},Tj:function(){return K},z5:function(){return J},vk:function(){return Y},bA:function(){return W}});var r=n(21282),i=n(48459),o=n(49313),a=n(69867);class s extends a.N{}var c=n(75751),l=n(69123),u=n(76575);class d extends i.a{constructor(e,t,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=u.IZ[e]||e,this.addQualifier(new r.q("c",e)),t&&this.width(t),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new r.q("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new r.q("w",e))}aspectRatio(e){return e instanceof s?(this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new r.q("ar",e))):"number"===typeof e||"string"===typeof e?(this._actionModel.dimensions.aspectRatio=(0,o.l)(e),this.addQualifier(new r.q("ar",(0,o.l)(e)))):e instanceof l.A?(this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag((0,c.Gf)())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag((0,c.S7)())}static fromJson(e){const{actionType:t,dimensions:n,relative:r,regionRelative:i}=e,{aspectRatio:o,width:a,height:s}=n,l=new this(u.Q8[t]||t,a,s);return o&&l.aspectRatio("ignore_aspect_ratio"===o?(0,c.og)():o),r&&l.relative(),i&&l.regionRelative(),l}}class f extends r.q{constructor(e){super("g",new a.N(e))}}class p extends f{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class h extends f{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class m extends f{constructor(e){super(e)}}function g(...e){const t=[...e];return new h(t)}function v(){return new p}class y extends a.N{constructor(e){super(),this.name=e}toString(){return this.name}}function b(e){return`${e}`.replace("g_","")}function w(e){const t=e.toString().split("_"),n={object:t[0]};return t.length>1&&("avoid"===t[1]?n.avoid=!0:n.weight=+t[1]),n}function k(e){let t;const n="auto"===e?new p:e;t=`${e}`.startsWith("auto:")?`${e}`.split(":").filter((e=>"auto"!==e)):n.qualifierValue.values.filter((e=>"auto"!==e));return{gravityType:"auto",autoFocus:t.map(w)}}function S(e){return function(e){const t=b(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}(e)?function(e){return{compass:b(e),gravityType:"direction"}}(e):function(e){return"ocr_text"===b(e)}(e)?{gravityType:"ocr"}:function(e){return e&&"auto"===`${e}`.split(":")[0]}(e)||function(e){return"auto"===`${e.qualifierValue}`.split(":")[0]}(e)?k(e):function(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,r={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map((e=>`${e}`))};if(t){const e=n[n.length-1].values.slice(1),t=v().autoFocus(...e);r.fallbackGravity=k(t)}return r}("string"===typeof e?function(e){const t=e.split(":").map((e=>new y(e)));return new h(t)}(e):e)}function A(){return new y("ocr_text")}class x extends a.N{constructor(e,t){super(),this._weight=t,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,t){return new x(e,t)}shouldAddWeight(){return"number"===typeof this._weight||"string"===typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class E extends a.N{constructor(e){super(),this.val=e}toString(){return this.val}}function N(e){const{object:t,weight:n,avoid:r}=e,i=new x(new y(t));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function C(e){const t=(e.autoFocus||[]).map(N);return v().autoFocus(...t)}function _(e){return function(e){return"direction"===e.gravityType}(e)?new m(new E(e.compass)):function(e){return"ocr"===e.gravityType}(e)?g(A()):function(e){return"auto"===e.gravityType}(e)?C(e):function(e){const t=g(...(e.focusOnObjects||[]).map((e=>new y(e))));if(e.fallbackGravity){const n=C(e.fallbackGravity);t.fallbackGravity(n)}return t}(e)}class O extends d{gravity(e){this._actionModel.gravity=S(e);const t="string"===typeof e?new r.q("g",e):e;return this.addQualifier(t)}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.gravity&&t.gravity(_(e.gravity)),t}}var I=n(67636),T=n(52926),M=n(77029),P=n(2711),j=n(81960),D=n(42094);function R(e){return`${e}`.replace("b_","")}function L(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function F(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=L(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function z(e){return"auto"===R(e)?{backgroundType:"auto"}:e instanceof I.ZP?function(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||0===t)&&(r.intensity=t),(n||0===n)&&(r.brightness=n),r}(e):e instanceof T.s?function(e){return Object.assign(Object.assign({},L(e)),{backgroundType:"border"})}(e):e instanceof M.P?function(e){return Object.assign(Object.assign({},F(e)),{backgroundType:"borderGradient"})}(e):e instanceof j.C?function(e){return Object.assign(Object.assign({},L(e)),{backgroundType:"predominant"})}(e):e instanceof P.L?function(e){return Object.assign(Object.assign({},F(e)),{backgroundType:"predominantGradient"})}(e):e instanceof D.$?function(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}(e):function(e){return{backgroundType:"color",color:R(e)}}(e)}var B=n(11022);function V(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function $(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function U(e){const{backgroundType:t}=e;switch(t){case"auto":return(0,B.d7)();case"blurred":return function(e){const{brightness:t,intensity:n}=e,r=B.Aq.blurred();return r.brightness(null!==t&&void 0!==t?t:I.P0),r.intensity(null!==n&&void 0!==n?n:I.JP),r}(e);case"border":return $((0,B.Cg)(),e);case"borderGradient":return V((0,B.hc)(),e);case"predominant":return $((0,B.TW)(),e);case"predominantGradient":return V((0,B.K4)(),e);case"generativeFill":return function(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}((0,B.VE)(),e);default:return(0,B.$_)(e.color)}}class q extends O{background(e){return this._actionModel.background=z(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new r.q("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new r.q("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.background&&t.background(U(e.background)),e.x&&t.offsetX(e.x),e.y&&t.offsetY(e.y),e.zoom&&t.zoom(e.zoom),t}}class Q extends d{liquidRescaling(){return this.addQualifier(new f("liquid"))}}class G extends O{x(e){return this._actionModel.x=e,this.addQualifier(new r.q("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new r.q("y",e))}static fromJson(e){const t=super.fromJson.apply(this,[e]);return e.x&&t.x(e.x),e.y&&t.y(e.y),t}}class H extends q{}function W(e,t){return new Q("scale",e,t)}function Z(e,t){return new G("fill",e,t)}function K(e,t){return new d("fit",e,t)}function Y(e,t){return new q("pad",e,t)}function J(e,t){return new H("lpad",e,t)}},48459:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var r=n(69123),i=n(21282);var o=n(3153);function a(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:(0,o.S)(`unsupported action ${this.constructor.name}`)}}class s extends class{constructor(){this._actionModel={}}toJson(){return a.apply(this)}}{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),function(e,t){const n=Array.from(e.entries());return t.forEach((e=>{n.push(["fl",e])})),n.sort().map((e=>e[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"===typeof e){const[t,n]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new r.A(n)):this.qualifiers.set(t,new i.q(t,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"===typeof e?this.flags.push(new r.A(e)):e instanceof r.A&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}},76575:function(e,t,n){"use strict";function r(e){const t={};return Object.keys(e).forEach((n=>{t[e[n]]=n})),t}n.d(t,{Q8:function(){return i},vg:function(){return o},XP:function(){return c},Gf:function(){return a},mw:function(){return s},CY:function(){return l},IZ:function(){return u},yX:function(){return d}});const i={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},o={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},a={444:"CHROMA_444",420:"CHROMA_420"},s={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},c=r(a),l=r(s),u=r(i),d=r({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});r({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),r(o),r({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"})},21282:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(69867),i=n(3153);function o(){return this._qualifierModel||{error:(0,i.S)(`unsupported qualifier ${this.constructor.name}`)}}class a extends class{constructor(){this._qualifierModel={}}toJson(){return o.apply(this)}}{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof r.N?this.qualifierValue=t:(this.qualifierValue=new r.N,this.qualifierValue.addValue(t))}toString(){const{key:e,delimiter:t,qualifierValue:n}=this;return`${e}${t}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}},69867:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});class r{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return"undefined"!==typeof e&&null!==e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter((e=>this.hasValue(e))),this}setDelimiter(e){return this.delimiter=e,this}}},25935:function(e,t,n){"use strict";function r(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}n.d(t,{M:function(){return r}})},49313:function(e,t,n){"use strict";function r(e){const t=e.toString();if(t.match(/[A-Z]/gi))return t;if(t.length>1&&"0"===t[0])return t;return!isNaN(parseFloat(t))&&-1===t.indexOf(":")&&-1===t.indexOf(".")?`${t}.0`:t}n.d(t,{l:function(){return r}})},3153:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});class r extends Error{constructor(e="Unsupported"){super(e)}}function i(e){return new r(e)}},11022:function(e,t,n){"use strict";n.d(t,{$_:function(){return g},Aq:function(){return y},Cg:function(){return d},K4:function(){return h},TW:function(){return m},VE:function(){return v},d7:function(){return f},hc:function(){return p}});var r=n(25935),i=n(52926),o=n(77029),a=n(81960),s=n(2711),c=n(67636),l=n(80507),u=n(42094);function d(){return new i.s}function f(){return new l.G("auto")}function p(){return new o.P}function h(){return new s.L}function m(){return new a.C}function g(e){return new l.G((0,r.M)(e))}function v(){return new u.$}const y={auto:f,border:d,borderGradient:p,predominantGradient:h,predominant:m,color:g,blurred:function(){return new c.ZP},generativeFill:v}},42094:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(80507);class i extends r.G{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}},67636:function(e,t,n){"use strict";n.d(t,{JP:function(){return i},P0:function(){return o}});var r=n(80507);const i=100,o=0;class a extends r.G{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:${i}:${this.brightnessLevel}`:""}`}}t.ZP=a},52926:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(29048);class i extends r.p{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}},81960:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(29048);class i extends r.p{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}},80507:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(21282);class i extends r.q{constructor(e){super("b"),e&&this.addValue(e)}}},29048:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var r=n(25935),i=n(80507);class o extends i.G{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map((e=>(0,r.M)(e))),this}}},29170:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(29048);class i extends r.p{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}},77029:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(29170);class i extends r.p{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}},2711:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(29170);class i extends r.p{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}},75751:function(e,t,n){"use strict";n.d(t,{Gf:function(){return l},Mw:function(){return o},S7:function(){return c},c5:function(){return s},mC:function(){return a},og:function(){return i}});var r=n(69123);function i(){return new r.A("ignore_aspect_ratio")}function o(){return new r.A("lossy")}function a(){return new r.A("preserve_transparency")}function s(e){return new r.A("progressive",e)}function c(){return new r.A("region_relative")}function l(){return new r.A("relative")}},69123:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(69867),i=n(21282);class o extends i.q{constructor(e,t){let n;n=t?new r.N([e,`${t}`]).setDelimiter(":"):e,super("fl",n),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}},4820:function(e,t,n){"use strict";function r(){}n.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},61114:function(e,t,n){"use strict";function r(){}n.d(t,{k:function(){return c}});const i=r,o="undefined"!==typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="undefined"!==typeof WeakMap?WeakMap:Map,s="undefined"!==typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class c{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new o(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},78807:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});const{toString:r,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return c(e,t)}finally{a.clear()}}function c(e,t){if(e===t)return!0;const n=r.call(e);if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(f(e,t))return!0;const n=l(e),r=l(t),o=n.length;if(o!==r.length)return!1;for(let e=0;e=0&&e.indexOf(t,n)===n}(n,d)}}return!1}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}t.Z=s;const d="{ [native code] }";function f(e,t){let n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},27047:function(e,t,n){"use strict";n.d(t,{S:function(){return p}});var r=n(41429),i=n(88145),o=n(57035),a=n(51366);const s=.001;function c({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let c,u;(0,o.K)(e<=(0,r.w)(10),"Spring duration must be 10 seconds or less");let d=1-t;d=(0,a.u)(.05,1,d),e=(0,a.u)(.01,10,(0,r.X)(e)),d<1?(c=t=>{const r=t*d,i=r*e,o=r-n,a=l(t,d),c=Math.exp(-i);return s-o/a*c},u=t=>{const r=t*d*e,i=r*n+n,o=Math.pow(d,2)*Math.pow(t,2)*e,a=Math.exp(-r),u=l(Math.pow(t,2),d);return(-c(t)+s>0?-1:1)*((i-o)*a)/u}):(c=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,u=t=>Math.exp(-t*e)*(e*e*(n-t)));const f=function(e,t,n){let r=n;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(c,u,5/e);if(e=(0,r.w)(e),isNaN(f))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(f,2)*i;return{stiffness:t,damping:2*d*Math.sqrt(i*t),duration:e}}}function l(e,t){return e*Math.sqrt(1-t*t)}const u=["duration","bounce"],d=["stiffness","damping","mass"];function f(e,t){return t.some((t=>void 0!==e[t]))}function p({keyframes:e,restDelta:t,restSpeed:n,...o}){const a=e[0],s=e[e.length-1],p={done:!1,value:a},{stiffness:h,damping:m,mass:g,duration:v,velocity:y,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!f(e,d)&&f(e,u)){const n=c(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-(0,r.X)(o.velocity||0)}),w=y||0,k=m/(2*Math.sqrt(h*g)),S=s-a,A=(0,r.X)(Math.sqrt(h/g)),x=Math.abs(S)<5;let E;if(n||(n=x?.01:2),t||(t=x?.005:.5),k<1){const e=l(A,k);E=t=>{const n=Math.exp(-k*A*t);return s-n*((w+k*A*S)/e*Math.sin(e*t)+S*Math.cos(e*t))}}else if(1===k)E=e=>s-Math.exp(-A*e)*(S+(w+A*S)*e);else{const e=A*Math.sqrt(k*k-1);E=t=>{const n=Math.exp(-k*A*t),r=Math.min(e*t,300);return s-n*((w+k*A*S)*Math.sinh(r)+e*S*Math.cosh(r))/e}}return{calculatedDuration:b&&v||null,next:e=>{const r=E(e);if(b)p.done=e>=v;else{let o=w;0!==e&&(o=k<1?(0,i.P)(E,e,r):0);const a=Math.abs(o)<=n,c=Math.abs(s-r)<=t;p.done=a&&c}return p.value=p.done?s:r,p}}}},60779:function(e,t,n){"use strict";n.d(t,{E:function(){return r},i:function(){return i}});const r=2e4;function i(e){let t=0;let n=e.next(t);for(;!n.done&&t=r?1/0:t}},88145:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(75394);function i(e,t,n){const i=Math.max(t-5,0);return(0,r.R)(n-e(i),t-i)}},84263:function(e,t,n){"use strict";n.d(t,{v:function(){return Ee}});var r=n(41429),i=n(73442);const o={type:"spring",stiffness:500,damping:25,restSpeed:10},a={type:"keyframes",duration:.8},s={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},c=(e,{keyframes:t})=>t.length>2?a:i.G.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:o:s;var l=n(73172),u=n(23200);const d=!1,f=e=>null!==e;function p(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(f),o=t&&"loop"!==n&&t%2===1?0:i.length-1;return o&&void 0!==r?r:i[o]}var h=n(41359),m=n(82644),g=n(49203),v=n(9907),y=n(50065),b=n(30011),w=n(57035),k=n(76865);const S=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!k.P.test(e)&&"0"!==e||e.startsWith("url(")));class A{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,b.m)(),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:c}=this.options;if(!c&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;const o=e[e.length-1],a=S(i,t),s=S(o,t);return(0,w.K)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e}))}}var x=n(27047),E=n(88145);function N({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?c:void 0===c||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?g:n};let w,k;const S=e=>{var t;(t=f.value,void 0!==s&&tc)&&(w=e,k=(0,x.S)({keyframes:[f.value,p(f.value)],velocity:(0,E.P)(y,e,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return k||void 0!==w||(t=!0,b(e),S(e)),void 0!==w&&e>=w?k.next(e-w):(!t&&b(e),f)}}}const C=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function _(e,t,n,r){if(e===t&&n===r)return y.Z;const i=t=>function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=C(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:C(i(e),t,r)}const O=_(.42,0,1,1),I=_(0,0,.58,1),T=_(.42,0,.58,1);var M=n(29554),P=n(41469),j=n(17070),D=n(26574);const R=_(.33,1.53,.69,.99),L=(0,D.M)(R),F=(0,j.o)(L),z={linear:y.Z,easeIn:O,easeInOut:T,easeOut:I,circIn:P.Z7,circInOut:P.X7,circOut:P.Bn,backIn:L,backInOut:F,backOut:R,anticipate:e=>(e*=2)<1?.5*L(e):.5*(2-Math.pow(2,-10*(e-1)))},B=e=>{if(Array.isArray(e)){(0,w.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return _(t,n,r,i)}return"string"===typeof e?((0,w.k)(void 0!==z[e],`Invalid easing type '${e}'`),z[e]):e};var V=n(51366),$=n(96953),U=n(17475),q=n(19038);function Q(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var G=n(92395),H=n(56572),W=n(86845);const Z=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},K=[G.$,H.m,W.J];function Y(e){const t=(n=e,K.find((e=>e.test(n))));var n;(0,w.k)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===W.J&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Q(s,r,e+1/3),o=Q(s,r,e),a=Q(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(r)),r}const J=(e,t)=>{const n=Y(e),r=Y(t),i={...n};return e=>(i.red=Z(n.red,r.red,e),i.green=Z(n.green,r.green,e),i.blue=Z(n.blue,r.blue,e),i.alpha=(0,q.t)(n.alpha,r.alpha,e),H.m.transform(i))};var X=n(45982),ee=n(91331);function te(e,t){return n=>n>0?t:e}function ne(e,t){return n=>(0,q.t)(e,t,n)}function re(e){return"number"===typeof e?ne:"string"===typeof e?(0,ee.t)(e)?te:X.$.test(e)?J:ae:Array.isArray(e)?ie:"object"===typeof e?X.$.test(e)?J:oe:te}function ie(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>re(e)(e,t[n])));return e=>{for(let t=0;t{for(const t in r)n[t]=r[t](e);return n}}const ae=(e,t)=>{const n=k.P.createTransformer(t),r=(0,k.V)(e),i=(0,k.V)(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?(0,$.z)(ie(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;ot[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||se,o=e.length-1;for(let a=0;a{let n=0;if(s>1)for(;nc((0,V.u)(e[0],e[o-1],t)):c}var le=n(95254);function ue({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(0,M.N)(r)?r.map(B):B(r),o={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:(0,le.Y)(t),e),s=ce(a,t,{ease:Array.isArray(i)?i:(c=t,l=i,c.map((()=>l||T)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}var de=n(60779);const fe=e=>{const t=({timestamp:t})=>e(t);return{start:()=>h.Wi.update(t,!0),stop:()=>(0,h.Pn)(t),now:()=>h.w0.isProcessing?h.w0.timestamp:m.X.now()}},pe={decay:N,inertia:N,tween:ue,keyframes:ue,spring:x.S},he=e=>e/100;class me extends A{constructor({KeyframeResolver:e=b.e,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:r,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(i,o,n,r):this.resolver=new e(i,o,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=pe[t]||ue;let s,c;a!==ue&&"number"!==typeof e[0]&&(s=(0,$.z)(he,se(e[0],e[1])),e=[0,100]);const l=a({...this.options,keyframes:e});"mirror"===i&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=(0,de.i)(l));const{calculatedDuration:u}=l,d=u+r;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:c,totalDuration:l,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-l/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>l;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=l);let b=this.currentTime,w=i;if(f){const e=Math.min(this.currentTime,l)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(n=1-n,m&&(n-=m/u)):"mirror"===h&&(w=o)),b=(0,V.u)(0,1,n)*u}const k=y?{done:!1,value:s[0]}:w.next(b);a&&(k.value=a(k.value));let{done:S}=k;y||null===c||(S=this.speed>=0?this.currentTime>=l:this.currentTime<=0);const A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&void 0!==r&&(k.value=p(s,this.options,r)),g&&g(k.value),A&&this.finish(),k}get duration(){const{resolved:e}=this;return e?(0,r.X)(e.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(e){e=(0,r.w)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=fe,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const ge=e=>Array.isArray(e)&&"number"===typeof e[0];function ve(e){return Boolean(!e||"string"===typeof e&&e in be||ge(e)||Array.isArray(e)&&e.every(ve))}const ye=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,be={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ye([0,.65,.55,1]),circOut:ye([.55,0,1,.45]),backIn:ye([.31,.01,.66,-.59]),backOut:ye([.33,1.53,.69,.99])};function we(e){return ke(e)||be.easeOut}function ke(e){return e?ge(e)?ye(e):Array.isArray(e)?e.map(we):be[e]:void 0}const Se=(0,v.X)((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Ae=new Set(["opacity","clipPath","filter","transform"]);class xe extends A{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new g.s(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:a,motionValue:s,name:c}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(l=this.options).type||"backgroundColor"===l.name||!ve(l.ease)){const{onComplete:t,onUpdate:n,motionValue:s,...c}=this.options,l=function(e,t){const n=new me({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,c);1===(e=l.keyframes).length&&(e[1]=e[0]),r=l.duration,i=l.times,o=l.ease,a="keyframes"}var l;const u=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=ke(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,c,e,{...this.options,duration:r,times:i,ease:o});return u.startTime=m.X.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(p(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return(0,r.X)(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return(0,r.X)(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=(0,r.w)(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return y.Z;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return y.Z}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:i,type:o,ease:a,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:c,...l}=this.options,u=new me({...l,keyframes:n,duration:i,type:o,ease:a,times:s,isGenerator:!0}),d=(0,r.w)(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return Se()&&n&&Ae.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}const Ee=(e,t,n,i={},o,a)=>s=>{const f=(0,l.e)(i,e)||{},m=f.delay||i.delay||0;let{elapsed:g=0}=i;g-=(0,r.w)(m);let v={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-g,onUpdate:e=>{t.set(e),f.onUpdate&&f.onUpdate(e)},onComplete:()=>{s(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:a?void 0:o};(0,l.r)(f)||(v={...v,...c(e,v)}),v.duration&&(v.duration=(0,r.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,r.w)(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let y=!1;if((!1===v.type||0===v.duration&&!v.repeatDelay)&&(v.duration=0,0===v.delay&&(y=!0)),(d||u.c.skipAnimations)&&(y=!0,v.duration=0,v.delay=0),y&&!a&&void 0!==t.get()){const e=p(v.keyframes,f);if(void 0!==e)return void h.Wi.update((()=>{v.onUpdate(e),v.onComplete()}))}return!a&&xe.supports(v)?new xe(v):new me(v)}},82609:function(e,t,n){"use strict";n.d(t,{w:function(){return h}});var r=n(73442),i=n(67098),o=n(84263),a=n(67397),s=n(13809),c=n(40226),l=n(12841);function u(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,c.BX)(n))}var d=n(73172),f=n(41359);function p({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function h(e,t,{delay:n=0,transitionOverride:c,type:h}={}){var m;let{transition:g=e.getDefaultTransition(),transitionEnd:v,...y}=t;const b=e.getValue("willChange");c&&(g=c);const w=[],k=h&&e.animationState&&e.animationState.getState()[h];for(const s in y){const t=e.getValue(s,null!==(m=e.latestValues[s])&&void 0!==m?m:null),c=y[s];if(void 0===c||k&&p(k,s))continue;const l={delay:n,elapsed:0,...(0,d.e)(g||{},s)};let u=!1;if(window.HandoffAppearAnimations){const t=e.getProps()[i.M];if(t){const e=window.HandoffAppearAnimations(t,s);null!==e&&(l.elapsed=e,u=!0)}}t.start((0,o.v)(s,t,c,e.shouldReduceMotion&&r.G.has(s)?{type:!1}:l,e,u));const f=t.animation;f&&((0,a.L)(b)&&(b.add(s),f.then((()=>b.remove(s)))),w.push(f))}return v&&Promise.all(w).then((()=>{f.Wi.update((()=>{v&&function(e,t){const n=(0,l.x)(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o)u(e,a,(0,s.Y)(o[a]))}(e,v)}))})),w}},67098:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});const r="data-"+(0,n(18754).D)("framerAppearId")},12816:function(e,t,n){"use strict";function r(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}n.d(t,{H:function(){return r}})},55721:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});const r=e=>Array.isArray(e)},73172:function(e,t,n){"use strict";function r({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function i(e,t){return e[t]||e.default||e}n.d(t,{e:function(){return i},r:function(){return r}})},65239:function(e,t,n){"use strict";n.d(t,{M:function(){return y}});var r=n(52322),i=n(2784),o=n(23617);function a(){const e=(0,i.useRef)(!1);return(0,o.L)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}var s=n(41359);var c=n(97967),l=n(3105),u=n(60976);class d extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t}){const n=(0,i.useId)(),o=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(u._);return(0,i.useInsertionEffect)((()=>{const{width:e,height:r,top:i,left:c}=a.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return s&&(l.nonce=s),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${i}px !important;\n left: ${c}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),(0,r.jsx)(d,{isPresent:t,childRef:o,sizeRef:a,children:i.cloneElement(e,{ref:o})})}const p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:s,mode:u})=>{const d=(0,l.h)(h),p=(0,i.useId)(),m=(0,i.useMemo)((()=>({id:p,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(const t of d.values())if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))})),s?[Math.random()]:[n]);return(0,i.useMemo)((()=>{d.forEach(((e,t)=>d.set(t,!1)))}),[n]),i.useEffect((()=>{!n&&!d.size&&o&&o()}),[n]),"popLayout"===u&&(e=(0,r.jsx)(f,{isPresent:n,children:e})),(0,r.jsx)(c.O.Provider,{value:m,children:e})};function h(){return new Map}var m=n(3422);var g=n(57035);const v=e=>e.key||"";const y=({children:e,custom:t,initial:n=!0,onExitComplete:c,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:d="sync"})=>{(0,g.k)(!l,"Replace exitBeforeEnter with mode='wait'");const f=(0,i.useContext)(m.p).forceRender||function(){const e=a(),[t,n]=(0,i.useState)(0),r=(0,i.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,i.useCallback)((()=>s.Wi.postRender(r)),[r]),t]}()[0],h=a(),y=function(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}(e);let b=y;const w=(0,i.useRef)(new Map).current,k=(0,i.useRef)(b),S=(0,i.useRef)(new Map).current,A=(0,i.useRef)(!0);var x;if((0,o.L)((()=>{A.current=!1,function(e,t){e.forEach((e=>{const n=v(e);t.set(n,e)}))}(y,S),k.current=b})),x=()=>{A.current=!0,S.clear(),w.clear()},(0,i.useEffect)((()=>()=>x()),[]),A.current)return(0,r.jsx)(r.Fragment,{children:b.map((e=>(0,r.jsx)(p,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:d,children:e},v(e))))});b=[...b];const E=k.current.map(v),N=y.map(v),C=E.length;for(let r=0;r{if(-1!==N.indexOf(n))return;const i=S.get(n);if(!i)return;const o=E.indexOf(n);let a=e;if(!a){const e=()=>{w.delete(n);const e=Array.from(S.keys()).filter((e=>!N.includes(e)));if(e.forEach((e=>S.delete(e))),k.current=y.filter((t=>{const r=v(t);return r===n||e.includes(r)})),!w.size){if(!1===h.current)return;f(),c&&c()}};a=(0,r.jsx)(p,{isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:u,mode:d,children:i},v(i)),w.set(n,a)}b.splice(o,0,a)})),b=b.map((e=>{const t=e.key;return w.has(t)?e:(0,r.jsx)(p,{isPresent:!0,presenceAffectsLayout:u,mode:d,children:e},v(e))})),(0,r.jsx)(r.Fragment,{children:w.size?b:b.map((e=>(0,i.cloneElement)(e)))})}},35463:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(52322),i=n(2784),o=n(3273),a=n(94293);function s({children:e,features:t,strict:n=!1}){const[,s]=(0,i.useState)(!c(t)),l=(0,i.useRef)(void 0);if(!c(t)){const{renderer:e,...n}=t;l.current=e,(0,a.K)(n)}return(0,i.useEffect)((()=>{c(t)&&t().then((({renderer:e,...t})=>{(0,a.K)(t),l.current=e,s(!0)}))}),[]),(0,r.jsx)(o.u.Provider,{value:{renderer:l.current,strict:n},children:e})}function c(e){return"function"===typeof e}},3422:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});const r=(0,n(2784).createContext)({})},3273:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});const r=(0,n(2784).createContext)({strict:!1})},60976:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});const r=(0,n(2784).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},46154:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});const r=(0,n(2784).createContext)({})},97967:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});const r=(0,n(2784).createContext)(null)},64460:function(e,t,n){"use strict";n.d(t,{g:function(){return r}});const r=(0,n(2784).createContext)({})},41469:function(e,t,n){"use strict";n.d(t,{Bn:function(){return a},X7:function(){return s},Z7:function(){return o}});var r=n(17070),i=n(26574);const o=e=>1-Math.sin(Math.acos(e)),a=(0,i.M)(o),s=(0,r.o)(o)},17070:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});const r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},26574:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});const r=e=>t=>1-e(1-t)},29554:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=e=>Array.isArray(e)&&"number"!==typeof e[0]},78624:function(e,t,n){"use strict";function r(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}n.d(t,{E:function(){return r}})},67817:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(78624),i=n(98457);function o(e,t,n,o){return(0,r.E)(e,t,(0,i.s)(n),o)}},98457:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},s:function(){return o}});var r=n(53502);function i(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const o=e=>t=>(0,r.D)(t)&&e(t,i(t))},53502:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});const r=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary},57780:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(23200);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const o=["read","resolveKeyframes","update","preRender","render","postRender"];function a(e,t){let n=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},c=o.reduce(((e,t)=>(e[t]=function(e){let t=new i,n=new i,r=0,o=!1,a=!1;const s=new WeakSet,c={schedule:(e,i=!1,a=!1)=>{const c=a&&o,l=c?t:n;return i&&s.add(e),l.add(e)&&c&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:i=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;nn=!0)),e)),{}),l=e=>{c[e].process(s)},u=()=>{const i=r.c.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&t&&(a=!1,e(u))};return{schedule:o.reduce(((t,r)=>{const i=c[r];return t[r]=(t,r=!1,o=!1)=>(n||(n=!0,a=!0,s.isProcessing||e(u)),i.schedule(t,r,o)),t}),{}),cancel:e=>o.forEach((t=>c[t].cancel(e))),state:s,steps:c}}},41359:function(e,t,n){"use strict";n.d(t,{Pn:function(){return a},S6:function(){return c},Wi:function(){return o},w0:function(){return s}});var r=n(50065),i=n(57780);const{schedule:o,cancel:a,state:s,steps:c}=(0,i.Z)("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},91353:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(57780);const{schedule:i,cancel:o}=(0,r.Z)(queueMicrotask,!1)},82644:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(23200),i=n(41359);let o;function a(){o=void 0}const s={now:()=>(void 0===o&&s.set(i.w0.isProcessing||r.c.useManualTiming?i.w0.timestamp:performance.now()),o),set:e=>{o=e,queueMicrotask(a)}}},54438:function(e,t,n){"use strict";function r(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}n.d(t,{fJ:function(){return a},gD:function(){return s}});const i=r("dragHorizontal"),o=r("dragVertical");function a(e){let t=!1;if("y"===e)t=o();else if("x"===e)t=i();else{const e=i(),n=o();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function s(){const e=a(!0);return!e||(e(),!1)}},94796:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});class r{constructor(e){this.isMounted=!1,this.node=e}update(){}}},18644:function(e,t,n){"use strict";n.d(t,{s:function(){return A}});var r=n(12816),i=n(55721);function o(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all((0,l.w)(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,c=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(d).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(u(e,t,{...o,delay:n+c(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[e,t]="beforeChildren"===f?[a,c]:[c,a];return e().then((()=>t()))}return Promise.all([a(),c(n.delay)])}function d(e,t){return e.sortNodePosition(t)}var f=n(41359);const p=[...c.e].reverse(),h=c.e.length;function m(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>u(e,t,n)));r=Promise.all(i)}else if("string"===typeof t)r=u(e,t,n);else{const i="function"===typeof t?(0,s.x)(e,t,n.custom):t;r=Promise.all((0,l.w)(e,i,n))}return r.then((()=>{f.Wi.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,t,n))))}function g(e){let t=m(e);const n={animate:y(!0),whileInView:y(),whileHover:y(),whileTap:y(),whileDrag:y(),whileFocus:y(),exit:y()};let c=!0;const l=t=>(n,r)=>{var i;const o=(0,s.x)(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function u(s){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let g={},y=1/0;for(let t=0;ty&&k,E=!1;const N=Array.isArray(w)?w:[w];let C=N.reduce(l(h),{});!1===S&&(C={});const{prevResolvedValues:_={}}=b,O={..._,...C},I=t=>{x=!0,m.has(t)&&(E=!0,m.delete(t)),b.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in O){const t=C[e],n=_[e];if(g.hasOwnProperty(e))continue;let r=!1;r=(0,i.C)(t)&&(0,i.C)(n)?!o(t,n):t!==n,r?void 0!==t&&null!==t?I(e):m.add(e):void 0!==t&&m.has(e)?I(e):b.protectedKeys[e]=!0}b.prevProp=w,b.prevResolvedValues=C,b.isActive&&(g={...g,...C}),c&&e.blockInitialAnimation&&(x=!1),!x||A&&!E||f.push(...N.map((e=>({animation:e,options:{type:h}}))))}if(m.size){const t={};m.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),f.push({animation:t})}let b=Boolean(f.length);return!c||!1!==u.initial&&u.initial!==u.animate||e.manuallyAnimateOnMount||(b=!1),c=!1,b?t(f):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const o=u(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function v(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!o(t,e)}function y(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var b=n(94796);class w extends b.L{constructor(e){super(e),e.animationState||(e.animationState=g(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),(0,r.H)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let k=0;class S extends b.L{constructor(){super(...arguments),this.id=k++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const A={animation:{Feature:w},exit:{Feature:S}}},7397:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});const r={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(const o in r)i[o]={isEnabled:e=>r[o].some((t=>!!e[t]))}},48904:function(e,t,n){"use strict";n.d(t,{E:function(){return A}});var r=n(67817),i=n(96953),o=n(54438),a=n(94796);function s(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd";return(0,r.a)(e.current,n,((n,r)=>{if("touch"===n.pointerType||(0,o.gD)())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const s=a[i];s&&s(n,r)}),{passive:!e.getProps()[i]})}class c extends a.L{mount(){this.unmount=(0,i.z)(s(this.node,!0),s(this.node,!1))}unmount(){}}var l=n(78624);class u extends a.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,i.z)((0,l.E)(this.node.current,"focus",(()=>this.onFocus())),(0,l.E)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}var d=n(98457);const f=(e,t)=>!!t&&(e===t||f(e,t.parentElement));var p=n(50065);function h(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,(0,d.Q)(n))}class m extends a.L{constructor(){super(...arguments),this.removeStartListeners=p.Z,this.removeEndListeners=p.Z,this.removeAccessibleListeners=p.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=(0,r.a)(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();i||f(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}),{passive:!(n.onTap||n.onPointerUp)}),a=(0,r.a)(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,i.z)(o,a),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=(0,l.E)(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,l.E)(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&h("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&n(e,t)}))})),h("down",((e,t)=>{this.startPress(e,t)}))})),t=(0,l.E)(this.node.current,"blur",(()=>{this.isPressing&&h("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=(0,i.z)(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,t)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,o.gD)()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,t)}mount(){const e=this.node.getProps(),t=(0,r.a)(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=(0,l.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,i.z)(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const g=new WeakMap,v=new WeakMap,y=e=>{const t=g.get(e.target);t&&t(e)},b=e=>{e.forEach(y)};function w(e,t,n){const r=function({root:e,...t}){const n=e||document;v.has(n)||v.set(n,{});const r=v.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b,{root:e,...t})),r[i]}(t);return g.set(e,n),r.observe(e),()=>{g.delete(e),r.unobserve(e)}}const k={some:0,all:1};class S extends a.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:k[r]};return w(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}const A={inView:{Feature:S},tap:{Feature:m},focus:{Feature:u},hover:{Feature:c}}},94293:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(7397);function i(e){for(const t in e)r.A[t]={...r.A[t],...e[t]}}},41980:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(14599),i=n(73442);function o(e,{layout:t,layoutId:n}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!r.P[e]||"opacity"===e)}},77222:function(e,t,n){"use strict";function r({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(t,{d7:function(){return o},i8:function(){return r},z2:function(){return i}})},2217:function(e,t,n){"use strict";n.d(t,{D2:function(){return m},YY:function(){return l},am:function(){return d},o2:function(){return c},q2:function(){return o}});var r=n(19038),i=n(28749);function o(e,t,n){return n+t*(e-n)}function a(e,t,n,r,i){return void 0!==i&&(e=o(e,i,r)),o(e,n,r)+t}function s(e,t=0,n=1,r,i){e.min=a(e.min,t,n,r,i),e.max=a(e.max,t,n,r,i)}function c(e,{x:t,y:n}){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,n.translate,n.scale,n.originPoint)}function l(e,t,n,r=!1){const o=n.length;if(!o)return;let a,s;t.x=t.y=1;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function d(e,t){e.min=e.min+t,e.max=e.max+t}function f(e,t,[n,i,o]){const a=void 0!==t[o]?t[o]:.5,c=(0,r.t)(e.min,e.max,a);s(e,t[n],t[i],c,t.scale)}const p=["x","scaleX","originX"],h=["y","scaleY","originY"];function m(e,t){f(e.x,t,p),f(e.y,t,h)}},33933:function(e,t,n){"use strict";n.d(t,{dO:function(){return i},wc:function(){return r}});const r=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),i=()=>({x:{min:0,max:0},y:{min:0,max:0}})},14599:function(e,t,n){"use strict";n.d(t,{B:function(){return i},P:function(){return r}});const r={};function i(e){Object.assign(r,e)}},28749:function(e,t,n){"use strict";function r(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:n}){return!r(e)||!r(t)||!r(n)}function o(e){return i(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a(e){return s(e.x)||s(e.y)}function s(e){return e&&"0%"!==e}n.d(t,{D_:function(){return a},Lj:function(){return i},ud:function(){return o}})},85579:function(e,t,n){"use strict";n.d(t,{J:function(){return o},z:function(){return a}});var r=n(77222),i=n(2217);function o(e,t){return(0,r.i8)((0,r.d7)(e.getBoundingClientRect(),t))}function a(e,t,n){const r=o(e,n),{scroll:a}=t;return a&&((0,i.am)(r.x,a.offset.x),(0,i.am)(r.y,a.offset.y)),r}},49203:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var r=n(54561);var i=n(57035),o=n(51377),a=n(91331);const s=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c(e,t,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,l]=function(e){const t=s.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!==n&&void 0!==n?n:r}`,i]}(e);if(!r)return;const u=window.getComputedStyle(t).getPropertyValue(r);if(u){const e=u.trim();return(0,o.P)(e)?parseFloat(e):e}return(0,a.t)(l)?c(l,t,n+1):l}var l=n(12345),u=n(62289),d=n(30011),f=n(91564);class p extends d.e{constructor(e,t,n,r){super(e,t,n,r,null===r||void 0===r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let l=0;l{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}},84282:function(e,t,n){"use strict";n.d(t,{J:function(){return j}});var r=n(33933),i=n(8350),o=n(62519),a=n(23993),s=n(88069),c=n(40226),l=n(67397),u=n(15815),d=n(73442),f=n(23293),p=n(20330);var h=n(99764),m=n(7397),g=n(36427),v=n(16578),y=n(30011),b=n(51377),w=n(54561),k=n(45982),S=n(76865),A=n(62289),x=n(13624);const E=[...A.$,k.$,S.P];var N=n(91564),C=n(41359);const _=Object.keys(m.A),O=_.length,I=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],T=g.V.length;function M(e){if(e)return!1!==e.options.allowProjection?e.projection:M(e.parent)}var P=n(49203);class j extends class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=y.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>C.Wi.render(this.render,!1,!0);const{latestValues:s,renderState:c}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=(0,f.G)(t),this.isVariantNode=(0,f.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in p){const e=p[f];void 0!==s[f]&&(0,u.i)(e)&&(e.set(s[f],!1),(0,l.L)(d)&&d.add(f))}}mount(e){this.current=e,v.R.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),a.O.current||(0,o.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;v.R.delete(this.current),this.projection&&this.projection.unmount(),(0,C.Pn)(this.notifyUpdate),(0,C.Pn)(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=d.G.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&C.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let a,s;for(let i=0;ithis.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,r.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;nt.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,c.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var i;return void 0!==r&&null!==r&&("string"===typeof r&&((0,b.P)(r)||(0,w.W)(r))?r=parseFloat(r):(i=r,!E.find((0,x.l)(i))&&S.P.test(t)&&(r=(0,N.T)(e,t))),this.setBaseTarget(e,(0,u.i)(r)?r.get():r)),(0,u.i)(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"===typeof n||"object"===typeof n){const i=(0,h.o)(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,u.i)(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new s.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}{constructor(){super(...arguments),this.KeyframeResolver=P.s}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}},63048:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(2784),i=n(74422),o=n(23384),a=n(75866);const s=(e,t)=>(0,a.q)(e)?new o.e(t,{enableHardwareAcceleration:!1}):new i.W(t,{allowProjection:e!==r.Fragment,enableHardwareAcceleration:!0})},9311:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(18644),i=n(48904);const o={renderer:n(63048).b,...r.s,...i.E}},93556:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(61434),i=n(38219);const o=(0,r.D)(i.w)},61434:function(e,t,n){"use strict";n.d(t,{D:function(){return E}});var r=n(52322),i=n(2784),o=n(60976),a=n(46154),s=n(97967),c=n(23617),l=n(3273),u=n(67098),d=n(91353);var f=n(8350);function p(e,t,n){return(0,i.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):(0,f.I)(n)&&(n.current=r))}),[t])}var h=n(20330),m=n(23293);function g(e){const{initial:t,animate:n}=function(e,t){if((0,m.G)(e)){const{initial:t,animate:n}=e;return{initial:!1===t||(0,h.$)(t)?t:void 0,animate:(0,h.$)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(a.v));return(0,i.useMemo)((()=>({initial:t,animate:n})),[v(t),v(n)])}function v(e){return Array.isArray(e)?e.join(" "):e}var y=n(94293),b=n(33791),w=n(3422),k=n(64460);const S=Symbol.for("motionComponentSymbol");function A({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:f,Component:h}){e&&(0,y.K)(e);const m=(0,i.forwardRef)((function(m,v){let y;const w={...(0,i.useContext)(o._),...m,layoutId:x(m)},{isStatic:S}=w,A=g(m),E=f(m,S);if(!S&&b.j){A.visualElement=function(e,t,n,r){const{visualElement:f}=(0,i.useContext)(a.v),p=(0,i.useContext)(l.u),h=(0,i.useContext)(s.O),m=(0,i.useContext)(o._).reducedMotion,g=(0,i.useRef)();r=r||p.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:f,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:m}));const v=g.current;(0,i.useInsertionEffect)((()=>{v&&v.update(n,h)}));const y=(0,i.useRef)(Boolean(n[u.M]&&!window.HandoffComplete));return(0,c.L)((()=>{v&&(d.g.postRender(v.render),y.current&&v.animationState&&v.animationState.animateChanges())})),(0,i.useEffect)((()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))})),v}(h,E,w,t);const n=(0,i.useContext)(k.g),r=(0,i.useContext)(l.u).strict;A.visualElement&&(y=A.visualElement.loadFeatures(w,r,e,n))}return(0,r.jsxs)(a.v.Provider,{value:A,children:[y&&A.visualElement?(0,r.jsx)(y,{visualElement:A.visualElement,...w}):null,n(h,m,p(E,A.visualElement,v),E,S,A.visualElement)]})}));return m[S]=h,m}function x({layoutId:e}){const t=(0,i.useContext)(w.p).id;return t&&void 0!==e?t+"-"+e:e}function E(e){function t(t,n={}){return A(e(t,n))}if("undefined"===typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}},18754:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});const r=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},38219:function(e,t,n){"use strict";n.d(t,{w:function(){return D}});var r=n(75866),i=n(2784),o=n(41980),a=n(15815),s=n(62411);const c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function l(e,t,n){for(const r in t)(0,a.i)(t[r])||(0,o.j)(r,n)||(e[r]=t[r])}function u(e,t,n){const r={};return l(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,i.useMemo)((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return(0,s.r)(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),r}function d(e,t,n){const r={},i=u(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const f=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function p(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||f.has(e)}let h=e=>!p(e);try{(m=require("@emotion/is-prop-valid").default)&&(h=e=>e.startsWith("on")?!p(e):m(e))}catch(R){}var m;var g=n(10658);const v=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});var y=n(13336);function b(e,t,n,r){const o=(0,i.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return(0,g.i)(n,t,{enableHardwareAcceleration:!1},(0,y.a)(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};l(t,e.style,e),o.style={...t,...o.style}}return o}function w(e=!1){return(t,n,o,{latestValues:s},c)=>{const l=((0,r.q)(t)?b:d)(n,s,c,t),u=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"===typeof e.values||(h(i)||!0===n&&p(i)||!t&&!p(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),f=t!==i.Fragment?{...u,...l,ref:o}:{},{children:m}=n,g=(0,i.useMemo)((()=>(0,a.i)(m)?m.get():m),[m]);return(0,i.createElement)(t,{...f,children:g})}}var k=n(13517),S=n(7587),A=n(12816),x=n(97967),E=n(99764),N=n(3105),C=n(69535),_=n(46154),O=n(23293);const I=e=>(t,n)=>{const r=(0,i.useContext)(_.v),o=(0,i.useContext)(x.O),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:T(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?a():(0,N.h)(a)};function T(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=(0,C.b)(o[f]);let{initial:a,animate:s}=e;const c=(0,O.G)(e),l=(0,O.M)(e);t&&l&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!(0,A.H)(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=(0,E.o)(e,t);if(!n)return;const{transitionEnd:r,transition:o,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]}))}return i}var M=n(41359);const P={useVisualState:I({scrapeMotionValuesFromProps:S.U,createRenderState:v,onMount:(e,t,{renderState:n,latestValues:r})=>{M.Wi.read((()=>{try{n.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),M.Wi.render((()=>{(0,g.i)(n,r,{enableHardwareAcceleration:!1},(0,y.a)(t.tagName),e.transformTemplate),(0,k.K)(t,n)}))}})};const j={useVisualState:I({scrapeMotionValuesFromProps:n(53921).U,createRenderState:c})};function D(e,{forwardMotionProps:t=!1},n,i){return{...(0,r.q)(e)?P:j,preloadedFeatures:n,useRender:w(t),createVisualElement:i,Component:e}}},91331:function(e,t,n){"use strict";n.d(t,{f:function(){return i},t:function(){return a}});const r=e=>t=>"string"===typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},75866:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});const r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i(e){return"string"===typeof e&&!e.includes("-")&&!!(r.indexOf(e)>-1||/[A-Z]/u.test(e))}},12345:function(e,t,n){"use strict";n.d(t,{Ei:function(){return f},lw:function(){return p},mP:function(){return s},z2:function(){return a}});var r=n(73442),i=n(30397),o=n(88772);const a=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),s=e=>e===i.Rx||e===o.px,c=(e,t)=>parseFloat(e.split(", ")[t]),l=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return c(i[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?c(t[1],e):0}},u=new Set(["x","y","z"]),d=r._.filter((e=>!u.has(e)));function f(e){const t=[];return d.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}const p={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:l(4,13),y:l(5,14)};p.translateX=p.x,p.translateY=p.y},91564:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(76865),i=n(73764),o=n(88434);function a(e,t){let n=(0,o.A)(e);return n!==i.h&&(n=r.P),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},88434:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(45982),i=n(73764);const o={...n(28073).j,color:r.$,backgroundColor:r.$,outlineColor:r.$,fill:r.$,stroke:r.$,borderColor:r.$,borderTopColor:r.$,borderRightColor:r.$,borderBottomColor:r.$,borderLeftColor:r.$,filter:i.h,WebkitFilter:i.h},a=e=>o[e]},62289:function(e,t,n){"use strict";n.d(t,{$:function(){return a},C:function(){return s}});var r=n(30397),i=n(88772),o=n(13624);const a=[r.Rx,i.px,i.aQ,i.RW,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.l)(e))},28073:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(30397),i=n(88772);const o={...r.Rx,transform:Math.round},a={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:r.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o,backgroundPositionX:i.px,backgroundPositionY:i.px,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:o}},13624:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});const r=e=>t=>t.test(e)},74422:function(e,t,n){"use strict";n.d(t,{W:function(){return f}});var r=n(62411),i=n(91331),o=n(73442),a=n(53921),s=n(2473),c=n(88434),l=n(85579),u=n(84282),d=n(15815);class f extends u.J{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(o.G.has(t)){const e=(0,c.A)(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=((0,i.f)(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,l.J)(e,t)}build(e,t,n,i){(0,r.r)(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,a.U)(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;(0,d.i)(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){(0,s.N)(e,t,n,r)}}},62411:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(73442);const i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=r._.length;var a=n(91331);const s=(e,t)=>t&&"number"===typeof e?t.transform(e):e;var c=n(28073);function l(e,t,n,l){const{style:u,vars:d,transform:f,transformOrigin:p}=e;let h=!1,m=!1,g=!0;for(const i in t){const e=t[i];if((0,a.f)(i)){d[i]=e;continue}const n=c.j[i],o=s(e,n);if(r.G.has(i)){if(h=!0,f[i]=o,!g)continue;e!==(n.default||0)&&(g=!1)}else i.startsWith("origin")?(m=!0,p[i]=o):u[i]=o}if(t.transform||(h||l?u.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},a,s){let c="";for(let l=0;l"string"===typeof e&&"svg"===e.toLowerCase()},13517:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var r=n(18754),i=n(2473),o=n(55282);function a(e,t,n,a){(0,i.N)(e,t,void 0,a);for(const i in t.attrs)e.setAttribute(o.s.has(i)?i:(0,r.D)(i),t.attrs[i])}},7587:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(15815),i=n(53921),o=n(73442);function a(e,t,n){const a=(0,i.U)(e,t,n);for(const i in e)if((0,r.i)(e[i])||(0,r.i)(t[i])){a[-1!==o._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return a}},30011:function(e,t,n){"use strict";n.d(t,{e:function(){return d},m:function(){return u}});var r=n(12345),i=n(41359);const o=new Set;let a=!1,s=!1;function c(){if(s){const e=Array.from(o).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=(0,r.Ei)(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}s=!1,a=!1,o.forEach((e=>e.complete())),o.clear()}function l(){o.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(s=!0)}))}function u(){l(),c()}class d{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),a||(a=!0,i.Wi.read(l),i.Wi.resolveKeyframes(c))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i(0,i.$)(e[t])))}function s(e){return Boolean(a(e)||e.variants)}},20330:function(e,t,n){"use strict";function r(e){return"string"===typeof e||Array.isArray(e)}n.d(t,{$:function(){return r}})},12841:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(99764);function i(e,t,n){const i=e.getProps();return(0,r.o)(i,t,void 0!==n?n:i.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}},99764:function(e,t,n){"use strict";function r(e,t,n,r={},i={}){return"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}n.d(t,{o:function(){return r}})},36427:function(e,t,n){"use strict";n.d(t,{V:function(){return i},e:function(){return r}});const r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},23200:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});const r={skipAnimations:!1,useManualTiming:!1}},44866:function(e,t,n){"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{cl:function(){return i},y4:function(){return r}})},51366:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});const r=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},8350:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{I:function(){return r}})},54561:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});const r=e=>/^0[^.\s]+$/u.test(e)},9907:function(e,t,n){"use strict";function r(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{X:function(){return r}})},19038:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});const r=(e,t,n)=>e+(t-e)*n},50065:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=e=>e},95254:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(74125);function i(e){const t=[0];return(0,r.c)(t,e.length-1),t}},74125:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(19038),i=n(17475);function o(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const a=(0,i.Y)(0,t,o);e.push((0,r.t)(n,1,a))}}},96953:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});const r=(e,t)=>n=>t(e(n)),i=(...e)=>e.reduce(r)},17475:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});const r=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r}},62519:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(33791),i=n(23993);function o(){if(i.O.current=!0,r.j)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i.n.current=e.matches;e.addListener(t),t()}else i.n.current=!1}},23993:function(e,t,n){"use strict";n.d(t,{O:function(){return i},n:function(){return r}});const r={current:null},i={current:!1}},3517:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r=n(2784),i=n(62519),o=n(23993);function a(){!o.O.current&&(0,i.A)();const[e]=(0,r.useState)(o.n.current);return e}},13809:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},p:function(){return i}});var r=n(55721);const i=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),o=e=>(0,r.C)(e)?e[e.length-1]||0:e},88069:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(44866);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.y4)(this.subscriptions,e),()=>(0,r.cl)(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i1e3*e,i=e=>e/1e3},3105:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(2784);function i(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},23617:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(2784);const i=n(33791).j?r.useLayoutEffect:r.useEffect},75394:function(e,t,n){"use strict";function r(e,t){return t?e*(1e3/t):0}n.d(t,{R:function(){return r}})},40226:function(e,t,n){"use strict";n.d(t,{BX:function(){return l}});var r=n(88069),i=n(75394),o=n(82644),a=n(41359);const s={current:void 0};class c{constructor(e,t={}){var n;this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=o.X.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.X.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.L);const n=this.events[e].add(t);return"change"===e?()=>{n(),a.Wi.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return s.current&&s.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(e,t){return new c(e,t)}},92395:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(56572);const i={test:(0,n(24536).i)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.m.transform}},86845:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(30397),i=n(88772),o=n(59747),a=n(24536);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,o.Nw)(t))+", "+i.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(a))+")"}},45982:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(59747),i=n(92395),o=n(86845),a=n(56572);const s={test:e=>a.m.test(e)||i.$.test(e)||o.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):o.J.test(e)?o.J.parse(e):i.$.parse(e),transform:e=>(0,r.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):o.J.transform(e)}},56572:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var r=n(51366),i=n(30397),o=n(59747),a=n(24536);const s={...i.Rx,transform:e=>Math.round((e=>(0,r.u)(0,255,e))(e))},c={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(n)+", "+(0,o.Nw)(i.Fq.transform(r))+")"}},24536:function(e,t,n){"use strict";n.d(t,{d:function(){return o},i:function(){return i}});var r=n(59747);const i=(e,t)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),o=(e,t,n)=>i=>{if(!(0,r.HD)(i))return i;const[o,a,s,c]=i.match(r.KP);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==c?parseFloat(c):1}}},73764:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(76865),i=n(59747);const o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(i.KP)||[];if(!r)return e;const a=n.replace(r,"");let s=o.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const s=/\b([a-z-]*)\(.*?\)/gu,c={...r.P,getAnimatableNone:e=>{const t=e.match(s);return t?t.map(a).join(" "):e}}},76865:function(e,t,n){"use strict";n.d(t,{P:function(){return f},V:function(){return c}});var r=n(45982),i=n(59747);const o="number",a="color",s=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},c=[];let l=0;const u=t.replace(s,(e=>(r.$.test(e)?(i.color.push(l),c.push(a),n.push(r.$.parse(e))):e.startsWith("var(")?(i.var.push(l),c.push("var"),n.push(e)):(i.number.push(l),c.push(o),n.push(parseFloat(e))),++l,"${}"))).split("${}");return{values:n,split:u,indexes:i,types:c}}function l(e){return c(e).values}function u(e){const{split:t,types:n}=c(e),s=t.length;return e=>{let c="";for(let l=0;l"number"===typeof e?0:e;const f={test:function(e){var t,n;return isNaN(e)&&(0,i.HD)(e)&&((null===(t=e.match(i.KP))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(i.dA))||void 0===n?void 0:n.length)||0)>0},parse:l,createTransformer:u,getAnimatableNone:function(e){const t=l(e);return u(e)(t.map(d))}}},30397:function(e,t,n){"use strict";n.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return a}});var r=n(51366);const i={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.u)(0,1,e)},a={...i,default:1}},88772:function(e,t,n){"use strict";n.d(t,{$C:function(){return u},RW:function(){return o},aQ:function(){return a},px:function(){return s},vh:function(){return c},vw:function(){return l}});var r=n(59747);const i=e=>({test:t=>(0,r.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),a=i("%"),s=i("px"),c=i("vh"),l=i("vw"),u={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},59747:function(e,t,n){"use strict";n.d(t,{HD:function(){return s},KP:function(){return i},Nw:function(){return r},dA:function(){return o},mj:function(){return a}});const r=e=>Math.round(1e5*e)/1e5,i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function s(e){return"string"===typeof e}},67397:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(15815);function i(e){return Boolean((0,r.i)(e)&&e.add)}},15815:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});const r=e=>Boolean(e&&e.getVelocity)},69535:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(13809),i=n(15815);function o(e){const t=(0,i.i)(e)?e.get():e;return(0,r.p)(t)?t.toValue():t}},88660:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{a:function(){return r}})},92277:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"===typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"===typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let a=0;a1&&o.push(`... ${r} more items`);return"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+i(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},90781:function(e,t,n){"use strict";n.d(t,{UG:function(){return s},WU:function(){return i},Ye:function(){return r},h8:function(){return o},ku:function(){return c}});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&a.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},85717:function(e,t,n){"use strict";n.d(t,{LZ:function(){return a},wv:function(){return i}});var r=n(51591);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t1&&i.slice(1).every((e=>0===e.length||(0,r.FD)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=c||l,d=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||u||a||s);let f="";const p=o&&(0,r.FD)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||u)&&(f+="\n"),'"""'+f+'"""'}},51591:function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},95115:function(e,t,n){"use strict";var r;n.d(t,{h:function(){return r}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},95235:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},82269:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},20360:function(e,t,n){"use strict";n.d(t,{YD:function(){return f}});var r=n(2784),i=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),a=new Map,s=new WeakMap,c=0,l=void 0;function u(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(s.has(n)||(c+=1,s.set(n,c.toString())),s.get(n)):"0"):e[t]}`;var n})).toString()}function d(e,t,n={},r=l){if("undefined"===typeof window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:s}=function(e){const t=u(e);let n=a.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=o),null==(n=r.get(t.target))||n.forEach((e=>{e(o,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},a.set(t,n)}return n}(n),c=s.get(e)||[];return s.has(e)||s.set(e,c),c.push(t),o.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(s.delete(e),o.unobserve(e)),0===s.size&&(o.disconnect(),a.delete(i))}}r.Component;function f({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:o,triggerOnce:a,skip:s,initialInView:c,fallbackInView:l,onChange:u}={}){var f;const[p,h]=r.useState(null),m=r.useRef(),[g,v]=r.useState({inView:!!c,entry:void 0});m.current=u,r.useEffect((()=>{if(s||!p)return;let r;return r=d(p,((e,t)=>{v({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&r&&(r(),r=void 0)}),{root:o,rootMargin:i,threshold:e,trackVisibility:n,delay:t},l),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,p,o,i,a,s,n,l,t]);const y=null==(f=g.entry)?void 0:f.target,b=r.useRef();p||!y||a||s||b.current===y||(b.current=y,v({inView:!!c,entry:void 0}));const w=[h,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}},22970:function(e,t,n){"use strict";n.d(t,{Jh:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return l},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},71216:function(e){"use strict";e.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],(function(){return t(90283),t(25564)}));var n=e.O();_N_E=n}]);