!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("sim-captcha",[],t):"object"==typeof exports?exports["sim-captcha"]=t():e["sim-captcha"]=t()}(self,(function(){return function(){var e={439:function(e,t,i){"use strict";i.d(t,{A:function(){return J}});function a(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){(4==i.readyState&&200==i.status||304==i.status)&&t.call(this,JSON.parse(i.responseText))},i.send()}function n(e,t,i){var a=new XMLHttpRequest;a.open("POST",e,!0),a.setRequestHeader("Content-Type","application/json"),a.onreadystatechange=function(){4!=a.readyState||200!=a.status&&304!=a.status||i.call(this,JSON.parse(a.responseText))},a.send(JSON.stringify(t))}function o(e){var t=e.parentNode;t&&t.removeChild(e)}e=i.hmd(e);var c=null,r="",s=null,p=[],d=[],l=[],h="",m="",v="",u="",f="",g="",b="",w="",x="",C="",y="";function k(){document.getElementById("simCaptcha-mask").className="simCaptcha-hidden",document.getElementById("simCaptcha-layer").className="simCaptcha-hidden",document.getElementById("simCaptcha-voice").className="simCaptcha-hidden"}function I(){k(),E(),l=[],x="",C="",y=""}function A(e){B("验证通过"),setTimeout(I,500)}function U(){var e=document.getElementById(s);if(e){var t=e.getAttribute("captcha-after");d[t]&&d[t]()}}function B(e,t){e||(e=y),t||(t="simCaptcha-errorTip"),document.getElementById(t).innerText=e,"验证通过"==e?document.getElementById(t).className="simCaptcha-errorTip-success simCaptcha-errorTip-up":(document.getElementById(t).className="simCaptcha-errorTip-fail simCaptcha-errorTip-up",document.getElementById("simCaptcha-layer").className="simCaptcha-shake"),setTimeout((function(){"验证通过"==e?document.getElementById(t).className="simCaptcha-errorTip-success":(document.getElementById(t).className="simCaptcha-errorTip-fail",document.getElementById("simCaptcha-layer").className="simCaptcha-show")}),1800)}function E(){document.getElementById("simCaptcha-marks").innerHTML=""}function T(){var e=Date.now(),t={appId:r,vCodePos:l,ticketId:w,ua:navigator.userAgent,ts:e};n(m,t,(function(e){if(0==e.code){var t={code:0,ticketId:w,ticket:e.data.ticket,appId:e.data.appId,currentId:s,bizState:null};g=t.appId,b=t.ticket,p[s](t),A(),U()}else-1==e.code?(y="点错啦, 请重试",l=[],E()):-2==e.code?(y="这题有点难, 为你换一个试试吧",z()):-3==e.code?(y="验证码无效, 为你换一个试试吧",z()):(-4==e.code||-5==e.code)&&(y="验证码过期, 为你换一个试试吧",z()),B(y)}))}function z(){l=[],E(),a(v,(function(e){var t,i;0==e.code?(x=e.data.vCodeImg,C=e.data.vCodeTip,w=e.data.ticketId):y=e.message,t||(t=x),document.getElementById("simCaptcha-img").src=t,i||(i=C),document.getElementById("simCaptcha-vCodeTip").innerText=i}))}function q(){if(!c.className||-1==c.className.indexOf("stop-captcha")){var e=$(this);s=e[0].id,""==x&&z(),document.getElementById("simCaptcha-btn-audio-input").value="",document.getElementById("simCaptcha-mask").className="simCaptcha-show",document.getElementById("simCaptcha-layer").className="simCaptcha-show"}}function N(e){var t=function(e,t){var i=t.offsetX,a=t.offsetY;return{x:i,y:a}}(0,e||window.event);!function(e){var t=l.length+1;e.x=parseInt(e.x),e.y=parseInt(e.y);var i='
{2}
'.format(e.x-10,e.y-10,t);document.getElementById("simCaptcha-marks").insertAdjacentHTML("beforeend",i),document.getElementById("simCaptcha-mark-"+t).onclick=j}(t);var i=function(e){var t=(c=document.getElementById("simCaptcha-img").offsetWidth,r=document.getElementById("simCaptcha-img").offsetHeight,{width:c,height:r}),i=t.width,a=t.height,n=parseInt(e.x/i*100),o=parseInt(e.y/a*100);var c,r;return{x:n,y:o}}(t);l.push(i)}function j(){for(var e=parseInt(this.innerText),t=l.length,i=e-1;i\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
加载中...
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t
刷新
切换至语音验证码
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t
',t+='
刷新
返回文字点选验证
',document.body.insertAdjacentHTML("beforeend",t),c&&(c.onclick=q,document.getElementById("simCaptcha-btn-close").onclick=k,document.getElementById("simCaptcha-voice-close").onclick=k,document.getElementById("simCaptcha-btn-refresh").onclick=z,document.getElementById("simCaptcha-btn-confirm").onclick=T,document.getElementById("simCaptcha-img").onclick=N,document.getElementById("simCaptcha-btn-to-audio").onclick=M,document.getElementById("simCaptcha-btn-audioPlay").onclick=S,document.getElementById("simCaptcha-btn-audio-refresh").onclick=O,document.getElementById("simCaptcha-btn-audio-back").onclick=F,document.getElementById("simCaptcha-btn-audio-confirm").onclick=P),e.enableAudio||(document.getElementById("simCaptcha-btn-to-audio").style.display="none")}R.SetSuccessCallBack=function(e,t){d[e]=t},R.prototype={constructor:R,show:q,hidden:k,destroy:I,getTicket:function(){return{appId:g,ticket:b}}},String.prototype.format=function(){var e=arguments;return this.replace(/\{(\d+)\}/g,(function(t,i){return e[i]}))},"undefined"!=typeof exports?(e.exports&&(exports=e.exports=R),exports.StateMachine=R):"function"==typeof define&&i.amdO&&define((function(e){return R})),"undefined"!=typeof window?window.SimCaptcha=R:"undefined"!=typeof self&&(self.SimCaptcha=R);var J=R},757:function(e,t,i){(t=e.exports=i(114)(!1)).i(i(964),""),t.push([e.id,".simCaptcha-hidden { display: none;}\r\n.simCaptcha-show { display: block;}\r\n@keyframes simCaptcha_shake {\r\n 25% { margin-left: -6px;}\r\n 75% { margin-left: 6px;}\r\n 100% { margin-left: 0;}\r\n}\r\n@-webkit-keyframes simCaptcha_shake {\r\n 25% { margin-left: -6px;}\r\n 75% { margin-left: 6px;}\r\n 100% { margin-left: 0;}\r\n}\r\n.simCaptcha-shake { -moz-animation: simCaptcha_shake 0.2s linear infinite both; -webkit-animation: simCaptcha_shake 0.2s linear infinite both; animation: simCaptcha_shake 0.2s linear infinite both;}\r\n#simCaptcha-mask { width: 100%; height: 100%; position: fixed; left: 0; top: 0; background: #000; opacity: 0.5; z-index: 2000000000;}\r\n#simCaptcha-layer { position: fixed; top: 50%; left: 50%; padding: 0px 20px; transform: translate(-50%, -50%); border: 1px solid rgb(229, 229, 229); border-radius: 3px; background-size: 20%; background-position: 50% 32%; background-color: #fff; visibility: visible; z-index: 2000000002; overflow: hidden; box-sizing:content-box;}\r\n#simCaptcha-layer *{box-sizing:content-box;}\r\n\r\n/* PC端 */\r\n@media screen and (min-width: 900px) {\r\n #simCaptcha-layer { width: 270px;}\r\n}\r\n\r\n/* 移动端 */\r\n@media screen and (max-width: 900px) {\r\n #simCaptcha-layer { width: 270px;}\r\n}\r\n#simCaptcha-vCodeTip { text-align: left; height: 50px; line-height: 50px; font-size: 14px; -moz-user-select: -moz-none; -ms-user-select: none; -webkit-user-select: none; user-select: none;}\r\n#simCaptcha-img-box { position: relative; overflow: hidden;}\r\n#simCaptcha-img { margin: 0 auto; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none;}\r\n\r\n/* PC端 */\r\n@media screen and (min-width: 900px) {\r\n #simCaptcha-img { width: 100%; height: auto;}\r\n}\r\n\r\n/* 移动端 */\r\n@media screen and (max-width: 900px) {\r\n #simCaptcha-img { width: 260px; height: 260px;}\r\n}\r\n#simCaptcha-loading { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.12); font-size: 14px; color: #b2b2b2; display: flex; align-items: center; justify-content: center; z-index: -1;}\r\n.simCaptcha-mark { position: absolute; z-index: 9999; width: 25px; height: 25px; background-color: #539ffe; color: #fff; text-align: center; line-height: 22px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 0 10px black; user-select: none;}\r\n#simCaptcha-errorTip { position: absolute; bottom: -30px; left: 0; width: 100%; text-align: left; text-indent: 9px; font-size: 16px; background-color: transparent; -moz-transition: bottom 0.4s ease-out; -o-transition: bottom 0.4s ease-out; -webkit-transition: bottom 0.4s ease-out; transition: bottom 0.4s ease-out; z-index: 999; line-height: 30px; color: white; -moz-user-select: -moz-none; -ms-user-select: none; -webkit-user-select: none; user-select: none;}\r\n#simCaptcha-errorTip.simCaptcha-errorTip-fail { background-color: #de715b;}\r\n#simCaptcha-audio-errorTip.simCaptcha-errorTip-fail { color: red;}\r\n#simCaptcha-errorTip.simCaptcha-errorTip-success { color: #5ebf70;}\r\n#simCaptcha-audio-errorTip.simCaptcha-errorTip-success { background-color: #5ebf70;}\r\n#simCaptcha-audio-errorTip.simCaptcha-errorTip-up,#simCaptcha-errorTip.simCaptcha-errorTip-up { bottom: 0;}\r\n.simCaptcha-bottom { padding: 12px 0 15px; height: 30px; text-align: left;}\r\n#simCaptcha-btn-close { height: 26px; width: 26px; line-height:24px; font-size: 26px; border: none; background: none; outline: none; color: #AAAAAA; position: absolute; top: 8px; right: 10px;}\r\n#simCaptcha-btn-refresh {float: left; height: 30px; line-height: 30px; padding-left: 20px; font-size: 12px; color:#333; border: none; cursor: pointer; position: relative; margin-right: 10px }\r\n#simCaptcha-btn-refresh:hover{color:#539FFE}\r\n#simCaptcha-btn-refresh .svg-icon{width: 16px; height: 16px; position: absolute; left: 0px; top: 7px; fill: #999;}\r\n#simCaptcha-btn-to-audio{float: left; height: 30px; line-height: 30px; padding-left: 22px; font-size: 12px; color:#333; border: none; cursor: pointer; position: relative; }\r\n#simCaptcha-btn-to-audio .svg-icon{width: 20px; height: 20px; position: absolute; left: 0px; top: 5px; fill: #999;}\r\n#simCaptcha-btn-to-audio:hover{color:#539FFE}\r\n#simCaptcha-btn-confirm { float: right; width: 60px; height: 30px; border: none; background-color: #539FFE; overflow: hidden; border-radius: 3px; outline: none; color: #fff; text-align: center;}\r\n\r\n/* 语音验证 */\r\n#simCaptcha-voice { position: fixed; top: 50%; left: 50%; padding: 50px 20px 0px; transform: translate(-50%, -50%); border: 1px solid rgb(229, 229, 229); border-radius: 3px; background-size: 20%; background-position: 50% 32%; background-color: #fff; visibility: visible; z-index: 2000000002; overflow: hidden; box-sizing:content-box; width: 270px; box-sizing:content-box;}\r\n#simCaptcha-voice *{box-sizing:content-box;}\r\n#simCaptcha-voice-close { height: 26px; width: 26px; line-height:24px; font-size: 26px; border: none; background: none; outline: none; color: #AAAAAA; position: absolute; top: 8px; right: 10px;}\r\n.simCaptcha-voice-inner{}\r\n.simCaptcha-voice-audio{height: 40px; margin-bottom: 24px; position: relative; text-align: center;}\r\n.simCaptcha-voice-wave{ pointer-events: none; position: absolute;top: 0; left: 50%; transform: translateX(-50%); z-index: -1; white-space: nowrap; height: 100%; line-height: 40px; font-size: 0;}\r\n.simCaptcha-voice-wave .voice-wave-item{display: inline-block; width: 4px; height: 10px; border-radius: 3px; position: relative; overflow: hidden; background-color: #dfe6f4; vertical-align: middle; margin: 0 3px;}\r\n.simCaptcha-voice-wave .voice-wave-item-inner{ position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 3px; transform: translateX(-4px); background-color: #1991fa;}\r\n.simCaptcha-voice-wave .voice-wave-item.voice-wave-item-light .voice-wave-item-inner {transform: translateX(0);transition: transform .35s linear}\r\n.simCaptcha-voice-wave .voice-wave-1 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-2 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-3 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-4, .simCaptcha-voice-wave .voice-wave-5 {height: 30px}\r\n.simCaptcha-voice-wave .voice-wave-6 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-7 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-8 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-9, .simCaptcha-voice-wave .voice-wave-10 {height: 6px}\r\n.simCaptcha-voice-wave .voice-wave-11 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-12 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-13 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-14, .simCaptcha-voice-wave .voice-wave-15 {height: 30px}\r\n.simCaptcha-voice-wave .voice-wave-16 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-17 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-18 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-19, .simCaptcha-voice-wave .voice-wave-20 {height: 6px}\r\n.simCaptcha-voice-wave .voice-wave-21 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-22 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-23 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-24, .simCaptcha-voice-wave .voice-wave-25 {height: 30px}\r\n.simCaptcha-voice-wave .voice-wave-26 {height: 24px}\r\n.simCaptcha-voice-wave .voice-wave-27 {height: 18px}\r\n.simCaptcha-voice-wave .voice-wave-28 {height: 12px}\r\n.simCaptcha-voice-wave .voice-wave-29, .simCaptcha-voice-wave .voice-wave-30 {height: 6px}\r\n#simCaptcha-btn-audioPlay{width: 40px; height: 40px; background-color: #0776f8; box-shadow: 0 3px 16px rgba(73,103,180,.32); border: none; outline: none; font-size: 0; vertical-align: middle; border-radius: 50%; margin: 0 16px; position: relative; padding: 0px;}\r\n#simCaptcha-btn-audioPlay svg{fill: #fff; width: 26px; height: 26px; display: block; position: absolute; left: 50%; top: 50%; margin-top: -13px; margin-left: -12px}\r\n#simCaptcha-btn-audioPlay span{display: none; }\r\n#simCaptcha-btn-audio-input{width: 100%; height: 32px; line-height: 30px; font-size: 14px; border: 1px solid; border-radius: 2px; -webkit-appearance: none; text-indent: 4px; border-color: #e6e7eb; background-color: #fff; color: #44494a; padding: 2px;outline:none}\r\n#simCaptcha-btn-audio-refresh {float: left; height: 30px; line-height: 30px; padding-left: 20px; font-size: 12px; color:#333; border: none; cursor: pointer; position: relative; margin-right: 10px }\r\n#simCaptcha-btn-audio-refresh:hover{color:#539FFE}\r\n#simCaptcha-btn-audio-refresh .svg-icon{width: 16px; height: 16px; position: absolute; left: 0px; top: 7px; fill: #999;}\r\n#simCaptcha-btn-audio-back{float: left; height: 30px; line-height: 30px; padding-left: 22px; font-size: 12px; color:#333; border: none; cursor: pointer; position: relative; }\r\n#simCaptcha-btn-audio-back .svg-icon{width: 16px; height: 16px; position: absolute; left: 0px; top: 7px; fill: #999;}\r\n#simCaptcha-btn-audio-back:hover{color:#539FFE}\r\n#simCaptcha-btn-audio-confirm{ float: right; width: 60px; height: 30px; border: none; background-color: #539FFE; overflow: hidden; border-radius: 3px; outline: none; color: #fff; text-align: center;}\r\n",""])},964:function(e,t,i){(e.exports=i(114)(!1)).push([e.id,"@font-face {font-family: \"sim-captcha-iconfont\";\r\n src: url('/iconfont.eot?t=1594711708911'); /* IE9 */\r\n src: url('/iconfont.eot?t=1594711708911#iefix') format('embedded-opentype'), \r\n url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAPAAAsAAAAAB7AAAAN0AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgqDFIJ+ATYCJAMMCwgABCAFhG0HORvHBiMRVns02X8+bowJD2Ze/SiDMUfNkOmIFrZ4P04qtkANWqAiJjv6JEwos/FWgsjnPy8WO6LbZg4x6X4ewdN+tHm7e6rtLonG6yKeTCERmmiC1MgkQiIki2Ihf5iTcXlw1uTRNmcSF8qlRbRRZ10TzO/Aj9dJqZtvnH9XB6LJbQtFTHvr0ncaWYW40qG60r/664+5HjLhFkkGZzoYVQuT9cDZAFF1sKstuIhQzXZA+wCTEH97AO1akGeyqsrUrL22r6HI/zlmuqTGYX6bzSmzaW+A49YBxUWn8B3IAfkNY1dexPkEGvWbEPOL6/tWYWwWiMf3t+c2pVNqikO9UFuybxHvDdWntykd7/zfj7+C1JPUZMaFtm8WrvyP2/J79eLc9R/PAnYQGRMoxEmp7ZhhbELWqMhan12rCGmsYFXh81RF7Ur/8RJRyyhsBiMwnvgxs1kEP0xcwvk7qIWJpzo+Ymz3txWpvxQYKBhJj3f4samQXJ5BZfVOdrt67+sq1evuV7cfFBi813j99Ftdj6+AqfuXL66nKJ+81spgsbIC7p/c7Mreer6lPtLj5ojZ3ouR1YTwY/kGK1JN2vUeyGGqVRREbwL9kuX21JaTt1SlPmOPDcvNXnt9Pu+GbWdNFBzbtdC3ZtvYE3Dlz5hF/izH2sI0UImcEZJzcaM4DhFxROLlEwCw7r8B6/a25G8z0VR22prkqNio7r3ubcb/b/MZUahUigPWhrVnMIWjg1OxNPpUV/1UsAcgLdYzDHa+uGkK4wZUNRsPFb/93/5G+xYHYbleAV9C+55KQTtHR/1d2YO/xG/ZU1Shoc9F5tk83Z4tJrIkNKpy/6YUOn3vr+hpXUio1xNDUqcPsnoDyIKdgBpNJqFWvSloNG7p4CZdnlCUBox5CSC0+wBJq0+QtfuMLNhvUKPXf6jVngyNrs+xOObcMvLZSuJd4wseX8if3JBl1LOgeI+pqe4yKfSpZ5QqD4LveNnkDhuUY+ygbBpoTUCSa9iCi2FVMbSSC3xqJ9O6jVyXyt7IeXLdmVmR0J2GXsDDF8g9sQa5g7VZ7uf3UMqo3Mmargr7GZKUfH7gc3gtkDtZ06rrWh6iWKmAphFAJFYDW2BBlRljoC1fq4CeNEfWI9KKuKgftZU58yvq5zsEHOMYxsSU4WXFCscSyfKqrNMB') format('woff2'),\r\n url('/iconfont.woff?t=1594711708911') format('woff'),\r\n url('/iconfont.ttf?t=1594711708911') format('truetype'), \r\n url('/iconfont.svg?t=1594711708911#iconfont') format('svg'); /* iOS 4.1- */\r\n}\r\n\r\n/* .iconfont {\r\n font-family: \"iconfont\" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.icon-close:before {\r\n content: \"\\e60a\";\r\n}\r\n\r\n.icon-refresh:before {\r\n content: \"\\e675\";\r\n} */\r\n\r\n",""])},114:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var n=(c=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */"),o=a.sources.map((function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"}));return[i].concat(o).concat([n]).join("\n")}var c;return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},n=0;n