9 lines
42 KiB
JavaScript
9 lines
42 KiB
JavaScript
System.register([],(function(t,e){"use strict";return{execute:function(){var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var check=function(t){return t&&t.Math==Math&&t},n=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r&&r)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},o=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,a={f:c&&!i.call({1:2},1)?function propertyIsEnumerable(t){var e=c(this,t);return!!e&&e.enumerable}:i},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,classofRaw=function(t){return u.call(t).slice(8,-1)},f="".split,s=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?f.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return s(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!isObject(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},l={}.hasOwnProperty,has=function(t,e){return l.call(t,e)},p=n.document,h=isObject(p)&&isObject(p.createElement),documentCreateElement=function(t){return h?p.createElement(t):{}},y=!o&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),v=Object.getOwnPropertyDescriptor,d={f:o?v:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),y)try{return v(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!a.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},g=Object.defineProperty,m={f:o?g:function defineProperty(t,e,r){if(anObject(t),e=toPrimitive(e,!0),anObject(r),y)try{return g(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},b=o?function(t,e,r){return m.f(t,e,createPropertyDescriptor(1,r))}:function(t,e,r){return t[e]=r,t},setGlobal=function(t,e){try{b(n,t,e)}catch(r){n[t]=e}return e},w="__core-js_shared__",S=n[w]||setGlobal(w,{}),O=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return O.call(t)});var j,x,E,P=S.inspectSource,A=n.WeakMap,T="function"==typeof A&&/native code/.test(P(A)),L=createCommonjsModule((function(t){(t.exports=function(t,e){return S[t]||(S[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k=0,_=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++k+_).toString(36)},I=L("keys"),sharedKey=function(t){return I[t]||(I[t]=uid(t))},M={},C=n.WeakMap;if(T){var G=new C,N=G.get,R=G.has,D=G.set;j=function(t,e){return D.call(G,t,e),e},x=function(t){return N.call(G,t)||{}},E=function(t){return R.call(G,t)}}else{var W=sharedKey("state");M[W]=!0,j=function(t,e){return b(t,W,e),e},x=function(t){return has(t,W)?t[W]:{}},E=function(t){return has(t,W)}}var q,V={set:j,get:x,has:E,enforce:function(t){return E(t)?x(t):j(t,{})},getterFor:function(t){return function(e){var r;if(!isObject(e)||(r=x(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Y=createCommonjsModule((function(t){var e=V.get,r=V.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||has(i,"name")||b(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:b(t,e,i)):u?t[e]=i:setGlobal(e,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&e(this).source||P(this)}))})),z=n,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,e){return arguments.length<2?aFunction(z[t])||aFunction(n[t]):z[t]&&z[t][e]||n[t]&&n[t][e]},B=Math.ceil,H=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?H:B)(t)},U=Math.min,toLength=function(t){return t>0?U(toInteger(t),9007199254740991):0},J=Math.max,$=Math.min,toAbsoluteIndex=function(t,e){var r=toInteger(t);return r<0?J(r+e,0):$(r,e)},createMethod=function(t){return function(e,r,n){var o,i=toIndexedObject(e),c=toLength(i.length),a=toAbsoluteIndex(n,c);if(t&&r!=r){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},K={includes:createMethod(!0),indexOf:createMethod(!1)},Q=K.indexOf,objectKeysInternal=function(t,e){var r,n=toIndexedObject(t),o=0,i=[];for(r in n)!has(M,r)&&has(n,r)&&i.push(r);for(;e.length>o;)has(n,r=e[o++])&&(~Q(i,r)||i.push(r));return i},X=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Z=X.concat("length","prototype"),tt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,Z)}},et={f:Object.getOwnPropertySymbols},rt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=tt.f(anObject(t)),r=et.f;return r?e.concat(r(t)):e},copyConstructorProperties=function(t,e){for(var r=rt(e),n=m.f,o=d.f,i=0;i<r.length;i++){var c=r[i];has(t,c)||n(t,c,o(e,c))}},nt=/#|\.prototype\./,isForced=function(t,e){var r=it[ot(t)];return r==at||r!=ct&&("function"==typeof e?fails(e):!!e)},ot=isForced.normalize=function(t){return String(t).replace(nt,".").toLowerCase()},it=isForced.data={},ct=isForced.NATIVE="N",at=isForced.POLYFILL="P",ut=isForced,ft=d.f,_export=function(t,e){var r,o,i,c,a,u=t.target,f=t.global,s=t.stat;if(r=f?n:s?n[u]||setGlobal(u,{}):(n[u]||{}).prototype)for(o in e){if(c=e[o],i=t.noTargetGet?(a=ft(r,o))&&a.value:r[o],!ut(f?o:u+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;copyConstructorProperties(c,i)}(t.sham||i&&i.sham)&&b(c,"sham",!0),Y(r,o,c,t)}},st=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),lt=st&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pt=L("wks"),ht=n.Symbol,yt=lt?ht:ht&&ht.withoutSetter||uid,wellKnownSymbol=function(t){return has(pt,t)||(st&&has(ht,t)?pt[t]=ht[t]:pt[t]=yt("Symbol."+t)),pt[t]},vt=Object.keys||function keys(t){return objectKeysInternal(t,X)},dt=o?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var r,n=vt(e),o=n.length,i=0;o>i;)m.f(t,r=n[i++],e[r]);return t},gt=getBuiltIn("document","documentElement"),mt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{q=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;NullProtoObject=q?function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e}(q):((e=documentCreateElement("iframe")).style.display="none",gt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F);for(var r=X.length;r--;)delete NullProtoObject.prototype[X[r]];return NullProtoObject()};M[mt]=!0;var bt=Object.create||function create(t,e){var r;return null!==t?(EmptyConstructor.prototype=anObject(t),r=new EmptyConstructor,EmptyConstructor.prototype=null,r[mt]=t):r=NullProtoObject(),void 0===e?r:dt(r,e)},wt=wellKnownSymbol("unscopables"),St=Array.prototype;null==St[wt]&&m.f(St,wt,{configurable:!0,value:bt(null)});var addToUnscopables=function(t){St[wt][t]=!0},Ot=Object.defineProperty,jt={},thrower=function(t){throw t},arrayMethodUsesToLength=function(t,e){if(has(jt,t))return jt[t];e||(e={});var r=[][t],n=!!has(e,"ACCESSORS")&&e.ACCESSORS,i=has(e,0)?e[0]:thrower,c=has(e,1)?e[1]:void 0;return jt[t]=!!r&&!fails((function(){if(n&&!o)return!0;var t={length:-1};n?Ot(t,1,{enumerable:!0,get:thrower}):t[1]=1,r.call(t,i,c)}))},xt=K.includes,Et=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Et},{includes:function includes(t){return xt(this,t,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var Pt,At,aFunction$1=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},functionBindContext=function(t,e,r){if(aFunction$1(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},toObject=function(t){return Object(requireObjectCoercible(t))},Tt=Array.isArray||function isArray(t){return"Array"==classofRaw(t)},Lt=wellKnownSymbol("species"),arraySpeciesCreate=function(t,e){var r;return Tt(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Tt(r.prototype)?isObject(r)&&null===(r=r[Lt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},kt=[].push,createMethod$1=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,l){for(var p,h,y=toObject(a),v=s(y),d=functionBindContext(u,f,3),g=toLength(v.length),m=0,b=l||arraySpeciesCreate,w=e?b(a,g):r?b(a,0):void 0;g>m;m++)if((c||m in v)&&(h=d(p=v[m],m,y),t))if(e)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:kt.call(w,p)}else if(o)return!1;return i?-1:n||o?o:w}},_t={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},It=getBuiltIn("navigator","userAgent")||"",Ft=n.process,Mt=Ft&&Ft.versions,Ct=Mt&&Mt.v8;Ct?At=(Pt=Ct.split("."))[0]+Pt[1]:It&&(!(Pt=It.match(/Edge\/(\d+)/))||Pt[1]>=74)&&(Pt=It.match(/Chrome\/(\d+)/))&&(At=Pt[1]);var Gt=At&&+At,Nt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return Gt>=51||!fails((function(){var e=[];return(e.constructor={})[Nt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rt=_t.map,Dt=arrayMethodHasSpeciesSupport("map"),Wt=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Dt||!Wt},{map:function map(t){return Rt(this,t,arguments.length>1?arguments[1]:void 0)}});var qt=[].slice,Vt={},construct=function(t,e,r){if(!(e in Vt)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Vt[e]=Function("C,a","return new C("+n.join(",")+")")}return Vt[e](t,r)},Yt=Function.bind||function bind(t){var e=aFunction$1(this),r=qt.call(arguments,1),n=function bound(){var o=r.concat(qt.call(arguments));return this instanceof n?construct(e,o.length,o):e.apply(t,o)};return isObject(e.prototype)&&(n.prototype=e.prototype),n};_export({target:"Function",proto:!0},{bind:Yt});var zt=m.f,Bt=Function.prototype,Ht=Bt.toString,Ut=/^\s*function ([^ (]*)/,Jt="name";o&&!(Jt in Bt)&&zt(Bt,Jt,{configurable:!0,get:function(){try{return Ht.call(this).match(Ut)[1]}catch(t){return""}}});var $t=Object.assign,Kt=Object.defineProperty,Qt=!$t||fails((function(){if(o&&1!==$t({b:1},$t(Kt({},"a",{enumerable:!0,get:function(){Kt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=$t({},t)[r]||vt($t({},e)).join("")!=n}))?function assign(t,e){for(var r=toObject(t),n=arguments.length,i=1,c=et.f,u=a.f;n>i;)for(var f,l=s(arguments[i++]),p=c?vt(l).concat(c(l)):vt(l),h=p.length,y=0;h>y;)f=p[y++],o&&!u.call(l,f)||(r[f]=l[f]);return r}:$t;_export({target:"Object",stat:!0,forced:Object.assign!==Qt},{assign:Qt});var Xt={};Xt[wellKnownSymbol("toStringTag")]="z";var Zt="[object z]"===String(Xt),te=wellKnownSymbol("toStringTag"),ee="Arguments"==classofRaw(function(){return arguments}()),re=Zt?classofRaw:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),te))?r:ee?classofRaw(e):"Object"==(n=classofRaw(e))&&"function"==typeof e.callee?"Arguments":n},ne=Zt?{}.toString:function toString(){return"[object "+re(this)+"]"};Zt||Y(Object.prototype,"toString",ne,{unsafe:!0});var oe=n.Promise,ie=m.f,ce=wellKnownSymbol("toStringTag"),setToStringTag=function(t,e,r){t&&!has(t=r?t:t.prototype,ce)&&ie(t,ce,{configurable:!0,value:e})},ae=wellKnownSymbol("species"),ue={},fe=wellKnownSymbol("iterator"),se=Array.prototype,le=wellKnownSymbol("iterator"),callWithSafeIterationClosing=function(t,e,r,n){try{return n?e(anObject(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&anObject(o.call(t)),e}},pe=createCommonjsModule((function(t){var Result=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,n,o){var i,c,a,u,f,s,l,p,h=functionBindContext(e,r,n?2:1);if(o)i=t;else{if("function"!=typeof(c=function(t){if(null!=t)return t[le]||t["@@iterator"]||ue[re(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(p=c)&&(ue.Array===p||se[fe]===p)){for(a=0,u=toLength(t.length);u>a;a++)if((f=n?h(anObject(l=t[a])[0],l[1]):h(t[a]))&&f instanceof Result)return f;return new Result(!1)}i=c.call(t)}for(s=i.next;!(l=s.call(i)).done;)if("object"==typeof(f=callWithSafeIterationClosing(i,h,l.value,n))&&f&&f instanceof Result)return f;return new Result(!1)}).stop=function(t){return new Result(!0,t)}})),he=wellKnownSymbol("iterator"),ye=!1;try{var ve=0,de={next:function(){return{done:!!ve++}},return:function(){ye=!0}};de[he]=function(){return this},Array.from(de,(function(){throw 2}))}catch(t){}var ge,me,be,we=wellKnownSymbol("species"),Se=/(iphone|ipod|ipad).*applewebkit/i.test(It),Oe=n.location,je=n.setImmediate,xe=n.clearImmediate,Ee=n.process,Pe=n.MessageChannel,Ae=n.Dispatch,Te=0,Le={},ke="onreadystatechange",run=function(t){if(Le.hasOwnProperty(t)){var e=Le[t];delete Le[t],e()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){n.postMessage(t+"",Oe.protocol+"//"+Oe.host)};je&&xe||(je=function setImmediate(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return Le[++Te]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},ge(Te),Te},xe=function clearImmediate(t){delete Le[t]},"process"==classofRaw(Ee)?ge=function(t){Ee.nextTick(runner(t))}:Ae&&Ae.now?ge=function(t){Ae.now(runner(t))}:Pe&&!Se?(be=(me=new Pe).port2,me.port1.onmessage=listener,ge=functionBindContext(be.postMessage,be,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||fails(post)||"file:"===Oe.protocol?ge=ke in documentCreateElement("script")?function(t){gt.appendChild(documentCreateElement("script")).onreadystatechange=function(){gt.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}:(ge=post,n.addEventListener("message",listener,!1)));var _e,Ie,Fe,Me,Ce,Ge,Ne,Re,De={set:je,clear:xe},We=d.f,qe=De.set,Ve=n.MutationObserver||n.WebKitMutationObserver,Ye=n.process,ze=n.Promise,Be="process"==classofRaw(Ye),He=We(n,"queueMicrotask"),Ue=He&&He.value;Ue||(_e=function(){var t,e;for(Be&&(t=Ye.domain)&&t.exit();Ie;){e=Ie.fn,Ie=Ie.next;try{e()}catch(t){throw Ie?Me():Fe=void 0,t}}Fe=void 0,t&&t.enter()},Be?Me=function(){Ye.nextTick(_e)}:Ve&&!Se?(Ce=!0,Ge=document.createTextNode(""),new Ve(_e).observe(Ge,{characterData:!0}),Me=function(){Ge.data=Ce=!Ce}):ze&&ze.resolve?(Ne=ze.resolve(void 0),Re=Ne.then,Me=function(){Re.call(Ne,_e)}):Me=function(){qe.call(n,_e)});var Je,$e,Ke,Qe,Xe=Ue||function(t){var e={fn:t,next:void 0};Fe&&(Fe.next=e),Ie||(Ie=e,Me()),Fe=e},PromiseCapability=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=aFunction$1(e),this.reject=aFunction$1(r)},Ze={f:function(t){return new PromiseCapability(t)}},promiseResolve=function(t,e){if(anObject(t),isObject(e)&&e.constructor===t)return e;var r=Ze.f(t);return(0,r.resolve)(e),r.promise},perform=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},tr=De.set,er=wellKnownSymbol("species"),rr="Promise",nr=V.get,or=V.set,ir=V.getterFor(rr),cr=oe,ar=n.TypeError,ur=n.document,fr=n.process,sr=getBuiltIn("fetch"),lr=Ze.f,pr=lr,hr="process"==classofRaw(fr),yr=!!(ur&&ur.createEvent&&n.dispatchEvent),vr="unhandledrejection",dr=ut(rr,(function(){if(!(P(cr)!==String(cr))){if(66===Gt)return!0;if(!hr&&"function"!=typeof PromiseRejectionEvent)return!0}if(Gt>=51&&/native code/.test(cr))return!1;var t=cr.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};return(t.constructor={})[er]=FakePromise,!(t.then((function(){}))instanceof FakePromise)})),gr=dr||!function(t,e){if(!e&&!ye)return!1;var r=!1;try{var n={};n[he]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){cr.all(t).catch((function(){}))})),isThenable=function(t){var e;return!(!isObject(t)||"function"!=typeof(e=t.then))&&e},notify$1=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Xe((function(){for(var o=e.value,i=1==e.state,c=0;n.length>c;){var a,u,f,s=n[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,y=s.domain;try{l?(i||(2===e.rejection&&onHandleUnhandled(t,e),e.rejection=1),!0===l?a=o:(y&&y.enter(),a=l(o),y&&(y.exit(),f=!0)),a===s.promise?h(ar("Promise-chain cycle")):(u=isThenable(a))?u.call(a,p,h):p(a)):h(o)}catch(t){y&&!f&&y.exit(),h(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&onUnhandled(t,e)}))}},dispatchEvent=function(t,e,r){var o,i;yr?((o=ur.createEvent("Event")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n["on"+t])?i(o):t===vr&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},onUnhandled=function(t,e){tr.call(n,(function(){var r,n=e.value;if(isUnhandled(e)&&(r=perform((function(){hr?fr.emit("unhandledRejection",n,t):dispatchEvent(vr,t,n)})),e.rejection=hr||isUnhandled(e)?2:1,r.error))throw r.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t,e){tr.call(n,(function(){hr?fr.emit("rejectionHandled",t):dispatchEvent("rejectionhandled",t,e.value)}))},bind=function(t,e,r,n){return function(o){t(e,r,o,n)}},internalReject=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,notify$1(t,e,!0))},internalResolve=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw ar("Promise can't be resolved itself");var o=isThenable(r);o?Xe((function(){var n={done:!1};try{o.call(r,bind(internalResolve,t,n,e),bind(internalReject,t,n,e))}catch(r){internalReject(t,n,r,e)}})):(e.value=r,e.state=1,notify$1(t,e,!1))}catch(r){internalReject(t,{done:!1},r,e)}}};dr&&(cr=function Promise(t){!function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}(this,cr,rr),aFunction$1(t),Je.call(this);var e=nr(this);try{t(bind(internalResolve,this,e),bind(internalReject,this,e))}catch(t){internalReject(this,e,t)}},(Je=function Promise(t){or(this,{type:rr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,r){for(var n in e)Y(t,n,e[n],r);return t}(cr.prototype,{then:function then(t,e){var r,n,o,i=ir(this),c=lr((r=cr,void 0===(o=anObject(this).constructor)||null==(n=anObject(o)[we])?r:aFunction$1(n)));return c.ok="function"!=typeof t||t,c.fail="function"==typeof e&&e,c.domain=hr?fr.domain:void 0,i.parent=!0,i.reactions.push(c),0!=i.state&¬ify$1(this,i,!1),c.promise},catch:function(t){return this.then(void 0,t)}}),$e=function(){var t=new Je,e=nr(t);this.promise=t,this.resolve=bind(internalResolve,t,e),this.reject=bind(internalReject,t,e)},Ze.f=lr=function(t){return t===cr||t===Ke?new $e(t):pr(t)},"function"==typeof oe&&(Qe=oe.prototype.then,Y(oe.prototype,"then",(function then(t,e){var r=this;return new cr((function(t,e){Qe.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof sr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return promiseResolve(cr,sr.apply(n,arguments))}}))),_export({global:!0,wrap:!0,forced:dr},{Promise:cr}),setToStringTag(cr,rr,!1),function(t){var e=getBuiltIn(t),r=m.f;o&&e&&!e[ae]&&r(e,ae,{configurable:!0,get:function(){return this}})}(rr),Ke=getBuiltIn(rr),_export({target:rr,stat:!0,forced:dr},{reject:function reject(t){var e=lr(this);return e.reject.call(void 0,t),e.promise}}),_export({target:rr,stat:!0,forced:dr},{resolve:function resolve(t){return promiseResolve(this,t)}}),_export({target:rr,stat:!0,forced:gr},{all:function all(t){var e=this,r=lr(e),n=r.resolve,o=r.reject,i=perform((function(){var r=aFunction$1(e.resolve),i=[],c=0,a=1;pe(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,r.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise},race:function race(t){var e=this,r=lr(e),n=r.reject,o=perform((function(){var o=aFunction$1(e.resolve);pe(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var mr=wellKnownSymbol("match"),notARegexp=function(t){if(function(t){var e;return isObject(t)&&(void 0!==(e=t[mr])?!!e:"RegExp"==classofRaw(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},br=wellKnownSymbol("match");_export({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[br]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function includes(t){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(t),arguments.length>1?arguments[1]:void 0)}});var wr=tt.f,Sr={}.toString,Or="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jr={f:function getOwnPropertyNames(t){return Or&&"[object Window]"==Sr.call(t)?function(t){try{return wr(t)}catch(t){return Or.slice()}}(t):wr(toIndexedObject(t))}},xr={f:wellKnownSymbol},Er=m.f,defineWellKnownSymbol=function(t){var e=z.Symbol||(z.Symbol={});has(e,t)||Er(e,t,{value:xr.f(t)})},Pr=_t.forEach,Ar=sharedKey("hidden"),Tr="Symbol",Lr=wellKnownSymbol("toPrimitive"),kr=V.set,_r=V.getterFor(Tr),Ir=Object.prototype,Fr=n.Symbol,Mr=getBuiltIn("JSON","stringify"),Cr=d.f,Gr=m.f,Nr=jr.f,Rr=a.f,Dr=L("symbols"),Wr=L("op-symbols"),qr=L("string-to-symbol-registry"),Vr=L("symbol-to-string-registry"),Yr=L("wks"),zr=n.QObject,Br=!zr||!zr.prototype||!zr.prototype.findChild,Hr=o&&fails((function(){return 7!=bt(Gr({},"a",{get:function(){return Gr(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Cr(Ir,e);n&&delete Ir[e],Gr(t,e,r),n&&t!==Ir&&Gr(Ir,e,n)}:Gr,wrap=function(t,e){var r=Dr[t]=bt(Fr.prototype);return kr(r,{type:Tr,tag:t,description:e}),o||(r.description=e),r},Ur=lt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Fr},Jr=function defineProperty(t,e,r){t===Ir&&Jr(Wr,e,r),anObject(t);var n=toPrimitive(e,!0);return anObject(r),has(Dr,n)?(r.enumerable?(has(t,Ar)&&t[Ar][n]&&(t[Ar][n]=!1),r=bt(r,{enumerable:createPropertyDescriptor(0,!1)})):(has(t,Ar)||Gr(t,Ar,createPropertyDescriptor(1,{})),t[Ar][n]=!0),Hr(t,n,r)):Gr(t,n,r)},$r=function defineProperties(t,e){anObject(t);var r=toIndexedObject(e),n=vt(r).concat(Zr(r));return Pr(n,(function(e){o&&!Kr.call(r,e)||Jr(t,e,r[e])})),t},Kr=function propertyIsEnumerable(t){var e=toPrimitive(t,!0),r=Rr.call(this,e);return!(this===Ir&&has(Dr,e)&&!has(Wr,e))&&(!(r||!has(this,e)||!has(Dr,e)||has(this,Ar)&&this[Ar][e])||r)},Qr=function getOwnPropertyDescriptor(t,e){var r=toIndexedObject(t),n=toPrimitive(e,!0);if(r!==Ir||!has(Dr,n)||has(Wr,n)){var o=Cr(r,n);return!o||!has(Dr,n)||has(r,Ar)&&r[Ar][n]||(o.enumerable=!0),o}},Xr=function getOwnPropertyNames(t){var e=Nr(toIndexedObject(t)),r=[];return Pr(e,(function(t){has(Dr,t)||has(M,t)||r.push(t)})),r},Zr=function getOwnPropertySymbols(t){var e=t===Ir,r=Nr(e?Wr:toIndexedObject(t)),n=[];return Pr(r,(function(t){!has(Dr,t)||e&&!has(Ir,t)||n.push(Dr[t])})),n};if(st||(Y((Fr=function Symbol(){if(this instanceof Fr)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=uid(t),setter=function(t){this===Ir&&setter.call(Wr,t),has(this,Ar)&&has(this[Ar],e)&&(this[Ar][e]=!1),Hr(this,e,createPropertyDescriptor(1,t))};return o&&Br&&Hr(Ir,e,{configurable:!0,set:setter}),wrap(e,t)}).prototype,"toString",(function toString(){return _r(this).tag})),Y(Fr,"withoutSetter",(function(t){return wrap(uid(t),t)})),a.f=Kr,m.f=Jr,d.f=Qr,tt.f=jr.f=Xr,et.f=Zr,xr.f=function(t){return wrap(wellKnownSymbol(t),t)},o&&(Gr(Fr.prototype,"description",{configurable:!0,get:function description(){return _r(this).description}}),Y(Ir,"propertyIsEnumerable",Kr,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!st,sham:!st},{Symbol:Fr}),Pr(vt(Yr),(function(t){defineWellKnownSymbol(t)})),_export({target:Tr,stat:!0,forced:!st},{for:function(t){var e=String(t);if(has(qr,e))return qr[e];var r=Fr(e);return qr[e]=r,Vr[r]=e,r},keyFor:function keyFor(t){if(!Ur(t))throw TypeError(t+" is not a symbol");if(has(Vr,t))return Vr[t]},useSetter:function(){Br=!0},useSimple:function(){Br=!1}}),_export({target:"Object",stat:!0,forced:!st,sham:!o},{create:function create(t,e){return void 0===e?bt(t):$r(bt(t),e)},defineProperty:Jr,defineProperties:$r,getOwnPropertyDescriptor:Qr}),_export({target:"Object",stat:!0,forced:!st},{getOwnPropertyNames:Xr,getOwnPropertySymbols:Zr}),_export({target:"Object",stat:!0,forced:fails((function(){et.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(t){return et.f(toObject(t))}}),Mr){var tn=!st||fails((function(){var t=Fr();return"[null]"!=Mr([t])||"{}"!=Mr({a:t})||"{}"!=Mr(Object(t))}));_export({target:"JSON",stat:!0,forced:tn},{stringify:function stringify(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(isObject(e)||void 0!==t)&&!Ur(t))return Tt(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ur(e))return e}),o[1]=e,Mr.apply(null,o)}})}Fr.prototype[Lr]||b(Fr.prototype,Lr,Fr.prototype.valueOf),setToStringTag(Fr,Tr),M[Ar]=!0;var en=m.f,rn=n.Symbol;if(o&&"function"==typeof rn&&(!("description"in rn.prototype)||void 0!==rn().description)){var nn={},on=function Symbol(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof on?new rn(t):void 0===t?rn():rn(t);return""===t&&(nn[e]=!0),e};copyConstructorProperties(on,rn);var cn=on.prototype=rn.prototype;cn.constructor=on;var an=cn.toString,un="Symbol(test)"==String(rn("test")),fn=/^Symbol\((.*)\)[^)]+$/;en(cn,"description",{configurable:!0,get:function description(){var t=isObject(this)?this.valueOf():this,e=an.call(t);if(has(nn,t))return"";var r=un?e.slice(7,-1):e.replace(fn,"$1");return""===r?void 0:r}}),_export({global:!0,forced:!0},{Symbol:on})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var sn=_t.forEach,ln=function(t,e){var r=[][t];return!!r&&fails((function(){r.call(null,e||function(){throw 1},1)}))}("forEach"),pn=arrayMethodUsesToLength("forEach"),hn=ln&&pn?[].forEach:function forEach(t){return sn(this,t,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=hn},{forEach:hn});var yn,vn,dn,gn=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),mn=sharedKey("IE_PROTO"),bn=Object.prototype,wn=gn?Object.getPrototypeOf:function(t){return t=toObject(t),has(t,mn)?t[mn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?bn:null},Sn=wellKnownSymbol("iterator"),On=!1;[].keys&&("next"in(dn=[].keys())?(vn=wn(wn(dn)))!==Object.prototype&&(yn=vn):On=!0),null==yn&&(yn={}),has(yn,Sn)||b(yn,Sn,(function(){return this}));var jn={IteratorPrototype:yn,BUGGY_SAFARI_ITERATORS:On},xn=jn.IteratorPrototype,returnThis$1=function(){return this},En=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function setPrototypeOf(r,n){return anObject(r),function(t){if(!isObject(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Pn=jn.IteratorPrototype,An=jn.BUGGY_SAFARI_ITERATORS,Tn=wellKnownSymbol("iterator"),Ln="keys",kn="values",_n="entries",returnThis$2=function(){return this},defineIterator=function(t,e,r,n,o,i,c){!function(t,e,r){var n=e+" Iterator";t.prototype=bt(xn,{next:createPropertyDescriptor(1,r)}),setToStringTag(t,n,!1),ue[n]=returnThis$1}(r,e,n);var a,u,f,getIterationMethod=function(t){if(t===o&&y)return y;if(!An&&t in p)return p[t];switch(t){case Ln:return function keys(){return new r(this,t)};case kn:return function values(){return new r(this,t)};case _n:return function entries(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",l=!1,p=t.prototype,h=p[Tn]||p["@@iterator"]||o&&p[o],y=!An&&h||getIterationMethod(o),v="Array"==e&&p.entries||h;if(v&&(a=wn(v.call(new t)),Pn!==Object.prototype&&a.next&&(wn(a)!==Pn&&(En?En(a,Pn):"function"!=typeof a[Tn]&&b(a,Tn,returnThis$2)),setToStringTag(a,s,!0))),o==kn&&h&&h.name!==kn&&(l=!0,y=function values(){return h.call(this)}),p[Tn]!==y&&b(p,Tn,y),ue[e]=y,o)if(u={values:getIterationMethod(kn),keys:i?y:getIterationMethod(Ln),entries:getIterationMethod(_n)},c)for(f in u)(An||l||!(f in p))&&Y(p,f,u[f]);else _export({target:e,proto:!0,forced:An||l},u);return u},In="Array Iterator",Fn=V.set,Mn=V.getterFor(In),Cn=defineIterator(Array,"Array",(function(t,e){Fn(this,{type:In,target:toIndexedObject(t),index:0,kind:e})}),(function(){var t=Mn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");ue.Arguments=ue.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Gn=[].reverse,Nn=[1,2];_export({target:"Array",proto:!0,forced:String(Nn)===String(Nn.reverse())},{reverse:function reverse(){return Tt(this)&&(this.length=this.length),Gn.call(this)}});var Rn=arrayMethodHasSpeciesSupport("slice"),Dn=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Wn=wellKnownSymbol("species"),qn=[].slice,Vn=Math.max;_export({target:"Array",proto:!0,forced:!Rn||!Dn},{slice:function slice(t,e){var r,n,o,i,c,a,u,f=toIndexedObject(this),s=toLength(f.length),l=toAbsoluteIndex(t,s),p=toAbsoluteIndex(void 0===e?s:e,s);if(Tt(f)&&("function"!=typeof(r=f.constructor)||r!==Array&&!Tt(r.prototype)?isObject(r)&&null===(r=r[Wn])&&(r=void 0):r=void 0,r===Array||void 0===r))return qn.call(f,l,p);for(n=new(void 0===r?Array:r)(Vn(p-l,0)),o=0;l<p;l++,o++)l in f&&(i=n,c=o,a=f[l],u=void 0,(u=toPrimitive(c))in i?m.f(i,u,createPropertyDescriptor(0,a)):i[u]=a);return n.length=o,n}});var Yn=Date.prototype,zn="Invalid Date",Bn="toString",Hn=Yn.toString,Un=Yn.getTime;new Date(NaN)+""!=zn&&Y(Yn,Bn,(function toString(){var t=Un.call(this);return t==t?Hn.call(this):zn})),setToStringTag(n.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!o},{create:bt}),_export({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:m.f});var Jn=fails((function(){wn(1)}));_export({target:"Object",stat:!0,forced:Jn,sham:!gn},{getPrototypeOf:function getPrototypeOf(t){return wn(toObject(t))}}),_export({target:"Object",stat:!0},{setPrototypeOf:En});var regexpFlags=function(){var t=anObject(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},$n="toString",Kn=RegExp.prototype,Qn=Kn.toString,Xn=fails((function(){return"/a/b"!=Qn.call({source:"a",flags:"b"})})),Zn=Qn.name!=$n;(Xn||Zn)&&Y(RegExp.prototype,$n,(function toString(){var t=anObject(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in Kn)?regexpFlags.call(t):r)}),{unsafe:!0});var createMethod$2=function(t){return function(e,r){var n,o,i=String(requireObjectCoercible(e)),c=toInteger(r),a=i.length;return c<0||c>=a?t?"":void 0:(n=i.charCodeAt(c))<55296||n>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):n:t?i.slice(c,c+2):o-56320+(n-55296<<10)+65536}},to={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)}.charAt,eo="String Iterator",ro=V.set,no=V.getterFor(eo);defineIterator(String,"String",(function(t){ro(this,{type:eo,string:String(t),index:0})}),(function next(){var t,e=no(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=to(r,n),e.index+=t.length,{value:t,done:!1})}));var oo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var io in oo){var co=n[io],ao=co&&co.prototype;if(ao&&ao.forEach!==hn)try{b(ao,"forEach",hn)}catch(t){ao.forEach=hn}}var uo=wellKnownSymbol("iterator"),fo=wellKnownSymbol("toStringTag"),so=Cn.values;for(var lo in oo){var po=n[lo],ho=po&&po.prototype;if(ho){if(ho[uo]!==so)try{b(ho,uo,so)}catch(t){ho[uo]=so}if(ho[fo]||b(ho,fo,lo),oo[lo])for(var yo in Cn)if(ho[yo]!==Cn[yo])try{b(ho,yo,Cn[yo])}catch(t){ho[yo]=Cn[yo]}}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function asyncGeneratorStep(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}createCommonjsModule((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var o=e&&e.prototype instanceof Generator?e:Generator,i=Object.create(o.prototype),c=new Context(n||[]);return i._invoke=function makeInvokeMethod(t,e,r){var n=u;return function invoke(o,i){if(n===s)throw new Error("Generator is already running");if(n===l){if("throw"===o)throw i;return doneResult()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=maybeInvokeDelegate(c,r);if(a){if(a===p)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=l,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=s;var h=tryCatch(t,e,r);if("normal"===h.type){if(n=r.done?l:f,h.arg===p)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(n=l,r.method="throw",r.arg=h.arg)}}}(t,r,c),i}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var u="suspendedStart",f="suspendedYield",s="executing",l="completed",p={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(values([])));v&&v!==r&&n.call(v,i)&&(h=v);var d=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){var r;this._invoke=function enqueue(o,i){function callInvokeWithMethodAndArg(){return new e((function(r,c){!function invoke(r,o,i,c){var a=tryCatch(t[r],t,o);if("throw"!==a.type){var u=a.arg,f=u.value;return f&&"object"===_typeof(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){invoke("next",t,i,c)}),(function(t){invoke("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,c)}))}c(a.arg)}(o,i,r,c)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,maybeInvokeDelegate(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=tryCatch(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function next(){for(;++o<t.length;)if(n.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=e,next.done=!0,next};return c.next=c}}return{next:doneResult}}function doneResult(){return{value:e,done:!0}}return GeneratorFunction.prototype=d.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[c]=function(){return this},t.AsyncIterator=AsyncIterator,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new AsyncIterator(wrap(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},defineIteratorMethods(d),define(d,a,"Generator"),d[i]=function(){return this},d.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function next(){for(;e.length;){var r=e.pop();if(r in t)return next.value=r,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function reset(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var r=this;function handle(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(c)},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),p}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,r,n){return this.delegate={iterator:values(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),t("default",{name:"webappfind",init:function init(t){var r=this;return function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function _next(t){asyncGeneratorStep(i,n,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(i,n,o,_next,_throw,"throw",t)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(){var n,o,i,c,a,u,f,s;return regeneratorRuntime.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:return n=t.$,o=r,l.next=4,e.import("./locale/".concat(o.curPrefs.lang,".js"));case 4:return i=l.sent,c=i.default,"read",u=["read",a="save"],r.canvas.bind("message",(function(t,e){var r,i,c=e.data,a=e.origin;try{var s=c.webappfind;if(r=s.type,f=s.pathID,i=s.content,a!==location.origin||u.includes(r))return}catch(t){return}switch(r){case"view":o.loadFromString(i);break;case"save-end":n.alert("save complete for pathID ".concat(f,"!"));break;default:throw new Error("Unexpected WebAppFind event type")}})),s=[{id:"webappfind_save",icon:"webappfind.png",type:"app_menu",position:4,events:{click:function click(){f&&window.postMessage({webappfind:{type:a,pathID:f,content:o.canvas.getSvgString()}},"null"===window.location.origin?"*":window.location.origin)}}}],l.abrupt("return",{name:c.name,svgicons:"webappfind-icon.svg",buttons:c.buttons.map((function(t,e){return Object.assign(s[e],t)}))});case 10:case"end":return l.stop()}}),_callee)})))()}})
|
|
/**
|
|
* Depends on Firefox add-on and executables from
|
|
* {@link https://github.com/brettz9/webappfind}.
|
|
* @author Brett Zamir
|
|
* @license MIT
|
|
* @todo See WebAppFind Readme for SVG-related todos
|
|
*/}}}));
|