1import{r as H,P as Me,Q as _t,j as L,T as hn,U as vn}from"./i18n-syuSyngU.js";import{I as pn,R as gn,g as yn,b as mn,t as wt}from"./context-ifqDSkEc.js";const bn=(p,N,O,P)=>{var g,m,n,s;const B=[O,{code:N,...P||{}}];if((m=(g=p==null?void 0:p.services)==null?void 0:g.logger)!=null&&m.forward)return p.services.logger.forward(B,"warn","react-i18next::",!0);me(B[0])&&(B[0]=`react-i18next:: ${B[0]}`),(s=(n=p==null?void 0:p.services)==null?void 0:n.logger)!=null&&s.warn?p.services.logger.warn(...B):console!=null&&console.warn&&console.warn(...B)},ct={},et=(p,N,O,P)=>{me(O)&&ct[O]||(me(O)&&(ct[O]=new Date),bn(p,N,O,P))},xt=(p,N)=>()=>{if(p.isInitialized)N();else{const O=()=>{setTimeout(()=>{p.off("initialized",O)},0),N()};p.on("initialized",O)}},tt=(p,N,O)=>{p.loadNamespaces(N,xt(p,O))},ft=(p,N,O,P)=>{if(me(O)&&(O=[O]),p.options.preload&&p.options.preload.indexOf(N)>-1)return tt(p,O,P);O.forEach(B=>{p.options.ns.indexOf(B)<0&&p.options.ns.push(B)}),p.loadLanguages(N,xt(p,P))},_n=(p,N,O={})=>!N.languages||!N.languages.length?(et(N,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:N.languages}),!0):N.hasLoadedNamespace(p,{lng:O.lng,precheck:(P,B)=>{if(O.bindI18n&&O.bindI18n.indexOf("languageChanging")>-1&&P.services.backendConnector.backend&&P.isLanguageChangingTo&&!B(P.isLanguageChangingTo,p))return!1}}),me=p=>typeof p=="string",wn=p=>typeof p=="object"&&p!==null,xn=(p,N)=>{const O=H.useRef();return H.useEffect(()=>{O.current=p},[p,N]),O.current},St=(p,N,O,P)=>p.getFixedT(N,O,P),Sn=(p,N,O,P)=>H.useCallback(St(p,N,O,P),[p,N,O,P]),In=(p,N={})=>{var J,b,j,A;const{i18n:O}=N,{i18n:P,defaultNS:B}=H.useContext(pn)||{},g=O||P||mn();if(g&&!g.reportNamespaces&&(g.reportNamespaces=new gn),!g){et(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const D=(G,z)=>me(z)?z:wn(z)&&me(z.defaultValue)?z.defaultValue:Array.isArray(G)?G[G.length-1]:G,Y=[D,{},!1];return Y.t=D,Y.i18n={},Y.ready=!1,Y}(J=g.options.react)!=null&&J.wait&&et(g,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...yn(),...g.options.react,...N},{useSuspense:n,keyPrefix:s}=m;let l=B||((b=g.options)==null?void 0:b.defaultNS);l=me(l)?[l]:l||["translation"],(A=(j=g.reportNamespaces).addUsedNamespaces)==null||A.call(j,l);const h=(g.isInitialized||g.initializedStoreOnce)&&l.every(D=>_n(D,g,m)),u=Sn(g,N.lng||null,m.nsMode==="fallback"?l:l[0],s),S=()=>u,T=()=>St(g,N.lng||null,m.nsMode==="fallback"?l:l[0],s),[C,Z]=H.useState(S);let M=l.join();N.lng&&(M=`${N.lng}${M}`);const oe=xn(M),$=H.useRef(!0);H.useEffect(()=>{const{bindI18n:D,bindI18nStore:Y}=m;$.current=!0,!h&&!n&&(N.lng?ft(g,N.lng,l,()=>{$.current&&Z(T)}):tt(g,l,()=>{$.current&&Z(T)})),h&&oe&&oe!==M&&$.current&&Z(T);const G=()=>{$.current&&Z(T)};return D&&(g==null||g.on(D,G)),Y&&(g==null||g.store.on(Y,G)),()=>{$.current=!1,g&&D&&(D==null||D.split(" ").forEach(z=>g.off(z,G))),Y&&g&&Y.split(" ").forEach(z=>g.store.off(z,G))}},[g,M]),H.useEffect(()=>{$.current&&h&&Z(S)},[g,s,h]);const ee=[C,g,h];if(ee.t=C,ee.i18n=g,ee.ready=h,h||!h&&!n)return ee;throw new Promise(D=>{N.lng?ft(g,N.lng,l,()=>D()):tt(g,l,()=>D())})};function lt(p,N,O){H.useEffect(()=>(window.addEventListener(p,N,O),()=>window.removeEventListener(p,N,O)),[p,N])}const dt={passive:!0};function br(){const[p,N]=H.useState({width:0,height:0}),O=H.useCallback(()=>{N({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return lt("resize",O,dt),lt("orientationchange",O,dt),H.useEffect(O,[]),p}var It={exports:{}};(function(p,N){(function(O,P){p.exports=P(H)})(typeof self<"u"?self:Me,function(O){return function(P){var B={};function g(m){if(B[m])return B[m].exports;var n=B[m]={i:m,l:!1,exports:{}};return P[m].call(n.exports,n,n.exports,g),n.l=!0,n.exports}return g.m=P,g.c=B,g.d=function(m,n,s){g.o(m,n)||Object.defineProperty(m,n,{enumerable:!0,get:s})},g.r=function(m){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(m,"__esModule",{value:!0})},g.t=function(m,n){if(1&n&&(m=g(m)),8&n||4&n&&typeof m=="object"&&m&&m.__esModule)return m;var s=Object.create(null);if(g.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:m}),2&n&&typeof m!="string")for(var l in m)g.d(s,l,(function(h){return m[h]}).bind(null,l));return s},g.n=function(m){var n=m&&m.__esModule?function(){return m.default}:function(){return m};return g.d(n,"a",n),n},g.o=function(m,n){return Object.prototype.hasOwnProperty.call(m,n)},g.p="",g(g.s=2)}([function(P,B){P.exports=O},function(P,B,g){var m={linear:function(n,s,l,h){return(l-s)*n/h+s},easeInQuad:function(n,s,l,h){return(l-s)*(n/=h)*n+s},easeOutQuad:function(n,s,l,h){return-(l-s)*(n/=h)*(n-2)+s},easeInOutQuad:function(n,s,l,h){var u=l-s;return(n/=h/2)<1?u/2*n*n+s:-u/2*(--n*(n-2)-1)+s},easeInCubic:function(n,s,l,h){return(l-s)*(n/=h)*n*n+s},easeOutCubic:function(n,s,l,h){return(l-s)*((n=n/h-1)*n*n+1)+s},easeInOutCubic:function(n,s,l,h){var u=l-s;return(n/=h/2)<1?u/2*n*n*n+s:u/2*((n-=2)*n*n+2)+s},easeInQuart:function(n,s,l,h){return(l-s)*(n/=h)*n*n*n+s},easeOutQuart:function(n,s,l,h){return-(l-s)*((n=n/h-1)*n*n*n-1)+s},easeInOutQuart:function(n,s,l,h){var u=l-s;return(n/=h/2)<1?u/2*n*n*n*n+s:-u/2*((n-=2)*n*n*n-2)+s},easeInQuint:function(n,s,l,h){return(l-s)*(n/=h)*n*n*n*n+s},easeOutQuint:function(n,s,l,h){return(l-s)*((n=n/h-1)*n*n*n*n+1)+s},easeInOutQuint:function(n,s,l,h){var u=l-s;return(n/=h/2)<1?u/2*n*n*n*n*n+s:u/2*((n-=2)*n*n*n*n+2)+s},easeInSine:function(n,s,l,h){var u=l-s;return-u*Math.cos(n/h*(Math.PI/2))+u+s},easeOutSine:function(n,s,l,h){return(l-s)*Math.sin(n/h*(Math.PI/2))+s},easeInOutSine:function(n,s,l,h){return-(l-s)/2*(Math.cos(Math.PI*n/h)-1)+s},easeInExpo:function(n,s,l,h){return n==0?s:(l-s)*Math.pow(2,10*(n/h-1))+s},easeOutExpo:function(n,s,l,h){var u=l-s;return n==h?s+u:u*(1-Math.pow(2,-10*n/h))+s},easeInOutExpo:function(n,s,l,h){var u=l-s;return n===0?s:n===h?s+u:(n/=h/2)<1?u/2*Math.pow(2,10*(n-1))+s:u/2*(2-Math.pow(2,-10*--n))+s},easeInCirc:function(n,s,l,h){return-(l-s)*(Math.sqrt(1-(n/=h)*n)-1)+s},easeOutCirc:function(n,s,l,h){return(l-s)*Math.sqrt(1-(n=n/h-1)*n)+s},easeInOutCirc:function(n,s,l,h){var u=l-s;return(n/=h/2)<1?-u/2*(Math.sqrt(1-n*n)-1)+s:u/2*(Math.sqrt(1-(n-=2)*n)+1)+s},easeInElastic:function(n,s,l,h){var u,S,T,C=l-s;return T=1.70158,n===0?s:(n/=h)==1?s+C:((S=0)||(S=.3*h),(u=C)<Math.abs(C)?(u=C,T=S/4):T=S/(2*Math.PI)*Math.asin(C/u),-u*Math.pow(2,10*(n-=1))*Math.sin((n*h-T)*(2*Math.PI)/S)+s)},easeOutElastic:function(n,s,l,h){var u,S,T,C=l-s;return T=1.70158,n===0?s:(n/=h)==1?s+C:((S=0)||(S=.3*h),(u=C)<Math.abs(C)?(u=C,T=S/4):T=S/(2*Math.PI)*Math.asin(C/u),u*Math.pow(2,-10*n)*Math.sin((n*h-T)*(2*Math.PI)/S)+C+s)},easeInOutElastic:function(n,s,l,h){var u,S,T,C=l-s;return T=1.70158,n===0?s:(n/=h/2)==2?s+C:((S=0)||(S=h*.44999999999999996),(u=C)<Math.abs(C)?(u=C,T=S/4):T=S/(2*Math.PI)*Math.asin(C/u),n<1?u*Math.pow(2,10*(n-=1))*Math.sin((n*h-T)*(2*Math.PI)/S)*-.5+s:u*Math.pow(2,-10*(n-=1))*Math.sin((n*h-T)*(2*Math.PI)/S)*.5+C+s)},easeInBack:function(n,s,l,h,u){return u===void 0&&(u=1.70158),(l-s)*(n/=h)*n*((u+1)*n-u)+s},easeOutBack:function(n,s,l,h,u){return u===void 0&&(u=1.70158),(l-s)*((n=n/h-1)*n*((u+1)*n+u)+1)+s},easeInOutBack:function(n,s,l,h,u){var S=l-s;return u===void 0&&(u=1.70158),(n/=h/2)<1?S/2*(n*n*((1+(u*=1.525))*n-u))+s:S/2*((n-=2)*n*((1+(u*=1.525))*n+u)+2)+s},easeInBounce:function(n,s,l,h){var u=l-s;return u-m.easeOutBounce(h-n,0,u,h)+s},easeOutBounce:function(n,s,l,h){var u=l-s;return(n/=h)<.36363636363636365?u*(7.5625*n*n)+s:n<.7272727272727273?u*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?u*(7.5625*(n-=.8181818181818182)*n+.9375)+s:u*(7.5625*(n-=.9545454545454546)*n+.984375)+s},easeInOutBounce:function(n,s,l,h){var u=l-s;return n<h/2?.5*m.easeInBounce(2*n,0,u,h)+s:.5*m.easeOutBounce(2*n-h,0,u,h)+.5*u+s}};P.exports=m},function(P,B,g){P.exports=g(3)},function(P,B,g){g.r(B),g.d(B,"ReactConfetti",function(){return Le});var m,n,s=g(0),l=g.n(s),h=g(1),u=g.n(h);function S(c,v){return c+Math.random()*(v-c)}function T(c,v){for(var w=0;w<v.length;w++){var d=v[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function C(c,v,w){return v in c?Object.defineProperty(c,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):c[v]=w,c}(function(c){c[c.Circle=0]="Circle",c[c.Square=1]="Square",c[c.Strip=2]="Strip"})(m||(m={})),function(c){c[c.Positive=1]="Positive",c[c.Negative=-1]="Negative"}(n||(n={}));var Z=function(){function c(d,W,E,F){(function(ye,_e){if(!(ye instanceof _e))throw new TypeError("Cannot call a class as a function")}
1)(this,c),C(this,"context",void 0),C(this,"radius",void 0),C(this,"x",void 0),C(this,"y",void 0),C(this,"w",void 0),C(this,"h",void 0),C(this,"vx",void 0),C(this,"vy",void 0),C(this,"shape",void 0),C(this,"angle",void 0),C(this,"angularSpin",void 0),C(this,"color",void 0),C(this,"rotateY",void 0),C(this,"rotationDirection",void 0),C(this,"getOptions",void 0),this.getOptions=W;var U,X,q=this.getOptions(),se=q.colors,ie=q.initialVelocityX,ae=q.initialVelocityY;this.context=d,this.x=E,this.y=F,this.w=S(5,20),this.h=S(5,20),this.radius=S(5,10),this.vx=typeof ie=="number"?S(-ie,ie):S(ie.min,ie.max),this.vy=typeof ae=="number"?S(-ae,0):S(ae.min,ae.max),this.shape=(U=0,X=2,Math.floor(U+Math.random()*(X-U+1))),this.angle=S(0,360)*Math.PI/180,this.angularSpin=S(-.2,.2),this.color=se[Math.floor(Math.random()*se.length)],this.rotateY=S(0,1),this.rotationDirection=S(0,1)?n.Positive:n.Negative}var v,w;return v=c,(w=[{key:"update",value:function(){var d=this.getOptions(),W=d.gravity,E=d.wind,F=d.friction,U=d.opacity,X=d.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=W,this.vx+=E,this.vx*=F,this.vy*=F,this.rotateY>=1&&this.rotationDirection===n.Positive?this.rotationDirection=n.Negative:this.rotateY<=-1&&this.rotationDirection===n.Negative&&(this.rotationDirection=n.Positive);var q=.1*this.rotationDirection;if(this.rotateY+=q,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=U,this.context.lineCap="round",this.context.lineWidth=2,X&&typeof X=="function")X.call(this,this.context);else switch(this.shape){case m.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case m.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case m.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&T(v.prototype,w),c}();function M(c,v,w){return v in c?Object.defineProperty(c,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):c[v]=w,c}var oe=function c(v,w){var d=this;
1(function(E,F){if(!(E instanceof F))throw new TypeError("Cannot call a class as a function")})(this,c),M(this,"canvas",void 0),M(this,"context",void 0),M(this,"getOptions",void 0),M(this,"x",0),M(this,"y",0),M(this,"w",0),M(this,"h",0),M(this,"lastNumberOfPieces",0),M(this,"tweenInitTime",Date.now()),M(this,"particles",[]),M(this,"particlesGenerated",0),M(this,"removeParticleAt",function(E){d.particles.splice(E,1)}),M(this,"getParticle",function(){var E=S(d.x,d.w+d.x),F=S(d.y,d.h+d.y);return new Z(d.context,d.getOptions,E,F)}),M(this,"animate",function(){var E=d.canvas,F=d.context,U=d.particlesGenerated,X=d.lastNumberOfPieces,q=d.getOptions(),se=q.run,ie=q.recycle,ae=q.numberOfPieces,ye=q.debug,_e=q.tweenFunction,we=q.tweenDuration;if(!se)return!1;var xe=d.particles.length,he=ie?xe:U,Se=Date.now();if(he<ae){X!==ae&&(d.tweenInitTime=Se,d.lastNumberOfPieces=ae);for(var Re=d.tweenInitTime,Fe=_e(Se-Re>we?we:Math.max(0,Se-Re),he,ae,we),Pe=Math.round(Fe-he),Te=0;Te<Pe;Te++)d.particles.push(d.getParticle());d.particlesGenerated+=Pe}return ye&&(F.font="12px sans-serif",F.fillStyle="#333",F.textAlign="right",F.fillText("Particles: ".concat(xe),E.width-10,E.height-20)),d.particles.forEach(function(ve,Ae){ve.update(),(ve.y>E.height||ve.y<-100||ve.x>E.width+100||ve.x<-100)&&(ie&&he<=ae?d.particles[Ae]=d.getParticle():d.removeParticleAt(Ae))}),xe>0||he<ae}),this.canvas=v;var W=this.canvas.getContext("2d");if(!W)throw new Error("Could not get canvas context");this.context=W,this.getOptions=w};function $(c,v){var w=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);v&&(d=d.filter(function(W){return Object.getOwnPropertyDescriptor(c,W).enumerable})),w.push.apply(w,d)}return w}function ee(c){for(var v=1;v<arguments.length;v++){var w=arguments[v]!=null?arguments[v]:{};v%2?$(Object(w),!0).forEach(function(d){b(c,d,w[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(w)):$(Object(w)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(w,d))})}return c}function J(c,v){for(var w=0;w<v.length;w++){var d=v[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function b(c,v,w){return v in c?Object.defineProperty(c,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):c[v]=w,c}var j={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:u.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},A=function(){function c(d,W){var E=this;(function(U,X){if(!(U instanceof X))throw new TypeError("Cannot call a class as a function")})(this,c),b(this,"canvas",void 0),b(this,"context",void 0),b(this,"_options",void 0),b(this,"generator",void 0),b(this,"rafId",void 0),b(this,"setOptionsWithDefaults",function(U){var X={confettiSource:{x:0,y:0,w:E.canvas.width,h:0}};E._options=ee(ee(ee({},X),j),U),Object.assign(E,U.confettiSource)}),b(this,"update",function(){var U=E.options,X=U.run,q=U.onConfettiComplete,se=E.canvas,ie=E.context;X&&(ie.fillStyle="white",ie.clearRect(0,0,se.width,se.height)),E.generator.animate()?E.rafId=requestAnimationFrame(E.update):(q&&typeof q=="function"&&E.generator.particlesGenerated>0&&q.call(E,E),E._options.run=!1)}),b(this,"reset",function(){E.generator&&E.generator.particlesGenerated>0&&(E.generator.particlesGenerated=0,E.generator.particles=[],E.generator.lastNumberOfPieces=0)}),b(this,"stop",function(){E.options={run:!1},E.rafId&&(cancelAnimationFrame(E.rafId),E.rafId=void 0)}),this.canvas=d;var F=this.canvas.getContext("2d");if(!F)throw new Error("Could not get canvas context");this.context=F,this.generator=new oe(this.canvas,function(){return E.options}),this.options=W,this.update()}var v,w;return v=c,(w=[{key:"options",get:function(){return this._options}
1,set:function(d){var W=this._options&&this._options.run,E=this._options&&this._options.recycle;this.setOptionsWithDefaults(d),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof d.recycle=="boolean"&&d.recycle&&E===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof d.run=="boolean"&&d.run&&W===!1&&this.update()}}])&&J(v.prototype,w),c}();function D(c){return function(v){if(Array.isArray(v))return ce(v)}(c)||function(v){if(typeof Symbol<"u"&&Symbol.iterator in Object(v))return Array.from(v)}(c)||ue(c)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y(c){return(Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(c)}function G(){return(G=Object.assign||function(c){for(var v=1;v<arguments.length;v++){var w=arguments[v];for(var d in w)Object.prototype.hasOwnProperty.call(w,d)&&(c[d]=w[d])}return c}).apply(this,arguments)}function z(c,v){var w=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);v&&(d=d.filter(function(W){return Object.getOwnPropertyDescriptor(c,W).enumerable})),w.push.apply(w,d)}return w}function te(c){for(var v=1;v<arguments.length;v++){var w=arguments[v]!=null?arguments[v]:{};v%2?z(Object(w),!0).forEach(function(d){ge(c,d,w[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(w)):z(Object(w)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(w,d))})}return c}function K(c,v){return function(w){if(Array.isArray(w))return w}(c)||function(w,d){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w)))){var W=[],E=!0,F=!1,U=void 0;try{for(var X,q=w[Symbol.iterator]();!(E=(X=q.next()).done)&&(W.push(X.value),!d||W.length!==d);E=!0);}catch(se){F=!0,U=se}finally{try{E||q.return==null||q.return()}finally{if(F)throw U}}return W}}(c,v)||ue(c,v)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ue(c,v){if(c){if(typeof c=="string")return ce(c,v);var w=Object.prototype.toString.call(c).slice(8,-1);return w==="Object"&&c.constructor&&(w=c.constructor.name),w==="Map"||w==="Set"?Array.from(c):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?ce(c,v):void 0}}function ce(c,v){(v==null||v>c.length)&&(v=c.length);for(var w=0,d=new Array(v);w<v;w++)d[w]=c[w];return d}function Oe(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function de(c,v){for(var w=0;w<v.length;w++){var d=v[w];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function Ee(c,v){return(Ee=Object.setPrototypeOf||function(w,d){return w.__proto__=d,w})(c,v)}function ze(c){var v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var w,d=be(c);if(v){var W=be(this).constructor;w=Reflect.construct(d,arguments,W)}else w=d.apply(this,arguments);return We(this,w)}}function We(c,v){return!v||Y(v)!=="object"&&typeof v!="function"?fe(c):v}function fe(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function be(c){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)})(c)}function ge(c,v,w){return v in c?Object.defineProperty(c,v,{value:w,enumerable:!0,configurable:!0,writable:!0}):c[v]=w,c}
3var Ge=l.a.createRef(),Ne=function(c){(function(E,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(F&&F.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),F&&Ee(E,F)})(W,c);var v,w,d=ze(W);function W(E){var F;Oe(this,W);for(var U=arguments.length,X=new Array(U>1?U-1:0),q=1;q<U;q++)X[q-1]=arguments[q];return ge(fe(F=d.call.apply(d,[this,E].concat(X))),"canvas",l.a.createRef()),ge(fe(F),"confetti",void 0),F.canvas=E.canvasRef||Ge,F}return v=W,(w=[{key:"componentDidMount",value:function(){if(this.canvas.current){var E=Ce(this.props)[0];this.confetti=new A(this.canvas.current,E)}}},{key:"componentDidUpdate",value:function(){var E=Ce(this.props)[0];this.confetti&&(this.confetti.options=E)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var E=K(Ce(this.props),2),F=E[0],U=E[1],X=te({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},U.style);return l.a.createElement("canvas",G({width:F.width,height:F.height,ref:this.canvas},U,{style:X}))}}])&&de(v.prototype,w),W}(s.Component);function Ce(c){var v={},w={},d=[].concat(D(Object.keys(j)),["confettiSource","drawShape","onConfettiComplete"]),W=["canvasRef"];for(var E in c){var F=c[E];d.includes(E)?v[E]=F:W.includes(E)?W[E]=F:w[E]=F}return[v,w,{}]}ge(Ne,"defaultProps",te({},j)),ge(Ne,"displayName","ReactConfetti");var Le=l.a.forwardRef(function(c,v){return l.a.createElement(Ne,G({canvasRef:v},c))});B.default=Le}]).default})})(It);var On=It.exports;const _r=_t(On),En="_left_x0zkv_1",Nn="_right_x0zkv_2",ht={left:En,right:Nn,"curtain-drop":"_curtain-drop_x0zkv_1"};function wr({side:p}){return L.jsx("div",{className:p==="left"?ht.left:ht.right,children:L.jsxs("svg",{viewBox:"0 0 287 569",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsxs("g",{filter:"url(#filter0_d_14_54)",children:[L.jsx("path",{d:"M-15 514C190.497 332.518 267.29 83.7157 280 -18H-15V514Z",fill:"#DD0A33"}),L.jsx("path",{d:"M-18 514V520.652L-13.0141 516.249C193.156 334.172 270.2 84.6277 282.977 -17.628L283.398 -21H280H-15H-18V-18V514Z",stroke:"black",strokeWidth:"6"})]}),L.jsx("path",{d:"M-28 443C85.2 295.8 159.5 86 182.5 -0.5C171.5 -14.3333 143.3 -42 118.5 -42C92.9 99.2 10.1667 276.5 -28 347.5V443Z",fill:"#B9062C"}),L.jsx("defs",{children:L.jsxs("filter",{id:"filter0_d_14_54",x:"-21",y:"-24",width:"307.796",height:"592.304",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[L.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),L.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),L.jsx("feOffset",{dy:"41"}),L.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),L.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),L.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_14_54"}),L.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_14_54",result:"shape"})]})})]})})}const Cn="_casing_1kj45_1",Rn={casing:Cn};function xr({children:p}){return L.jsx("div",{className:Rn.casing,children:p})}const Pn="_circle_1jlw1_1",Tn={circle:Pn};function An(){return L.jsx("div",{className:Tn.circle})}const Dn="_ledsOn_9fuxr_1",jn="_ledsOff_9fuxr_2",Bn="_changeColor_9fuxr_1",vt={ledsOn:Dn,ledsOff:jn,changeColor:Bn};function Sr({reelsMatch:p}){return L.jsx("div",{className:p?vt.ledsOn:vt.ledsOff,children:Array(8).fill(0).map((N,O)=>L.jsx(An,{},O))})}const Mn="_button_1mmbw_1",Ln="_text_1mmbw_19",pt={button:Mn,text:Ln};function Fn({setClickSpin:p}){return L.jsx("button",{className:pt.button,onClick:()=>p(!0),children:L.jsx("div",{className:pt.text,children:wt("spin")})})}const kn="_panel_126t2_1",Yn={panel:kn};function Ir({setClickSpin:p}){return L.jsx("div",{className:Yn.panel,children:L.jsx(Fn,{setClickSpin:p})})}function Un(p){if(!p.length)throw new Error("Dataset is empty");return p[Math.floor(Math.random()*p.length)]}function $n(p){if(!p.length)throw new Error("Dataset is empty");const N=p.reduce((P,B)=>P+(B.weight??1),0);let O=Math.random()*N;for(const P of p)if(O-=P.weight??1,O<=0)return P;return p[p.length-1]}function gt([...p]){let N=p.length;for(;N;){const O=Math.floor(Math.random()*N--);[p[N],p[O]]=[p[O],p[N]]}return p}const zn="_app_1pf6v_1",Wn="_doors_1pf6v_11",Gn="_doorContainer_1pf6v_17",Qn="_door_1pf6v_11",Vn="_boxes_1pf6v_35",Hn="_box_1pf6v_35",Be={app:zn,doors:Wn,doorContainer:Gn,door:Qn,boxes:Vn,box:Hn},Ze={value:"â"},qn=3,Xn=3,Kn=10;function Or({config:p,clickSpin:N,setClickSpin:O,onResult:P,onMatch:B}){const{slot:g,dataset:m,weighted:n}=p,s=g.railCount??qn,l=g.spinDuration??Xn,h=g.spinPoolSize??Kn,u=H.useRef(Array.from({length:s},()=>null)),S=H.useRef(Array.from({length:s},()=>[Ze])),[T,C]=H.useState([]),Z=H.useCallback(()=>m.length<=h*2?m:gt([...m]).slice(0,h),[m,h]),M=H.useCallback(()=>n?$n(m):Un(m),[m,n]),oe=H.useCallback((ee=!0,J=1,b=l)=>{u.current.forEach((j,A)=>{var G;if(!j)return;const D=j.childNodes[0],Y=D.cloneNode(!1);if(!ee){const z=Z(),te=[];for(let ce=0;ce<Math.max(1,J);ce++)te.push(...z,...z);const K=gt(te);K[K.length-1]=M();const ue=S.current[A].at(-1)??Ze;S.current[A]=[ue,...K],Y.addEventListener("transitionend",()=>{C(ce=>[...ce,S.current[A].at(-1)??Ze])},{once:!0})}for(let z=S.current[A].length-1;z>=0;z--){const te=S.current[A][z],K=document.createElement("div");K.classList.add(Be.box),K.style.width=j.clientWidth+"px",K.style.height=j.clientHeight+"px",g.fontSize&&(K.style.fontSize=g.fontSize),K.textContent=g.getDisplay(te);const ue=(G=g.getColor)==null?void 0:G.call(g,te);ue&&(K.style.color=ue),Y.appendChild(K)}Y.style.transitionDuration=`${b>0?b:1}s`,Y.style.transform=`translateY(-${j.clientHeight*(S.current[A].length-1)}px)`,j.replaceChild(Y,D)})},[g,Z,M,l]),$=H.useCallback(async()=>{C([]),B(!1),oe(!1,1,l);for(const ee of u.current){if(!ee)continue;const J=ee.childNodes[0],b=parseInt(J.style.transitionDuration);
3J.style.transform="translateY(0)",await new Promise(j=>setTimeout(j,b*100))}},[oe,B,l]);return H.useEffect(()=>{oe()},[oe]),H.useEffect(()=>{N&&$()},[N,$]),H.useEffect(()=>{if(T.length!==s)return;P(T);const ee=T.every(J=>J.value===T[0].value);B(ee),O(!1)},[T,s,P,B,O]),L.jsx("div",{children:L.jsx("div",{className:Be.doors,children:Array.from({length:s},(ee,J)=>L.jsx("div",{className:Be.doorContainer,children:L.jsx("div",{className:Be.door,ref:b=>{u.current[J]=b},children:L.jsx("div",{className:Be.boxes})})},J))})})}function Zn(p){return{priority:.8,weighted:!1,dailyMode:!1,...p}}const Ot="#FEBB04",Et="#FC0100",Jn=[{value:"yes",label:"Yes",color:Ot,weight:5},{value:"no",label:"No",color:Et,weight:5}],Er=Zn({id:"yes-or-no",slug:"yes-or-no",title:"Yes or No",emoji:"ð°",category:"decision",dataset:Jn,slot:{getDisplay:p=>wt(p.value),getColor:p=>p.value==="yes"?Ot:Et},seo:{title:"Yes or No? Spin Now & Discover Your Fate!",description:"Torn between choices? Need a clear answerâfast? Give our Yes or No Slot Machine a spin and let fate decide! One quick pull delivers your instant verdictâno second-guessing, just pure electrifying clarity.",keywords:["yes or no","yes or no generator","random yes no","decision maker"]},shareText:'Tired of overthinking? Get random "Yes" or "No" answers to your questions with this fun tool. Try it now!',priority:1,weighted:!0});function Ye(p){throw new Error('Could not dynamically require "'+p+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nt={exports:{}};/*! 4 localForage -- Offline Storage, Improved 5 Version 1.10.0 6 https://localforage.github.io/localForage 7 (c) 2013-2017 Mozilla, Apache License 2.0 8*/(function(p,N){(function(O){p.exports=O()})(function(){return function O(P,B,g){function m(l,h){if(!B[l]){if(!P[l]){var u=typeof Ye=="function"&&Ye;if(!h&&u)return u(l,!0);if(n)return n(l,!0);var S=new Error("Cannot find module '"+l+"'");throw S.code="MODULE_NOT_FOUND",S}var T=B[l]={exports:{}};P[l][0].call(T.exports,function(C){var Z=P[l][1][C];return m(Z||C)},T,T.exports,O,P,B,g)}return B[l].exports}for(var n=typeof Ye=="function"&&Ye,s=0;s<g.length;s++)m(g[s]);return m}({1:[function(O,P,B){(function(g){var m=g.MutationObserver||g.WebKitMutationObserver,n;if(m){var s=0,l=new m(C),h=g.document.createTextNode("");l.observe(h,{characterData:!0}),n=function(){h.data=s=++s%2}}else if(!g.setImmediate&&typeof g.MessageChannel<"u"){var u=new g.MessageChannel;u.port1.onmessage=C,n=function(){u.port2.postMessage(0)}}else"document"in g&&"onreadystatechange"in g.document.createElement("script")?n=function(){var M=g.document.createElement("script");M.onreadystatechange=function(){C(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},g.document.documentElement.appendChild(M)}:n=function(){setTimeout(C,0)};var S,T=[];function C(){S=!0;for(var M,oe,$=T.length;$;){for(oe=T,T=[],M=-1;++M<$;)oe[M]();$=T.length}S=!1}P.exports=Z;function Z(M){T.push(M)===1&&!S&&n()}}).call(this,typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(O,P,B){var g=O(1);function m(){}var n={},s=["REJECTED"],l=["FULFILLED"],h=["PENDING"];P.exports=u;function u(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,b!==m&&Z(this,b)}u.prototype.catch=function(b){return this.then(null,b)},u.prototype.then=function(b,j){if(typeof b!="function"&&this.state===l||typeof j!="function"&&this.state===s)return this;var A=new this.constructor(m);if(this.state!==h){var D=this.state===l?b:j;T(A,D,this.outcome)}else this.queue.push(new S(A,b,j));return A};function S(b,j,A){this.promise=b,typeof j=="function"&&(this.onFulfilled=j,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}S.prototype.callFulfilled=function(b){n.resolve(this.promise,b)},S.prototype.otherCallFulfilled=function(b){T(this.promise,this.onFulfilled,b)},S.prototype.callRejected=function(b){n.reject(this.promise,b)},S.prototype.otherCallRejected=function(b){T(this.promise,this.onRejected,b)};function T(b,j,A){g(function(){var D;try{D=j(A)}catch(Y){return n.reject(b,Y)}D===b?n.reject(b,new TypeError("Cannot resolve promise with itself")):n.resolve(b,D)})}n.resolve=function(b,j){var A=M(C,j);if(A.status==="error")return n.reject(b,A.value);var D=A.value;if(D)Z(b,D);else{b.state=l,b.outcome=j;for(var Y=-1,G=b.queue.length;++Y<G;)b.queue[Y].callFulfilled(j)}return b},n.reject=function(b,j){b.state=s,b.outcome=j;for(var A=-1,D=b.queue.length;++A<D;)b.queue[A].callRejected(j);return b};function C(b){var j=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof j=="function")return function(){j.apply(b,arguments)}}function Z(b,j){var A=!1;function D(te){A||(A=!0,n.reject(b,te))}function Y(te){A||(A=!0,n.resolve(b,te))}function G(){j(Y,D)}var z=M(G);z.status==="error"&&D(z.value)}function M(b,j){var A={};try{A.value=b(j),A.status="success"}catch(D){A.status="error",A.value=D}return A}u.resolve=oe;function oe(b){return b instanceof this?b:n.resolve(new this(m),b)}u.reject=$;function $(b){var j=new this(m);return n.reject(j,b)}u.all=ee;function ee(b){var j=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,D=!1;if(!A)return this.resolve([]);for(var Y=new Array(A),G=0,z=-1,te=new this(m);++z<A;)K(b[z],z);return te;function K(ue,ce){j.resolve(ue).then(Oe,function(de){D||(D=!0,n.reject(te,de))});
vendor: 16,494 bytes, line 8
8function Oe(de){Y[ce]=de,++G===A&&!D&&(D=!0,n.resolve(te,Y))}}}u.race=J;function J(b){var j=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,D=!1;if(!A)return this.resolve([]);for(var Y=-1,G=new this(m);++Y<A;)z(b[Y]);return G;function z(te){j.resolve(te).then(function(K){D||(D=!0,n.resolve(G,K))},function(K){D||(D=!0,n.reject(G,K))})}}},{1:1}],3:[function(O,P,B){(function(g){typeof g.Promise!="function"&&(g.Promise=O(2))}).call(this,typeof Me<"u"?Me:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(O,P,B){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function m(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function n(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var s=n();function l(){try{if(!s||!s.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function h(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(o){if(o.name!=="TypeError")throw o;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,i=new t,a=0;a<e.length;a+=1)i.append(e[a]);return i.getBlob(r.type)}}typeof Promise>"u"&&O(3);var u=Promise;function S(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function T(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function C(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var M="local-forage-detect-blob-support",oe=void 0,$={},ee=Object.prototype.toString,J="readonly",b="readwrite";function j(e){for(var r=e.length,t=new ArrayBuffer(r),i=new Uint8Array(t),a=0;a<r;a++)i[a]=e.charCodeAt(a);return t}function A(e){return new u(function(r){var t=e.transaction(M,b),i=h([""]);t.objectStore(M).put(i,"key"),t.onabort=function(a){a.preventDefault(),a.stopPropagation(),r(!1)},t.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/),o=navigator.userAgent.match(/Edge\//);r(o||!a||parseInt(a[1],10)>=43)}}).catch(function(){return!1})}function D(e){return typeof oe=="boolean"?u.resolve(oe):A(e).then(function(r){return oe=r,oe})}function Y(e){var r=$[e.name],t={};t.promise=new u(function(i,a){t.resolve=i,t.reject=a}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function G(e){var r=$[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function z(e,r){var t=$[e.name],i=t.deferredOperations.pop();if(i)return i.reject(r),i.promise}function te(e,r){return new u(function(t,i){if($[e.name]=$[e.name]||be(),e.db)if(r)Y(e),e.db.close();else return t(e.db);var a=[e.name];r&&a.push(e.version);var o=s.open.apply(s,a);r&&(o.onupgradeneeded=function(f){var y=o.result;try{y.createObjectStore(e.storeName),f.oldVersion<=1&&y.createObjectStore(M)}catch(_){if(_.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+f.oldVersion+" to version "+f.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw _}}),o.onerror=function(f){f.preventDefault(),i(o.error)},o.onsuccess=function(){var f=o.result;f.onversionchange=function(y){y.target.close()},t(f),G(e)}})}function K(e){return te(e,!1)}function ue(e){return te(e,!0)}function ce(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),i=e.version<e.db.version,a=e.version>e.db.version;if(i&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),a||t){if(t){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function Oe(e){return new u(function(r,t){var i=new FileReader;i.onerror=t,i.onloadend=function(a){var o=btoa(a.target.result||"");r({__local_forage_encoded_blob:!0,data:o,type:e.type})},i.readAsBinaryString(e)})}function de(e){var r=j(atob(e.data));return h([r],{type:e.type})}function Ee(e){return e&&e.__local_forage_encoded_blob}function ze(e){var r=this,t=r._initReady().then(function(){var i=$[r._dbInfo.name];if(i&&i.dbReady)return i.dbReady});return T(t,e,e),t}function We(e){Y(e);for(var r=$[e.name],t=r.forages,i=0;i<t.length;i++){var a=t[i];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,K(e).then(function(o){return e.db=o,ce(e)?ue(e):o}).then(function(o){e.db=r.db=o;for(var f=0;f<t.length;f++)t[f]._dbInfo.db=o}).catch(function(o){throw z(e,o),o})}function fe(e,r,t,i){i===void 0&&(i=1);try{var a=e.db.transaction(e.storeName,r);t(null,a)}catch(o){if(i>0&&(!e.db||o.name==="InvalidStateError"||o.name==="NotFoundError"))return u.resolve().then(function(){if(!e.db||o.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ue(e)}).then(function(){return We(e).then(function(){fe(e,r,t,i-1)})}).catch(t);t(o)}}function be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ge(e){var r=this,t={db:null};if(e)for(var i in e)t[i]=e[i];var a=$[t.name];a||(a=be(),$[t.name]=a),a.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=ze);var o=[];function f(){return u.resolve()}for(var y=0;y<a.forages.length;y++){var _=a.forages[y];_!==r&&o.push(_._initReady().catch(f))}var x=a.forages.slice(0);return u.all(o).then(function(){return t.db=a.db,K(t)}).then(function(I){return t.db=I,ce(t,r._defaultConfig.version)?ue(t):I}).then(function(I){t.db=a.db=I,r._dbInfo=t;for(var R=0;R<x.length;R++){var k=x[R];k!==r&&(k._dbInfo.db=t.db,k._dbInfo.version=t.version)}})}function Ge(e,r){var t=this;e=C(e);var i=new u(function(a,o){t.ready().then(function(){fe(t._dbInfo,J,function(f,y){if(f)return o(f);try{var _=y.objectStore(t._dbInfo.storeName),x=_.get(e);x.onsuccess=function(){var I=x.result;I===void 0&&(I=null),Ee(I)&&(I=de(I)),a(I)},x.onerror=function(){o(x.error)}}catch(I){o(I)}})}).catch(o)});return S(i,r),i}function Ne(e,r){var t=this,i=new u(function(a,o){t.ready().then(function(){fe(t._dbInfo,J,function(f,y){if(f)return o(f);try{var _=y.objectStore(t._dbInfo.storeName),x=_.openCursor(),I=1;x.onsuccess=function(){var R=x.result;if(R){var k=R.value;Ee(k)&&(k=de(k));var Q=e(k,R.key,I++);Q!==void 0?a(Q):R.continue()}else a()},x.onerror=function(){o(x.error)}}catch(R){o(R)}})}).catch(o)});return S(i,r),i}function Ce(e,r,t){var i=this;e=C(e);var a=new u(function(o,f){var y;i.ready().then(function(){return y=i._dbInfo,ee.call(r)==="[object Blob]"?D(y.db).then(function(_){return _?r:Oe(r)}):r}).then(function(_){fe(i._dbInfo,b,function(x,I){if(x)return f(x);try{var R=I.objectStore(i._dbInfo.storeName);_===null&&(_=void 0);var k=R.put(_,e);I.oncomplete=function(){_===void 0&&(_=null),o(_)},I.onabort=I.onerror=function(){var Q=k.error?k.error:k.transaction.error;f(Q)}}catch(Q){f(Q)}})}).catch(f)});return S(a,t),a}function Le(e,r){var t=this;e=C(e);var i=new u(function(a,o){t.ready().then(function(){fe(t._dbInfo,b,function(f,y){if(f)return o(f);try{var _=y.objectStore(t._dbInfo.storeName),x=_.delete(e);y.oncomplete=function(){a()},y.onerror=function(){o(x.error)},y.onabort=function(){var I=x.error?x.error:x.transaction.error;o(I)}}catch(I){o(I)}})}).catch(o)});return S(i,r),i}function c(e){var r=this,t=new u(function(i,a){r.ready().then(function(){fe(r._dbInfo,b,function(o,f){if(o)return a(o);try{var y=f.objectStore(r._dbInfo.storeName),_=y.clear();f.oncomplete=function(){i()},f.onabort=f.onerror=function(){var x=_.error?_.error:_.transaction.error;a(x)}}catch(x){a(x)}})}).catch(a)});return S(t,e),t}function v(e){var r=this,t=new u(function(i,a){r.ready().then(function(){fe(r._dbInfo,J,function(o,f){if(o)return a(o);try{var y=f.objectStore(r._dbInfo.storeName),_=y.count();_.onsuccess=function(){i(_.result)},_.onerror=function(){a(_.error)}}catch(x){a(x)}})}).catch(a)});return S(t,e),t}function w(e,r){var t=this,i=new u(function(a,o){if(e<0){a(null);return}t.ready().then(function(){fe(t._dbInfo,J,function(f,y){if(f)return o(f);try{var _=y.objectStore(t._dbInfo.storeName),x=!1,I=_.openKeyCursor();I.onsuccess=function(){var R=I.result;if(!R){a(null);return}e===0||x?a(R.key):(x=!0,R.advance(e))},I.onerror=function(){o(I.error)}}catch(R){o(R)}})}).catch(o)});return S(i,r),i}function d(e){var r=this,t=new u(function(i,a){r.ready().then(function(){fe(r._dbInfo,J,function(o,f){if(o)return a(o);try{var y=f.objectStore(r._dbInfo.storeName),_=y.openKeyCursor(),x=[];_.onsuccess=function(){var I=_.result;if(!I){i(x);return}x.push(I.key),I.continue()},_.onerror=function(){a(_.error)}}catch(I){a(I)}})}).catch(a)});return S(t,e),t}function W(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var i=this,a;if(!e.name)a=u.reject("Invalid arguments");else{var o=e.name===t.name&&i._dbInfo.db,f=o?u.resolve(i._dbInfo.db):K(e).then(function(y){var _=$[e.name],x=_.forages;_.db=y;for(var I=0;I<x.length;I++)x[I]._dbInfo.db=y;return y});e.storeName?a=f.then(function(y){if(y.objectStoreNames.contains(e.storeName)){var _=y.version+1;Y(e);var x=$[e.name],I=x.forages;y.close();for(var R=0;R<I.length;R++){var k=I[R];k._dbInfo.db=null,k._dbInfo.version=_}var Q=new u(function(V,re){var ne=s.open(e.name,_);ne.onerror=function(le){var je=ne.result;je.close(),re(le)},ne.onupgradeneeded=function(){var le=ne.result;le.deleteObjectStore(e.storeName)},ne.onsuccess=function(){var le=ne.result;le.close(),V(le)}});return Q.then(function(V){x.db=V;for(var re=0;re<I.length;re++){var ne=I[re];ne._dbInfo.db=V,G(ne._dbInfo)}}).catch(function(V){throw(z(e,V)||u.resolve()).catch(function(){}),V})}}):a=f.then(function(y){Y(e);var _=$[e.name],x=_.forages;y.close();for(var I=0;I<x.length;I++){var R=x[I];R._dbInfo.db=null}var k=new u(function(Q,V){var re=s.deleteDatabase(e.name);re.onerror=function(){var ne=re.result;ne&&ne.close(),V(re.error)},re.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},re.onsuccess=function(){var ne=re.result;ne&&ne.close(),Q(ne)}});return k.then(function(Q){_.db=Q;for(var V=0;V<x.length;V++){var re=x[V];G(re._dbInfo)}}).catch(function(Q){throw(z(e,Q)||u.resolve()).catch(function(){}),Q})})}return S(a,r),a}var E={_driver:"asyncStorage",_initStorage:ge,_support:l(),iterate:Ne,getItem:Ge,setItem:Ce,removeItem:Le,clear:c,length:v,key:w,keys:d,dropInstance:W};function F(){return typeof openDatabase=="function"}var U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X="~~local_forage_type~",q=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ie=se.length,ae="arbf",ye="blob",_e="si08",we="ui08",xe="uic8",he="si16",Se="si32",Re="ur16",Fe="ui32",Pe="fl32",Te="fl64",ve=ie+ae.length,Ae=Object.prototype.toString;function nt(e){var r=e.length*.75,t=e.length,i,a=0,o,f,y,_;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var x=new ArrayBuffer(r),I=new Uint8Array(x);for(i=0;i<t;i+=4)o=U.indexOf(e[i]),f=U.indexOf(e[i+1]),y=U.indexOf(e[i+2]),_=U.indexOf(e[i+3]),I[a++]=o<<2|f>>4,I[a++]=(f&15)<<4|y>>2,I[a++]=(y&3)<<6|_&63;return x}function Qe(e){var r=new Uint8Array(e),t="",i;for(i=0;i<r.length;i+=3)t+=U[r[i]>>2],t+=U[(r[i]&3)<<4|r[i+1]>>4],t+=U[(r[i+1]&15)<<2|r[i+2]>>6],t+=U[r[i+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function Ct(e,r){var t="";if(e&&(t=Ae.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Ae.call(e.buffer)==="[object ArrayBuffer]")){var i,a=se;e instanceof ArrayBuffer?(i=e,a+=ae):(i=e.buffer,t==="[object Int8Array]"?a+=_e:t==="[object Uint8Array]"?a+=we:t==="[object Uint8ClampedArray]"?a+=xe:t==="[object Int16Array]"?a+=he:t==="[object Uint16Array]"?a+=Re:t==="[object Int32Array]"?a+=Se:t==="[object Uint32Array]"?a+=Fe:t==="[object Float32Array]"?a+=Pe:t==="[object Float64Array]"?a+=Te:r(new Error("Failed to get type for BinaryArray"))),r(a+Qe(i))}else if(t==="[object Blob]"){var o=new FileReader;o.onload=function(){var f=X+e.type+"~"+Qe(this.result);r(se+ye+f)},o.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(f){console.error("Couldn't convert value into a JSON string: ",e),r(null,f)}}function Rt(e){if(e.substring(0,ie)!==se)return JSON.parse(e);var r=e.substring(ve),t=e.substring(ie,ve),i;if(t===ye&&q.test(r)){var a=r.match(q);i=a[1],r=r.substring(a[0].length)}var o=nt(r);switch(t){case ae:return o;case ye:return h([o],{type:i});case _e:return new Int8Array(o);case we:return new Uint8Array(o);case xe:return new Uint8ClampedArray(o);case he:return new Int16Array(o);case Re:return new Uint16Array(o);case Se:return new Int32Array(o);case Fe:return new Uint32Array(o);case Pe:return new Float32Array(o);case Te:return new Float64Array(o);default:throw new Error("Unkown type: "+t)}}var Ve={serialize:Ct,deserialize:Rt,stringToBuffer:nt,bufferToString:Qe};function rt(e,r,t,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,i)}function Pt(e){var r=this,t={db:null};if(e)for(var i in e)t[i]=typeof e[i]!="string"?e[i].toString():e[i];var a=new u(function(o,f){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(y){return f(y)}t.db.transaction(function(y){rt(y,t,function(){r._dbInfo=t,o()},function(_,x){f(x)})},f)});return t.serializer=Ve,a}function pe(e,r,t,i,a,o){e.executeSql(t,i,a,function(f,y){y.code===y.SYNTAX_ERR?f.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(_,x){x.rows.length?o(_,y):rt(_,r,function(){_.executeSql(t,i,a,o)},o)},o):o(f,y)},o)}function Tt(e,r){var t=this;e=C(e);var i=new u(function(a,o){t.ready().then(function(){var f=t._dbInfo;f.db.transaction(function(y){pe(y,f,"SELECT * FROM "+f.storeName+" WHERE key = ? LIMIT 1",[e],function(_,x){var I=x.rows.length?x.rows.item(0).value:null;I&&(I=f.serializer.deserialize(I)),a(I)},function(_,x){o(x)})})}).catch(o)});return S(i,r),i}function At(e,r){var t=this,i=new u(function(a,o){t.ready().then(function(){var f=t._dbInfo;f.db.transaction(function(y){pe(y,f,"SELECT * FROM "+f.storeName,[],function(_,x){for(var I=x.rows,R=I.length,k=0;k<R;k++){var Q=I.item(k),V=Q.value;if(V&&(V=f.serializer.deserialize(V)),V=e(V,Q.key,k+1),V!==void 0){a(V);return}}a()},function(_,x){o(x)})})}).catch(o)});return S(i,r),i}function ot(e,r,t,i){var a=this;e=C(e);var o=new u(function(f,y){a.ready().then(function(){r===void 0&&(r=null);var _=r,x=a._dbInfo;x.serializer.serialize(r,function(I,R){R?y(R):x.db.transaction(function(k){pe(k,x,"INSERT OR REPLACE INTO "+x.storeName+" (key, value) VALUES (?, ?)",[e,I],function(){f(_)},function(Q,V){y(V)})},function(k){if(k.code===k.QUOTA_ERR){if(i>0){f(ot.apply(a,[e,_,t,i-1]));return}y(k)}})})}).catch(y)});return S(o,t),o}function Dt(e,r,t){return ot.apply(this,[e,r,t,1])}function jt(e,r){var t=this;e=C(e);var i=new u(function(a,o){t.ready().then(function(){var f=t._dbInfo;f.db.transaction(function(y){pe(y,f,"DELETE FROM "+f.storeName+" WHERE key = ?",[e],function(){a()},function(_,x){o(x)})})}).catch(o)});return S(i,r),i}function Bt(e){var r=this,t=new u(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(f){pe(f,o,"DELETE FROM "+o.storeName,[],function(){i()},function(y,_){a(_)})})}).catch(a)});return S(t,e),t}function Mt(e){var r=this,t=new u(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(f){pe(f,o,"SELECT COUNT(key) as c FROM "+o.storeName,[],function(y,_){var x=_.rows.item(0).c;i(x)},function(y,_){a(_)})})}).catch(a)});return S(t,e),t}function Lt(e,r){var t=this,i=new u(function(a,o){t.ready().then(function(){var f=t._dbInfo;f.db.transaction(function(y){pe(y,f,"SELECT key FROM "+f.storeName+" WHERE id = ? L
8IMIT 1",[e+1],function(_,x){var I=x.rows.length?x.rows.item(0).key:null;a(I)},function(_,x){o(x)})})}).catch(o)});return S(i,r),i}function Ft(e){var r=this,t=new u(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(f){pe(f,o,"SELECT key FROM "+o.storeName,[],function(y,_){for(var x=[],I=0;I<_.rows.length;I++)x.push(_.rows.item(I).key);i(x)},function(y,_){a(_)})})}).catch(a)});return S(t,e),t}function kt(e){return new u(function(r,t){e.transaction(function(i){i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(a,o){for(var f=[],y=0;y<o.rows.length;y++)f.push(o.rows.item(y).name);r({db:e,storeNames:f})},function(a,o){t(o)})},function(i){t(i)})})}function Yt(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var i=this,a;return e.name?a=new u(function(o){var f;e.name===t.name?f=i._dbInfo.db:f=openDatabase(e.name,"","",0),e.storeName?o({db:f,storeNames:[e.storeName]}):o(kt(f))}).then(function(o){return new u(function(f,y){o.db.transaction(function(_){function x(Q){return new u(function(V,re){_.executeSql("DROP TABLE IF EXISTS "+Q,[],function(){V()},function(ne,le){re(le)})})}for(var I=[],R=0,k=o.storeNames.length;R<k;R++)I.push(x(o.storeNames[R]));u.all(I).then(function(){f()}).catch(function(Q){y(Q)})},function(_){y(_)})})}):a=u.reject("Invalid arguments"),S(a,r),a}var Ut={_driver:"webSQLStorage",_initStorage:Pt,_support:F(),iterate:At,getItem:Tt,setItem:Dt,removeItem:jt,clear:Bt,length:Mt,key:Lt,keys:Ft,dropInstance:Yt};function $t(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function it(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function zt(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function Wt(){return!zt()||localStorage.length>0}function Gt(e){var r=this,t={};if(e)for(var i in e)t[i]=e[i];return t.keyPrefix=it(e,r._defaultConfig),Wt()?(r._dbInfo=t,t.serializer=Ve,u.resolve()):u.reject()}function Qt(e){var r=this,t=r.ready().then(function(){for(var i=r._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var o=localStorage.key(a);o.indexOf(i)===0&&localStorage.removeItem(o)}});return S(t,e),t}function Vt(e,r){var t=this;e=C(e);var i=t.ready().then(function(){var a=t._dbInfo,o=localStorage.getItem(a.keyPrefix+e);return o&&(o=a.serializer.deserialize(o)),o});return S(i,r),i}function Ht(e,r){var t=this,i=t.ready().then(function(){for(var a=t._dbInfo,o=a.keyPrefix,f=o.length,y=localStorage.length,_=1,x=0;x<y;x++){var I=localStorage.key(x);if(I.indexOf(o)===0){var R=localStorage.getItem(I);if(R&&(R=a.serializer.deserialize(R)),R=e(R,I.substring(f),_++),R!==void 0)return R}}});return S(i,r),i}function qt(e,r){var t=this,i=t.ready().then(function(){var a=t._dbInfo,o;try{o=localStorage.key(e)}catch{o=null}return o&&(o=o.substring(a.keyPrefix.length)),o});return S(i,r),i}function Xt(e){var r=this,t=r.ready().then(function(){for(var i=r._dbInfo,a=localStorage.length,o=[],f=0;f<a;f++){var y=localStorage.key(f);y.indexOf(i.keyPrefix)===0&&o.push(y.substring(i.keyPrefix.length))}return o});return S(t,e),t}function Kt(e){var r=this,t=r.keys().then(function(i){return i.length});return S(t,e),t}function Zt(e,r){var t=this;e=C(e);var i=t.ready().then(function(){var a=t._dbInfo;localStorage.removeItem(a.keyPrefix+e)});return S(i,r),i}function Jt(e,r,t){var i=this;e=C(e);var a=i.ready().then(function(){r===void 0&&(r=null);var o=r;return new u(function(f,y){var _=i._dbInfo;
vendor: 5,241 bytes, line 8
8_.serializer.serialize(r,function(x,I){if(I)y(I);else try{localStorage.setItem(_.keyPrefix+e,x),f(o)}catch(R){(R.name==="QuotaExceededError"||R.name==="NS_ERROR_DOM_QUOTA_REACHED")&&y(R),y(R)}})})});return S(a,t),a}function en(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var i=this,a;return e.name?a=new u(function(o){e.storeName?o(it(e,i._defaultConfig)):o(e.name+"/")}).then(function(o){for(var f=localStorage.length-1;f>=0;f--){var y=localStorage.key(f);y.indexOf(o)===0&&localStorage.removeItem(y)}}):a=u.reject("Invalid arguments"),S(a,r),a}var tn={_driver:"localStorageWrapper",_initStorage:Gt,_support:$t(),iterate:Ht,getItem:Vt,setItem:Jt,removeItem:Zt,clear:Qt,length:Kt,key:qt,keys:Xt,dropInstance:en},nn=function(r,t){return r===t||typeof r=="number"&&typeof t=="number"&&isNaN(r)&&isNaN(t)},rn=function(r,t){for(var i=r.length,a=0;a<i;){if(nn(r[a],t))return!0;a++}return!1},at=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},De={},st={},Ie={INDEXEDDB:E,WEBSQL:Ut,LOCALSTORAGE:tn},on=[Ie.INDEXEDDB._driver,Ie.WEBSQL._driver,Ie.LOCALSTORAGE._driver],ke=["dropInstance"],He=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ke),an={description:"",driver:on.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function sn(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function qe(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(at(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var un=function(){function e(r){m(this,e);for(var t in Ie)if(Ie.hasOwnProperty(t)){var i=Ie[t],a=i._driver;this[t]=a,De[a]||this.defineDriver(i)}this._defaultConfig=qe({},an),this._config=qe({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(t){if((typeof t>"u"?"undefined":g(t))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var i in t){if(i==="storeName"&&(t[i]=t[i].replace(/\W/g,"_")),i==="version"&&typeof t[i]!="number")return new Error("Database version must be a number.");this._config[i]=t[i]}return"driver"in t&&t.driver?this.setDriver(this._config.driver):!0}else return typeof t=="string"?this._config[t]:this._config},e.prototype.defineDriver=function(t,i,a){var o=new u(function(f,y){try{var _=t._driver,x=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){y(x);return}for(var I=He.concat("_initStorage"),R=0,k=I.length;R<k;R++){var Q=I[R],V=!rn(ke,Q);if((V||t[Q])&&typeof t[Q]!="function"){y(x);return}}var re=function(){for(var je=function(ln){return function(){var dn=new Error("Method "+ln+" is not implemented by the current driver"),ut=u.reject(dn);return S(ut,arguments[arguments.length-1]),ut}},Xe=0,fn=ke.length;Xe<fn;Xe++){var Ke=ke[Xe];t[Ke]||(t[Ke]=je(Ke))}};re();var ne=function(je){De[_]&&console.info("Redefining LocalForage driver: "+_),De[_]=t,st[_]=je,f()};"_support"in t?t._support&&typeof t._support=="function"?t._support().then(ne,y):ne(!!t._support):ne(!0)}catch(le){y(le)}});return T(o,i,a),o},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(t,i,a){var o=De[t]?u.resolve(De[t]):u.reject(new Error("Driver not found."));return T(o,i,a),o},e.prototype.getSerializer=function(t){var i=u.resolve(Ve);return T(i,t),i},e.prototype.ready=function(t){var i=this,a=i._driverSet.then(function(){return i._ready===null&&(i._ready=i._initDriver()),i._ready});return T(a,t,t),a},e.prototype.setDriver=function(t,i,a){var o=this;at(t)||(t=[t]);var f=this._getSupportedDrivers(t);function y(){o._config.driver=o.driver()}function _(R){return o._extend(R),y(),o._ready=o._initStorage(o._config),o._ready}function x(R){return function(){var k=0;function Q(){for(;k<R.length;){var V=R[k];return k++,o._dbInfo=null,o._ready=null,o.getDriver(V).then(_).catch(Q)}y();var re=new Error("No available storage method found.");return o._driverSet=u.reject(re),o._driverSet}return Q()}}var I=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=I.then(function(){var R=f[0];return o._dbInfo=null,o._ready=null,o.getDriver(R).then(function(k){o._driver=k._driver,y(),o._wrapLibraryMethodsWithReady(),o._initDriver=x(f)})}).catch(function(){y();var R=new Error("No available storage method found.");return o._driverSet=u.reject(R),o._driverSet}),T(this._driverSet,i,a),this._driverSet},e.prototype.supports=function(t){return!!st[t]},e.prototype._extend=function(t){qe(this,t)},e.prototype._getSupportedDrivers=function(t){for(var i=[],a=0,o=t.length;a<o;a++){var f=t[a];this.supports(f)&&i.push(f)}return i},e.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,i=He.length;t<i;t++)sn(this,He[t])},e.prototype.createInstance=function(t){return new e(t)},e}(),cn=new un;P.exports=cn},{3:3}]},{},[4])(4)}
8)})(Nt);var er=Nt.exports;const Ue=_t(er),tr="_pointerLeft_l9t6v_1",nr="_pointerRight_l9t6v_2",yt={pointerLeft:tr,pointerRight:nr};function Nr({direction:p}){return L.jsx("div",{className:p==="left"?yt.pointerLeft:yt.pointerRight})}const rr="_button_16esb_1",or="_icon_16esb_20",ir="_text_16esb_25",Je={button:rr,icon:or,text:ir};function mt({text:p,icon:N,onClick:O}){return L.jsxs("button",{className:Je.button,onClick:O,children:[L.jsx("div",{className:Je.icon,children:N}),L.jsx("div",{className:Je.text,children:p})]})}const ar="_shareIcon_8ypq9_1",sr={shareIcon:ar};function ur(){return L.jsx("div",{className:sr.shareIcon})}const cr="_soundIcon_sa559_1",fr={soundIcon:cr};function lr(){return L.jsx("div",{className:fr.soundIcon})}const dr="_actionButtons_wrde9_1",hr={actionButtons:dr},$e="soundOn";function Cr(){const[p,N]=H.useState(!1),[O,P]=H.useState(!1),B="Yes or No",g='Tired of overthinking? Get random "Yes" or "No" answers to your questions with this fun tool. Try it now!';function m(){navigator.share?navigator.share({title:B,text:g,url:window.location.href}):(N(!0),navigator.clipboard.writeText(g+` ${window.location.href}`),setTimeout(()=>{N(!1)},2e3))}H.useEffect(()=>{Ue.getItem($e).then(s=>{s===null?(Ue.setItem($e,!0),P(!0)):P(s)})},[]);function n(){P(s=>(Ue.setItem($e,!s),!s))}return L.jsxs("div",{className:hr.actionButtons,children:[L.jsx(mt,{onClick:m,text:p?"COPIED!":"SHARE",icon:L.jsx(ur,{})}),L.jsx(mt,{onClick:n,text:O?"ON":"OFF",icon:L.jsx(lr,{})})]})}const vr="_languagesContainer_1jnh2_1",pr="_link_1jnh2_9",bt={languagesContainer:vr,link:pr};function Rr(){const{i18n:p}=In();return L.jsx("div",{className:bt.languagesContainer,children:hn.map(N=>L.jsx(vn,{to:`/${N}`,className:bt.link,reloadDocument:!0,children:p.getFixedT(N)("yesOrNo")},N))})}function Pr(p,N=1,O=1){const P=H.useRef(null);return H.useEffect(()=>{P.current=new Audio(p)}
8,[p]),H.useEffect(()=>{const m=P.current;return m&&(m.playbackRate=N,m.volume=O),()=>{m&&(m.pause(),m.currentTime=0)}},[p,N,O]),{playSound:()=>{const m=P.current;Ue.getItem($e).then(n=>{n&&m&&m.currentTime===0&&m.play()})},stopSound:()=>{const m=P.current;m&&!m.paused&&(m.pause(),m.currentTime=0)}}}const Tr="/assets/spin-BW7FDm3A.wav";export{Cr as A,_r as C,Sr as L,Et as N,Nr as P,Or as S,Ot as Y,br as a,wr as b,Zn as c,xr as d,Ir as e,Rr as f,Ue as l,Tr as s,Pr as u,Er as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.