2 lines
10 KiB
Plaintext
2 lines
10 KiB
Plaintext
/* v0.0.16,0.0.17,1 2017-10-30 14:30:06 */
|
|
!function(){function e(){return Math.random()}function n(){var e,n=window[r];return isNaN(n)?(e=location.href.split(r+"=")[1],n=parseFloat(e),void(isNaN(n)||(t=n))):void(t=n)}var t=1,r="aq-ty-grey-ratio",o=function(){},i=function(){!function e(n,t,r){function o(a,c){if(!t[a]){if(!n[a]){var u="function"==typeof require&&require;if(!c&&u)return u(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var f=t[a]={exports:{}};n[a][0].call(f.exports,function(e){var t=n[a][1][e];return o(t?t:e)},f,f.exports,e,n,t,r)}return t[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,n,t){function r(e){var n="//g.alicdn.com";pointman.register([{name:"um",timeout:u,charset:"utf-8",url:function(){var t="/security/umscript/3.3.19/um.js",r="/security/umscript/3.3.19/um-m.js";if(20==pointman._z){var o=i();if(o){var a=o.hasAttribute?o.src:o.getAttribute("src",4);if(a&&a.indexOf("f=m")>-1)return n+r}return n+t}var u,f=s.is_android||s.is_ios?r:t,d=n+f;switch(e.common.foreign){case 0:u=d;break;case 1:u="//assets.alicdn.com/g"+f;break;case 2:u="//assets.alicdn.com/g"+f}return c(u||d)}()},{name:"uab",charset:"utf-8",timeout:u,url:function(){var n,t="//af.alicdn.com/js/cj/98.js";switch(e.common.foreign){case 0:n=t;break;case 1:n=t;break;case 2:n=t}return c(n||t)}()},{name:"nc",charset:"utf-8",url:function(){var e="//g.alicdn.com/sd/ncpc/nc.js";return c(e)}()}]),pointman.register({name:"tyv/",charset:"utf-8",url:n+"/sd/ptv/0.0.3/"})}function o(e){var n={},t={umid_serUrl:"https://ynuf.alipay.com/service/um.json",umid_serUrl_foreign:"https://us.ynuf.alipay.com/service/um.json",umid_serUrl_union:"https://ynuf.alipay.com/service/um.json"},r=e.common.foreign;return n.umid=1==r?t.umid_serUrl_foreign:2==r?t.umid_serUrl_foreign:t.umid_serUrl,n}function i(){if(document.currentScript)return document.currentScript;for(var e,n=document.getElementsByTagName("script"),t=/sd\/pointman\//,r=/pt\d?\.js/,o=0;o<n.length;o++)if(e=a(n[o]),t.test(e)&&r.test(e))return n[o];return n[n.length-1]}function a(e){return e.hasAttribute?e.src:e.getAttribute("src",4)}var c=pointman.addTimeStamp,u=5e3,f=0,s=e("./libs/ua");t.makeRegister=r,t.makeServerUrl=o,t.TYTK_VER=f},{"./libs/ua":6}],2:[function(e,n,t){function r(e){function n(e){var n=u.copyObj(e),t=u.copyObj(f.umid||{});n.Custom=f.common.Custom;var r=s.UA_Opt=s.UA_Opt||{},o="SendMethod";u.isNumber(r[o])&&u.isNumber(n[o])&&(n[o]|=r[o]),n=u.mixObj(r,n),m.use("uab",function(e){e.init&&e.init(n)}),m.use(["um","uab"],function(e){var n="_umfp",r=d.getElementById(n),o=t.containers||{},i={display:"block",width:"1px",height:"1px",opacity:.1,overflow:"hidden"},a="div";t.containers={flash:r||u.getOrCreateElementById(o.flash||n,a,i),dcp:r||u.getOrCreateElementById(o.dcp||n,a,i)},t.appName=f.common.appkey,t.enableFlash=!1,t.token=c.getUMIDToken()||c.getSecToken(),t.callback=function(e){m.events.trigger("um_success",e)},t.errorCallback=function(e){m.events.trigger("um_error",e)},e.init&&e.init(t)})}function t(e){var n=u.copyObj(e);n.appkey=f.common.appkey,n.foreign=f.common.foreign;var t;m.use(["uab","nc"],function(e,r){r.init(n),t=new r.noCaptcha,r.obj=t,n.token=c.getTYToken(),r.config=n,t.init(n)})}var r,f;e=u.trim(e),e?(r=(window.atob||a.decode64)(e),f=a.json_decode(r)||{}):f={},f.common=f.common||{},m.config=f,m.parser=a;var l=i(f);f.umid&&!f.umid.serviceUrl&&(f.umid.serviceUrl=l.umid),o(f),f.uab&&n(f.uab),f.nc&&t(f.nc),e&&m.use("tyv/main",function(e){e.init(f)}),m.getConfig=function(){return{appkey:c.getAppKey(),token:c.getTYToken(),scene:f.common?f.common.scene:""}}}var o=e("./configs").makeRegister,i=e("./configs").makeServerUrl,a=e("./libs/parser"),c=e("./libs/tk"),u=e("./libs/util"),f={},s=window,d=document,m=s.pointman;m._m_do=1,m.util=u,m.getAppKey=c.getAppKey,m.getToken=c.getTYToken,m.getTokenUMID=c.getTokenUMID,m.define("do",function(){return f.init=r,f}),m.autoCheckQueue(100)},{"./configs":1,"./libs/parser":4,"./libs/tk":5,"./libs/util":7}],3:[function(e,n,t){var r=function(){"use strict";var e,n,t,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},i=function(n){throw{name:"SyntaxError",message:n,at:e,text:t}},a=function(r){return r&&r!==n&&i("Expected '"+r+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},c=function(){var e,t="";for("-"===n&&(t="-",a("-"));n>="0"&&"9">=n;)t+=n,a();if("."===n)for(t+=".";a()&&n>="0"&&"9">=n;)t+=n;if("e"===n||"E"===n)for(t+=n,a(),("-"===n||"+"===n)&&(t+=n,a());n>="0"&&"9">=n;)t+=n,a();return e=+t,isFinite(e)?e:void i("Bad number")},u=function(){var e,t,r,c="";if('"'===n)for(;a();){if('"'===n)return a(),c;if("\\"===n)if(a(),"u"===n){for(r=0,t=0;4>t&&(e=parseInt(a(),16),isFinite(e));t+=1)r=16*r+e;c+=String.fromCharCode(r)}else{if("string"!=typeof o[n])break;c+=o[n]}else c+=n}i("Bad string")},f=function(){for(;n&&" ">=n;)a()},s=function(){switch(n){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i("Unexpected '"+n+"'")},d=function(){var e=[];if("["===n){if(a("["),f(),"]"===n)return a("]"),e;for(;n;){if(e.push(r()),f(),"]"===n)return a("]"),e;a(","),f()}}i("Bad array")},m=function(){var e,t={};if("{"===n){if(a("{"),f(),"}"===n)return a("}"),t;for(;n;){if(e=u(),f(),a(":"),Object.hasOwnProperty.call(t,e)&&i('Duplicate key "'+e+'"'),t[e]=r(),f(),"}"===n)return a("}"),t;a(","),f()}}i("Bad object")};return r=function(){switch(f(),n){case"{":return m();case"[":return d();case'"':return u();case"-":return c();default:return n>="0"&&"9">=n?c():s()}},function(o,a){var c;return t=o,e=0,n=" ",c=r(),f(),n&&i("Syntax error"),"function"==typeof a?function u(e,n){var t,r,o=e[n];if(o&&"object"==typeof o)for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(r=u(o,t),void 0!==r?o[t]=r:delete o[t]);return a.call(e,n,o)}({"":c},""):c}}();t.parse=r},{}],4:[function(e,n,t){function r(e){if(a.atob)return a.atob(e);var n,t,r,o,i,u="",f="",s="",d=0,m=/[^A-Za-z0-9\+\/\=]/g;m.exec(e)&&alert("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do r=c.indexOf(e.charAt(d++)),o=c.indexOf(e.charAt(d++)),i=c.indexOf(e.charAt(d++)),s=c.indexOf(e.charAt(d++)),n=r<<2|o>>4,t=(15&o)<<4|i>>2,f=(3&i)<<6|s,u+=String.fromCharCode(n),64!=i&&(u+=String.fromCharCode(t)),64!=s&&(u+=String.fromCharCode(f)),n=t=f="",r=o=i=s="";while(d<e.length);return unescape(u)}function o(e){var n,t,r,i=[];if("undefined"==typeof e)return"undefined";if(null===e)return"null";if("[object Array]"===Object.prototype.toString.call(e)){for(t=0;t<e.length;t++)i.push(o(e[t]));n="["+i.join(", ")+"]"}else if("object"==typeof e){for(r in e)e.hasOwnProperty(r)&&i.push('"'+r+'": '+o(e[r]));n="{"+i.join(", ")+"}"}else n="string"==typeof e?'"'+e.replace(/"/g,'\\"').replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+'"':e.toString();return n}var i=e("./json_parse"),a=window,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.decode64=r,t.json_decode=a.JSON?a.JSON.parse:i.parse,t.json_encode=a.JSON?a.JSON.stringify:o},{"./json_parse":3}],5:[function(e,n,t){"use strict";function r(e){var n,t="",r=h.getElementById("umFlash");if(r&&!t)try{n=r.getCookie(e)||"",t=n}catch(o){}try{v.localStorage&&!t&&(n=localStorage[e]||"",t=n)}catch(o){}if(v.navigator.cookieEnabled&&!t){var i=h.cookie.indexOf(e+"=");if(-1!=i){i+=e.length+1;var a=h.cookie.indexOf(";",i);-1==a&&(a=h.cookie.length),n=decodeURIComponent(h.cookie.substring(i,a))||"",t=n}}return t}function o(e,n,t){t=t||7;var r=new Date;r.setTime(r.getTime()+864e5*t),h.cookie=[encodeURIComponent(e),"=",encodeURIComponent(""+n),";expires=",r.toGMTString()].join("")}function i(){var e;if(k)try{e=localStorage.getItem(y)}catch(n){}return e=e||r(y),e||(e=b+a(11),o(y,e,3650)),e}function a(e){for(var n="";n.length<e;)n+=Math.random().toString().substr(2);return n.substring(n.length-e)}function c(){return v.pointman&&pointman.config&&pointman.config.common?pointman.config.common.appkey||"":""}function u(){var e=v._sec_module=v._sec_module||{};if(m=e.token)return m;var n=i();return m=n+b+a(3),e.token=m,m}function f(){if(l)return l;var e="_umdata";return v.localStorage&&(l=localStorage.getItem(e)),l?l:(l=r(e),l||"")}function s(){if(!p){var e=u(),n=c()||"";p=n+e+f()}return w+"#"+p}function d(){return g=g||(v.UA_Opt?UA_Opt.Token:"")||f()||b+a(11)}var m,l,p,g,v=window,h=document,y="_uab_collina",b=v.pointman&&pointman._now?pointman._now:(new Date).getTime(),w=e("../configs").TYTK_VER,k=/Firefox/.test(navigator.userAgent);t.getAppKey=c,t.getSecToken=u,t.getTYToken=s,t.getUMIDToken=f,t.getTokenUMID=d},{"../configs":1}],6:[function(e,n,t){"use strict";var r={},o=navigator.userAgent;r.is_android=o.indexOf("Android")>-1,r.is_ios=o.indexOf("iPhone")>-1||o.indexOf("iPad")>-1,r.is_uc=o.indexOf("UCBrowser/")>-1,n.exports=r},{}],7:[function(e,n,t){function r(e){var n={};if(!e)return n;var t;for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function o(e,n,t){if(t)return o(r(e),n);var i;for(i in n)n.hasOwnProperty(i)&&(e[i]=n[i]);return e}function i(e){return"number"==typeof e}function a(e){return e.replace(/^\s+|\s+$/g,"")}function c(e,n,t){function r(){var e=u.body;e?e.appendChild(o):setTimeout(r,50)}var o;if(e&&"string"!=typeof e)return e;if(e&&(o=u.getElementById(e)))return o;n=n||"div",o=u.createElement(n),o.id=e;var i;if(t)for(i in t)if(t.hasOwnProperty(i))try{o.style[i]=t[i]}catch(a){}return r(),o}var u=document,f=(window,function(){function e(e){var n;for(n=0;n<e.length;n+=1)e[n](f)}function n(){var n=s;u&&n.length&&(s=[],e(n))}function t(){u||(u=!0,a&&clearInterval(a),n())}function r(e){return u?e(document):s.push(e),r}var o,i,a,c="undefined"!=typeof window&&window.document,u=!c,f=c?document:null,s=[];if(c){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1);else if(window.attachEvent){window.attachEvent("onload",t),i=document.createElement("div");try{o=null===window.frameElement}catch(d){}i.doScroll&&o&&window.external&&(a=setInterval(function(){try{i.doScroll(),t()}catch(e){}},30))}"complete"===document.readyState&&t()}return r.version="2.0.1",r.load=function(e,n,t,o){o.isBuild?t(null):r(t)},r}());t.domReady=f,t.copyObj=r,t.mixObj=o,t.isNumber=i,t.trim=a,t.getOrCreateElementById=c},{}]},{},[2])};n(),e()>t?o():i()}(); |