New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

otter-bridge

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otter-bridge - npm Package Compare versions

Comparing version

to
0.1.5

9

dist/index.d.ts

@@ -27,2 +27,4 @@ declare enum GameType {

getPlayIntegrity: string;
exchangeGift: string;
showInvitePanel: string;
};

@@ -45,2 +47,4 @@ private _gameName;

openUrl(url: string, params?: any): Promise<any>;
exchangeGift(params: IExchangeGiftParams): Promise<any>;
showInvitePanel(): Promise<any>;
openAppPage(url: string): Promise<any>;

@@ -93,2 +97,7 @@ setDebugSid(sid: string): Promise<void>;

}
interface IExchangeGiftParams {
activityId: number;
tradeOrderId: number;
itemId: number;
}
interface IRewardInfo {

@@ -95,0 +104,0 @@ taskId: number;

2

dist/index.global.js

@@ -1,2 +0,2 @@

"use strict";(()=>{var me=Object.create;var se=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var be=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var ee=(g,l)=>()=>(l||g((l={exports:{}}).exports,l),l.exports);var we=(g,l,m,f)=>{if(l&&typeof l=="object"||typeof l=="function")for(let p of be(l))!_e.call(g,p)&&p!==m&&se(g,p,{get:()=>l[p],enumerable:!(f=ye(l,p))||f.enumerable});return g};var ke=(g,l,m)=>(m=g!=null?me(ve(g)):{},we(l||!g||!g.__esModule?se(m,"default",{value:g,enumerable:!0}):m,g));var k=(g,l,m)=>new Promise((f,p)=>{var n=b=>{try{u(m.next(b))}catch(x){p(x)}},d=b=>{try{u(m.throw(b))}catch(x){p(x)}},u=b=>b.done?f(b.value):Promise.resolve(b.value).then(n,d);u((m=m.apply(g,l)).next())});var ue=ee((G,J)=>{"use strict";(function(g){var l=typeof G=="object"&&G&&!G.nodeType&&G,m=typeof J=="object"&&J&&!J.nodeType&&J,f=typeof global=="object"&&global;(f.global===f||f.window===f||f.self===f)&&(g=f);var p,n=2147483647,d=36,u=1,b=26,x=38,U=700,y=72,$=128,F="-",N=/^xn--/,q=/[^\x20-\x7E]/,V=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=d-u,E=Math.floor,O=String.fromCharCode,M;function j(o){throw new RangeError(L[o])}function K(o,c){for(var h=o.length,v=[];h--;)v[h]=c(o[h]);return v}function W(o,c){var h=o.split("@"),v="";h.length>1&&(v=h[0]+"@",o=h[1]),o=o.replace(V,".");var w=o.split("."),P=K(w,c).join(".");return v+P}function X(o){for(var c=[],h=0,v=o.length,w,P;h<v;)w=o.charCodeAt(h++),w>=55296&&w<=56319&&h<v?(P=o.charCodeAt(h++),(P&64512)==56320?c.push(((w&1023)<<10)+(P&1023)+65536):(c.push(w),h--)):c.push(w);return c}function Y(o){return K(o,function(c){var h="";return c>65535&&(c-=65536,h+=O(c>>>10&1023|55296),c=56320|c&1023),h+=O(c),h}).join("")}function oe(o){return o-48<10?o-22:o-65<26?o-65:o-97<26?o-97:d}function e(o,c){return o+22+75*(o<26)-((c!=0)<<5)}function r(o,c,h){var v=0;for(o=h?E(o/U):o>>1,o+=E(o/c);o>H*b>>1;v+=d)o=E(o/H);return E(v+(H+1)*o/(o+x))}function t(o){var c=[],h=o.length,v,w=0,P=$,_=y,z,S,T,Q,R,C,D,B,Z;for(z=o.lastIndexOf(F),z<0&&(z=0),S=0;S<z;++S)o.charCodeAt(S)>=128&&j("not-basic"),c.push(o.charCodeAt(S));for(T=z>0?z+1:0;T<h;){for(Q=w,R=1,C=d;T>=h&&j("invalid-input"),D=oe(o.charCodeAt(T++)),(D>=d||D>E((n-w)/R))&&j("overflow"),w+=D*R,B=C<=_?u:C>=_+b?b:C-_,!(D<B);C+=d)Z=d-B,R>E(n/Z)&&j("overflow"),R*=Z;v=c.length+1,_=r(w-Q,v,Q==0),E(w/v)>n-P&&j("overflow"),P+=E(w/v),w%=v,c.splice(w++,0,P)}return Y(c)}function i(o){var c,h,v,w,P,_,z,S,T,Q,R,C=[],D,B,Z,ae;for(o=X(o),D=o.length,c=$,h=0,P=y,_=0;_<D;++_)R=o[_],R<128&&C.push(O(R));for(v=w=C.length,w&&C.push(F);v<D;){for(z=n,_=0;_<D;++_)R=o[_],R>=c&&R<z&&(z=R);for(B=v+1,z-c>E((n-h)/B)&&j("overflow"),h+=(z-c)*B,c=z,_=0;_<D;++_)if(R=o[_],R<c&&++h>n&&j("overflow"),R==c){for(S=h,T=d;Q=T<=P?u:T>=P+b?b:T-P,!(S<Q);T+=d)ae=S-Q,Z=d-Q,C.push(O(e(Q+ae%Z,0))),S=E(ae/Z);C.push(O(e(S,0))),P=r(h,B,v==w),h=0,++v}++h,++c}return C.join("")}function a(o){return W(o,function(c){return N.test(c)?t(c.slice(4).toLowerCase()):c})}function s(o){return W(o,function(c){return q.test(c)?"xn--"+i(c):c})}if(p={version:"1.3.2",ucs2:{decode:X,encode:Y},decode:t,encode:i,toASCII:s,toUnicode:a},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return p});else if(l&&m)if(J.exports==l)m.exports=p;else for(M in p)p.hasOwnProperty(M)&&(l[M]=p[M]);else g.punycode=p})(G)});var le=ee((ce,re)=>{"use strict";(function(g,l){"use strict";typeof re=="object"&&re.exports?re.exports=l():typeof define=="function"&&define.amd?define(l):g.IPv6=l(g)})(ce,function(g){"use strict";var l=g&&g.IPv6;function m(p){var n=p.toLowerCase(),d=n.split(":"),u=d.length,b=8;d[0]===""&&d[1]===""&&d[2]===""?(d.shift(),d.shift()):d[0]===""&&d[1]===""?d.shift():d[u-1]===""&&d[u-2]===""&&d.pop(),u=d.length,d[u-1].indexOf(".")!==-1&&(b=7);var x;for(x=0;x<u&&d[x]!=="";x++);if(x<b)for(d.splice(x,1,"0000");d.length<b;)d.splice(x,0,"0000");for(var U,y=0;y<b;y++){U=d[y].split("");for(var $=0;$<3&&(U[0]==="0"&&U.length>1);$++)U.splice(0,1);d[y]=U.join("")}var F=-1,N=0,q=0,V=-1,L=!1;for(y=0;y<b;y++)L?d[y]==="0"?q+=1:(L=!1,q>N&&(F=V,N=q)):d[y]==="0"&&(L=!0,V=y,q=1);q>N&&(F=V,N=q),N>1&&d.splice(F,N,""),u=d.length;var H="";for(d[0]===""&&(H=":"),y=0;y<u&&(H+=d[y],y!==u-1);y++)H+=":";return d[u-1]===""&&(H+=":"),H}function f(){return g.IPv6===this&&(g.IPv6=l),this}return{best:m,noConflict:f}})});var he=ee((fe,te)=>{"use strict";(function(g,l){"use strict";typeof te=="object"&&te.exports?te.exports=l():typeof define=="function"&&define.amd?define(l):g.SecondLevelDomains=l(g)})(fe,function(g){"use strict";var l=g&&g.SecondLevelDomains,m={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return!1;var n=f.lastIndexOf(".",p-1);if(n<=0||n>=p-1)return!1;var d=m.list[f.slice(p+1)];return d?d.indexOf(" "+f.slice(n+1,p)+" ")>=0:!1},is:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return!1;var n=f.lastIndexOf(".",p-1);if(n>=0)return!1;var d=m.list[f.slice(p+1)];return d?d.indexOf(" "+f.slice(0,p)+" ")>=0:!1},get:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return null;var n=f.lastIndexOf(".",p-1);if(n<=0||n>=p-1)return null;var d=m.list[f.slice(p+1)];return!d||d.indexOf(" "+f.slice(n+1,p)+" ")<0?null:f.slice(n+1)},noConflict:function(){return g.SecondLevelDomains===this&&(g.SecondLevelDomains=l),this}};return m})});var pe=ee((de,ne)=>{"use strict";(function(g,l){"use strict";typeof ne=="object"&&ne.exports?ne.exports=l(ue(),le(),he()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],l):g.URI=l(g.punycode,g.IPv6,g.SecondLevelDomains,g)})(de,function(g,l,m,f){"use strict";var p=f&&f.URI;function n(e,r){var t=arguments.length>=1,i=arguments.length>=2;if(!(this instanceof n))return t?i?new n(e,r):new n(e):new n;if(e===void 0){if(t)throw new TypeError("undefined is not a valid argument for URI");typeof location!="undefined"?e=location.href+"":e=""}if(e===null&&t)throw new TypeError("null is not a valid argument for URI");return this.href(e),r!==void 0?this.absoluteTo(r):this}function d(e){return/^[0-9]+$/.test(e)}n.version="1.19.11";var u=n.prototype,b=Object.prototype.hasOwnProperty;function x(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function U(e){return e===void 0?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function y(e){return U(e)==="Array"}function $(e,r){var t={},i,a;if(U(r)==="RegExp")t=null;else if(y(r))for(i=0,a=r.length;i<a;i++)t[r[i]]=!0;else t[r]=!0;for(i=0,a=e.length;i<a;i++){var s=t&&t[e[i]]!==void 0||!t&&r.test(e[i]);s&&(e.splice(i,1),a--,i--)}return e}function F(e,r){var t,i;if(y(r)){for(t=0,i=r.length;t<i;t++)if(!F(e,r[t]))return!1;return!0}var a=U(r);for(t=0,i=e.length;t<i;t++)if(a==="RegExp"){if(typeof e[t]=="string"&&e[t].match(r))return!0}else if(e[t]===r)return!0;return!1}function N(e,r){if(!y(e)||!y(r)||e.length!==r.length)return!1;e.sort(),r.sort();for(var t=0,i=e.length;t<i;t++)if(e[t]!==r[t])return!1;return!0}function q(e){var r=/^\/+|\/+$/g;return e.replace(r,"")}n._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:n.preventInvalidHostname,duplicateQueryParameters:n.duplicateQueryParameters,escapeQuerySpace:n.escapeQuerySpace}},n.preventInvalidHostname=!1,n.duplicateQueryParameters=!1,n.escapeQuerySpace=!0,n.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,n.idn_expression=/[^a-z0-9\._-]/i,n.punycode_expression=/(xn--)/i,n.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,n.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,n.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,n.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},n.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,n.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},n.hostProtocols=["http","https"],n.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,n.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},n.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var r=e.nodeName.toLowerCase();if(!(r==="input"&&e.type!=="image"))return n.domAttributes[r]}};function V(e){return escape(e)}function L(e){return encodeURIComponent(e).replace(/[!'()*]/g,V).replace(/\*/g,"%2A")}n.encode=L,n.decode=decodeURIComponent,n.iso8859=function(){n.encode=escape,n.decode=unescape},n.unicode=function(){n.encode=L,n.decode=decodeURIComponent},n.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},n.encodeQuery=function(e,r){var t=n.encode(e+"");return r===void 0&&(r=n.escapeQuerySpace),r?t.replace(/%20/g,"+"):t},n.decodeQuery=function(e,r){e+="",r===void 0&&(r=n.escapeQuerySpace);try{return n.decode(r?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var H={encode:"encode",decode:"decode"},E,O=function(e,r){return function(t){try{return n[r](t+"").replace(n.characters[e][r].expression,function(i){return n.characters[e][r].map[i]})}catch(i){return t}}};for(E in H)n[E+"PathSegment"]=O("pathname",H[E]),n[E+"UrnPathSegment"]=O("urnpath",H[E]);var M=function(e,r,t){return function(i){var a;t?a=function(h){return n[r](n[t](h))}:a=n[r];for(var s=(i+"").split(e),o=0,c=s.length;o<c;o++)s[o]=a(s[o]);return s.join(e)}};n.decodePath=M("/","decodePathSegment"),n.decodeUrnPath=M(":","decodeUrnPathSegment"),n.recodePath=M("/","encodePathSegment","decode"),n.recodeUrnPath=M(":","encodeUrnPathSegment","decode"),n.encodeReserved=O("reserved","encode"),n.parse=function(e,r){var t;return r||(r={preventInvalidHostname:n.preventInvalidHostname}),e=e.replace(n.leading_whitespace_expression,""),e=e.replace(n.ascii_tab_whitespace,""),t=e.indexOf("#"),t>-1&&(r.fragment=e.substring(t+1)||null,e=e.substring(0,t)),t=e.indexOf("?"),t>-1&&(r.query=e.substring(t+1)||null,e=e.substring(0,t)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),e=e.replace(/^[/\\]{2,}/i,"//"),e.substring(0,2)==="//"?(r.protocol=null,e=e.substring(2),e=n.parseAuthority(e,r)):(t=e.indexOf(":"),t>-1&&(r.protocol=e.substring(0,t)||null,r.protocol&&!r.protocol.match(n.protocol_expression)?r.protocol=void 0:e.substring(t+1,t+3).replace(/\\/g,"/")==="//"?(e=e.substring(t+3),e=n.parseAuthority(e,r)):(e=e.substring(t+1),r.urn=!0))),r.path=e,r},n.parseHost=function(e,r){e||(e=""),e=e.replace(/\\/g,"/");var t=e.indexOf("/"),i,a;if(t===-1&&(t=e.length),e.charAt(0)==="[")i=e.indexOf("]"),r.hostname=e.substring(1,i)||null,r.port=e.substring(i+2,t)||null,r.port==="/"&&(r.port=null);else{var s=e.indexOf(":"),o=e.indexOf("/"),c=e.indexOf(":",s+1);c!==-1&&(o===-1||c<o)?(r.hostname=e.substring(0,t)||null,r.port=null):(a=e.substring(0,t).split(":"),r.hostname=a[0]||null,r.port=a[1]||null)}return r.hostname&&e.substring(t).charAt(0)!=="/"&&(t++,e="/"+e),r.preventInvalidHostname&&n.ensureValidHostname(r.hostname,r.protocol),r.port&&n.ensureValidPort(r.port),e.substring(t)||"/"},n.parseAuthority=function(e,r){return e=n.parseUserinfo(e,r),n.parseHost(e,r)},n.parseUserinfo=function(e,r){var t=e,i=e.indexOf("\\");i!==-1&&(e=e.replace(/\\/g,"/"));var a=e.indexOf("/"),s=e.lastIndexOf("@",a>-1?a:e.length-1),o;return s>-1&&(a===-1||s<a)?(o=e.substring(0,s).split(":"),r.username=o[0]?n.decode(o[0]):null,o.shift(),r.password=o[0]?n.decode(o.join(":")):null,e=t.substring(s+1)):(r.username=null,r.password=null),e},n.parseQuery=function(e,r){if(!e)return{};if(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!e)return{};for(var t={},i=e.split("&"),a=i.length,s,o,c,h=0;h<a;h++)s=i[h].split("="),o=n.decodeQuery(s.shift(),r),c=s.length?n.decodeQuery(s.join("="),r):null,o!=="__proto__"&&(b.call(t,o)?((typeof t[o]=="string"||t[o]===null)&&(t[o]=[t[o]]),t[o].push(c)):t[o]=c);return t},n.build=function(e){var r="",t=!1;return e.protocol&&(r+=e.protocol+":"),!e.urn&&(r||e.hostname)&&(r+="//",t=!0),r+=n.buildAuthority(e)||"",typeof e.path=="string"&&(e.path.charAt(0)!=="/"&&t&&(r+="/"),r+=e.path),typeof e.query=="string"&&e.query&&(r+="?"+e.query),typeof e.fragment=="string"&&e.fragment&&(r+="#"+e.fragment),r},n.buildHost=function(e){var r="";if(e.hostname)n.ip6_expression.test(e.hostname)?r+="["+e.hostname+"]":r+=e.hostname;else return"";return e.port&&(r+=":"+e.port),r},n.buildAuthority=function(e){return n.buildUserinfo(e)+n.buildHost(e)},n.buildUserinfo=function(e){var r="";return e.username&&(r+=n.encode(e.username)),e.password&&(r+=":"+n.encode(e.password)),r&&(r+="@"),r},n.buildQuery=function(e,r,t){var i="",a,s,o,c;for(s in e)if(s!=="__proto__"&&b.call(e,s))if(y(e[s]))for(a={},o=0,c=e[s].length;o<c;o++)e[s][o]!==void 0&&a[e[s][o]+""]===void 0&&(i+="&"+n.buildQueryParameter(s,e[s][o],t),r!==!0&&(a[e[s][o]+""]=!0));else e[s]!==void 0&&(i+="&"+n.buildQueryParameter(s,e[s],t));return i.substring(1)},n.buildQueryParameter=function(e,r,t){return n.encodeQuery(e,t)+(r!==null?"="+n.encodeQuery(r,t):"")},n.addQuery=function(e,r,t){if(typeof r=="object")for(var i in r)b.call(r,i)&&n.addQuery(e,i,r[i]);else if(typeof r=="string"){if(e[r]===void 0){e[r]=t;return}else typeof e[r]=="string"&&(e[r]=[e[r]]);y(t)||(t=[t]),e[r]=(e[r]||[]).concat(t)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},n.setQuery=function(e,r,t){if(typeof r=="object")for(var i in r)b.call(r,i)&&n.setQuery(e,i,r[i]);else if(typeof r=="string")e[r]=t===void 0?null:t;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},n.removeQuery=function(e,r,t){var i,a,s;if(y(r))for(i=0,a=r.length;i<a;i++)e[r[i]]=void 0;else if(U(r)==="RegExp")for(s in e)r.test(s)&&(e[s]=void 0);else if(typeof r=="object")for(s in r)b.call(r,s)&&n.removeQuery(e,s,r[s]);else if(typeof r=="string")t!==void 0?U(t)==="RegExp"?!y(e[r])&&t.test(e[r])?e[r]=void 0:e[r]=$(e[r],t):e[r]===String(t)&&(!y(t)||t.length===1)?e[r]=void 0:y(e[r])&&(e[r]=$(e[r],t)):e[r]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},n.hasQuery=function(e,r,t,i){switch(U(r)){case"String":break;case"RegExp":for(var a in e)if(b.call(e,a)&&r.test(a)&&(t===void 0||n.hasQuery(e,a,t)))return!0;return!1;case"Object":for(var s in r)if(b.call(r,s)&&!n.hasQuery(e,s,r[s]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(U(t)){case"Undefined":return r in e;case"Boolean":var o=!!(y(e[r])?e[r].length:e[r]);return t===o;case"Function":return!!t(e[r],r,e);case"Array":if(!y(e[r]))return!1;var c=i?F:N;return c(e[r],t);case"RegExp":return y(e[r])?i?F(e[r],t):!1:!!(e[r]&&e[r].match(t));case"Number":t=String(t);case"String":return y(e[r])?i?F(e[r],t):!1:e[r]===t;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},n.joinPaths=function(){for(var e=[],r=[],t=0,i=0;i<arguments.length;i++){var a=new n(arguments[i]);e.push(a);for(var s=a.segment(),o=0;o<s.length;o++)typeof s[o]=="string"&&r.push(s[o]),s[o]&&t++}if(!r.length||!t)return new n("");var c=new n("").segment(r);return(e[0].path()===""||e[0].path().slice(0,1)==="/")&&c.path("/"+c.path()),c.normalize()},n.commonPath=function(e,r){var t=Math.min(e.length,r.length),i;for(i=0;i<t;i++)if(e.charAt(i)!==r.charAt(i)){i--;break}return i<1?e.charAt(0)===r.charAt(0)&&e.charAt(0)==="/"?"/":"":((e.charAt(i)!=="/"||r.charAt(i)!=="/")&&(i=e.substring(0,i).lastIndexOf("/")),e.substring(0,i+1))},n.withinString=function(e,r,t){t||(t={});var i=t.start||n.findUri.start,a=t.end||n.findUri.end,s=t.trim||n.findUri.trim,o=t.parens||n.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var h=i.exec(e);if(!h)break;var v=h.index;if(t.ignoreHtml){var w=e.slice(Math.max(v-3,0),v);if(w&&c.test(w))continue}for(var P=v+e.slice(v).search(a),_=e.slice(v,P),z=-1;;){var S=o.exec(_);if(!S)break;var T=S.index+S[0].length;z=Math.max(z,T)}if(z>-1?_=_.slice(0,z)+_.slice(z).replace(s,""):_=_.replace(s,""),!(_.length<=h[0].length)&&!(t.ignore&&t.ignore.test(_))){P=v+_.length;var Q=r(_,v,P,e);if(Q===void 0){i.lastIndex=P;continue}Q=String(Q),e=e.slice(0,v)+Q+e.slice(P),i.lastIndex=v+Q.length}}return i.lastIndex=0,e},n.ensureValidHostname=function(e,r){var t=!!e,i=!!r,a=!1;if(i&&(a=F(n.hostProtocols,r)),a&&!t)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(e&&e.match(n.invalid_hostname_characters)){if(!g)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(g.toASCII(e).match(n.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},n.ensureValidPort=function(e){if(e){var r=Number(e);if(!(d(r)&&r>0&&r<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},n.noConflict=function(e){if(e){var r={URI:this.noConflict()};return f.URITemplate&&typeof f.URITemplate.noConflict=="function"&&(r.URITemplate=f.URITemplate.noConflict()),f.IPv6&&typeof f.IPv6.noConflict=="function"&&(r.IPv6=f.IPv6.noConflict()),f.SecondLevelDomains&&typeof f.SecondLevelDomains.noConflict=="function"&&(r.SecondLevelDomains=f.SecondLevelDomains.noConflict()),r}else f.URI===this&&(f.URI=p);return this},u.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=n.build(this._parts),this._deferred_build=!1),this},u.clone=function(){return new n(this)},u.valueOf=u.toString=function(){return this.build(!1)._string};function j(e){return function(r,t){return r===void 0?this._parts[e]||"":(this._parts[e]=r||null,this.build(!t),this)}}function K(e,r){return function(t,i){return t===void 0?this._parts[e]||"":(t!==null&&(t=t+"",t.charAt(0)===r&&(t=t.substring(1))),this._parts[e]=t,this.build(!i),this)}}u.protocol=j("protocol"),u.username=j("username"),u.password=j("password"),u.hostname=j("hostname"),u.port=j("port"),u.query=K("query","?"),u.fragment=K("fragment","#"),u.search=function(e,r){var t=this.query(e,r);return typeof t=="string"&&t.length?"?"+t:t},u.hash=function(e,r){var t=this.fragment(e,r);return typeof t=="string"&&t.length?"#"+t:t},u.pathname=function(e,r){if(e===void 0||e===!0){var t=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?n.decodeUrnPath:n.decodePath)(t):t}else return this._parts.urn?this._parts.path=e?n.recodeUrnPath(e):"":this._parts.path=e?n.recodePath(e):"/",this.build(!r),this},u.path=u.pathname,u.href=function(e,r){var t;if(e===void 0)return this.toString();this._string="",this._parts=n._parts();var i=e instanceof n,a=typeof e=="object"&&(e.hostname||e.path||e.pathname);if(e.nodeName){var s=n.getDomAttribute(e);e=e[s]||"",a=!1}if(!i&&a&&e.pathname!==void 0&&(e=e.toString()),typeof e=="string"||e instanceof String)this._parts=n.parse(String(e),this._parts);else if(i||a){var o=i?e._parts:e;for(t in o)t!=="query"&&b.call(this._parts,t)&&(this._parts[t]=o[t]);o.query&&this.query(o.query,!1)}else throw new TypeError("invalid input");return this.build(!r),this},u.is=function(e){var r=!1,t=!1,i=!1,a=!1,s=!1,o=!1,c=!1,h=!this._parts.urn;switch(this._parts.hostname&&(h=!1,t=n.ip4_expression.test(this._parts.hostname),i=n.ip6_expression.test(this._parts.hostname),r=t||i,a=!r,s=a&&m&&m.has(this._parts.hostname),o=a&&n.idn_expression.test(this._parts.hostname),c=a&&n.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return h;case"absolute":return!h;case"domain":case"name":return a;case"sld":return s;case"ip":return r;case"ip4":case"ipv4":case"inet4":return t;case"ip6":case"ipv6":case"inet6":return i;case"idn":return o;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var W=u.protocol,X=u.port,Y=u.hostname;u.protocol=function(e,r){if(e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(n.protocol_expression)))throw new TypeError('Protocol "'+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return W.call(this,e,r)},u.scheme=u.protocol,u.port=function(e,r){return this._parts.urn?e===void 0?"":this:(e!==void 0&&(e===0&&(e=null),e&&(e+="",e.charAt(0)===":"&&(e=e.substring(1)),n.ensureValidPort(e))),X.call(this,e,r))},u.hostname=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e!==void 0){var t={preventInvalidHostname:this._parts.preventInvalidHostname},i=n.parseHost(e,t);if(i!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=t.hostname,this._parts.preventInvalidHostname&&n.ensureValidHostname(e,this._parts.protocol)}return Y.call(this,e,r)},u.origin=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=this.protocol(),i=this.authority();return i?(t?t+"://":"")+this.authority():""}else{var a=n(e);return this.protocol(a.protocol()).authority(a.authority()).build(!r),this}},u.host=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildHost(this._parts):"";var t=n.parseHost(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},u.authority=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildAuthority(this._parts):"";var t=n.parseAuthority(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},u.userinfo=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=n.buildUserinfo(this._parts);return t&&t.substring(0,t.length-1)}else return e[e.length-1]!=="@"&&(e+="@"),n.parseUserinfo(e,this._parts),this.build(!r),this},u.resource=function(e,r){var t;return e===void 0?this.path()+this.search()+this.hash():(t=n.parse(e),this._parts.path=t.path,this._parts.query=t.query,this._parts.fragment=t.fragment,this.build(!r),this)},u.subdomain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,t)||""}else{var i=this._parts.hostname.length-this.domain().length,a=this._parts.hostname.substring(0,i),s=new RegExp("^"+x(a));if(e&&e.charAt(e.length-1)!=="."&&(e+="."),e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return e&&n.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!r),this}},u.domain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.match(/\./g);if(t&&t.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(r).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}else{if(!e)throw new TypeError("cannot set domain empty");if(e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(n.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var a=new RegExp(x(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!r),this}},u.tld=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(t+1);return r!==!0&&m&&m.list[i.toLowerCase()]&&m.get(this._parts.hostname)||i}else{var a;if(e)if(e.match(/[^a-zA-Z0-9-]/))if(m&&m.is(e))a=new RegExp(x(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e);else throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(x(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else throw new TypeError("cannot set TLD empty");return this.build(!r),this}},u.directory=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var t=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,t)||(this._parts.hostname?"/":"");return e?n.decodePath(i):i}else{var a=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,a),o=new RegExp("^"+x(s));return this.is("relative")||(e||(e="/"),e.charAt(0)!=="/"&&(e="/"+e)),e&&e.charAt(e.length-1)!=="/"&&(e+="/"),e=n.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!r),this}},u.filename=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e!="string"){if(!this._parts.path||this._parts.path==="/")return"";var t=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(t+1);return e?n.decodePathSegment(i):i}else{var a=!1;e.charAt(0)==="/"&&(e=e.substring(1)),e.match(/\.?\//)&&(a=!0);var s=new RegExp(x(this.filename())+"$");return e=n.recodePath(e),this._parts.path=this._parts.path.replace(s,e),a?this.normalizePath(r):this.build(!r),this}},u.suffix=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path==="/")return"";var t=this.filename(),i=t.lastIndexOf("."),a,s;return i===-1?"":(a=t.substring(i+1),s=/^[a-z0-9%]+$/i.test(a)?a:"",e?n.decodePathSegment(s):s)}else{e.charAt(0)==="."&&(e=e.substring(1));var o=this.suffix(),c;if(o)e?c=new RegExp(x(o)+"$"):c=new RegExp(x("."+o)+"$");else{if(!e)return this;this._parts.path+="."+n.recodePath(e)}return c&&(e=n.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!r),this}},u.segment=function(e,r,t){var i=this._parts.urn?":":"/",a=this.path(),s=a.substring(0,1)==="/",o=a.split(i);if(e!==void 0&&typeof e!="number"&&(t=r,r=e,e=void 0),e!==void 0&&typeof e!="number")throw new Error('Bad segment "'+e+'", must be 0-based integer');if(s&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),r===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(y(r)){o=[];for(var c=0,h=r.length;c<h;c++)!r[c].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(q(r[c])))}else(r||typeof r=="string")&&(r=q(r),o[o.length-1]===""?o[o.length-1]=r:o.push(r));else r?o[e]=q(r):o.splice(e,1);return s&&o.unshift(""),this.path(o.join(i),t)},u.segmentCoded=function(e,r,t){var i,a,s;if(typeof e!="number"&&(t=r,r=e,e=void 0),r===void 0){if(i=this.segment(e,r,t),!y(i))i=i!==void 0?n.decode(i):void 0;else for(a=0,s=i.length;a<s;a++)i[a]=n.decode(i[a]);return i}if(!y(r))r=typeof r=="string"||r instanceof String?n.encode(r):r;else for(a=0,s=r.length;a<s;a++)r[a]=n.encode(r[a]);return this.segment(e,r,t)};var oe=u.query;return u.query=function(e,r){if(e===!0)return n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="function"){var t=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,t);return this._parts.query=n.buildQuery(i||t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!r),this}else return e!==void 0&&typeof e!="string"?(this._parts.query=n.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!r),this):oe.call(this,e,r)},u.setQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="string"||e instanceof String)i[e]=r!==void 0?r:null;else if(typeof e=="object")for(var a in e)b.call(e,a)&&(i[a]=e[a]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.addQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.addQuery(i,e,r===void 0?null:r),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.removeQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.removeQuery(i,e,r),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.hasQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.hasQuery(i,e,r,t)},u.setSearch=u.setQuery,u.addSearch=u.addQuery,u.removeSearch=u.removeQuery,u.hasSearch=u.hasQuery,u.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},u.normalizeProtocol=function(e){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},u.normalizeHostname=function(e){return this._parts.hostname&&(this.is("IDN")&&g?this._parts.hostname=g.toASCII(this._parts.hostname):this.is("IPv6")&&l&&(this._parts.hostname=l.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!e)),this},u.normalizePort=function(e){return typeof this._parts.protocol=="string"&&this._parts.port===n.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},u.normalizePath=function(e){var r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=n.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path==="/")return this;r=n.recodePath(r);var t,i="",a,s;for(r.charAt(0)!=="/"&&(t=!0,r="/"+r),(r.slice(-3)==="/.."||r.slice(-2)==="/.")&&(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(i=r.substring(1).match(/^(\.\.\/)+/)||"",i&&(i=i[0]));a=r.search(/\/\.\.(\/|$)/),a!==-1;){if(a===0){r=r.substring(3);continue}s=r.substring(0,a).lastIndexOf("/"),s===-1&&(s=a),r=r.substring(0,s)+r.substring(a+3)}return t&&this.is("relative")&&(r=i+r.substring(1)),this._parts.path=r,this.build(!e),this},u.normalizePathname=u.normalizePath,u.normalizeQuery=function(e){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(n.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},u.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},u.normalizeSearch=u.normalizeQuery,u.normalizeHash=u.normalizeFragment,u.iso8859=function(){var e=n.encode,r=n.decode;n.encode=escape,n.decode=decodeURIComponent;try{this.normalize()}finally{n.encode=e,n.decode=r}return this},u.unicode=function(){var e=n.encode,r=n.decode;n.encode=L,n.decode=unescape;try{this.normalize()}finally{n.encode=e,n.decode=r}return this},u.readable=function(){var e=this.clone();e.username("").password("").normalize();var r="";if(e._parts.protocol&&(r+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&g?(r+=g.toUnicode(e._parts.hostname),e._parts.port&&(r+=":"+e._parts.port)):r+=e.host()),e._parts.hostname&&e._parts.path&&e._parts.path.charAt(0)!=="/"&&(r+="/"),r+=e.path(!0),e._parts.query){for(var t="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var o=(a[i]||"").split("=");t+="&"+n.decodeQuery(o[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),o[1]!==void 0&&(t+="="+n.decodeQuery(o[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+t.substring(1)}return r+=n.decodeQuery(e.hash(),!0),r},u.absoluteTo=function(e){var r=this.clone(),t=["protocol","username","password","hostname","port"],i,a,s;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof n||(e=new n(e)),r._parts.protocol||(r._parts.protocol=e._parts.protocol,this._parts.hostname))return r;for(a=0;s=t[a];a++)r._parts[s]=e._parts[s];return r._parts.path?(r._parts.path.substring(-2)===".."&&(r._parts.path+="/"),r.path().charAt(0)!=="/"&&(i=e.directory(),i=i||(e.path().indexOf("/")===0?"/":""),r._parts.path=(i?i+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build(),r},u.relativeTo=function(e){var r=this.clone().normalize(),t,i,a,s,o;if(r._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new n(e).normalize(),t=r._parts,i=e._parts,s=r.path(),o=e.path(),s.charAt(0)!=="/")throw new Error("URI is already relative");if(o.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===i.protocol&&(t.protocol=null),t.username!==i.username||t.password!==i.password||t.protocol!==null||t.username!==null||t.password!==null)return r.build();if(t.hostname===i.hostname&&t.port===i.port)t.hostname=null,t.port=null;else return r.build();if(s===o)return t.path="",r.build();if(a=n.commonPath(s,o),!a)return r.build();var c=i.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(a.length)||"./",r.build()},u.equals=function(e){var r=this.clone(),t=new n(e),i={},a={},s={},o,c,h;if(r.normalize(),t.normalize(),r.toString()===t.toString())return!0;if(o=r.query(),c=t.query(),r.query(""),t.query(""),r.toString()!==t.toString()||o.length!==c.length)return!1;i=n.parseQuery(o,this._parts.escapeQuerySpace),a=n.parseQuery(c,this._parts.escapeQuerySpace);for(h in i)if(b.call(i,h)){if(y(i[h])){if(!N(i[h],a[h]))return!1}else if(i[h]!==a[h])return!1;s[h]=!0}for(h in a)if(b.call(a,h)&&!s[h])return!1;return!0},u.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},u.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},u.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},n})});var ge=ke(pe());var xe=(f=>(f.default="default",f.SecondParty="SecondParty",f.ThirdParty="ThirdParty",f))(xe||{}),A=class g{constructor(){this.valid=!1}static get instance(){return this._instance||(this._instance=new g),this._instance}_waitForEnvReady(){return k(this,null,function*(){return new Promise((l,m)=>{var f;try{this.valid=typeof((f=window.flutter_inappwebview)==null?void 0:f.callHandler)=="function",this.valid&&l(!0);let p=setTimeout(()=>{this.valid=!1,l(!1)},1e4);window.addEventListener("flutterInAppWebViewPlatformReady",()=>{this.valid=!0,clearTimeout(p),l(!0)})}catch(p){l(!1)}})})}callHandler(f){return k(this,arguments,function*(l,m={}){var p;if(!this.valid){if(((p=navigator.userAgent)==null?void 0:p.indexOf("OtterGamePlatform"))<0){console.warn("Not in Otter Game Platform App");return}let n=yield this._waitForEnvReady();console.log("bridgeInit",n)}return yield window.flutter_inappwebview.callHandler(l,m)})}},I=class I{constructor(l="default",m="default"){this._errorHandlerInited=!1;this._gameType=l,this._gameName=m,this._initErrorHandler()}_initErrorHandler(){if(!this._errorHandlerInited)try{window.addEventListener("unhandledrejection",l=>{var p;let f={message:JSON.stringify((p=l.reason)!=null?p:{})};this.reportFirebase({eventName:"js_promise_rejection",parameters:f})}),window.addEventListener("error",l=>{let{message:m,filename:f,lineno:p,colno:n,error:d}=l,u=d==null?void 0:d.stack,b={message:m,filename:f,lineno:p,colno:n,stack:u};this.reportFirebase({eventName:"js_error_log",parameters:b})}),this._errorHandlerInited=!0}catch(l){}}init(){return k(this,null,function*(){try{let l=yield A.instance.callHandler(I.HANDLER_ENUM.getSid);return this._sid=l,{clientAvailable:!0}}catch(l){return{clientAvailable:!1}}})}env(){return k(this,null,function*(){return this._env=yield A.instance.callHandler(I.HANDLER_ENUM.env),this._env})}reportFirebase(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.reportFirebase,l)})}getUserProperty(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.getUserProperty,{})})}reportUserLog(l){return k(this,null,function*(){let m=0;return this._env?m=this._env.gameId:m=(yield this.env()).gameId,yield A.instance.callHandler(I.HANDLER_ENUM.reportUserLog,Object.assign(l,{otterGameId:m}))})}reportTrailLog(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.reportTrailLog,l)})}nativeBack(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.nativeBack)})}getAppCheckToken(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.getPlayIntegrity)})}openUrl(f){return k(this,arguments,function*(l,m={}){let p=(0,ge.default)(l).query(m);return yield A.instance.callHandler(I.HANDLER_ENUM.openUrl,{url:p.toString()})})}openAppPage(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.openAppPage,{url:l})})}setDebugSid(l){return k(this,null,function*(){this._sid=l})}getSid(){return k(this,null,function*(){return this._sid})}vibrate(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.vibrate)})}bizRequest(){return k(this,arguments,function*(l={}){return yield A.instance.callHandler(I.HANDLER_ENUM.bizRequest,l)})}callExchangePanel(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.callExchangePanel,l)})}checkAdStatus(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.checkAdStatus,{})})}showAd(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.showAd,{})})}copyToClipboard(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.copyToClipboard,{copyText:l})})}shareUrl(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.share,{url:l})})}showRewardDialog(l){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.showRewardDialog,l)})}abortSignIn(){return k(this,null,function*(){return yield A.instance.callHandler(I.HANDLER_ENUM.abortSignIn)})}};I.HANDLER_ENUM={nativeBack:"nativeBack",getSid:"getSid",bizRequest:"bizRequest",callExchangePanel:"callExchangePanel",openUrl:"openUrl",share:"share",vibrate:"vibrate",checkAdStatus:"checkAdStatus",showAd:"showAd",openAppPage:"openAppPage",reportFirebase:"reportFirebase",reportUserLog:"reportUserLog",reportTrailLog:"reportTrailLog",env:"env",showRewardDialog:"showRewardDialog",getUserProperty:"getUserProperty",copyToClipboard:"copyToClipboard",abortSignIn:"abortSignIn",getPlayIntegrity:"getPlayIntegrity"};var ie=I;window.BridgeHandler=ie;var Pe=ie;})();
"use strict";(()=>{var me=Object.create;var se=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var be=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var ee=(g,l)=>()=>(l||g((l={exports:{}}).exports,l),l.exports);var we=(g,l,m,f)=>{if(l&&typeof l=="object"||typeof l=="function")for(let p of be(l))!_e.call(g,p)&&p!==m&&se(g,p,{get:()=>l[p],enumerable:!(f=ye(l,p))||f.enumerable});return g};var ke=(g,l,m)=>(m=g!=null?me(ve(g)):{},we(l||!g||!g.__esModule?se(m,"default",{value:g,enumerable:!0}):m,g));var w=(g,l,m)=>new Promise((f,p)=>{var n=b=>{try{u(m.next(b))}catch(P){p(P)}},d=b=>{try{u(m.throw(b))}catch(P){p(P)}},u=b=>b.done?f(b.value):Promise.resolve(b.value).then(n,d);u((m=m.apply(g,l)).next())});var ue=ee((Z,J)=>{"use strict";(function(g){var l=typeof Z=="object"&&Z&&!Z.nodeType&&Z,m=typeof J=="object"&&J&&!J.nodeType&&J,f=typeof global=="object"&&global;(f.global===f||f.window===f||f.self===f)&&(g=f);var p,n=2147483647,d=36,u=1,b=26,P=38,U=700,y=72,$=128,F="-",C=/^xn--/,q=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=d-u,E=Math.floor,O=String.fromCharCode,M;function j(o){throw new RangeError(L[o])}function K(o,c){for(var h=o.length,v=[];h--;)v[h]=c(o[h]);return v}function W(o,c){var h=o.split("@"),v="";h.length>1&&(v=h[0]+"@",o=h[1]),o=o.replace(G,".");var k=o.split("."),A=K(k,c).join(".");return v+A}function X(o){for(var c=[],h=0,v=o.length,k,A;h<v;)k=o.charCodeAt(h++),k>=55296&&k<=56319&&h<v?(A=o.charCodeAt(h++),(A&64512)==56320?c.push(((k&1023)<<10)+(A&1023)+65536):(c.push(k),h--)):c.push(k);return c}function Y(o){return K(o,function(c){var h="";return c>65535&&(c-=65536,h+=O(c>>>10&1023|55296),c=56320|c&1023),h+=O(c),h}).join("")}function oe(o){return o-48<10?o-22:o-65<26?o-65:o-97<26?o-97:d}function e(o,c){return o+22+75*(o<26)-((c!=0)<<5)}function r(o,c,h){var v=0;for(o=h?E(o/U):o>>1,o+=E(o/c);o>Q*b>>1;v+=d)o=E(o/Q);return E(v+(Q+1)*o/(o+P))}function t(o){var c=[],h=o.length,v,k=0,A=$,_=y,z,S,N,H,R,T,D,B,V;for(z=o.lastIndexOf(F),z<0&&(z=0),S=0;S<z;++S)o.charCodeAt(S)>=128&&j("not-basic"),c.push(o.charCodeAt(S));for(N=z>0?z+1:0;N<h;){for(H=k,R=1,T=d;N>=h&&j("invalid-input"),D=oe(o.charCodeAt(N++)),(D>=d||D>E((n-k)/R))&&j("overflow"),k+=D*R,B=T<=_?u:T>=_+b?b:T-_,!(D<B);T+=d)V=d-B,R>E(n/V)&&j("overflow"),R*=V;v=c.length+1,_=r(k-H,v,H==0),E(k/v)>n-A&&j("overflow"),A+=E(k/v),k%=v,c.splice(k++,0,A)}return Y(c)}function i(o){var c,h,v,k,A,_,z,S,N,H,R,T=[],D,B,V,ae;for(o=X(o),D=o.length,c=$,h=0,A=y,_=0;_<D;++_)R=o[_],R<128&&T.push(O(R));for(v=k=T.length,k&&T.push(F);v<D;){for(z=n,_=0;_<D;++_)R=o[_],R>=c&&R<z&&(z=R);for(B=v+1,z-c>E((n-h)/B)&&j("overflow"),h+=(z-c)*B,c=z,_=0;_<D;++_)if(R=o[_],R<c&&++h>n&&j("overflow"),R==c){for(S=h,N=d;H=N<=A?u:N>=A+b?b:N-A,!(S<H);N+=d)ae=S-H,V=d-H,T.push(O(e(H+ae%V,0))),S=E(ae/V);T.push(O(e(S,0))),A=r(h,B,v==k),h=0,++v}++h,++c}return T.join("")}function a(o){return W(o,function(c){return C.test(c)?t(c.slice(4).toLowerCase()):c})}function s(o){return W(o,function(c){return q.test(c)?"xn--"+i(c):c})}if(p={version:"1.3.2",ucs2:{decode:X,encode:Y},decode:t,encode:i,toASCII:s,toUnicode:a},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return p});else if(l&&m)if(J.exports==l)m.exports=p;else for(M in p)p.hasOwnProperty(M)&&(l[M]=p[M]);else g.punycode=p})(Z)});var le=ee((ce,re)=>{"use strict";(function(g,l){"use strict";typeof re=="object"&&re.exports?re.exports=l():typeof define=="function"&&define.amd?define(l):g.IPv6=l(g)})(ce,function(g){"use strict";var l=g&&g.IPv6;function m(p){var n=p.toLowerCase(),d=n.split(":"),u=d.length,b=8;d[0]===""&&d[1]===""&&d[2]===""?(d.shift(),d.shift()):d[0]===""&&d[1]===""?d.shift():d[u-1]===""&&d[u-2]===""&&d.pop(),u=d.length,d[u-1].indexOf(".")!==-1&&(b=7);var P;for(P=0;P<u&&d[P]!=="";P++);if(P<b)for(d.splice(P,1,"0000");d.length<b;)d.splice(P,0,"0000");for(var U,y=0;y<b;y++){U=d[y].split("");for(var $=0;$<3&&(U[0]==="0"&&U.length>1);$++)U.splice(0,1);d[y]=U.join("")}var F=-1,C=0,q=0,G=-1,L=!1;for(y=0;y<b;y++)L?d[y]==="0"?q+=1:(L=!1,q>C&&(F=G,C=q)):d[y]==="0"&&(L=!0,G=y,q=1);q>C&&(F=G,C=q),C>1&&d.splice(F,C,""),u=d.length;var Q="";for(d[0]===""&&(Q=":"),y=0;y<u&&(Q+=d[y],y!==u-1);y++)Q+=":";return d[u-1]===""&&(Q+=":"),Q}function f(){return g.IPv6===this&&(g.IPv6=l),this}return{best:m,noConflict:f}})});var he=ee((fe,te)=>{"use strict";(function(g,l){"use strict";typeof te=="object"&&te.exports?te.exports=l():typeof define=="function"&&define.amd?define(l):g.SecondLevelDomains=l(g)})(fe,function(g){"use strict";var l=g&&g.SecondLevelDomains,m={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return!1;var n=f.lastIndexOf(".",p-1);if(n<=0||n>=p-1)return!1;var d=m.list[f.slice(p+1)];return d?d.indexOf(" "+f.slice(n+1,p)+" ")>=0:!1},is:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return!1;var n=f.lastIndexOf(".",p-1);if(n>=0)return!1;var d=m.list[f.slice(p+1)];return d?d.indexOf(" "+f.slice(0,p)+" ")>=0:!1},get:function(f){var p=f.lastIndexOf(".");if(p<=0||p>=f.length-1)return null;var n=f.lastIndexOf(".",p-1);if(n<=0||n>=p-1)return null;var d=m.list[f.slice(p+1)];return!d||d.indexOf(" "+f.slice(n+1,p)+" ")<0?null:f.slice(n+1)},noConflict:function(){return g.SecondLevelDomains===this&&(g.SecondLevelDomains=l),this}};return m})});var pe=ee((de,ne)=>{"use strict";(function(g,l){"use strict";typeof ne=="object"&&ne.exports?ne.exports=l(ue(),le(),he()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],l):g.URI=l(g.punycode,g.IPv6,g.SecondLevelDomains,g)})(de,function(g,l,m,f){"use strict";var p=f&&f.URI;function n(e,r){var t=arguments.length>=1,i=arguments.length>=2;if(!(this instanceof n))return t?i?new n(e,r):new n(e):new n;if(e===void 0){if(t)throw new TypeError("undefined is not a valid argument for URI");typeof location!="undefined"?e=location.href+"":e=""}if(e===null&&t)throw new TypeError("null is not a valid argument for URI");return this.href(e),r!==void 0?this.absoluteTo(r):this}function d(e){return/^[0-9]+$/.test(e)}n.version="1.19.11";var u=n.prototype,b=Object.prototype.hasOwnProperty;function P(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function U(e){return e===void 0?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function y(e){return U(e)==="Array"}function $(e,r){var t={},i,a;if(U(r)==="RegExp")t=null;else if(y(r))for(i=0,a=r.length;i<a;i++)t[r[i]]=!0;else t[r]=!0;for(i=0,a=e.length;i<a;i++){var s=t&&t[e[i]]!==void 0||!t&&r.test(e[i]);s&&(e.splice(i,1),a--,i--)}return e}function F(e,r){var t,i;if(y(r)){for(t=0,i=r.length;t<i;t++)if(!F(e,r[t]))return!1;return!0}var a=U(r);for(t=0,i=e.length;t<i;t++)if(a==="RegExp"){if(typeof e[t]=="string"&&e[t].match(r))return!0}else if(e[t]===r)return!0;return!1}function C(e,r){if(!y(e)||!y(r)||e.length!==r.length)return!1;e.sort(),r.sort();for(var t=0,i=e.length;t<i;t++)if(e[t]!==r[t])return!1;return!0}function q(e){var r=/^\/+|\/+$/g;return e.replace(r,"")}n._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:n.preventInvalidHostname,duplicateQueryParameters:n.duplicateQueryParameters,escapeQuerySpace:n.escapeQuerySpace}},n.preventInvalidHostname=!1,n.duplicateQueryParameters=!1,n.escapeQuerySpace=!0,n.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,n.idn_expression=/[^a-z0-9\._-]/i,n.punycode_expression=/(xn--)/i,n.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,n.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,n.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,n.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},n.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,n.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},n.hostProtocols=["http","https"],n.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,n.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},n.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var r=e.nodeName.toLowerCase();if(!(r==="input"&&e.type!=="image"))return n.domAttributes[r]}};function G(e){return escape(e)}function L(e){return encodeURIComponent(e).replace(/[!'()*]/g,G).replace(/\*/g,"%2A")}n.encode=L,n.decode=decodeURIComponent,n.iso8859=function(){n.encode=escape,n.decode=unescape},n.unicode=function(){n.encode=L,n.decode=decodeURIComponent},n.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},n.encodeQuery=function(e,r){var t=n.encode(e+"");return r===void 0&&(r=n.escapeQuerySpace),r?t.replace(/%20/g,"+"):t},n.decodeQuery=function(e,r){e+="",r===void 0&&(r=n.escapeQuerySpace);try{return n.decode(r?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var Q={encode:"encode",decode:"decode"},E,O=function(e,r){return function(t){try{return n[r](t+"").replace(n.characters[e][r].expression,function(i){return n.characters[e][r].map[i]})}catch(i){return t}}};for(E in Q)n[E+"PathSegment"]=O("pathname",Q[E]),n[E+"UrnPathSegment"]=O("urnpath",Q[E]);var M=function(e,r,t){return function(i){var a;t?a=function(h){return n[r](n[t](h))}:a=n[r];for(var s=(i+"").split(e),o=0,c=s.length;o<c;o++)s[o]=a(s[o]);return s.join(e)}};n.decodePath=M("/","decodePathSegment"),n.decodeUrnPath=M(":","decodeUrnPathSegment"),n.recodePath=M("/","encodePathSegment","decode"),n.recodeUrnPath=M(":","encodeUrnPathSegment","decode"),n.encodeReserved=O("reserved","encode"),n.parse=function(e,r){var t;return r||(r={preventInvalidHostname:n.preventInvalidHostname}),e=e.replace(n.leading_whitespace_expression,""),e=e.replace(n.ascii_tab_whitespace,""),t=e.indexOf("#"),t>-1&&(r.fragment=e.substring(t+1)||null,e=e.substring(0,t)),t=e.indexOf("?"),t>-1&&(r.query=e.substring(t+1)||null,e=e.substring(0,t)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),e=e.replace(/^[/\\]{2,}/i,"//"),e.substring(0,2)==="//"?(r.protocol=null,e=e.substring(2),e=n.parseAuthority(e,r)):(t=e.indexOf(":"),t>-1&&(r.protocol=e.substring(0,t)||null,r.protocol&&!r.protocol.match(n.protocol_expression)?r.protocol=void 0:e.substring(t+1,t+3).replace(/\\/g,"/")==="//"?(e=e.substring(t+3),e=n.parseAuthority(e,r)):(e=e.substring(t+1),r.urn=!0))),r.path=e,r},n.parseHost=function(e,r){e||(e=""),e=e.replace(/\\/g,"/");var t=e.indexOf("/"),i,a;if(t===-1&&(t=e.length),e.charAt(0)==="[")i=e.indexOf("]"),r.hostname=e.substring(1,i)||null,r.port=e.substring(i+2,t)||null,r.port==="/"&&(r.port=null);else{var s=e.indexOf(":"),o=e.indexOf("/"),c=e.indexOf(":",s+1);c!==-1&&(o===-1||c<o)?(r.hostname=e.substring(0,t)||null,r.port=null):(a=e.substring(0,t).split(":"),r.hostname=a[0]||null,r.port=a[1]||null)}return r.hostname&&e.substring(t).charAt(0)!=="/"&&(t++,e="/"+e),r.preventInvalidHostname&&n.ensureValidHostname(r.hostname,r.protocol),r.port&&n.ensureValidPort(r.port),e.substring(t)||"/"},n.parseAuthority=function(e,r){return e=n.parseUserinfo(e,r),n.parseHost(e,r)},n.parseUserinfo=function(e,r){var t=e,i=e.indexOf("\\");i!==-1&&(e=e.replace(/\\/g,"/"));var a=e.indexOf("/"),s=e.lastIndexOf("@",a>-1?a:e.length-1),o;return s>-1&&(a===-1||s<a)?(o=e.substring(0,s).split(":"),r.username=o[0]?n.decode(o[0]):null,o.shift(),r.password=o[0]?n.decode(o.join(":")):null,e=t.substring(s+1)):(r.username=null,r.password=null),e},n.parseQuery=function(e,r){if(!e)return{};if(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!e)return{};for(var t={},i=e.split("&"),a=i.length,s,o,c,h=0;h<a;h++)s=i[h].split("="),o=n.decodeQuery(s.shift(),r),c=s.length?n.decodeQuery(s.join("="),r):null,o!=="__proto__"&&(b.call(t,o)?((typeof t[o]=="string"||t[o]===null)&&(t[o]=[t[o]]),t[o].push(c)):t[o]=c);return t},n.build=function(e){var r="",t=!1;return e.protocol&&(r+=e.protocol+":"),!e.urn&&(r||e.hostname)&&(r+="//",t=!0),r+=n.buildAuthority(e)||"",typeof e.path=="string"&&(e.path.charAt(0)!=="/"&&t&&(r+="/"),r+=e.path),typeof e.query=="string"&&e.query&&(r+="?"+e.query),typeof e.fragment=="string"&&e.fragment&&(r+="#"+e.fragment),r},n.buildHost=function(e){var r="";if(e.hostname)n.ip6_expression.test(e.hostname)?r+="["+e.hostname+"]":r+=e.hostname;else return"";return e.port&&(r+=":"+e.port),r},n.buildAuthority=function(e){return n.buildUserinfo(e)+n.buildHost(e)},n.buildUserinfo=function(e){var r="";return e.username&&(r+=n.encode(e.username)),e.password&&(r+=":"+n.encode(e.password)),r&&(r+="@"),r},n.buildQuery=function(e,r,t){var i="",a,s,o,c;for(s in e)if(s!=="__proto__"&&b.call(e,s))if(y(e[s]))for(a={},o=0,c=e[s].length;o<c;o++)e[s][o]!==void 0&&a[e[s][o]+""]===void 0&&(i+="&"+n.buildQueryParameter(s,e[s][o],t),r!==!0&&(a[e[s][o]+""]=!0));else e[s]!==void 0&&(i+="&"+n.buildQueryParameter(s,e[s],t));return i.substring(1)},n.buildQueryParameter=function(e,r,t){return n.encodeQuery(e,t)+(r!==null?"="+n.encodeQuery(r,t):"")},n.addQuery=function(e,r,t){if(typeof r=="object")for(var i in r)b.call(r,i)&&n.addQuery(e,i,r[i]);else if(typeof r=="string"){if(e[r]===void 0){e[r]=t;return}else typeof e[r]=="string"&&(e[r]=[e[r]]);y(t)||(t=[t]),e[r]=(e[r]||[]).concat(t)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},n.setQuery=function(e,r,t){if(typeof r=="object")for(var i in r)b.call(r,i)&&n.setQuery(e,i,r[i]);else if(typeof r=="string")e[r]=t===void 0?null:t;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},n.removeQuery=function(e,r,t){var i,a,s;if(y(r))for(i=0,a=r.length;i<a;i++)e[r[i]]=void 0;else if(U(r)==="RegExp")for(s in e)r.test(s)&&(e[s]=void 0);else if(typeof r=="object")for(s in r)b.call(r,s)&&n.removeQuery(e,s,r[s]);else if(typeof r=="string")t!==void 0?U(t)==="RegExp"?!y(e[r])&&t.test(e[r])?e[r]=void 0:e[r]=$(e[r],t):e[r]===String(t)&&(!y(t)||t.length===1)?e[r]=void 0:y(e[r])&&(e[r]=$(e[r],t)):e[r]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},n.hasQuery=function(e,r,t,i){switch(U(r)){case"String":break;case"RegExp":for(var a in e)if(b.call(e,a)&&r.test(a)&&(t===void 0||n.hasQuery(e,a,t)))return!0;return!1;case"Object":for(var s in r)if(b.call(r,s)&&!n.hasQuery(e,s,r[s]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(U(t)){case"Undefined":return r in e;case"Boolean":var o=!!(y(e[r])?e[r].length:e[r]);return t===o;case"Function":return!!t(e[r],r,e);case"Array":if(!y(e[r]))return!1;var c=i?F:C;return c(e[r],t);case"RegExp":return y(e[r])?i?F(e[r],t):!1:!!(e[r]&&e[r].match(t));case"Number":t=String(t);case"String":return y(e[r])?i?F(e[r],t):!1:e[r]===t;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},n.joinPaths=function(){for(var e=[],r=[],t=0,i=0;i<arguments.length;i++){var a=new n(arguments[i]);e.push(a);for(var s=a.segment(),o=0;o<s.length;o++)typeof s[o]=="string"&&r.push(s[o]),s[o]&&t++}if(!r.length||!t)return new n("");var c=new n("").segment(r);return(e[0].path()===""||e[0].path().slice(0,1)==="/")&&c.path("/"+c.path()),c.normalize()},n.commonPath=function(e,r){var t=Math.min(e.length,r.length),i;for(i=0;i<t;i++)if(e.charAt(i)!==r.charAt(i)){i--;break}return i<1?e.charAt(0)===r.charAt(0)&&e.charAt(0)==="/"?"/":"":((e.charAt(i)!=="/"||r.charAt(i)!=="/")&&(i=e.substring(0,i).lastIndexOf("/")),e.substring(0,i+1))},n.withinString=function(e,r,t){t||(t={});var i=t.start||n.findUri.start,a=t.end||n.findUri.end,s=t.trim||n.findUri.trim,o=t.parens||n.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var h=i.exec(e);if(!h)break;var v=h.index;if(t.ignoreHtml){var k=e.slice(Math.max(v-3,0),v);if(k&&c.test(k))continue}for(var A=v+e.slice(v).search(a),_=e.slice(v,A),z=-1;;){var S=o.exec(_);if(!S)break;var N=S.index+S[0].length;z=Math.max(z,N)}if(z>-1?_=_.slice(0,z)+_.slice(z).replace(s,""):_=_.replace(s,""),!(_.length<=h[0].length)&&!(t.ignore&&t.ignore.test(_))){A=v+_.length;var H=r(_,v,A,e);if(H===void 0){i.lastIndex=A;continue}H=String(H),e=e.slice(0,v)+H+e.slice(A),i.lastIndex=v+H.length}}return i.lastIndex=0,e},n.ensureValidHostname=function(e,r){var t=!!e,i=!!r,a=!1;if(i&&(a=F(n.hostProtocols,r)),a&&!t)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(e&&e.match(n.invalid_hostname_characters)){if(!g)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(g.toASCII(e).match(n.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},n.ensureValidPort=function(e){if(e){var r=Number(e);if(!(d(r)&&r>0&&r<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},n.noConflict=function(e){if(e){var r={URI:this.noConflict()};return f.URITemplate&&typeof f.URITemplate.noConflict=="function"&&(r.URITemplate=f.URITemplate.noConflict()),f.IPv6&&typeof f.IPv6.noConflict=="function"&&(r.IPv6=f.IPv6.noConflict()),f.SecondLevelDomains&&typeof f.SecondLevelDomains.noConflict=="function"&&(r.SecondLevelDomains=f.SecondLevelDomains.noConflict()),r}else f.URI===this&&(f.URI=p);return this},u.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=n.build(this._parts),this._deferred_build=!1),this},u.clone=function(){return new n(this)},u.valueOf=u.toString=function(){return this.build(!1)._string};function j(e){return function(r,t){return r===void 0?this._parts[e]||"":(this._parts[e]=r||null,this.build(!t),this)}}function K(e,r){return function(t,i){return t===void 0?this._parts[e]||"":(t!==null&&(t=t+"",t.charAt(0)===r&&(t=t.substring(1))),this._parts[e]=t,this.build(!i),this)}}u.protocol=j("protocol"),u.username=j("username"),u.password=j("password"),u.hostname=j("hostname"),u.port=j("port"),u.query=K("query","?"),u.fragment=K("fragment","#"),u.search=function(e,r){var t=this.query(e,r);return typeof t=="string"&&t.length?"?"+t:t},u.hash=function(e,r){var t=this.fragment(e,r);return typeof t=="string"&&t.length?"#"+t:t},u.pathname=function(e,r){if(e===void 0||e===!0){var t=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?n.decodeUrnPath:n.decodePath)(t):t}else return this._parts.urn?this._parts.path=e?n.recodeUrnPath(e):"":this._parts.path=e?n.recodePath(e):"/",this.build(!r),this},u.path=u.pathname,u.href=function(e,r){var t;if(e===void 0)return this.toString();this._string="",this._parts=n._parts();var i=e instanceof n,a=typeof e=="object"&&(e.hostname||e.path||e.pathname);if(e.nodeName){var s=n.getDomAttribute(e);e=e[s]||"",a=!1}if(!i&&a&&e.pathname!==void 0&&(e=e.toString()),typeof e=="string"||e instanceof String)this._parts=n.parse(String(e),this._parts);else if(i||a){var o=i?e._parts:e;for(t in o)t!=="query"&&b.call(this._parts,t)&&(this._parts[t]=o[t]);o.query&&this.query(o.query,!1)}else throw new TypeError("invalid input");return this.build(!r),this},u.is=function(e){var r=!1,t=!1,i=!1,a=!1,s=!1,o=!1,c=!1,h=!this._parts.urn;switch(this._parts.hostname&&(h=!1,t=n.ip4_expression.test(this._parts.hostname),i=n.ip6_expression.test(this._parts.hostname),r=t||i,a=!r,s=a&&m&&m.has(this._parts.hostname),o=a&&n.idn_expression.test(this._parts.hostname),c=a&&n.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return h;case"absolute":return!h;case"domain":case"name":return a;case"sld":return s;case"ip":return r;case"ip4":case"ipv4":case"inet4":return t;case"ip6":case"ipv6":case"inet6":return i;case"idn":return o;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var W=u.protocol,X=u.port,Y=u.hostname;u.protocol=function(e,r){if(e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(n.protocol_expression)))throw new TypeError('Protocol "'+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return W.call(this,e,r)},u.scheme=u.protocol,u.port=function(e,r){return this._parts.urn?e===void 0?"":this:(e!==void 0&&(e===0&&(e=null),e&&(e+="",e.charAt(0)===":"&&(e=e.substring(1)),n.ensureValidPort(e))),X.call(this,e,r))},u.hostname=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e!==void 0){var t={preventInvalidHostname:this._parts.preventInvalidHostname},i=n.parseHost(e,t);if(i!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=t.hostname,this._parts.preventInvalidHostname&&n.ensureValidHostname(e,this._parts.protocol)}return Y.call(this,e,r)},u.origin=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=this.protocol(),i=this.authority();return i?(t?t+"://":"")+this.authority():""}else{var a=n(e);return this.protocol(a.protocol()).authority(a.authority()).build(!r),this}},u.host=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildHost(this._parts):"";var t=n.parseHost(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},u.authority=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildAuthority(this._parts):"";var t=n.parseAuthority(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},u.userinfo=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=n.buildUserinfo(this._parts);return t&&t.substring(0,t.length-1)}else return e[e.length-1]!=="@"&&(e+="@"),n.parseUserinfo(e,this._parts),this.build(!r),this},u.resource=function(e,r){var t;return e===void 0?this.path()+this.search()+this.hash():(t=n.parse(e),this._parts.path=t.path,this._parts.query=t.query,this._parts.fragment=t.fragment,this.build(!r),this)},u.subdomain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,t)||""}else{var i=this._parts.hostname.length-this.domain().length,a=this._parts.hostname.substring(0,i),s=new RegExp("^"+P(a));if(e&&e.charAt(e.length-1)!=="."&&(e+="."),e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return e&&n.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!r),this}},u.domain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.match(/\./g);if(t&&t.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(r).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}else{if(!e)throw new TypeError("cannot set domain empty");if(e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(n.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var a=new RegExp(P(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!r),this}},u.tld=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(t+1);return r!==!0&&m&&m.list[i.toLowerCase()]&&m.get(this._parts.hostname)||i}else{var a;if(e)if(e.match(/[^a-zA-Z0-9-]/))if(m&&m.is(e))a=new RegExp(P(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e);else throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(P(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else throw new TypeError("cannot set TLD empty");return this.build(!r),this}},u.directory=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var t=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,t)||(this._parts.hostname?"/":"");return e?n.decodePath(i):i}else{var a=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,a),o=new RegExp("^"+P(s));return this.is("relative")||(e||(e="/"),e.charAt(0)!=="/"&&(e="/"+e)),e&&e.charAt(e.length-1)!=="/"&&(e+="/"),e=n.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!r),this}},u.filename=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e!="string"){if(!this._parts.path||this._parts.path==="/")return"";var t=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(t+1);return e?n.decodePathSegment(i):i}else{var a=!1;e.charAt(0)==="/"&&(e=e.substring(1)),e.match(/\.?\//)&&(a=!0);var s=new RegExp(P(this.filename())+"$");return e=n.recodePath(e),this._parts.path=this._parts.path.replace(s,e),a?this.normalizePath(r):this.build(!r),this}},u.suffix=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path==="/")return"";var t=this.filename(),i=t.lastIndexOf("."),a,s;return i===-1?"":(a=t.substring(i+1),s=/^[a-z0-9%]+$/i.test(a)?a:"",e?n.decodePathSegment(s):s)}else{e.charAt(0)==="."&&(e=e.substring(1));var o=this.suffix(),c;if(o)e?c=new RegExp(P(o)+"$"):c=new RegExp(P("."+o)+"$");else{if(!e)return this;this._parts.path+="."+n.recodePath(e)}return c&&(e=n.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!r),this}},u.segment=function(e,r,t){var i=this._parts.urn?":":"/",a=this.path(),s=a.substring(0,1)==="/",o=a.split(i);if(e!==void 0&&typeof e!="number"&&(t=r,r=e,e=void 0),e!==void 0&&typeof e!="number")throw new Error('Bad segment "'+e+'", must be 0-based integer');if(s&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),r===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(y(r)){o=[];for(var c=0,h=r.length;c<h;c++)!r[c].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(q(r[c])))}else(r||typeof r=="string")&&(r=q(r),o[o.length-1]===""?o[o.length-1]=r:o.push(r));else r?o[e]=q(r):o.splice(e,1);return s&&o.unshift(""),this.path(o.join(i),t)},u.segmentCoded=function(e,r,t){var i,a,s;if(typeof e!="number"&&(t=r,r=e,e=void 0),r===void 0){if(i=this.segment(e,r,t),!y(i))i=i!==void 0?n.decode(i):void 0;else for(a=0,s=i.length;a<s;a++)i[a]=n.decode(i[a]);return i}if(!y(r))r=typeof r=="string"||r instanceof String?n.encode(r):r;else for(a=0,s=r.length;a<s;a++)r[a]=n.encode(r[a]);return this.segment(e,r,t)};var oe=u.query;return u.query=function(e,r){if(e===!0)return n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="function"){var t=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,t);return this._parts.query=n.buildQuery(i||t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!r),this}else return e!==void 0&&typeof e!="string"?(this._parts.query=n.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!r),this):oe.call(this,e,r)},u.setQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="string"||e instanceof String)i[e]=r!==void 0?r:null;else if(typeof e=="object")for(var a in e)b.call(e,a)&&(i[a]=e[a]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.addQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.addQuery(i,e,r===void 0?null:r),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.removeQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.removeQuery(i,e,r),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(t=r),this.build(!t),this},u.hasQuery=function(e,r,t){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.hasQuery(i,e,r,t)},u.setSearch=u.setQuery,u.addSearch=u.addQuery,u.removeSearch=u.removeQuery,u.hasSearch=u.hasQuery,u.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},u.normalizeProtocol=function(e){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},u.normalizeHostname=function(e){return this._parts.hostname&&(this.is("IDN")&&g?this._parts.hostname=g.toASCII(this._parts.hostname):this.is("IPv6")&&l&&(this._parts.hostname=l.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!e)),this},u.normalizePort=function(e){return typeof this._parts.protocol=="string"&&this._parts.port===n.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},u.normalizePath=function(e){var r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=n.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path==="/")return this;r=n.recodePath(r);var t,i="",a,s;for(r.charAt(0)!=="/"&&(t=!0,r="/"+r),(r.slice(-3)==="/.."||r.slice(-2)==="/.")&&(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(i=r.substring(1).match(/^(\.\.\/)+/)||"",i&&(i=i[0]));a=r.search(/\/\.\.(\/|$)/),a!==-1;){if(a===0){r=r.substring(3);continue}s=r.substring(0,a).lastIndexOf("/"),s===-1&&(s=a),r=r.substring(0,s)+r.substring(a+3)}return t&&this.is("relative")&&(r=i+r.substring(1)),this._parts.path=r,this.build(!e),this},u.normalizePathname=u.normalizePath,u.normalizeQuery=function(e){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(n.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},u.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},u.normalizeSearch=u.normalizeQuery,u.normalizeHash=u.normalizeFragment,u.iso8859=function(){var e=n.encode,r=n.decode;n.encode=escape,n.decode=decodeURIComponent;try{this.normalize()}finally{n.encode=e,n.decode=r}return this},u.unicode=function(){var e=n.encode,r=n.decode;n.encode=L,n.decode=unescape;try{this.normalize()}finally{n.encode=e,n.decode=r}return this},u.readable=function(){var e=this.clone();e.username("").password("").normalize();var r="";if(e._parts.protocol&&(r+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&g?(r+=g.toUnicode(e._parts.hostname),e._parts.port&&(r+=":"+e._parts.port)):r+=e.host()),e._parts.hostname&&e._parts.path&&e._parts.path.charAt(0)!=="/"&&(r+="/"),r+=e.path(!0),e._parts.query){for(var t="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var o=(a[i]||"").split("=");t+="&"+n.decodeQuery(o[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),o[1]!==void 0&&(t+="="+n.decodeQuery(o[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+t.substring(1)}return r+=n.decodeQuery(e.hash(),!0),r},u.absoluteTo=function(e){var r=this.clone(),t=["protocol","username","password","hostname","port"],i,a,s;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof n||(e=new n(e)),r._parts.protocol||(r._parts.protocol=e._parts.protocol,this._parts.hostname))return r;for(a=0;s=t[a];a++)r._parts[s]=e._parts[s];return r._parts.path?(r._parts.path.substring(-2)===".."&&(r._parts.path+="/"),r.path().charAt(0)!=="/"&&(i=e.directory(),i=i||(e.path().indexOf("/")===0?"/":""),r._parts.path=(i?i+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build(),r},u.relativeTo=function(e){var r=this.clone().normalize(),t,i,a,s,o;if(r._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new n(e).normalize(),t=r._parts,i=e._parts,s=r.path(),o=e.path(),s.charAt(0)!=="/")throw new Error("URI is already relative");if(o.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===i.protocol&&(t.protocol=null),t.username!==i.username||t.password!==i.password||t.protocol!==null||t.username!==null||t.password!==null)return r.build();if(t.hostname===i.hostname&&t.port===i.port)t.hostname=null,t.port=null;else return r.build();if(s===o)return t.path="",r.build();if(a=n.commonPath(s,o),!a)return r.build();var c=i.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(a.length)||"./",r.build()},u.equals=function(e){var r=this.clone(),t=new n(e),i={},a={},s={},o,c,h;if(r.normalize(),t.normalize(),r.toString()===t.toString())return!0;if(o=r.query(),c=t.query(),r.query(""),t.query(""),r.toString()!==t.toString()||o.length!==c.length)return!1;i=n.parseQuery(o,this._parts.escapeQuerySpace),a=n.parseQuery(c,this._parts.escapeQuerySpace);for(h in i)if(b.call(i,h)){if(y(i[h])){if(!C(i[h],a[h]))return!1}else if(i[h]!==a[h])return!1;s[h]=!0}for(h in a)if(b.call(a,h)&&!s[h])return!1;return!0},u.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},u.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},u.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},n})});var ge=ke(pe());var Ie=(f=>(f.default="default",f.SecondParty="SecondParty",f.ThirdParty="ThirdParty",f))(Ie||{}),x=class g{constructor(){this.valid=!1}static get instance(){return this._instance||(this._instance=new g),this._instance}_waitForEnvReady(){return w(this,null,function*(){return new Promise((l,m)=>{var f;try{this.valid=typeof((f=window.flutter_inappwebview)==null?void 0:f.callHandler)=="function",this.valid&&l(!0);let p=setTimeout(()=>{this.valid=!1,l(!1)},1e4);window.addEventListener("flutterInAppWebViewPlatformReady",()=>{this.valid=!0,clearTimeout(p),l(!0)})}catch(p){l(!1)}})})}callHandler(f){return w(this,arguments,function*(l,m={}){var p;if(!this.valid){if(((p=navigator.userAgent)==null?void 0:p.indexOf("OtterGamePlatform"))<0){console.warn("Not in Otter Game Platform App");return}let n=yield this._waitForEnvReady();console.log("bridgeInit",n)}return yield window.flutter_inappwebview.callHandler(l,m)})}},I=class I{constructor(l="default",m="default"){this._errorHandlerInited=!1;this._gameType=l,this._gameName=m,this._initErrorHandler()}_initErrorHandler(){if(!this._errorHandlerInited)try{window.addEventListener("unhandledrejection",l=>{var p;let f={message:JSON.stringify((p=l.reason)!=null?p:{})};this.reportFirebase({eventName:"js_promise_rejection",parameters:f})}),window.addEventListener("error",l=>{let{message:m,filename:f,lineno:p,colno:n,error:d}=l,u=d==null?void 0:d.stack,b={message:m,filename:f,lineno:p,colno:n,stack:u};this.reportFirebase({eventName:"js_error_log",parameters:b})}),this._errorHandlerInited=!0}catch(l){}}init(){return w(this,null,function*(){try{let l=yield x.instance.callHandler(I.HANDLER_ENUM.getSid);return this._sid=l,{clientAvailable:!0}}catch(l){return{clientAvailable:!1}}})}env(){return w(this,null,function*(){return this._env=yield x.instance.callHandler(I.HANDLER_ENUM.env),this._env})}reportFirebase(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.reportFirebase,l)})}getUserProperty(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.getUserProperty,{})})}reportUserLog(l){return w(this,null,function*(){let m=0;return this._env?m=this._env.gameId:m=(yield this.env()).gameId,yield x.instance.callHandler(I.HANDLER_ENUM.reportUserLog,Object.assign(l,{otterGameId:m}))})}reportTrailLog(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.reportTrailLog,l)})}nativeBack(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.nativeBack)})}getAppCheckToken(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.getPlayIntegrity)})}openUrl(f){return w(this,arguments,function*(l,m={}){let p=(0,ge.default)(l).query(m);return yield x.instance.callHandler(I.HANDLER_ENUM.openUrl,{url:p.toString()})})}exchangeGift(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.exchangeGift,l)})}showInvitePanel(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.showInvitePanel,{})})}openAppPage(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.openAppPage,{url:l})})}setDebugSid(l){return w(this,null,function*(){this._sid=l})}getSid(){return w(this,null,function*(){return this._sid})}vibrate(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.vibrate)})}bizRequest(){return w(this,arguments,function*(l={}){return yield x.instance.callHandler(I.HANDLER_ENUM.bizRequest,l)})}callExchangePanel(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.callExchangePanel,l)})}checkAdStatus(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.checkAdStatus,{})})}showAd(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.showAd,{})})}copyToClipboard(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.copyToClipboard,{copyText:l})})}shareUrl(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.share,{url:l})})}showRewardDialog(l){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.showRewardDialog,l)})}abortSignIn(){return w(this,null,function*(){return yield x.instance.callHandler(I.HANDLER_ENUM.abortSignIn)})}};I.HANDLER_ENUM={nativeBack:"nativeBack",getSid:"getSid",bizRequest:"bizRequest",callExchangePanel:"callExchangePanel",openUrl:"openUrl",share:"share",vibrate:"vibrate",checkAdStatus:"checkAdStatus",showAd:"showAd",openAppPage:"openAppPage",reportFirebase:"reportFirebase",reportUserLog:"reportUserLog",reportTrailLog:"reportTrailLog",env:"env",showRewardDialog:"showRewardDialog",getUserProperty:"getUserProperty",copyToClipboard:"copyToClipboard",abortSignIn:"abortSignIn",getPlayIntegrity:"getPlayIntegrity",exchangeGift:"exchangeGift",showInvitePanel:"showInvitePanel"};var ie=I;window.BridgeHandler=ie;var Pe=ie;})();
/*! Bundled license information:

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

"use strict";var E=Object.create;var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var I=(s,e)=>{for(var a in e)u(s,a,{get:e[a],enumerable:!0})},m=(s,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of v(e))!f.call(s,n)&&n!==a&&u(s,n,{get:()=>e[n],enumerable:!(l=h(e,n))||l.enumerable});return s};var H=(s,e,a)=>(a=s!=null?E(N(s)):{},m(e||!s||!s.__esModule?u(a,"default",{value:s,enumerable:!0}):a,s)),P=s=>m(u({},"__esModule",{value:!0}),s);var r=(s,e,a)=>new Promise((l,n)=>{var c=o=>{try{g(a.next(o))}catch(y){n(y)}},d=o=>{try{g(a.throw(o))}catch(y){n(y)}},g=o=>o.done?l(o.value):Promise.resolve(o.value).then(c,d);g((a=a.apply(s,e)).next())});var A={};I(A,{GameType:()=>b,default:()=>R});module.exports=P(A);var w=H(require("urijs"));var b=(l=>(l.default="default",l.SecondParty="SecondParty",l.ThirdParty="ThirdParty",l))(b||{}),i=class s{constructor(){this.valid=!1}static get instance(){return this._instance||(this._instance=new s),this._instance}_waitForEnvReady(){return r(this,null,function*(){return new Promise((e,a)=>{var l;try{this.valid=typeof((l=window.flutter_inappwebview)==null?void 0:l.callHandler)=="function",this.valid&&e(!0);let n=setTimeout(()=>{this.valid=!1,e(!1)},1e4);window.addEventListener("flutterInAppWebViewPlatformReady",()=>{this.valid=!0,clearTimeout(n),e(!0)})}catch(n){e(!1)}})})}callHandler(l){return r(this,arguments,function*(e,a={}){var n;if(!this.valid){if(((n=navigator.userAgent)==null?void 0:n.indexOf("OtterGamePlatform"))<0){console.warn("Not in Otter Game Platform App");return}let c=yield this._waitForEnvReady();console.log("bridgeInit",c)}return yield window.flutter_inappwebview.callHandler(e,a)})}},t=class t{constructor(e="default",a="default"){this._errorHandlerInited=!1;this._gameType=e,this._gameName=a,this._initErrorHandler()}_initErrorHandler(){if(!this._errorHandlerInited)try{window.addEventListener("unhandledrejection",e=>{var n;let l={message:JSON.stringify((n=e.reason)!=null?n:{})};this.reportFirebase({eventName:"js_promise_rejection",parameters:l})}),window.addEventListener("error",e=>{let{message:a,filename:l,lineno:n,colno:c,error:d}=e,g=d==null?void 0:d.stack,o={message:a,filename:l,lineno:n,colno:c,stack:g};this.reportFirebase({eventName:"js_error_log",parameters:o})}),this._errorHandlerInited=!0}catch(e){}}init(){return r(this,null,function*(){try{let e=yield i.instance.callHandler(t.HANDLER_ENUM.getSid);return this._sid=e,{clientAvailable:!0}}catch(e){return{clientAvailable:!1}}})}env(){return r(this,null,function*(){return this._env=yield i.instance.callHandler(t.HANDLER_ENUM.env),this._env})}reportFirebase(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.reportFirebase,e)})}getUserProperty(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.getUserProperty,{})})}reportUserLog(e){return r(this,null,function*(){let a=0;return this._env?a=this._env.gameId:a=(yield this.env()).gameId,yield i.instance.callHandler(t.HANDLER_ENUM.reportUserLog,Object.assign(e,{otterGameId:a}))})}reportTrailLog(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.reportTrailLog,e)})}nativeBack(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.nativeBack)})}getAppCheckToken(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.getPlayIntegrity)})}openUrl(l){return r(this,arguments,function*(e,a={}){let n=(0,w.default)(e).query(a);return yield i.instance.callHandler(t.HANDLER_ENUM.openUrl,{url:n.toString()})})}openAppPage(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.openAppPage,{url:e})})}setDebugSid(e){return r(this,null,function*(){this._sid=e})}getSid(){return r(this,null,function*(){return this._sid})}vibrate(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.vibrate)})}bizRequest(){return r(this,arguments,function*(e={}){return yield i.instance.callHandler(t.HANDLER_ENUM.bizRequest,e)})}callExchangePanel(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.callExchangePanel,e)})}checkAdStatus(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.checkAdStatus,{})})}showAd(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.showAd,{})})}copyToClipboard(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.copyToClipboard,{copyText:e})})}shareUrl(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.share,{url:e})})}showRewardDialog(e){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.showRewardDialog,e)})}abortSignIn(){return r(this,null,function*(){return yield i.instance.callHandler(t.HANDLER_ENUM.abortSignIn)})}};t.HANDLER_ENUM={nativeBack:"nativeBack",getSid:"getSid",bizRequest:"bizRequest",callExchangePanel:"callExchangePanel",openUrl:"openUrl",share:"share",vibrate:"vibrate",checkAdStatus:"checkAdStatus",showAd:"showAd",openAppPage:"openAppPage",reportFirebase:"reportFirebase",reportUserLog:"reportUserLog",reportTrailLog:"reportTrailLog",env:"env",showRewardDialog:"showRewardDialog",getUserProperty:"getUserProperty",copyToClipboard:"copyToClipboard",abortSignIn:"abortSignIn",getPlayIntegrity:"getPlayIntegrity"};var p=t;window.BridgeHandler=p;var R=p;0&&(module.exports={GameType});
"use strict";var E=Object.create;var u=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var N=(s,e)=>{for(var a in e)u(s,a,{get:e[a],enumerable:!0})},y=(s,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of b(e))!v.call(s,i)&&i!==a&&u(s,i,{get:()=>e[i],enumerable:!(l=I(e,i))||l.enumerable});return s};var H=(s,e,a)=>(a=s!=null?E(f(s)):{},y(e||!s||!s.__esModule?u(a,"default",{value:s,enumerable:!0}):a,s)),P=s=>y(u({},"__esModule",{value:!0}),s);var r=(s,e,a)=>new Promise((l,i)=>{var c=o=>{try{g(a.next(o))}catch(m){i(m)}},d=o=>{try{g(a.throw(o))}catch(m){i(m)}},g=o=>o.done?l(o.value):Promise.resolve(o.value).then(c,d);g((a=a.apply(s,e)).next())});var A={};N(A,{GameType:()=>h,default:()=>R});module.exports=P(A);var w=H(require("urijs"));var h=(l=>(l.default="default",l.SecondParty="SecondParty",l.ThirdParty="ThirdParty",l))(h||{}),n=class s{constructor(){this.valid=!1}static get instance(){return this._instance||(this._instance=new s),this._instance}_waitForEnvReady(){return r(this,null,function*(){return new Promise((e,a)=>{var l;try{this.valid=typeof((l=window.flutter_inappwebview)==null?void 0:l.callHandler)=="function",this.valid&&e(!0);let i=setTimeout(()=>{this.valid=!1,e(!1)},1e4);window.addEventListener("flutterInAppWebViewPlatformReady",()=>{this.valid=!0,clearTimeout(i),e(!0)})}catch(i){e(!1)}})})}callHandler(l){return r(this,arguments,function*(e,a={}){var i;if(!this.valid){if(((i=navigator.userAgent)==null?void 0:i.indexOf("OtterGamePlatform"))<0){console.warn("Not in Otter Game Platform App");return}let c=yield this._waitForEnvReady();console.log("bridgeInit",c)}return yield window.flutter_inappwebview.callHandler(e,a)})}},t=class t{constructor(e="default",a="default"){this._errorHandlerInited=!1;this._gameType=e,this._gameName=a,this._initErrorHandler()}_initErrorHandler(){if(!this._errorHandlerInited)try{window.addEventListener("unhandledrejection",e=>{var i;let l={message:JSON.stringify((i=e.reason)!=null?i:{})};this.reportFirebase({eventName:"js_promise_rejection",parameters:l})}),window.addEventListener("error",e=>{let{message:a,filename:l,lineno:i,colno:c,error:d}=e,g=d==null?void 0:d.stack,o={message:a,filename:l,lineno:i,colno:c,stack:g};this.reportFirebase({eventName:"js_error_log",parameters:o})}),this._errorHandlerInited=!0}catch(e){}}init(){return r(this,null,function*(){try{let e=yield n.instance.callHandler(t.HANDLER_ENUM.getSid);return this._sid=e,{clientAvailable:!0}}catch(e){return{clientAvailable:!1}}})}env(){return r(this,null,function*(){return this._env=yield n.instance.callHandler(t.HANDLER_ENUM.env),this._env})}reportFirebase(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.reportFirebase,e)})}getUserProperty(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.getUserProperty,{})})}reportUserLog(e){return r(this,null,function*(){let a=0;return this._env?a=this._env.gameId:a=(yield this.env()).gameId,yield n.instance.callHandler(t.HANDLER_ENUM.reportUserLog,Object.assign(e,{otterGameId:a}))})}reportTrailLog(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.reportTrailLog,e)})}nativeBack(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.nativeBack)})}getAppCheckToken(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.getPlayIntegrity)})}openUrl(l){return r(this,arguments,function*(e,a={}){let i=(0,w.default)(e).query(a);return yield n.instance.callHandler(t.HANDLER_ENUM.openUrl,{url:i.toString()})})}exchangeGift(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.exchangeGift,e)})}showInvitePanel(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.showInvitePanel,{})})}openAppPage(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.openAppPage,{url:e})})}setDebugSid(e){return r(this,null,function*(){this._sid=e})}getSid(){return r(this,null,function*(){return this._sid})}vibrate(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.vibrate)})}bizRequest(){return r(this,arguments,function*(e={}){return yield n.instance.callHandler(t.HANDLER_ENUM.bizRequest,e)})}callExchangePanel(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.callExchangePanel,e)})}checkAdStatus(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.checkAdStatus,{})})}showAd(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.showAd,{})})}copyToClipboard(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.copyToClipboard,{copyText:e})})}shareUrl(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.share,{url:e})})}showRewardDialog(e){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.showRewardDialog,e)})}abortSignIn(){return r(this,null,function*(){return yield n.instance.callHandler(t.HANDLER_ENUM.abortSignIn)})}};t.HANDLER_ENUM={nativeBack:"nativeBack",getSid:"getSid",bizRequest:"bizRequest",callExchangePanel:"callExchangePanel",openUrl:"openUrl",share:"share",vibrate:"vibrate",checkAdStatus:"checkAdStatus",showAd:"showAd",openAppPage:"openAppPage",reportFirebase:"reportFirebase",reportUserLog:"reportUserLog",reportTrailLog:"reportTrailLog",env:"env",showRewardDialog:"showRewardDialog",getUserProperty:"getUserProperty",copyToClipboard:"copyToClipboard",abortSignIn:"abortSignIn",getPlayIntegrity:"getPlayIntegrity",exchangeGift:"exchangeGift",showInvitePanel:"showInvitePanel"};var p=t;window.BridgeHandler=p;var R=p;0&&(module.exports={GameType});
//# sourceMappingURL=index.js.map
{
"name": "otter-bridge",
"version": "0.1.4",
"version": "0.1.5",
"description": "Otter game web jsbridge",

@@ -5,0 +5,0 @@ "files": [

@@ -82,2 +82,4 @@ import URI from "urijs";

getPlayIntegrity: "getPlayIntegrity",
exchangeGift: "exchangeGift",
showInvitePanel: "showInvitePanel",
};

@@ -212,2 +214,16 @@

async exchangeGift(params: IExchangeGiftParams) {
return await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.exchangeGift,
params,
);
}
async showInvitePanel() {
return await OtterBridge.instance.callHandler(
BridgeHandler.HANDLER_ENUM.showInvitePanel,
{},
);
}
async openAppPage(url: string) {

@@ -332,2 +348,8 @@ return await OtterBridge.instance.callHandler(

interface IExchangeGiftParams {
activityId: number;
tradeOrderId: number;
itemId: number;
}
interface IRewardInfo {

@@ -334,0 +356,0 @@ taskId: number;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet