text: (()=>{"use strict";var t,e,o,i,n={39:(t,e,o)=>{o.d(e,{Z:()=>i});const i="button{position:fixed;top:50%;right:10px;height:30px;width:30px;margin-top:-50%;border-radius:50%;box-sizing:border-box;margin:0;padding:0;opacity:.7;z-index:9999;outline:none;background-color:#fff;background-position:center center;background-size:cover;border:1px dashed #000;padding:5px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9ImJsYWNrIiB3aWR0aD0iMThweCIgaGVpZ2h0PSIxOHB4Ij48Zz48cmVjdCBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiLz48L2c+PGc+PHBhdGggZD0iTTcsMTljLTEuMSwwLTIsMC45LTIsMmgxNGMwLTEuMS0wLjktMi0yLTJoLTR2LTJoM2MxLjEsMCwyLTAuOSwyLTJoLThjLTEuNjYsMC0zLTEuMzQtMy0zYzAtMS4wOSwwLjU5LTIuMDQsMS40Ny0yLjU3IGMwLjQxLDAuNTksMS4wNiwxLDEuODMsMS4wNmMwLjcsMC4wNiwxLjM2LTAuMTksMS44NS0wLjYybDAuNTksMS42MWwwLjk0LTAuMzRsMC4zNCwwLjk0bDEuODgtMC42OGwtMC4zNC0wLjk0bDAuOTQtMC4zNCBMMTMuNzYsMi42bC0wLjk0LDAuMzRMMTIuNDgsMkwxMC42LDIuNjhsMC4zNCwwLjk0TDEwLDMuOTdsMC41NiwxLjU1QzkuMzksNS40OCw4LjM3LDYuMjcsOC4wOCw3LjM4QzYuMjcsOC4xNCw1LDkuOTIsNSwxMiBjMCwyLjc2LDIuMjQsNSw1LDV2Mkg3eiBNMTIuODYsNC41MmwxLjcxLDQuN2wtMC45NCwwLjM0bC0xLjcxLTQuN0wxMi44Niw0LjUyeiBNMTAuNSw3YzAuNTUsMCwxLDAuNDUsMSwxYzAsMC41NS0wLjQ1LDEtMSwxIGMtMC41NSwwLTEtMC40NS0xLTFDOS41LDcuNDUsOS45NSw3LDEwLjUsN3oiLz48L2c+PC9zdmc+);background-repeat:no-repeat;background-origin:content-box}"},535:(t,e,o)=>{o.r(e),o.d(e,{default:()=>i});const i='html{box-sizing:border-box;font-size:12px;background:#fff}*,*:before,*:after{box-sizing:inherit}body,ul{margin:0;padding:0;font-weight:normal}header{position:fixed;top:0;width:100%;display:flex;font-size:10px;background:#d3d3d3;z-index:2;height:25px;line-height:25px}header button{border:none;color:#000;padding:3px;flex:auto;text-align:center}ul{list-style:none;margin:25px 0 0 0;font-size:10px;color:#3c3c3c;font-family:system-ui,monospace}ul li{border-bottom:1px #f4f4f4 solid;padding:3px;line-height:13px;transition:.2s all;position:relative}ul li.debug{color:#0014ff}ul li.error{color:#ff1400;background-color:#fcf1f0;border-bottom:1px #f9dedd solid}ul li.warn{color:#272012;background-color:#fefbe7;border-bottom:1px #fdf6cf solid}ul li.copied:after{content:"c";position:absolute;right:3px;top:3px;color:#6470b4;font-weight:bold}ul li.copy{background-color:#d5dcff}ul li.copy:after{content:"copied";position:absolute;right:3px;top:3px;color:#263066;font-weight:bold}'}},s={};function r(t){if(s[t])return s[t].exports;var e=s[t]={exports:{}};return n[t](e,e.exports,r),e.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t=function(){function t(){}return t.prototype.init=function(){this.buildButton()},t.prototype.buildButton=function(){var t=r(39).Z;t=t.replace(/^button\s*{/,"").replace(/}$/,""),this.button=document.createElement("button"),this.button.setAttribute("style",t),document.body.appendChild(this.button)},t}(),e=function(){function t(){var t=this;this.followLog=!0,this.continueLogFollowing=function(){t.document.body.scrollHeight==t.window.scrollY+t.document.body.clientHeight&&t.startLogFollowing()}.bind(this),this.stopLogFollowing=function(){t.document.body.scrollHeight!=t.window.scrollY+t.document.body.clientHeight&&(t.followLog=!1,t.window.removeEventListener("wheel",t.stopLogFollowing),t.window.removeEventListener("touchmove",t.stopLogFollowing),t.window.addEventListener("scroll",t.continueLogFollowing))}.bind(this)}return t.prototype.init=function(){this.buildFrame(),this.buildHeader(),this.binding(),this.startLogFollowing()},t.prototype.show=function(t){for(var e=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(this.logView){var n=document.createElement("li");n.textContent=o.map((function(t){return e.toString(t)})).join(" "),n.className=t,this.logView.appendChild(n),this.followLog&&this.scrollToBottom()}},t.prototype.clear=function(){this.logView.innerText=""},t.prototype.toggle=function(){"none"===this.frame.style.display?(this.frame.style.display="block",this.header.style.display="flex",this.frame.style.pointerEvents="initial",this.scrollToBottom()):this.frame.style.display="none"},t.prototype.scrollToBottom=function(){this.window.scrollTo(0,this.document.body.scrollHeight-this.document.body.clientHeight)},t.prototype.binding=function(){var t=this;this.document.addEventListener("click",(function(e){var o=e.target||e.srcElement;o&&"LI"==o.tagName&&(o.classList.add("copy"),function(t,e){var o=t.createElement("textarea");o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="2em",o.style.height="2em",o.style.padding="0",o.style.border="none",o.style.outline="none",o.style.boxShadow="none",o.style.background="transparent",o.value=e,t.body.appendChild(o),o.focus(),o.select();try{t.execCommand("copy")}catch(t){}t.body.removeChild(o)}(t.document,o.innerText),setTimeout((function(t){o.classList.remove("copy"),o.classList.add("copied")}),1e3))}))},t.prototype.buildFrame=function(){this.frame=document.createElement("iframe"),this.frame.setAttribute("border","0"),this.frame.setAttribute("frameborder","0"),this.frame.setAttribute("cellspacing","0"),this.frame.setAttribute("style","position: fixed; z-index: 9998; bottom: 0; left: 0; width: 100%; height: 30%; box-shadow: #0000004a 0px 0px 5px;"),document.body.appendChild(this.frame),this.document=this.frame.contentDocument,this.window=this.frame.contentWindow,this.logView=this.document.createElement("ul"),this.document.body.appendChild(this.logView);var t=r(535),e=this.document.createElement("style");e.textContent=t.default,this.document.head.appendChild(e)},t.prototype.buildHeader=function(){var t=this,e=this.document.createElement("button");e.innerText="fullscreen",e.addEventListener("click",(function(){t.frame.style.height="100%",e.style.display="none",o.style.display="block"}));var o=this.document.createElement("button");o.innerText="unfullscreen",o.style.display="none",o.addEventListener("click",(function(){t.frame.style.height="30%",o.style.display="none",e.style.display="block"}));var i=this.document.createElement("button");i.innerText="top",i.addEventListener("click",(function(){t.frame.style.top="0",t.frame.style.bottom="auto",i.style.display="none",n.style.display="block"}));var n=this.document.createElement("button");n.innerText="bottom",n.style.display="none",n.addEventListener("click",(function(){t.frame.style.top="auto",t.frame.style.bottom="0",n.style.display="none",i.style.display="block"}));var s=this.document.createElement("button");s.innerText="transparent",s.addEventListener("click",(function(){t.frame.style.opacity="0.7",s.style.display="none",r.style.display="block"}));var r=this.document.createElement("button");r.innerText="opaque",r.style.display="none",r.addEventListener("click",(function(){t.frame.style.opacity="1",r.style.display="none",s.style.display="block"}));var l=this.document.createElement("button");l.innerText="bypass",l.addEventListener("click",(function(){t.frame.style.pointerEvents="none",t.frame.style.opacity="0.5",a.style.display="none",t.startLogFollowing()}));var a=this.document.createElement("header");a.appendChild(e),a.appendChild(o),a.appendChild(i),a.appendChild(n),a.appendChild(s),a.appendChild(r),a.appendChild(l),this.document.body.prepend(a),this.header=a},t.prototype.startLogFollowing=function(){this.window.removeEventListener("scroll",this.continueLogFollowing),this.followLog=!0,this.window.addEventListener("wheel",this.stopLogFollowing),this.window.addEventListener("touchmove",this.stopLogFollowing)},t.prototype.toString=function(t){switch(typeof t){case"string":case"number":case"number":case"bigint":return""+t;case"object":return"function"==typeof t.toString&&t.toString().includes("object HTML")?t.outerHTML:void 0!==t.stack?t.stack:void 0!==t.message?t.message:this.safeStringify(t);default:return this.safeStringify(t)}},t.prototype.safeStringify=function(t,e){void 0===e&&(e=2);var o=[],i=JSON.stringify(t,(function(t,e){return"object"==typeof e&&null!==e?o.includes(e)?"CIRCULAR REFERENCE":o.push(e)&&e:e}),e);return o=null,i},t}(),o=function(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<o;e++)for(var s=arguments[e],r=0,l=s.length;r<l;r++,n++)i[n]=s[r];return i},(i=new(function(){function i(){this.initLogs=[],this.realConsole={}}return i.prototype.register=function(){var t=this;this.realConsole.log=console.log,console.log=this.log.bind(this),this.realConsole.warn=console.warn,console.warn=this.warn.bind(this),this.realConsole.error=console.error,console.error=this.error.bind(this),this.realConsole.info=console.info,console.info=this.info.bind(this),this.realConsole.debug=console.debug,console.debug=this.debug.bind(this),this.realConsole.clear=console.clear,console.clear=this.clear.bind(this),window.addEventListener("error",(function(e){t.error(e.message+" at "+e.filename+" "+e.lineno+":"+e.colno)}))},i.prototype.init=function(){var i=this;this.display||(this.display=new e,this.display.init(),this.button=new t,this.button.init(),this.initLogs.forEach((function(t){i.showLog.apply(i,o([t.type],t.args))})),delete this.initLogs,this.bindings())},i.prototype.bindings=function(){var t=this;this.button.button.addEventListener("click",(function(){t.display.toggle()}))},i.prototype.log=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.realConsole).log.apply(t,e),this.showLog.apply(this,o(["log"],e))},i.prototype.info=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.realConsole).info.apply(t,e),this.showLog.apply(this,o(["info"],e))},i.prototype.debug=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.realConsole).debug.apply(t,e),this.showLog.apply(this,o(["debug"],e))},i.prototype.error=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.realConsole).error.apply(t,e),this.showLog.apply(this,o(["error"],e))},i.prototype.warn=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];(t=this.realConsole).warn.apply(t,e),this.showLog.apply(this,o(["warn"],e))},i.prototype.clear=function(){this.realConsole.clear(),this.display?this.display.clear():this.initLogs=[]},i.prototype.showLog=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.display?(e=this.display).show.apply(e,o([t],i)):this.initLogs.push({type:t,args:i})},i}())).register(),window.addEventListener("load",(function(){i.init()})),"complete"===document.readyState&&i.init()})();