text: import{g as e,r as t,R as r,a}from"./vendor.61b2be4f.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const r of e)if("childList"===r.type)for(const e of r.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const{random:l}=e.utils,n=l(0,3),i=l(n+1,n+3),o=l(i+1,i+3),c={ON:new Audio("https://assets.codepen.io/605876/switch-on.mp3"),OFF:new Audio("https://assets.codepen.io/605876/switch-off.mp3"),GROAN:new Audio("https://assets.codepen.io/605876/bear-groan.mp3")};c.GROAN.playbackRate=2;var s=()=>{const[a,l]=t.exports.useState(!1),[s,d]=t.exports.useState(1),p=t.exports.useRef(null),m=t.exports.useRef(null),u=t.exports.useRef(null),f=t.exports.useRef(null),y=t.exports.useRef(null),h=t.exports.useRef(null),E=t.exports.useRef(null);return t.exports.useEffect((()=>{a&&e.timeline({onStart:()=>{c.ON.play()}}).to(h.current,{duration:.25,backgroundColor:"#2eec71"},0).to(E.current,{duration:.25,x:"100%"},0).add((()=>{let t;s>n&&s<i?t="40%":s>=i&&(t="0%");let r=()=>{};Math.random()>.5&&s>o&&(r=()=>{c.GROAN.play(),e.set(m.current,{display:"block"})});const a=Math.random(),x=s>n?.75+a:.5,g=e.timeline({delay:Math.random(),onComplete:()=>{l(!1),d(s+1)}});return g.add(s>n?e.to(p.current,{duration:.25,onComplete:r,y:t}):()=>{}).to(u.current,{x:50,duration:.2},s>n?a:0).to(y.current,{scaleX:.7,duration:.2}).to(f.current,{duration:.1,scaleX:.8,onComplete:()=>{e.set(m.current,{display:"none"})}}).to(h.current,{onStart:()=>{c.OFF.play()},duration:.25,backgroundColor:"#aaa"},x).to(E.current,{duration:.25,x:"0%"},x).to(f.current,{duration:.1,scaleX:0},x).to(y.current,{duration:.1,scaleX:1},x+.1).to(u.current,{duration:.2,x:0},x+.1).to(p.current,{duration:.25,y:"100%"},x+.1),g})(),.25)}),[a,s]),r.createElement(t.exports.Fragment,null,r.createElement("div",{className:"bear__wrap"},r.createElement("div",{ref:m,className:"bear__swear"},"#@$%*!"),r.createElement("svg",{ref:p,className:"bear",viewBox:"0 0 284.94574 359.73706",preserveAspectRatio:"xMinYMin"},r.createElement("g",{id:"layer1",transform:"translate(-7.5271369,-761.38595)"},r.createElement("g",{id:"g5691",transform:"matrix(1.2335313,0,0,1.2335313,-35.029693,-212.83637)"},r.createElement("path",{id:"path4372",d:"M 263.90933,1081.4151 A 113.96792,96.862576 0 0 0 149.99132,985.71456 113.96792,96.862576 0 0 0 36.090664,1081.4151 l 227.818666,0 z",style:{fill:"#784421",fillOpacity:1}}),r.createElement("path",{id:"path5634",d:"m 250.42825,903.36218 c 2e-5,66.27108 -44.75411,114.99442 -102.42825,114.99442 -57.674143,0 -98.428271,-48.72334 -98.428251,-114.99442 4e-6,-66.27106 40.754125,-92.99437 98.428251,-92.99437 57.67413,0 102.42825,26.72331 102.42825,92.99437 z",style:{fill:"#784421",fillOpacity:1}}),r.createElement("path",{id:"path5639",d:"m 217,972.86218 c 2e-5,21.53911 -30.44462,42.00002 -68,42.00002 -37.55538,0 -66.000019,-20.46091 -66,-42.00002 0,-21.53911 28.44464,-36 66,-36 37.55536,0 68,14.46089 68,36 z",style:{fill:"#e9c6af",fillOpacity:1}}),r.createElement("path",{id:"path5636",d:"m 181.5,944.36218 c 0,8.28427 -20.59974,26.5 -32.75,26.5 -12.15026,0 -34.75,-18.21573 -34.75,-26.5 0,-8.28427 22.59974,-13.5 34.75,-13.5 12.15026,0 32.75,5.21573 32.75,13.5 z",style:{fill:"#000000",fillOpacity:1}}),r.createElement("g",{id:"g5681"},r.createElement("ellipse",{style:{fill:"#784421",fillOpacity:1},id:"path5657",cx:"69",cy:"823.07269",rx:"34.5",ry:"33.289474"}),r.createElement("path",{style:{fill:"#e9c6af",fillOpacity:1},d:"M 69,47.310547 A 24.25,23.399124 0 0 0 44.75,70.710938 24.25,23.399124 0 0 0 64.720703,93.720703 c 0.276316,-0.40734 0.503874,-0.867778 0.787109,-1.267578 1.70087,-2.400855 3.527087,-4.666237 5.470704,-6.798828 1.943616,-2.132591 4.004963,-4.133318 6.179687,-6.003906 2.174725,-1.870589 4.461274,-3.611714 6.855469,-5.226563 2.394195,-1.614848 4.896019,-3.10338 7.498047,-4.46875 0.539935,-0.283322 1.133058,-0.500695 1.68164,-0.773437 A 24.25,23.399124 0 0 0 69,47.310547 Z",id:"ellipse5659",transform:"translate(0,752.36216)"})),r.createElement("g",{transform:"matrix(-1,0,0,1,300,0)",id:"g5685"},r.createElement("ellipse",{ry:"33.289474",rx:"34.5",cy:"823.07269",cx:"69",id:"ellipse5687",style:{fill:"#784421",fillOpacity:1}}),r.createElement("path",{transform:"translate(0,752.36216)",id:"path5689",d:"M 69,47.310547 A 24.25,23.399124 0 0 0 44.75,70.710938 24.25,23.399124 0 0 0 64.720703,93.720703 c 0.276316,-0.40734 0.503874,-0.867778 0.787109,-1.267578 1.70087,-2.400855 3.527087,-4.666237 5.470704,-6.798828 1.943616,-2.132591 4.004963,-4.133318 6.179687,-6.003906 2.174725,-1.870589 4.461274,-3.611714 6.855469,-5.226563 2.394195,-1.614848 4.896019,-3.10338 7.498047,-4.46875 0.539935,-0.283322 1.133058,-0.500695 1.68164,-0.773437 A 24.25,23.399124 0 0 0 69,47.310547 Z",style:{fill:"#e9c6af",fillOpacity:1}})),r.createElement("ellipse",{ry:"9.6790915",rx:"9.2701159",cy:"900.38916",cx:"105.83063",id:"path4368",style:{fill:"#000000",fillOpacity:1}}),r.createElement("ellipse",{style:{fill:"#000000",fillOpacity:1},id:"ellipse4370",cx:"186.89894",cy:"900.38916",rx:"9.2701159",ry:"9.6790915"}),s>=o&&r.createElement(t.exports.Fragment,null,r.createElement("path",{id:"path4396",d:"m 92.05833,865.4614 39.42665,22.76299",style:{stroke:"#000000",strokeWidth:4.86408424,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeOpacity:1}}),r.createElement("path",{style:{stroke:"#000000",strokeWidth:4.86408424,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:4,strokeOpacity:1},d:"m 202.82482,865.4614 -39.42664,22.76299",id:"path4400"})))))),r.createElement("div",{ref:u,className:"bear__arm-wrap"},r.createElement("svg",{ref:y,className:"bear__arm",viewBox:"0 0 250.00001 99.999997",preserveAspectRatio:"xMinYMin"},r.createElement("g",{transform:"translate(868.57141,-900.93359)",id:"layer1"},r.createElement("path",{style:{fill:"#784421",fillOpacity:1},d:"m -619.43416,945.05124 c 4.18776,73.01076 -78.25474,53.24342 -150.21568,52.94118 -82.38711,-0.34602 -98.92158,-19.44459 -98.92157,-47.05883 0,-27.61424 4.78794,-42.54902 73.82353,-42.54902 69.03559,0 171.43607,-30.93764 175.31372,36.66667 z",id:"path4971"}),r.createElement("ellipse",{style:{fill:"#e9c6af",fillOpacity:1},id:"path4974",cx:"-683.02264",cy:"950.98572",rx:"29.910826",ry:"29.414362"})))),r.createElement("div",{ref:f,className:"bear__paw"}),r.createElement("div",{className:"mask"}),r.createElement("div",{className:"checkbox",onMouseOver:()=>{Math.random()>.5&&s>n&&e.to(p.current,.125,{y:"40%"})},onMouseOut:()=>{a||e.to(p.current,.125,{y:"100%"})}},r.createElement("input",{type:"checkbox",onChange:()=>{a||l(!0)},checked:a}),r.createElement("div",{ref:h,className:"checkbox__bg"}),r.createElement("div",{ref:E,className:"checkbox__indicator"})))};a.render(r.createElement(r.StrictMode,null,r.createElement(s,null)),document.getElementById("root"));
  