UNPKG

broadcast-message

Version:

基于postMessage+BroadcastChannel+localStorage+互信域名的前端页面数据通信解决方案

2 lines (1 loc) 23.4 kB
!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,a=Function.prototype.call,f=c?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,h=p&&!l.call({1:2},1);s.f=h?function(t){var r=p(this,t);return!!r&&r.enumerable}:l;var v,y,d=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},g=u,m=Function.prototype,b=m.call,w=g&&m.bind.bind(b,b),O=g?w:function(t){return function(){return b.apply(t,arguments)}},S=O,j=S({}.toString),E=S("".slice),P=function(t){return E(j(t),8,-1)},x=o,T=P,_=Object,I=O("".split),C=x((function(){return!_("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?I(t,""):_(t)}:_,A=function(t){return null==t},L=A,M=TypeError,k=function(t){if(L(t))throw M("Can't call method on "+t);return t},R=C,D=k,F=function(t){return R(D(t))},W="object"==typeof document&&document.all,z={all:W,IS_HTMLDDA:void 0===W&&void 0!==W},N=z.all,U=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===N}:function(t){return"function"==typeof t},q=U,H=z.all,G=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:q(t)||t===H}:function(t){return"object"==typeof t?null!==t:q(t)},B=e,J=U,X=function(t){return J(t)?t:void 0},$=function(t,r){return arguments.length<2?X(B[t]):B[t]&&B[t][r]},K=O({}.isPrototypeOf),V=e,Y=$("navigator","userAgent")||"",Q=V.process,Z=V.Deno,tt=Q&&Q.versions||Z&&Z.version,rt=tt&&tt.v8;rt&&(y=(v=rt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!y&&Y&&(!(v=Y.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Y.match(/Chrome\/(\d+)/))&&(y=+v[1]);var et=y,nt=o,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=$,ct=U,at=K,ft=Object,st=it?function(t){return"symbol"==typeof t}:function(t){var r=ut("Symbol");return ct(r)&&at(r.prototype,ft(t))},lt=String,pt=U,ht=function(t){try{return lt(t)}catch(r){return"Object"}},vt=TypeError,yt=function(t){if(pt(t))return t;throw vt(ht(t)+" is not a function")},dt=A,gt=f,mt=U,bt=G,wt=TypeError,Ot={exports:{}},St=e,jt=Object.defineProperty,Et=function(t,r){try{jt(St,t,{value:r,configurable:!0,writable:!0})}catch(e){St[t]=r}return r},Pt=Et,xt="__core-js_shared__",Tt=e[xt]||Pt(xt,{}),_t=Tt;(Ot.exports=function(t,r){return _t[t]||(_t[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var It=k,Ct=Object,At=function(t){return Ct(It(t))},Lt=At,Mt=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,r){return Mt(Lt(t),r)},Rt=O,Dt=0,Ft=Math.random(),Wt=Rt(1..toString),zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Dt+Ft,36)},Nt=e,Ut=Ot.exports,qt=kt,Ht=zt,Gt=ot,Bt=it,Jt=Ut("wks"),Xt=Nt.Symbol,$t=Xt&&Xt.for,Kt=Bt?Xt:Xt&&Xt.withoutSetter||Ht,Vt=function(t){if(!qt(Jt,t)||!Gt&&"string"!=typeof Jt[t]){var r="Symbol."+t;Gt&&qt(Xt,t)?Jt[t]=Xt[t]:Jt[t]=Bt&&$t?$t(r):Kt(r)}return Jt[t]},Yt=f,Qt=G,Zt=st,tr=function(t,r){var e=t[r];return dt(e)?void 0:yt(e)},rr=function(t,r){var e,n;if("string"===r&&mt(e=t.toString)&&!bt(n=gt(e,t)))return n;if(mt(e=t.valueOf)&&!bt(n=gt(e,t)))return n;if("string"!==r&&mt(e=t.toString)&&!bt(n=gt(e,t)))return n;throw wt("Can't convert object to primitive value")},er=TypeError,nr=Vt("toPrimitive"),or=function(t,r){if(!Qt(t)||Zt(t))return t;var e,n=tr(t,nr);if(n){if(void 0===r&&(r="default"),e=Yt(n,t,r),!Qt(e)||Zt(e))return e;throw er("Can't convert object to primitive value")}return void 0===r&&(r="number"),rr(t,r)},ir=st,ur=function(t){var r=or(t,"string");return ir(r)?r:r+""},cr=G,ar=e.document,fr=cr(ar)&&cr(ar.createElement),sr=function(t){return fr?ar.createElement(t):{}},lr=sr,pr=!i&&!o((function(){return 7!=Object.defineProperty(lr("div"),"a",{get:function(){return 7}}).a})),hr=i,vr=f,yr=s,dr=d,gr=F,mr=ur,br=kt,wr=pr,Or=Object.getOwnPropertyDescriptor;n.f=hr?Or:function(t,r){if(t=gr(t),r=mr(r),wr)try{return Or(t,r)}catch(e){}if(br(t,r))return dr(!vr(yr.f,t,r),t[r])};var Sr={},jr=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Er=G,Pr=String,xr=TypeError,Tr=function(t){if(Er(t))return t;throw xr(Pr(t)+" is not an object")},_r=i,Ir=pr,Cr=jr,Ar=Tr,Lr=ur,Mr=TypeError,kr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Dr="enumerable",Fr="configurable",Wr="writable";Sr.f=_r?Cr?function(t,r,e){if(Ar(t),r=Lr(r),Ar(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Wr in e&&!e.writable){var n=Rr(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:Fr in e?e.configurable:n.configurable,enumerable:Dr in e?e.enumerable:n.enumerable,writable:!1})}return kr(t,r,e)}:kr:function(t,r,e){if(Ar(t),r=Lr(r),Ar(e),Ir)try{return kr(t,r,e)}catch(n){}if("get"in e||"set"in e)throw Mr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var zr=Sr,Nr=d,Ur=i?function(t,r,e){return zr.f(t,r,Nr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Hr=i,Gr=kt,Br=Function.prototype,Jr=Hr&&Object.getOwnPropertyDescriptor,Xr=Gr(Br,"name"),$r={EXISTS:Xr,PROPER:Xr&&"something"===function(){}.name,CONFIGURABLE:Xr&&(!Hr||Hr&&Jr(Br,"name").configurable)},Kr=U,Vr=Tt,Yr=O(Function.toString);Kr(Vr.inspectSource)||(Vr.inspectSource=function(t){return Yr(t)});var Qr,Zr,te,re=Vr.inspectSource,ee=U,ne=e.WeakMap,oe=ee(ne)&&/native code/.test(String(ne)),ie=Ot.exports,ue=zt,ce=ie("keys"),ae=function(t){return ce[t]||(ce[t]=ue(t))},fe={},se=oe,le=e,pe=G,he=Ur,ve=kt,ye=Tt,de=ae,ge=fe,me="Object already initialized",be=le.TypeError,we=le.WeakMap;if(se||ye.state){var Oe=ye.state||(ye.state=new we);Oe.get=Oe.get,Oe.has=Oe.has,Oe.set=Oe.set,Qr=function(t,r){if(Oe.has(t))throw be(me);return r.facade=t,Oe.set(t,r),r},Zr=function(t){return Oe.get(t)||{}},te=function(t){return Oe.has(t)}}else{var Se=de("state");ge[Se]=!0,Qr=function(t,r){if(ve(t,Se))throw be(me);return r.facade=t,he(t,Se,r),r},Zr=function(t){return ve(t,Se)?t[Se]:{}},te=function(t){return ve(t,Se)}}var je={set:Qr,get:Zr,has:te,enforce:function(t){return te(t)?Zr(t):Qr(t,{})},getterFor:function(t){return function(r){var e;if(!pe(r)||(e=Zr(r)).type!==t)throw be("Incompatible receiver, "+t+" required");return e}}},Ee=o,Pe=U,xe=kt,Te=i,_e=$r.CONFIGURABLE,Ie=re,Ce=je.enforce,Ae=je.get,Le=Object.defineProperty,Me=Te&&!Ee((function(){return 8!==Le((function(){}),"length",{value:8}).length})),ke=String(String).split("String"),Re=qr.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!xe(t,"name")||_e&&t.name!==r)&&(Te?Le(t,"name",{value:r,configurable:!0}):t.name=r),Me&&e&&xe(e,"arity")&&t.length!==e.arity&&Le(t,"length",{value:e.arity});try{e&&xe(e,"constructor")&&e.constructor?Te&&Le(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Ce(t);return xe(n,"source")||(n.source=ke.join("string"==typeof r?r:"")),t};Function.prototype.toString=Re((function(){return Pe(this)&&Ae(this).source||Ie(this)}),"toString");var De=U,Fe=Sr,We=qr.exports,ze=Et,Ne={},Ue=Math.ceil,qe=Math.floor,He=Math.trunc||function(t){var r=+t;return(r>0?qe:Ue)(r)},Ge=function(t){var r=+t;return r!=r||0===r?0:He(r)},Be=Ge,Je=Math.max,Xe=Math.min,$e=Ge,Ke=Math.min,Ve=function(t){return t>0?Ke($e(t),9007199254740991):0},Ye=function(t){return Ve(t.length)},Qe=F,Ze=function(t,r){var e=Be(t);return e<0?Je(e+r,0):Xe(e,r)},tn=Ye,rn=function(t){return function(r,e,n){var o,i=Qe(r),u=tn(i),c=Ze(n,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},en={includes:rn(!0),indexOf:rn(!1)},nn=kt,on=F,un=en.indexOf,cn=fe,an=O([].push),fn=function(t,r){var e,n=on(t),o=0,i=[];for(e in n)!nn(cn,e)&&nn(n,e)&&an(i,e);for(;r.length>o;)nn(n,e=r[o++])&&(~un(i,e)||an(i,e));return i},sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ln=fn,pn=sn.concat("length","prototype");Ne.f=Object.getOwnPropertyNames||function(t){return ln(t,pn)};var hn={};hn.f=Object.getOwnPropertySymbols;var vn=$,yn=Ne,dn=hn,gn=Tr,mn=O([].concat),bn=vn("Reflect","ownKeys")||function(t){var r=yn.f(gn(t)),e=dn.f;return e?mn(r,e(t)):r},wn=kt,On=bn,Sn=n,jn=Sr,En=function(t,r,e){for(var n=On(r),o=jn.f,i=Sn.f,u=0;u<n.length;u++){var c=n[u];wn(t,c)||e&&wn(e,c)||o(t,c,i(r,c))}},Pn=o,xn=U,Tn=/#|\.prototype\./,_n=function(t,r){var e=Cn[In(t)];return e==Ln||e!=An&&(xn(r)?Pn(r):!!r)},In=_n.normalize=function(t){return String(t).replace(Tn,".").toLowerCase()},Cn=_n.data={},An=_n.NATIVE="N",Ln=_n.POLYFILL="P",Mn=_n,kn=e,Rn=n.f,Dn=Ur,Fn=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(De(e)&&We(e,i,n),n.global)o?t[r]=e:ze(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:Fe.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Wn=Et,zn=En,Nn=Mn,Un=function(t,r){var e,n,o,i,u,c=t.target,a=t.global,f=t.stat;if(e=a?kn:f?kn[c]||Wn(c,{}):(kn[c]||{}).prototype)for(n in r){if(i=r[n],o=t.dontCallGetSet?(u=Rn(e,n))&&u.value:e[n],!Nn(a?n:c+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;zn(i,o)}(t.sham||o&&o.sham)&&Dn(i,"sham",!0),Fn(e,n,i,t)}},qn=P,Hn=i,Gn=Array.isArray||function(t){return"Array"==qn(t)},Bn=TypeError,Jn=Object.getOwnPropertyDescriptor,Xn=Hn&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),$n=TypeError,Kn=Un,Vn=At,Yn=Ye,Qn=Xn?function(t,r){if(Gn(t)&&!Jn(t,"length").writable)throw Bn("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},Zn=function(t){if(t>9007199254740991)throw $n("Maximum allowed index exceeded");return t},to=o((function(){return 4294967297!==[].push.call({length:4294967296},1)})),ro=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();Kn({target:"Array",proto:!0,arity:1,forced:to||ro},{push:function(t){var r=Vn(this),e=Yn(r),n=arguments.length;Zn(e+n);for(var o=0;o<n;o++)r[e]=arguments[o],e++;return Qn(r,e),e}});var eo=u,no=Function.prototype,oo=no.apply,io=no.call,uo="object"==typeof Reflect&&Reflect.apply||(eo?io.bind(oo):function(){return io.apply(oo,arguments)}),co=U,ao=String,fo=TypeError,so=O,lo=Tr,po=function(t){if("object"==typeof t||co(t))return t;throw fo("Can't set "+ao(t)+" as a prototype")},ho=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=so(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(n){}return function(e,n){return lo(e),po(n),r?t(e,n):e.__proto__=n,e}}():void 0),vo=Sr.f,yo=U,go=G,mo=ho,bo={};bo[Vt("toStringTag")]="z";var wo="[object z]"===String(bo),Oo=U,So=P,jo=Vt("toStringTag"),Eo=Object,Po="Arguments"==So(function(){return arguments}()),xo=wo?So:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(e){}}(r=Eo(t),jo))?e:Po?So(r):"Object"==(n=So(r))&&Oo(r.callee)?"Arguments":n},To=String,_o=function(t){if("Symbol"===xo(t))throw TypeError("Cannot convert a Symbol value to a string");return To(t)},Io=G,Co=Ur,Ao=Error,Lo=O("".replace),Mo=String(Ao("zxcasd").stack),ko=/\n\s*at [^:]*:[^\n]*/,Ro=ko.test(Mo),Do=d,Fo=!o((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Do(1,7)),7!==t.stack)})),Wo=$,zo=kt,No=Ur,Uo=K,qo=ho,Ho=En,Go=function(t,r,e){e in t||vo(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})},Bo=function(t,r,e){var n,o;return mo&&yo(n=r.constructor)&&n!==e&&go(o=n.prototype)&&o!==e.prototype&&mo(t,o),t},Jo=function(t,r){return void 0===t?arguments.length<2?"":r:_o(t)},Xo=function(t,r){Io(r)&&"cause"in r&&Co(t,"cause",r.cause)},$o=function(t,r){if(Ro&&"string"==typeof t&&!Ao.prepareStackTrace)for(;r--;)t=Lo(t,ko,"");return t},Ko=Fo,Vo=i,Yo=Un,Qo=uo,Zo=function(t,r,e,n){var o="stackTraceLimit",i=n?2:1,u=t.split("."),c=u[u.length-1],a=Wo.apply(null,u);if(a){var f=a.prototype;if(zo(f,"cause")&&delete f.cause,!e)return a;var s=Wo("Error"),l=r((function(t,r){var e=Jo(n?r:t,void 0),o=n?new a(t):new a;return void 0!==e&&No(o,"message",e),Ko&&No(o,"stack",$o(o.stack,2)),this&&Uo(f,this)&&Bo(o,this,l),arguments.length>i&&Xo(o,arguments[i]),o}));l.prototype=f,"Error"!==c?qo?qo(l,s):Ho(l,s,{name:!0}):Vo&&o in a&&(Go(l,a,o),Go(l,a,"prepareStackTrace")),Ho(l,a);try{f.name!==c&&No(f,"name",c),f.constructor=l}catch(p){}return l}},ti="WebAssembly",ri=e.WebAssembly,ei=7!==Error("e",{cause:7}).cause,ni=function(t,r){var e={};e[t]=Zo(t,r,ei),Yo({global:!0,constructor:!0,arity:1,forced:ei},e)},oi=function(t,r){if(ri&&ri[t]){var e={};e[t]=Zo("WebAssembly."+t,r,ei),Yo({target:ti,stat:!0,constructor:!0,arity:1,forced:ei},e)}};ni("Error",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("EvalError",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("RangeError",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("ReferenceError",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("SyntaxError",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("TypeError",(function(t){return function(r){return Qo(t,this,arguments)}})),ni("URIError",(function(t){return function(r){return Qo(t,this,arguments)}})),oi("CompileError",(function(t){return function(r){return Qo(t,this,arguments)}})),oi("LinkError",(function(t){return function(r){return Qo(t,this,arguments)}})),oi("RuntimeError",(function(t){return function(r){return Qo(t,this,arguments)}}));var ii={},ui=fn,ci=sn,ai=Object.keys||function(t){return ui(t,ci)},fi=i,si=jr,li=Sr,pi=Tr,hi=F,vi=ai;ii.f=fi&&!si?Object.defineProperties:function(t,r){pi(t);for(var e,n=hi(r),o=vi(r),i=o.length,u=0;i>u;)li.f(t,e=o[u++],n[e]);return t};var yi,di=$("document","documentElement"),gi=Tr,mi=ii,bi=sn,wi=fe,Oi=di,Si=sr,ji=ae("IE_PROTO"),Ei=function(){},Pi=function(t){return"<script>"+t+"</"+"script>"},xi=function(t){t.write(Pi("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ti=function(){try{yi=new ActiveXObject("htmlfile")}catch(n){}var t,r;Ti="undefined"!=typeof document?document.domain&&yi?xi(yi):((r=Si("iframe")).style.display="none",Oi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Pi("document.F=Object")),t.close(),t.F):xi(yi);for(var e=bi.length;e--;)delete Ti.prototype[bi[e]];return Ti()};wi[ji]=!0;var _i=Vt,Ii=Object.create||function(t,r){var e;return null!==t?(Ei.prototype=gi(t),e=new Ei,Ei.prototype=null,e[ji]=t):e=Ti(),void 0===r?e:mi.f(e,r)},Ci=Sr.f,Ai=_i("unscopables"),Li=Array.prototype;null==Li[Ai]&&Ci(Li,Ai,{configurable:!0,value:Ii(null)});var Mi=en.includes,ki=function(t){Li[Ai][t]=!0};Un({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return Mi(this,t,arguments.length>1?arguments[1]:void 0)}}),ki("includes"),function(){function r(t,r){return(r||"")+" (SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+t+")"}function e(t,r){if(-1!==t.indexOf("\\")&&(t=t.replace(E,"/")),"/"===t[0]&&"/"===t[1])return r.slice(0,r.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){var e,n=r.slice(0,r.indexOf(":")+1);if(e="/"===r[n.length+1]?"file:"!==n?(e=r.slice(n.length+2)).slice(e.indexOf("/")+1):r.slice(8):r.slice(n.length+("/"===r[n.length])),"/"===t[0])return r.slice(0,r.length-e.length-1)+t;for(var o=e.slice(0,e.lastIndexOf("/")+1)+t,i=[],u=-1,c=0;c<o.length;c++)-1!==u?"/"===o[c]&&(i.push(o.slice(u,c+1)),u=-1):"."===o[c]?"."!==o[c+1]||"/"!==o[c+2]&&c+2!==o.length?"/"===o[c+1]||c+1===o.length?c+=1:u=c:(i.pop(),c+=2):u=c;return-1!==u&&i.push(o.slice(u)),r.slice(0,r.length-e.length)+i.join("")}}function n(t,r){return e(t,r)||(-1!==t.indexOf(":")?t:e("./"+t,r))}function o(t,r,n,o,i){for(var u in t){var c=e(u,n)||u,s=t[u];if("string"==typeof s){var l=f(o,e(s,n)||s,i);l?r[c]=l:a("W1",u,s)}}}function i(t,r,e){var i;for(i in t.imports&&o(t.imports,e.imports,r,e,null),t.scopes||{}){var u=n(i,r);o(t.scopes[i],e.scopes[u]||(e.scopes[u]={}),r,e,u)}for(i in t.depcache||{})e.depcache[n(i,r)]=t.depcache[i];for(i in t.integrity||{})e.integrity[n(i,r)]=t.integrity[i]}function u(t,r){if(r[t])return t;var e=t.length;do{var n=t.slice(0,e+1);if(n in r)return n}while(-1!==(e=t.lastIndexOf("/",e-1)))}function c(t,r){var e=u(t,r);if(e){var n=r[e];if(null===n)return;if(!(t.length>e.length&&"/"!==n[n.length-1]))return n+t.slice(e.length);a("W2",e,n)}}function a(t,e,n){console.warn(r(t,[n,e].join(", ")))}function f(t,r,e){for(var n=t.scopes,o=e&&u(e,n);o;){var i=c(r,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return c(r,t.imports)||-1!==r.indexOf(":")&&r}function s(){this[x]={}}function l(t,e,n){var o=t[x][e];if(o)return o;var i=[],u=Object.create(null);P&&Object.defineProperty(u,P,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(e,n)})).then((function(n){if(!n)throw Error(r(2,e));var c=n[1]((function(t,r){o.h=!0;var e=!1;if("string"==typeof t)t in u&&u[t]===r||(u[t]=r,e=!0);else{for(var n in t)r=t[n],n in u&&u[n]===r||(u[n]=r,e=!0);t&&t.__esModule&&(u.__esModule=t.__esModule)}if(e)for(var c=0;c<i.length;c++){var a=i[c];a&&a(u)}return r}),2===n[1].length?{import:function(r){return t.import(r,e)},meta:t.createContext(e)}:void 0);return o.e=c.execute||function(){},[n[0],c.setters||[]]}),(function(t){throw o.e=null,o.er=t,t})),a=c.then((function(r){return Promise.all(r[0].map((function(n,o){var i=r[1][o];return Promise.resolve(t.resolve(n,e)).then((function(r){var n=l(t,r,e);return Promise.resolve(n.I).then((function(){return i&&(n.i.push(i),!n.h&&n.I||i(n.n)),n}))}))}))).then((function(t){o.d=t}))}));return o=t[x][e]={id:e,i:i,n:u,I:c,L:a,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function p(t,r,e,n){if(!n[r.id])return n[r.id]=!0,Promise.resolve(r.L).then((function(){return r.p&&null!==r.p.e||(r.p=e),Promise.all(r.d.map((function(r){return p(t,r,e,n)})))})).catch((function(t){if(r.er)throw t;throw r.e=null,t}))}function h(t,r){return r.C=p(t,r,r,{}).then((function(){return v(t,r,{})})).then((function(){return r.n}))}function v(t,r,e){function n(){try{var t=i.call(_);if(t)return t=t.then((function(){r.C=r.n,r.E=null}),(function(t){throw r.er=t,r.E=null,t})),r.E=t;r.C=r.n,r.L=r.I=void 0}catch(e){throw r.er=e,e}}if(!e[r.id]){if(e[r.id]=!0,!r.e){if(r.er)throw r.er;return r.E?r.E:void 0}var o,i=r.e;return r.e=null,r.d.forEach((function(n){try{var i=v(t,n,e);i&&(o=o||[]).push(i)}catch(c){throw r.er=c,c}})),o?Promise.all(o).then(n):n()}}function y(){[].forEach.call(document.querySelectorAll("script"),(function(t){if(!t.sp)if("systemjs-module"===t.type){if(t.sp=!0,!t.src)return;System.import("import:"===t.src.slice(0,7)?t.src.slice(7):n(t.src,d)).catch((function(r){if(r.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var e=document.createEvent("Event");e.initEvent("error",!1,!1),t.dispatchEvent(e)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var e=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(e){return e.message=r("W4",t.src)+"\n"+e.message,console.warn(e),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;A=A.then((function(){return e})).then((function(e){!function(t,e,n){var o={};try{o=JSON.parse(e)}catch(c){console.warn(Error(r("W5")))}i(o,n,t)}(L,e,t.src||d)}))}}))}var d,g="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var O=document.querySelector("base[href]");O&&(d=O.href)}if(!d&&"undefined"!=typeof location){var S=(d=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==S&&(d=d.slice(0,S+1))}var j,E=/\\/g,P=g&&Symbol.toStringTag,x=g?Symbol():"@",T=s.prototype;T.import=function(t,r){var e=this;return Promise.resolve(e.prepareImport()).then((function(){return e.resolve(t,r)})).then((function(t){var r=l(e,t);return r.C||h(e,r)}))},T.createContext=function(t){var r=this;return{url:t,resolve:function(e,n){return Promise.resolve(r.resolve(e,n||t))}}},T.register=function(t,r){j=[t,r]},T.getRegister=function(){var t=j;return j=void 0,t};var _=Object.freeze(Object.create(null));w.System=new s;var I,C,A=Promise.resolve(),L={imports:{},scopes:{},depcache:{},integrity:{}},M=b;if(T.prepareImport=function(t){return(M||t)&&(y(),M=!1),A},b&&(y(),window.addEventListener("DOMContentLoaded",y)),T.addImportMap=function(t,r){i(t,r||d,L)},b){window.addEventListener("error",(function(t){R=t.filename,D=t.error}));var k=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(k+"/")&&(r.crossOrigin="anonymous");var e=L.integrity[t];return e&&(r.integrity=e),r.src=t,r};var R,D,F={},W=T.register;T.register=function(t,r){if(b&&"loading"===document.readyState&&"string"!=typeof t){var e=document.querySelectorAll("script[src]"),n=e[e.length-1];if(n){I=t;var o=this;C=setTimeout((function(){F[n.src]=[t,r],o.import(n.src)}))}}else I=void 0;return W.call(this,t,r)},T.instantiate=function(t,e){var n=F[t];if(n)return delete F[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(r(3,[t,e].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),R===t)u(D);else{var r=o.getRegister(t);r&&r[0]===I&&clearTimeout(C),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var z=T.instantiate,N=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,e){var n=this;return this.shouldFetch(t)?this.fetch(t,{credentials:"same-origin",integrity:L.integrity[t]}).then((function(o){if(!o.ok)throw Error(r(7,[o.status,o.statusText,t,e].join(", ")));var i=o.headers.get("content-type");if(!i||!N.test(i))throw Error(r(4,i));return o.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),n.getRegister(t)}))})):z.apply(this,arguments)},T.resolve=function(t,n){return f(L,e(t,n=n||d)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var U=T.instantiate;T.instantiate=function(t,r){var e=L.depcache[t];if(e)for(var n=0;n<e.length;n++)l(this,this.resolve(e[n],t),t);return U.call(this,t,r)},m&&"function"==typeof importScripts&&(T.instantiate=function(t){var r=this;return Promise.resolve().then((function(){return importScripts(t),r.getRegister(t)}))})}()}();