PageSourceSearch

https://oncehit.net/_next/static/chunks/3466.acf8dd91c9673707.js

js oncehit.net collected 2026-10-02 01:06:50 UTC 19,046 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3466],{43466:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});var r=a(57437),n=a(29),s=a.n(n),i=a(2265),o=a(49924),l=a(18030),c=a(73890),m=a(28354),u=a(86112);function f(e){try{var t,a;null===(a=navigator)||void 0===a||null===(t=a.vibrate)||void 0===t||t.call(a,e)}catch(e){}}function d(e){var t;let{value:a,theme:n,size:s=80}=e,i=null!==(t=u.KK[a])&&void 0!==t?t:u.KK[1],o=s/3,l=.07*s;return(0,r.jsxs)("svg",{viewBox:"0 0 ".concat(s," ").concat(s),width:s,height:s,"aria-hidden":"true",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"dice-face-grad-".concat(n.id),x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:n.faceBg,stopOpacity:"1"}),(0,r.jsx)("stop",{offset:"100%",stopColor:n.shadowInner,stopOpacity:"1"})]})}),(0,r.jsx)("rect",{x:"2",y:"2",width:s-4,height:s-4,rx:.18*s,fill:"url(#dice-face-grad-".concat(n.id,")"),stroke:n.borderColor,strokeWidth:"2"}),i.map((e,t)=>{let[a,s]=e;return(0,r.jsx)("circle",{cx:s*o+o/2,cy:a*o+o/2,r:l,fill:n.pipColor},t)})]})}function b(e){let{finalFace:t,isRolling:a,duration:n,startDelay:s,onStop:o,theme:l,size:c=80}=e,[m,u]=(0,i.useState)(t),[f,b]=(0,i.useState)(0),[x,p]=(0,i.useState)("idle"),y=(0,i.useRef)(null),h=(0,i.useRef)(null),g=(0,i.useRef)(null);(0,i.useEffect)(()=>(a?(p("idle"),y.current&&clearInterval(y.current),h.current&&clearTimeout(h.current),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{p("rolling"),b(e=>e+720+Math.floor(360*Math.random())),y.current=setInterval(()=>{u(1+Math.floor(6*Math.random()))},80),h.current=setTimeout(()=>{y.current&&clearInterval(y.current),u(t),p("stopped"),null==o||o()},1e3*n)},s)):(u(t),p("idle"),b(0)),()=>{y.current&&clearInterval(y.current),h.current&&clearTimeout(h.current),g.current&&clearTimeout(g.current)}),[a,t,n,s]);let w="rolling"===x;return(0,r.jsx)("div",{className:w?"dice-wobble":"stopped"===x?"dice-settle":"",style:{width:c,height:c,transform:"rotate(".concat(f,"deg)"),transition:w?"transform ".concat(n,"s cubic-bezier(0.2, 0.7, 0.3, 1)"):"none",willChange:w?"transform":"auto",filter:"drop-shadow(0 6px 10px rgba(0,0,0,0.35))"},"data-testid":"dice-roll-die","data-final-face":"stopped"===x?t:void 0,children:(0,r.jsx)(d,{value:m,theme:l,size:c})})}function x(e){let{game_config:t,is_win:a,won_prize:n,no_win_image_url:d,gamePhase:x,onStartGame:p,onGameComplete:y}=e,h=(0,o.b)(),{t:g}=(0,l.$)(h),w=function(e){let t="number"==typeof e.dice_style_id?e.dice_style_id:1,a="number"==typeof e.table_style_id?e.table_style_id:1,r="number"==typeof e.dice_count?Math.max(1,Math.min(3,e.dice_count)):2,n="specific"===e.win_rule||"all_same"===e.win_rule||"sum_gte"===e.win_rule?e.win_rule:"all_same",s="number"==typeof e.target_number?Math.max(1,Math.min(6,e.target_number)):6,i="number"==typeof e.target_sum?e.target_sum:4*r;return{diceStyleId:t,tableStyleId:a,diceCount:r,winRule:n,targetNumber:s,targetSum:i,rollDuration:"number"==typeof e.roll_duration?Math.max(2,Math.min(6,e.roll_duration)):3}}(t),j=(0,u.bF)(w.diceStyleId),k=(0,u.v$)(w.tableStyleId),T=(0,i.useMemo)(()=>(0,u.LW)(w.diceCount,w.winRule,w.targetNumber,w.targetSum,a),[w.diceCount,w.winRule,w.targetNumber,w.targetSum,a]),[v,z]=(0,i.useState)(!1),[_,N]=(0,i.useState)(!1),[C,R]=(0,i.useState)(!1),[S,A]=(0,i.useState)(!1),V=(0,i.useRef)(!1),M=(0,i.useRef)(!1),G=(0,i.useRef)(0),{play:L,muted:q,toggleMute:B}=(0,c.w)({spin:m.w4,tick:m.Yf,win:m.QQ,lose:m.gL}),D=(0,i.useCallback)(()=>{v||"ready"!==x||(A(!1),L("spin"),f(30),G.current=0,p(),z(!0),setTimeout(()=>{z(!1),N(!0),setTimeout(()=>{L(a?"win":"lose"),a&&f([100,50,100,50,200])},200),V.current||(V.current=!0,y())},1e3*w.rollDuration+(w.diceCount-1)*250+400))},[v,x,p,y,w.rollDuration,w.diceCount,a,L]),E=(0,i.useCallback)(()=>{G.current+=1,L("tick"),f(20)},[L]);(0,i.useEffect)(()=>{"result"!==x||_||(N(!0),z(!1))},[x,_]),(0,i.useEffect)(()=>{if("ready"===x&&!v&&!M.current){M.current=!0,A(!0);let e=setTimeout(()=>A(!1),3e3);return()=>clearTimeout(e)}},[x,v]);let I="ready"===x&&!v,O=1===w.diceCount?110:2===w.diceCount?90:78;return(0,r.jsxs)("div",{style:{minHeight:340,background:"linear-gradient(135deg, ".concat(k.bgGradient[0],"30, ").concat(k.bgGradient[2],"10)")}
1,"data-testid":"dice-roll-game",className:"jsx-413e757f2cb8bbc1 relative flex flex-col items-center justify-center rounded-2xl overflow-visible py-6 px-4 sm:py-8",children:[(0,r.jsx)("button",{type:"button",onClick:B,"aria-label":g(q?"play.sound.unmute":"play.sound.mute"),"data-testid":"dice-roll-mute-btn",className:"jsx-413e757f2cb8bbc1 absolute top-2 right-2 z-30 flex h-8 w-8 items-center justify-center rounded-full bg-white/80 text-gray-500 shadow-sm transition-colors hover:bg-white cursor-pointer",children:q?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-413e757f2cb8bbc1 h-4 w-4",children:[(0,r.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",className:"jsx-413e757f2cb8bbc1"}),(0,r.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15",className:"jsx-413e757f2cb8bbc1"}),(0,r.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15",className:"jsx-413e757f2cb8bbc1"})]}):(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-413e757f2cb8bbc1 h-4 w-4",children:[(0,r.jsx)("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",className:"jsx-413e757f2cb8bbc1"}),(0,r.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",className:"jsx-413e757f2cb8bbc1"}),(0,r.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",className:"jsx-413e757f2cb8bbc1"})]})}),(0,r.jsxs)("div",{style:{padding:"32px 24px",background:"linear-gradient(180deg, ".concat(k.bgGradient[0],", ").concat(k.bgGradient[1]," 55%, ").concat(k.bgGradient[2],")"),border:"4px solid ".concat(k.borderColor),borderRadius:24,boxShadow:"0 18px 40px rgba(0,0,0,0.35), inset 0 0 60px ".concat(k.feltOverlay,", inset 0 2px 0 rgba(255,255,255,0.1)")},"data-testid":"dice-roll-table",className:"jsx-413e757f2cb8bbc1 relative w-full max-w-md",children:[(0,r.jsxs)("div",{style:{color:"rgba(255, 255, 255, 0.92)",textShadow:"0 1px 2px rgba(0,0,0,0.35)"},"data-testid":"dice-roll-rule-text",className:"jsx-413e757f2cb8bbc1 text-center mb-4 text-xs font-medium tracking-wider",children:["specific"===w.winRule&&g("play.diceRoll.ruleSpecificDesc",{target:String(w.targetNumber)}),"all_same"===w.winRule&&g("play.diceRoll.ruleAllSameDesc",{count:String(w.diceCount)}),"sum_gte"===w.winRule&&g("play.diceRoll.ruleSumGteDesc",{count:String(w.diceCount),target:String(w.targetSum)})]}),(0,r.jsx)("div",{style:{minHeight:O+16},"data-testid":"dice-roll-dice-area",className:"jsx-413e757f2cb8bbc1 flex justify-center items-center gap-4 my-6",children:T.map((e,t)=>(0,r.jsx)(b,{finalFace:e,isRolling:v,duration:w.rollDuration,startDelay:250*t,onStop:E,theme:j,size:O},t))}),(0,r.jsxs)("div",{className:"jsx-413e757f2cb8bbc1 relative flex justify-center mt-4",children:[S&&I&&(0,r.jsx)("div",{"data-testid":"dice-roll-hint",className:"jsx-413e757f2cb8bbc1 absolute -top-7 animate-dice-roll-hint pointer-events-none",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:k.borderColor,className:"jsx-413e757f2cb8bbc1 h-6 w-6 drop-shadow-md",children:(0,r.jsx)("path",{d:"M12 2a1 1 0 0 1 1 1v12.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L11 15.586V3a1 1 0 0 1 1-1z",className:"jsx-413e757f2cb8bbc1"})})}),(0,r.jsx)("button",{type:"button",onClick:D,disabled:!I,style:{width:130,height:46,background:k.borderColor,color:k.bgGradient[2],border:"3px solid ".concat(k.bgGradient[0]),boxShadow:"0 6px 14px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.3)",fontWeight:800,fontSize:16,letterSpacing:"0.12em"},"data-testid":"dice-roll-button",className:"jsx-413e757f2cb8bbc1 "+"rounded-full flex items-center justify-center transition-all ".concat(I?"hover:scale-105 active:scale-95 cursor-pointer":v?"":"cursor-not-allowed opacity-70"),children:g(v?"play.diceRoll.rolling":"play.diceRoll.rollButton")})]})]}),_&&(0,r.jsx)("div",{"data-testid":"dice-roll-result",className:"jsx-413e757f2cb8bbc1 mt-6 flex flex-col items-center animate-dice-result-in",children:a&&n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{style:{color:k.bgGradient[2]},"data-testid":"dice-roll-result-title",className:"jsx-413e757f2cb8bbc1 text-xl font-bold mb-2",children:g("play.diceRoll.resultWin")}),n.prize_image_url&&(0,r.jsx)("button",{type:"button",onClick:()=>R(!0),"data-testid":"dice-roll-prize-image-btn",className:"jsx-413e757f2cb8bbc1 cursor-pointer",children:(0,r.jsx)("img",{src:n.prize_image_url,alt:n.prize_name,"data-testid":"dice-roll-prize-image",className:"jsx-413e757f2cb8bbc1 w-24 h-24 object-contain rounded-lg shadow-md bg-white mb-3"})}),(0,r.jsx)("p",{"data-testid":"dice-roll-prize-name",className:"jsx-413e757f2cb8bbc1 text-lg font-semibold text-gray-800",children:n.prize_name})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{"data-testid":"dice-roll-result-title",className:"jsx-413e757f2cb8bbc1 text-xl font-bold text-gray-600 mb-2",children:g("play.diceRoll.resultLose")}),d&&(0,r.jsx)("button",{type:"button",onClick:()=>R(!0),"data-testid":"dice-roll-no-win-image-btn",className:"jsx-413e757f2cb8bbc1 cursor-pointer",children:(0,r.jsx)("img",{src:d,alt:"","data-testid":"dice-roll-no-win-image",className:"jsx-413e757f2cb8bbc1 w-24 h-24 object-contain rounded-lg shadow-md bg-white"})})]})}),C&&(0,r.jsx)("div",{onClick:()=>R(!1),"data-testid":"dice-roll-lightbox",className:"jsx-413e757f2cb8bbc1 fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-6",children:(0,r.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"jsx-413e757f2cb8bbc1 relative max-w-sm w-full",children:[(0,r.jsx)("img",{src:a&&(null==n?void 0:n.prize_image_url)?n.prize_image_url:d||"",alt:(null==n?void 0:n.prize_name)||"",className:"jsx-413e757f2cb8bbc1 w-full object-contain rounded-xl bg-white p-4 shadow-2xl"}),(null==n?void 0:n.prize_name)&&(0,r.jsx)("p",{className:"jsx-413e757f2cb8bbc1 mt-3 text-center text-white text-lg font-bold drop-shadow-md",children:n.prize_name}),(0,r.jsx)("button",{type:"button",onClick:()=>R(!1),"data-testid":"dice-roll-lightbox-close",className:"jsx-413e757f2cb8bbc1 absolute -top-3 -right-3 w-8 h-8 rounded-full bg-white/90 text-gray-600 flex items-center justify-center shadow-md hover:bg-white transition-colors",children:(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"jsx-413e757f2cb8bbc1 w-5 h-5",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd",className:"jsx-413e757f2cb8bbc1"})})})]})}),(0,r.jsx)(s(),{id:"413e757f2cb8bbc1",children:"@-webkit-keyframes dice-result-in{0%{opacity:0;-webkit-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-webkit-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@-moz-keyframes dice-result-in{0%{opacity:0;-moz-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-moz-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@-o-keyframes dice-result-in{0%{opacity:0;-o-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-o-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}@keyframes dice-result-in{0%{opacity:0;-webkit-transform:translatey(20px)scale(.95);-moz-transform:translatey(20px)scale(.95);-o-transform:translatey(20px)scale(.95);transform:translatey(20px)scale(.95)}100%{opacity:1;-webkit-transform:translatey(0)scale(1);-moz-transform:translatey(0)scale(1);-o-transform:translatey(0)scale(1);transform:translatey(0)scale(1)}}.animate-dice-result-in.jsx-413e757f2cb8bbc1{-webkit-animation:dice-result-in 500ms ease-out forwards;-moz-animation:dice-result-in 500ms ease-out forwards;-o-animation:dice-result-in 500ms ease-out forwards;animation:dice-result-in 500ms ease-out forwards}@-webkit-keyframes dice-roll-hint{0%,100%{-webkit-transform:translatey(-4px);transform:translatey(-4px);opacity:.7}50%{-webkit-transform:translatey(4px);transform:translatey(4px);opacity:1}}@-moz-keyframes dice-roll-hint{0%,100%{-moz-transform:translatey(-4px);transform:translatey(-4px);opacity:.7}50%{-moz-transform:translatey(4px);transform:translatey(4px);opacity:1}}@-o-keyframes dice-roll-hint{0%,100%{-o-transform:translatey(-4px);transform:translatey(-4px);opacity:.7}50%{-o-transform:translatey(4px);transform:translatey(4px);opacity:1}}@keyframes dice-roll-hint{0%,100%{-webkit-transform:translatey(-4px);-moz-transform:translatey(-4px);-o-transform:translatey(-4px);transform:translatey(-4px);opacity:.7}50%{-webkit-transform:translatey(4px);-moz-transform:translatey(4px);-o-transform:translatey(4px);transform:translatey(4px);opacity:1}}.animate-dice-roll-hint.jsx-413e757f2cb8bbc1{-webkit-animation:dice-roll-hint 1.2s ease-in-out infinite;-moz-animation:dice-roll-hint 1.2s ease-in-out infinite;-o-animation:dice-roll-hint 1.2s ease-in-out infinite;animation:dice-roll-hint 1.2s ease-in-out infinite}@-webkit-keyframes dice-wobble{0%,100%{-webkit-transform:translatey(0);transform:translatey(0)}25%{-webkit-transform:translatey(-8px);transform:translatey(-8px)}50%{-webkit-transform:translatey(-4px);transform:translatey(-4px)}75%{-webkit-transform:translatey(-12px);transform:translatey(-12px)}}@-moz-keyframes dice-wobble{0%,100%{-moz-transform:translatey(0);transform:translatey(0)}25%{-moz-transform:translatey(-8px);transform:translatey(-8px)}50%{-moz-transform:translatey(-4px);transform:translatey(-4px)}75%{-moz-transform:translatey(-12px);transform:translatey(-12px)}}@-o-keyframes dice-wobble{0%,100%{-o-transform:translatey(0);transform:translatey(0)}25%{-o-transform:translatey(-8px);transform:translatey(-8px)}50%{-o-transform:translatey(-4px);transform:translatey(-4px)}75%{-o-transform:translatey(-12px);transform:translatey(-12px)}}@keyframes dice-wobble{0%,100%{-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}25%{-webkit-transform:translatey(-8px);-moz-transform:translatey(-8px);-o-transform:translatey(-8px);transform:translatey(-8px)}50%{-webkit-transform:translatey(-4px);-moz-transform:translatey(-4px);-o-transform:translatey(-4px);transform:translatey(-4px)}75%{-webkit-transform:translatey(-12px);-moz-transform:translatey(-12px);-o-transform:translatey(-12px);transform:translatey(-12px)}}.dice-wobble{-webkit-animation:dice-wobble.4s ease-in-out infinite;-moz-animation:dice-wobble.4s ease-in-out infinite;-o-animation:dice-wobble.4s ease-in-out infinite;animation:dice-wobble.4s ease-in-out infinite}@-webkit-keyframes dice-settle{0%{-webkit-transform:scale(1.1);transform:scale(1.1)}60%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes dice-settle{0%{-moz-transform:scale(1.1);transform:scale(1.1)}60%{-moz-transform:scale(.95);transform:scale(.95)}100%{-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes dice-settle{0%{-o-transform:scale(1.1);transform:scale(1.1)}60%{-o-transform:scale(.95);transform:scale(.95)}100%{-o-transform:scale(1);transform:scale(1)}}@keyframes dice-settle{0%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}60%{-webkit-transform:scale(.95);-moz-transform:scale(.95);-o-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.dice-settle{-webkit-animation:dice-settle.35s ease-out forwards;-moz-animation:dice-settle.35s ease-out forwards;-o-animation:dice-settle.35s ease-out forwards;animation:dice-settle.35s ease-out forwards}"})]})}},73890:function(e,t,a){a.d(t,{w:function(){return n}});var r=a(2265);function n(e){let t=(0,r.useRef)(e);t.current=e;let[a,n]=(0,r.useState)(!1),s=(0,r.useRef)(a);return s.current=a,{play:(0,r.useCallback)(e=>{if(s.current)return;let a=t.current[e];if(a)try{a()}catch(e){}},[]),muted:a,toggleMute:(0,r.useCallback)(()=>{n(e=>!e)},[])}}},28354:function(e,t,a){a.d(t,{QQ:function(){return c},Tw:function(){return u},Yf:function(){return b},ZQ:function(){return f},gL:function(){return m},q2:function(){return i},tn:function(){return o},vS:function(){return l},w4:function(){return d}});let r=null;function n(){try{return r||(r=new(window.AudioContext||window.webkitAudioContext)),"suspended"===r.state&&r.resume(),r}catch(e){return null}}function s(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sine",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.15,s=n();if(!s)return;let i=s.createOscillator(),o=s.createGain();i.type=a,i.frequency.setValueAtTime(e,s.currentTime),o.gain.setValueAtTime(r,s.currentTime),o.gain.exponentialRampToValueAtTime(.001,s.currentTime+t),i.connect(o),o.connect(s.destination),i.start(s.currentTime),i.stop(s.currentTime+t)}
1function i(){s(880,.06,"sine",.12)}function o(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="sawtooth",t.frequency.setValueAtTime(600,e.currentTime),t.frequency.exponentialRampToValueAtTime(200,e.currentTime+.2),a.gain.setValueAtTime(.1,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.25),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.25)}function l(){[523,659,784].forEach((e,t)=>{setTimeout(()=>s(e,.1,"triangle",.1),80*t)})}function c(){[523,659,784,1047].forEach((e,t)=>{setTimeout(()=>s(e,.15,"sine",.12),120*t)})}function m(){s(440,.18,"sine",.08),setTimeout(()=>s(330,.22,"sine",.06),150)}function u(){let e=n();if(!e)return;let t=.03*e.sampleRate,a=e.createBuffer(1,t,e.sampleRate),r=a.getChannelData(0);for(let e=0;e<t;e++)r[e]=(2*Math.random()-1)*.3;let s=e.createBufferSource();s.buffer=a;let i=e.createGain();i.gain.setValueAtTime(.08,e.currentTime),i.gain.exponentialRampToValueAtTime(.001,e.currentTime+.04),s.connect(i),i.connect(e.destination),s.start(e.currentTime)}function f(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="sine",t.frequency.setValueAtTime(300,e.currentTime),t.frequency.exponentialRampToValueAtTime(800,e.currentTime+.3),a.gain.setValueAtTime(.12,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.35),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.35)}function d(){let e=n();if(!e)return;let t=e.createOscillator(),a=e.createGain();t.type="triangle",t.frequency.setValueAtTime(200,e.currentTime),t.frequency.exponentialRampToValueAtTime(600,e.currentTime+.4),a.gain.setValueAtTime(.1,e.currentTime),a.gain.exponentialRampToValueAtTime(.001,e.currentTime+.45),t.connect(a),a.connect(e.destination),t.start(e.currentTime),t.stop(e.currentTime+.45)}function b(){s(1200,.02,"square",.1)}}}]);

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.