(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var l="Symbol.iterator",p="function",q="object",r="string",t,u=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(h||"")+"_"+d++,h)};return e},"es6","es3"); x(l,function(a){if(a)return a;a=Symbol(l);for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0:!1};var ba=P()?!1:O("Trident")||O("MSIE");var Q=function(a,b){return typeof b===r?a.getElementById(b):b},ca=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")};var R=function(a){this.J=a};R.prototype.ia=function(a){var b=[];this.N(a,b);return b.join("")}; R.prototype.N=function(a,b){if(a==null)b.push("null");else{if(typeof a==q){if(Array.isArray(a)){this.ja(a,b);return}if(a instanceof String||a instanceof Number||a instanceof Boolean)a=a.valueOf();else{this.la(a,b);return}}switch(typeof a){case r:this.Z(a,b);break;case "number":this.ka(a,b);break;case "boolean":b.push(String(a));break;case p:b.push("null");break;default:throw Error("Unknown type: "+typeof a);}}}; var da={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;R.prototype.Z=function(a,b){b.push('"',a.replace(ea,function(c){var d=da[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),da[c]=d);return d}),'"')};R.prototype.ka=function(a,b){b.push(isFinite(a)&&!isNaN(a)?String(a):"null")}; R.prototype.ja=function(a,b){var c=a.length;b.push("[");for(var d="",e=0;e=0){var h=a[c].substring(0,d);e=a[c].substring(d+1)}else h=a[c];b(h,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var S=function(a,b){this.F=this.I=this.v="";this.D=null;this.G=this.M="";this.i=this.ha=!1;var c;a instanceof S?(this.i=b!==void 0?b:a.i,this.U(a.v),this.V(a.I),this.O(a.F),this.S(a.D),this.setPath(a.getPath()),this.T(a.j.clone()),this.P(a.G)):a&&(c=String(a).match(ja))?(this.i=!!b,this.U(c[1]||"",!0),this.V(c[2]||"",!0),this.O(c[3]||"",!0),this.S(c[4]),this.setPath(c[5]||"",!0),this.T(c[6]||"",!0),this.P(c[7]||"",!0)):(this.i=!!b,this.j=new T(null,this.i))};t=S.prototype; t.toString=function(){var a=[],b=this.v;b&&a.push(U(b,la,!0),":");var c=this.F;if(c||b=="file")a.push("//"),(b=this.I)&&a.push(U(b,la,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,c!=null&&a.push(":",String(c));if(c=this.getPath())this.L()&&c.charAt(0)!="/"&&a.push("/"),a.push(U(c,c.charAt(0)=="/"?ma:na,!0));(c=this.X())&&a.push("?",c);(c=this.G)&&a.push("#",U(c,oa));return a.join("")}; t.resolve=function(a){var b=this.clone(),c=a.fa();c?b.U(a.v):c=a.ga();c?b.V(a.I):c=a.L();c?b.O(a.F):c=a.da();var d=a.getPath();if(c)b.S(a.D);else if(c=a.Y()){if(d.charAt(0)!="/")if(this.L()&&!this.Y())d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(e.indexOf("./")!=-1||e.indexOf("/.")!=-1){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var h=[],m=0;m 1||h.length==1&&h[0]!="")&&h.pop(),d&&m==e.length&&h.push("")):(h.push(f),d=!0)}d=h.join("/")}else d=e}c?b.setPath(d):c=a.ea();c?b.T(a.j.clone()):c=a.ca();c&&b.P(a.G);return b};t.clone=function(){return new S(this)};t.U=function(a,b){this.l();if(this.v=b?V(a,!0):a)this.v=this.v.replace(/:$/,"");return this};t.fa=function(){return!!this.v};t.V=function(a,b){this.l();this.I=b?V(a):a;return this};t.ga=function(){return!!this.I};t.O=function(a,b){this.l();this.F=b?V(a,!0):a;return this};t.L=function(){return!!this.F}; t.S=function(a){this.l();if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("Bad port number "+a);this.D=a}else this.D=null;return this};t.da=function(){return this.D!=null};t.getPath=function(){return this.M};t.setPath=function(a,b){this.l();this.M=b?V(a,!0):a;return this};t.Y=function(){return!!this.M};t.ea=function(){return this.j.toString()!==""};t.T=function(a,b){this.l();a instanceof T?(this.j=a,this.j.R(this.i)):(b||(a=U(a,pa)),this.j=new T(a,this.i));return this};t.X=function(){return this.j.toString()}; t.getQuery=function(){return this.X()};t.ma=function(a,b){this.l();this.j.set(a,b);return this};t.ba=function(a){return this.j.get(a)};t.P=function(a,b){this.l();this.G=b?V(a):a;return this};t.ca=function(){return!!this.G};t.removeParameter=function(a){this.l();this.j.remove(a);return this};t.l=function(){if(this.ha)throw Error("Tried to modify a read-only Uri");};t.R=function(a){this.i=a;this.j&&this.j.R(a);return this}; var V=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},U=function(a,b,c){return typeof a===r?(a=encodeURI(a).replace(b,qa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},qa=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},la=/[#\/\?@]/g,na=/[#\?:]/g,ma=/[#\?]/g,pa=/[#\?@]/g,oa=/#/g,T=function(a,b){this.h=this.g=null;this.u=a||null;this.i=!!b};t=T.prototype; t.m=function(){if(!this.g&&(this.g=new Map,this.h=0,this.u)){var a=this;ka(this.u,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};t.add=function(a,b){this.m();this.C();a=this.B(a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};t.remove=function(a){this.m();a=this.B(a);return this.g.has(a)?(this.C(),this.h-=this.g.get(a).length,this.g.delete(a)):!1};t.clear=function(){this.C();this.g=null;this.h=0};t.isEmpty=function(){this.m();return this.h==0}; t.W=function(a){this.m();a=this.B(a);return this.g.has(a)};t.forEach=function(a,b){this.m();this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};t.K=function(){this.m();for(var a=Array.from(this.g.values()),b=Array.from(this.g.keys()),c=[],d=0;d0?String(a[0]):b}; t.setValues=function(a,b){this.remove(a);if(b.length>0){this.C();var c=this.g,d=c.set;a=this.B(a);var e=b.length;if(e>0){for(var h=Array(e),m=0;m