var params = {
  "pac": "external",
  "use_uberproxy_as_https_proxy": "false",
  "user_ip_in_china_corp": "false"
};
var e=e||{};e.scope={};e.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};e.arrayIterator=function(a){return{next:e.arrayIteratorImpl(a)}};e.makeIterator=function(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return c?c.call(a):e.arrayIterator(a)};e.arrayFromIterator=function(a){for(var c,b=[];!(c=a.next()).done;)b.push(c.value);return b};e.arrayFromIterable=function(a){return a instanceof Array?a:e.arrayFromIterator(e.makeIterator(a))};
e.ASSUME_ES5=!1;e.ASSUME_NO_NATIVE_MAP=!1;e.ASSUME_NO_NATIVE_SET=!1;e.SIMPLE_FROUND_POLYFILL=!1;e.ISOLATE_POLYFILLS=!1;e.FORCE_POLYFILL_PROMISE=!1;e.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;e.defineProperty=e.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.value;return a};
e.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};e.global=e.getGlobal(this);e.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");e.TRUST_ES6_POLYFILLS=!e.ISOLATE_POLYFILLS||e.IS_SYMBOL_NATIVE;e.polyfills={};e.propertyToPolyfillSymbol={};
e.POLYFILL_PREFIX="$jscp$";e.polyfill=function(a,c,b,d){c&&(e.ISOLATE_POLYFILLS?e.polyfillIsolated(a,c,b,d):e.polyfillUnisolated(a,c,b,d))};e.polyfillUnisolated=function(a,c){var b=e.global;a=a.split(".");for(var d=0;d<a.length-1;d++){var f=a[d];if(!(f in b))return;b=b[f]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&e.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
e.polyfillIsolated=function(a,c,b){var d=a.split(".");a=1===d.length;var f=d[0];f=!a&&f in e.polyfills?e.polyfills:e.global;for(var g=0;g<d.length-1;g++){var h=d[g];if(!(h in f))return;f=f[h]}d=d[d.length-1];b=e.IS_SYMBOL_NATIVE&&"es6"===b?f[d]:null;c=c(b);null!=c&&(a?e.defineProperty(e.polyfills,d,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===e.propertyToPolyfillSymbol[d]&&(e.propertyToPolyfillSymbol[d]=e.IS_SYMBOL_NATIVE?e.global.Symbol(d):e.POLYFILL_PREFIX+d),d=e.propertyToPolyfillSymbol[d],
e.defineProperty(f,d,{configurable:!0,writable:!0,value:c})))};e.polyfill("Object.is",function(a){return a?a:a=function(c,b){return c===b?0!==c||1/c===1/b:c!==c&&b!==b}},"es6","es3");e.polyfill("Array.prototype.includes",function(a){return a?a:a=function(c,b){var d=this;d instanceof String&&(d=String(d));var f=d.length;b=b||0;for(0>b&&(b=Math.max(b+f,0));b<f;b++){var g=d[b];if(g===c||Object.is(g,c))return!0}return!1}},"es7","es3");
e.checkStringArgs=function(a,c,b){if(null==a)throw new TypeError("The 'this' value for String.prototype."+b+" must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype."+b+" must not be a regular expression");return a+""};e.polyfill("String.prototype.includes",function(a){return a?a:a=function(c,b){var d=e.checkStringArgs(this,c,"includes");return-1!==d.indexOf(c,b||0)}},"es6","es3");var l={};
(function(){function a(b){if(/^(0|[1-9][0-9]{0,2})$/.test(b)&&(b=parseInt(b,10),255>=b))return b;throw"Bad octet";}function c(b){if(/^[0-9A-Fa-f]{1,4}$/.test(b))return parseInt(b,16);throw"Bad hextet";}l.isInNet=function(b,d){b=l.parseIP(b);var f=l.parseNetwork(d);d=f.hextets;var g=f.prefixlen;if(b.length!=d.length)return!1;for(f=0;16<=g;){if(b[f]!=d[f])return!1;f++;g-=16}if(0==g)return!0;g=~(65535>>g);return(b[f]&g)==(d[f]&g)};l.parseNetwork=function(b){var d=/^([^\/]+)\/([0-9]+)$/.exec(b);if(!d)throw"Bad CIDR string";
b=l.parseIP(d[1]);d=parseInt(d[2],10);if(d>16*b.length)throw"Prefix too long";return{hextets:b,prefixlen:d}};l.parseIP=function(b){b=b.split(":");var d=b[b.length-1];if(0<=d.indexOf(".")){d=d.split(".");if(4!=d.length)throw"Bad octet count";d=[a(d[0])<<8|a(d[1]),a(d[2])<<8|a(d[3])];if(1==b.length)return d;b.pop();b.push(d[0].toString(16),d[1].toString(16))}if(!(3<=b.length&&9>=b.length))throw"Bad hextet count";var f=-1;for(d=1;d<b.length-1;d++)if(0==b[d].length){if(0<=f)throw"Multiple ::";f=d}if(0<=
f){var g=f;var h=b.length-f-1;if(0==b[0].length&&0!=--g)throw"^: requires ^::";if(0==b[b.length-1].length&&0!=--h)throw":$ requires ::$";}else g=b.length,h=0;var k=8-(g+h);if(!(0<=f?1<=k:0==k))throw"Bad hextet count";f=[];for(d=0;d<g;d++)f.push(c(b[d]));for(d=0;d<k;d++)f.push(0);for(d=h;0<d;d--)f.push(c(b[b.length-d]));return f}})();"function"!=typeof isInNetEx&&(isInNetEx=function(a,c){return l.isInNet(a,c)});
var m={valid:function(a){try{l.parseIP(a)}catch(c){return!1}return!0},local:function(a){return a&&(isInNetEx(a,"::1/128")||isInNetEx(a,"127.0.0.0/8"))},prod:function(a){return a&&(isInNetEx(a,"10.0.0.0/8")||isInNetEx(a,"2002:a00::/24")||isInNetEx(a,"2404:6800:8000::/33")||isInNetEx(a,"2607:f8b0:8000::/33")||isInNetEx(a,"2800:3f0:8000::/33")||isInNetEx(a,"2a00:1450:8000::/33")||isInNetEx(a,"2c0f:fb50:8000::/33")||isInNetEx(a,"2604:31c0::/32"))},corp:function(a){return a&&(isInNetEx(a,"172.16.0.0/12")||
isInNetEx(a,"2001:4860:f802::/120")||isInNetEx(a,"192.168.0.0/16")||isInNetEx(a,"100.64.0.0/10")||isInNetEx(a,"2401:fa00::/32")||isInNetEx(a,"2a00:79e0::/32")||isInNetEx(a,"2620:15c::/36")||isInNetEx(a,"2620:0:1000::/40"))},"public":function(a){return this.valid(a)&&!(this.corp(a)||this.prod(a)||this.local(a))}};
function n(a,c){if("function"==typeof c.test)return c.test(a.host);var b;if(b=c.proto){a:{b=c.proto;"string"==typeof b&&(b=[b]);for(var d=0;d<b.length;d++)if(a.proto==b[d]){b=!0;break a}b=!1}b=!b}if(b||c.url&&!c.url.test(a.url)||c.host&&!c.host.test(a.host))return!1;if(c.subnets)if(a.real_ip){a:{a=a.real_ip;c=c.subnets;for(b=0;b<c.length;b++)if(isInNetEx(a,c[b])){c=!0;break a}c=!1}if(!c)return!1}else return!1;return!0}function q(a,c){for(var b=0;b<c.length;b++)if(n(a,c[b]))return!0;return!1};var r=[{host:/.\.corp\.goog$/},{host:/.\.corp\.google\.com$/},{host:/.\.corp\.googleapis\.com$/},{host:/.\.corp\.googleusercontent\.com$/},{host:/.\.googleplex\.com$/},{host:/.\.googleprod\.com$/},{host:/.\.googlers\.com$/},{host:/.\.shard\.goog$/},{host:/goto\.google\.com$/}],t=[{host:/.\.doubleclick\.net$/},{host:/.\.google-analytics\.com$/},{host:/.\.google\.com$/},{host:/.\.google\.dev$/},{host:/.\.googleapis\.com$/},{host:/.\.googledrive\.com$/},{host:/.\.googletagmanager\.com$/},{host:/.\.googleusercontent\.com$/},
{host:/.\.gstatic\.com$/}],u=[].concat(e.arrayFromIterable(r),e.arrayFromIterable(t));function _CustomDnsResolve(a){var c;"function"==typeof dnsResolveEx?(a=dnsResolveEx(a))&&(c=a.split(";")[0]):c=dnsResolve(a);return c?c:void 0}function v(a){return params.uberproxy_panic?"PROXY "+params.uberproxy_panic+";":params.use_uberproxy_as_https_proxy?a:a.replace(/\bHTTPS(\s+)(\S+):443\b/g,"PROXY$1$2:80")}"undefined"===typeof params&&(params={});if("undefined"!==typeof local_params)for(var w in local_params)params[w]=local_params[w];
for(var x="activate_beyondcorp_extension activate_china_proxy_toggle disable_uberproxy_fp_to_corp user_ip_in_china_corp is_testing send_http_to_facilities_nets_via_uberproxy_fp use_uberproxy_as_https_proxy".split(" "),y=0;y<x.length;y++)params[x[y]]=/^\s*(1|true|y|yes)\s*$/i.test(params[x[y]]);
var z=v("HTTPS l2-uberproxy.corp.google.com:443;"),A=v("HTTPS up.gcp.googlers.com:443;"),B=v("HTTPS up.proxy.googleprod.com:443;"),C=v("HTTPS speh.shard.goog:443;"),D=".aao .aar .acc .akl .amd .ame .arb .ast .ath .atl .atw .aus .bej .ber .bev .bhz .bkk .bld .blr .bna .bog .bpd .brd .bru .bue .buh .cai .cam .cbf .cgk .cha .chi .chl .chs .cib .clt .cnc .conf .cph .cpk .dal .ddf .del .det .dls .dtw .dub .dus .dxb .eem .enterprise .ffm .fra .ghl .grq .gur .ham .hel .her .hfa .hkd .hkg .hot .hyd .i .irv .jnb .kci .kie .kir .kla .krk .krp .kul .lag .lal .lax .lbc .ldaps .lex .lga .lhr .lim .lis .lmr .lnr .lon .lpp .lul .lvk .lyo .mad .mcast .mel .mev .mex .mirror .mnk .mnl .mon .mor .msk .msn .mtv .muc .muo .n .nbo .nfs .nrt .nyt .oib .orl .osa .osl .ott .oul .pao .par .pco .pdx .phl .pit .pkf .plv .pos .prg .prh .printer .prom .pry .pst .pvu .rdu .res .rns .roam .rol .rom .san .sao .sba .sbo .scl .sea .seo .sfo .sha .sin .sjc .slc .smo .spb .ssf .sto .svl .syd .thn .tlv .tok .tor .tpe .tri .tst .twd .unittests .vie .vm .vno .was .wat .waw .wlm .wro .ytspaces .zbc .zrh".split(" "),E=
[{url:/^(http:\/\/)(www.)?gstatic\.com\/generate_204(\/)?$/},{url:/^(http:\/\/)(www.)?captive-portal-check\.appspot\.com\/generate_204(\/)?$/}],F=[{host:/.\.googleplex\.com$/}],G=[{host:/.\.c\.googlers\.com$/},{subnets:["2607:f8b0:4800:1000::/64"]}],H=[{host:/.\.googleprod\.com$/}],I=[{host:/.\.shard\.goog$/}],J=[{host:/.\.(adz|borg|cboo|dclk|jail|ls|prodz?)(\.google\.com)?$/},{host:/.\.net\.google\.com$/}],K=[{host:/^camp\.service-now\.com$/},{host:/^www\.concursolutions\.com$/},{host:/^stockplanconnect\.morganstanley\.com$/},
{host:/^wd5\.myworkday\.com$/},{host:/^hoteldirectory\.lanyon\.com$/}],L=[{subnets:["10.247.0.0/18","10.247.128.0/17","10.247.112.0/21"]},{host:/(^dcops-.*-[bp]ms[tw]\.prod)(\.google\.com)?$/},{host:/(.-cooling.*|^pmg\d+\.\w+)\.net\.google\.com$/}],M=[{host:/^appcat(\.corp\.google\.com)?$/},{host:/^nls-anycast(\.corp\.google\.com)?$/},{host:/^polyc(|\.corp\.google\.com)$/},{host:/^vmgws0(247|248|249|250|251|252|863|864)(\.ad\.corp\.google\.com)?$/,proto:"HTTP"},{host:/^(corp-speedtest\.i|speedtest(|2)-(mtv\.mtv|dls\.dls|eem\.eem|fra\.fra|twd\.twd|hot\.hot|cbf\.cbf))(\.corp\.google\.com)?$/,
proto:"HTTP"},{host:/^(aml-prod-web|rcm-dev\.(hot|vm)|wpby12\.hot|vmgol(0015|0195|235)\.vm)(|\.corp\.google\.com)$/,proto:"HTTP"},{host:/^mes-(x-(dev|uat|prod)|(loon|makani|iris)-prod)-app(|\.corp\.google\.com)$/,proto:"HTTP"},{host:/^primavera-(lnp|prod|uat|sbx|dev)-app0[123](|\.corp\.google\.com)$/,proto:"HTTP"},{host:/^chauffeur-plm-.*\.(mtv|vm)(|\.corp\.google\.com)$/,proto:"HTTP"},{host:/^(nc-map1\.hot|nc-map2\.cbf|wpdc20\.hot|kpdm10\.cbf)(|\.corp\.google\.com)$/,proto:"HTTP"}];
function N(a,c){for(var b=0;b<c.length;b++)if(dnsDomainIs(a,c[b]))return!0;return!1}function O(a){return!m.valid(a)&&isPlainHostName(a)}function P(a){return/.\.corp\.google\.com$/.test(a)}function Q(a){return m.corp(a.literal_ip)||P(a.host)||N(a.host,D)}function R(a){var c;(c=O(a.host))||(c=a,c=m.prod(c.literal_ip)||q(c,J));return c||Q(a)}function S(a){return"centrifuge-screenshot-bucket.storage.googleapis.com"===a?!1:!/.\.corp\.google\.(com|(com?\.)?([a-z][a-z]|cat))$/.test(a)}
function T(a){return/support-content-(test|draft).corp.google.com$/.test(a)?!0:S(a)}function U(a){return params.user_ip_in_china_corp&&q(a,K)?"PROXY egressproxy.corp.google.com:3128;":q(a,L)?params.send_http_to_facilities_nets_via_uberproxy_fp&&"HTTP"==a.proto?z:"DIRECT":q(a,M)?"DIRECT":P(a.host)&&T(a.host)&&params.polyjuice_proxy?params.polyjuice_proxy:"HTTP"==a.proto&&Q(a)?params.disable_uberproxy_fp_to_corp?"DIRECT":z:R(a)?"HTTP"==a.proto?z:"DIRECT":null}
function V(a){return"HTTP"==a.proto&&R(a)?z:null}function W(a){return"HTTP"==a.proto&&(a=a.host,O(a)&&!_CustomDnsResolve(a)&&(a=a.concat(".corp.google.com")),P(a)&&m.public(_CustomDnsResolve(a)))?z:null}
function X(a){var c=W,b=!1,d=!1;switch(params.pac){case "internal":d=!0;b=params.activate_china_proxy_toggle;c=U;break;case "cloudtop":d=!0;case "external":params.activate_beyondcorp_extension&&(c=V);break;case "android":c=V}if(params.map_to_proxy){var f=[];for(var g=params.map_to_proxy.split("|"),h=0;h<g.length;h++){var k=g[h].split("->");switch(k.length){case 2:f.push({host:k[0],proxy:k[1]});break;case 3:f.push({proto:k[0].toUpperCase(),host:k[1],proxy:k[2]})}}for(g=0;g<f.length;g++){h=f[g];k=a.host;
var p=h.host;p.includes("%")?(p=p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p="^"+p.replace(/%/g,"[^.]*")+"$",k=null!=k.match(p)):k=k==p;if(k&&(!h.proto||a.proto==h.proto))return h.proxy}}switch(a.host){case "localhost":case "ip6-localhost":case "ip6-loopback":return"DIRECT";case "localhost.corp.google.com":case "localhost6.corp.google.com":case "ip6-localhost.corp.google.com":if(d)return"DIRECT"}if(params.simulate_uberproxy_outage&&(f="HTTPS"==a.proto&&q(a,u)?!0:!1,f))return"PROXY broken-proxy-to-simulate-outage.beyondcorp-extension.corp.google.com;";
if(q(a,E))return"DIRECT";if(q(a,F))return"HTTP"==a.proto?z:"DIRECT";if(q(a,G))return"HTTP"==a.proto?A:"DIRECT";if(q(a,H))return"HTTP"==a.proto?B:"DIRECT";if(q(a,I))return"HTTP"==a.proto?C:"DIRECT";d&&(d=a.host,(d=O(d)||P(d))||N(a.host,D))&&(a.real_ip=_CustomDnsResolve(a.host));if(a.real_ip&&m.local(a.real_ip))return"DIRECT";c=c(a);return null!=c?c:params.polyjuice_proxy&&T(a.host)?params.polyjuice_proxy:b&&S(a.host)?"PROXY egressproxy.corp.google.com:3128;":"DIRECT"}
function _FindProxyForURL(a,c){if(params.is_testing&&"http://is-beyondcorp?"==a)return params.activate_beyondcorp_extension?"YES":"NO";var b=/^\[(.*)\](:[0-9]+)?$/.exec(c)||/^([^:]*):[0-9]+$/.exec(c);b&&(c=b[1]);if(/^login\.corp\.google\.com./.test(c))return z;b=m.valid(c)?c:null;var d=(d=/^([\w]+):\/\//.exec(a))?d[1].toUpperCase():null;a={url:a,host:c,proto:d,literal_ip:b,real_ip:b,is_ssl:"HTTPS"==d||"WSS"==d};return X(a)};
function FindProxyForURL(url, host) { return _FindProxyForURL(url, host) }

