Files
svgedit/dist/editor/system/extensions/ext-server_moinsave/ext-server_moinsave.js
2021-01-03 22:59:00 +01:00

2 lines
282 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
System.register([],(function(h){"use strict";return{execute:function(){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h){var d={exports:{}};return h(d,d.exports),d.exports}var check=function(h){return h&&h.Math==Math&&h},g=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof d&&d)||function(){return this}()||Function("return this")(),fails=function(h){try{return!!h()}catch(h){return!0}},x=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,w={f:S&&!b.call({1:2},1)?function propertyIsEnumerable(h){var d=S(this,h);return!!d&&d.enumerable}:b},createPropertyDescriptor=function(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},E={}.toString,classofRaw=function(h){return E.call(h).slice(8,-1)},A="".split,P=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?A.call(h,""):Object(h)}:Object,requireObjectCoercible=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h},toIndexedObject=function(h){return P(requireObjectCoercible(h))},isObject=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive=function(h,d){if(!isObject(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!isObject(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,has=function(h,d){return _.call(h,d)},k=g.document,C=isObject(k)&&isObject(k.createElement),documentCreateElement=function(h){return C?k.createElement(h):{}},R=!x&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,N={f:x?M:function getOwnPropertyDescriptor(h,d){if(h=toIndexedObject(h),d=toPrimitive(d,!0),R)try{return M(h,d)}catch(h){}if(has(h,d))return createPropertyDescriptor(!w.f.call(h,d),h[d])}},anObject=function(h){if(!isObject(h))throw TypeError(String(h)+" is not an object");return h},D=Object.defineProperty,L={f:x?D:function defineProperty(h,d,g){if(anObject(h),d=toPrimitive(d,!0),anObject(g),R)try{return D(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},j=x?function(h,d,g){return L.f(h,d,createPropertyDescriptor(1,g))}:function(h,d,g){return h[d]=g,h},setGlobal=function(h,d){try{j(g,h,d)}catch(x){g[h]=d}return d},V="__core-js_shared__",$=g[V]||setGlobal(V,{}),B=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(h){return B.call(h)});var U,z,G,q=$.inspectSource,X=g.WeakMap,Y="function"==typeof X&&/native code/.test(q(X)),W=createCommonjsModule((function(h){(h.exports=function(h,d){return $[h]||($[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.8.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Q=0,Z=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Q+Z).toString(36)},K=W("keys"),sharedKey=function(h){return K[h]||(K[h]=uid(h))},J={},tt=g.WeakMap;if(Y){var et=$.state||($.state=new tt),rt=et.get,nt=et.has,it=et.set;U=function(h,d){return d.facade=h,it.call(et,h,d),d},z=function(h){return rt.call(et,h)||{}},G=function(h){return nt.call(et,h)}}else{var at=sharedKey("state");J[at]=!0,U=function(h,d){return d.facade=h,j(h,at,d),d},z=function(h){return has(h,at)?h[at]:{}},G=function(h){return has(h,at)}}var ot,ut,st={set:U,get:z,has:G,enforce:function(h){return G(h)?z(h):U(h,{})},getterFor:function(h){return function(d){var g;if(!isObject(d)||(g=z(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},ct=createCommonjsModule((function(h){var d=st.get,x=st.enforce,b=String(String).split("String");(h.exports=function(h,d,S,w){var E,A=!!w&&!!w.unsafe,P=!!w&&!!w.enumerable,_=!!w&&!!w.noTargetGet;"function"==typeof S&&("string"!=typeof d||has(S,"name")||j(S,"name",d),(E=x(S)).source||(E.source=b.join("string"==typeof d?d:""))),h!==g?(A?!_&&h[d]&&(P=!0):delete h[d],P?h[d]=S:j(h,d,S)):P?h[d]=S:setGlobal(d,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||q(this)}))})),lt=g,aFunction=function(h){return"function"==typeof h?h:void 0},getBuiltIn=function(h,d){return arguments.length<2?aFunction(lt[h])||aFunction(g[h]):lt[h]&&lt[h][d]||g[h]&&g[h][d]},ft=Math.ceil,ht=Math.floor,toInteger=function(h){return isNaN(h=+h)?0:(h>0?ht:ft)(h)},pt=Math.min,toLength=function(h){return h>0?pt(toInteger(h),9007199254740991):0},yt=Math.max,vt=Math.min,toAbsoluteIndex=function(h,d){var g=toInteger(h);return g<0?yt(g+d,0):vt(g,d)},createMethod=function(h){return function(d,g,x){var b,S=toIndexedObject(d),w=toLength(S.length),E=toAbsoluteIndex(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},dt={includes:createMethod(!0),indexOf:createMethod(!1)},gt=dt.indexOf,objectKeysInternal=function(h,d){var g,x=toIndexedObject(h),b=0,S=[];for(g in x)!has(J,g)&&has(x,g)&&S.push(g);for(;d.length>b;)has(x,g=d[b++])&&(~gt(S,g)||S.push(g));return S},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=mt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal(h,xt)}},St={f:Object.getOwnPropertySymbols},wt=getBuiltIn("Reflect","ownKeys")||function ownKeys(h){var d=bt.f(anObject(h)),g=St.f;return g?d.concat(g(h)):d},copyConstructorProperties=function(h,d){for(var g=wt(d),x=L.f,b=N.f,S=0;S<g.length;S++){var w=g[S];has(h,w)||x(h,w,b(d,w))}},Et=/#|\.prototype\./,isForced=function(h,d){var g=Pt[At(h)];return g==_t||g!=Tt&&("function"==typeof d?fails(d):!!d)},At=isForced.normalize=function(h){return String(h).replace(Et,".").toLowerCase()},Pt=isForced.data={},Tt=isForced.NATIVE="N",_t=isForced.POLYFILL="P",kt=isForced,Ot=N.f,_export=function(h,d){var x,b,S,w,E,A=h.target,P=h.global,_=h.stat;if(x=P?g:_?g[A]||setGlobal(A,{}):(g[A]||{}).prototype)for(b in d){if(w=d[b],S=h.noTargetGet?(E=Ot(x,b))&&E.value:x[b],!kt(P?b:A+(_?".":"#")+b,h.forced)&&void 0!==S){if(typeof w==typeof S)continue;copyConstructorProperties(w,S)}(h.sham||S&&S.sham)&&j(w,"sham",!0),ct(x,b,w,h)}},Ct=Array.isArray||function isArray(h){return"Array"==classofRaw(h)},toObject=function(h){return Object(requireObjectCoercible(h))},createProperty=function(h,d,g){var x=toPrimitive(d);x in h?L.f(h,x,createPropertyDescriptor(0,g)):h[x]=g},Rt=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Mt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nt=W("wks"),It=g.Symbol,Dt=Mt?It:It&&It.withoutSetter||uid,wellKnownSymbol=function(h){return has(Nt,h)||(Rt&&has(It,h)?Nt[h]=It[h]:Nt[h]=Dt("Symbol."+h)),Nt[h]},Lt=wellKnownSymbol("species"),arraySpeciesCreate=function(h,d){var g;return Ct(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!Ct(g.prototype)?isObject(g)&&null===(g=g[Lt])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},jt=getBuiltIn("navigator","userAgent")||"",Vt=g.process,$t=Vt&&Vt.versions,Ft=$t&&$t.v8;Ft?ut=(ot=Ft.split("."))[0]+ot[1]:jt&&(!(ot=jt.match(/Edge\/(\d+)/))||ot[1]>=74)&&(ot=jt.match(/Chrome\/(\d+)/))&&(ut=ot[1]);var Bt=ut&&+ut,Ut=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(h){return Bt>=51||!fails((function(){var d=[];return(d.constructor={})[Ut]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},zt=wellKnownSymbol("isConcatSpreadable"),Gt=9007199254740991,Ht="Maximum allowed index exceeded",qt=Bt>=51||!fails((function(){var h=[];return h[zt]=!1,h.concat()[0]!==h})),Xt=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(h){if(!isObject(h))return!1;var d=h[zt];return void 0!==d?!!d:Ct(h)};_export({target:"Array",proto:!0,forced:!qt||!Xt},{concat:function concat(h){var d,g,x,b,S,w=toObject(this),E=arraySpeciesCreate(w,0),A=0;for(d=-1,x=arguments.length;d<x;d++)if(isConcatSpreadable(S=-1===d?w:arguments[d])){if(A+(b=toLength(S.length))>Gt)throw TypeError(Ht);for(g=0;g<b;g++,A++)g in S&&createProperty(E,A,S[g])}else{if(A>=Gt)throw TypeError(Ht);createProperty(E,A++,S)}return E.length=A,E}});var Yt,Wt=Object.keys||function keys(h){return objectKeysInternal(h,mt)},Qt=x?Object.defineProperties:function defineProperties(h,d){anObject(h);for(var g,x=Wt(d),b=x.length,S=0;b>S;)L.f(h,g=x[S++],d[g]);return h},Zt=getBuiltIn("document","documentElement"),Kt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"</"+"script>"},NullProtoObject=function(){try{Yt=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,d;NullProtoObject=Yt?function(h){h.write(scriptTag("")),h.close();var d=h.parentWindow.Object;return h=null,d}(Yt):((d=documentCreateElement("iframe")).style.display="none",Zt.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var g=mt.length;g--;)delete NullProtoObject.prototype[mt[g]];return NullProtoObject()};J[Kt]=!0;var Jt=Object.create||function create(h,d){var g;return null!==h?(EmptyConstructor.prototype=anObject(h),g=new EmptyConstructor,EmptyConstructor.prototype=null,g[Kt]=h):g=NullProtoObject(),void 0===d?g:Qt(g,d)},te=wellKnownSymbol("unscopables"),ee=Array.prototype;null==ee[te]&&L.f(ee,te,{configurable:!0,value:Jt(null)});var re,ne,ie,addToUnscopables=function(h){ee[te][h]=!0},ae={},oe=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),ue=sharedKey("IE_PROTO"),se=Object.prototype,ce=oe?Object.getPrototypeOf:function(h){return h=toObject(h),has(h,ue)?h[ue]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?se:null},le=wellKnownSymbol("iterator"),fe=!1;[].keys&&("next"in(ie=[].keys())?(ne=ce(ce(ie)))!==Object.prototype&&(re=ne):fe=!0),null==re&&(re={}),has(re,le)||j(re,le,(function(){return this}));var he={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:fe},pe=L.f,ye=wellKnownSymbol("toStringTag"),setToStringTag=function(h,d,g){h&&!has(h=g?h:h.prototype,ye)&&pe(h,ye,{configurable:!0,value:d})},ve=he.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(h,d,g){var x=d+" Iterator";return h.prototype=Jt(ve,{next:createPropertyDescriptor(1,g)}),setToStringTag(h,x,!1),ae[x]=returnThis$1,h},de=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return anObject(g),function(h){if(!isObject(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),ge=he.IteratorPrototype,me=he.BUGGY_SAFARI_ITERATORS,xe=wellKnownSymbol("iterator"),be="keys",Se="values",we="entries",returnThis$2=function(){return this},defineIterator=function(h,d,g,x,b,S,w){createIteratorConstructor(g,d,x);var E,A,P,getIterationMethod=function(h){if(h===b&&M)return M;if(!me&&h in C)return C[h];switch(h){case be:return function keys(){return new g(this,h)};case Se:return function values(){return new g(this,h)};case we:return function entries(){return new g(this,h)}}return function(){return new g(this)}},_=d+" Iterator",k=!1,C=h.prototype,R=C[xe]||C["@@iterator"]||b&&C[b],M=!me&&R||getIterationMethod(b),N="Array"==d&&C.entries||R;if(N&&(E=ce(N.call(new h)),ge!==Object.prototype&&E.next&&(ce(E)!==ge&&(de?de(E,ge):"function"!=typeof E[xe]&&j(E,xe,returnThis$2)),setToStringTag(E,_,!0))),b==Se&&R&&R.name!==Se&&(k=!0,M=function values(){return R.call(this)}),C[xe]!==M&&j(C,xe,M),ae[d]=M,b)if(A={values:getIterationMethod(Se),keys:S?M:getIterationMethod(be),entries:getIterationMethod(we)},w)for(P in A)(me||k||!(P in C))&&ct(C,P,A[P]);else _export({target:d,proto:!0,forced:me||k},A);return A},Ee="Array Iterator",Ae=st.set,Pe=st.getterFor(Ee),Te=defineIterator(Array,"Array",(function(h,d){Ae(this,{type:Ee,target:toIndexedObject(h),index:0,kind:d})}),(function(){var h=Pe(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values");ae.Arguments=ae.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var _e={};_e[wellKnownSymbol("toStringTag")]="z";var ke="[object z]"===String(_e),Oe=wellKnownSymbol("toStringTag"),Ce="Arguments"==classofRaw(function(){return arguments}()),Re=ke?classofRaw:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function(h,d){try{return h[d]}catch(h){}}(d=Object(h),Oe))?g:Ce?classofRaw(d):"Object"==(x=classofRaw(d))&&"function"==typeof d.callee?"Arguments":x},Me=ke?{}.toString:function toString(){return"[object "+Re(this)+"]"};ke||ct(Object.prototype,"toString",Me,{unsafe:!0});var Ne=g.Promise,redefineAll=function(h,d,g){for(var x in d)ct(h,x,d[x],g);return h},Ie=wellKnownSymbol("species"),setSpecies=function(h){var d=getBuiltIn(h),g=L.f;x&&d&&!d[Ie]&&g(d,Ie,{configurable:!0,get:function(){return this}})},aFunction$1=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},anInstance=function(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},De=wellKnownSymbol("iterator"),Le=Array.prototype,isArrayIteratorMethod=function(h){return void 0!==h&&(ae.Array===h||Le[De]===h)},functionBindContext=function(h,d,g){if(aFunction$1(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},je=wellKnownSymbol("iterator"),getIteratorMethod=function(h){if(null!=h)return h[je]||h["@@iterator"]||ae[Re(h)]},iteratorClose=function(h){var d=h.return;if(void 0!==d)return anObject(d.call(h)).value},Result=function(h,d){this.stopped=h,this.result=d},iterate=function(h,d,g){var x,b,S,w,E,A,P,_=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=functionBindContext(d,_,1+k+R),stop=function(h){return x&&iteratorClose(x),new Result(!0,h)},callFn=function(h){return k?(anObject(h),R?M(h[0],h[1],stop):M(h[0],h[1])):R?M(h,stop):M(h)};if(C)x=h;else{if("function"!=typeof(b=getIteratorMethod(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(b)){for(S=0,w=toLength(h.length);w>S;S++)if((E=callFn(h[S]))&&E instanceof Result)return E;return new Result(!1)}x=b.call(h)}for(A=x.next;!(P=A.call(x)).done;){try{E=callFn(P.value)}catch(h){throw iteratorClose(x),h}if("object"==typeof E&&E&&E instanceof Result)return E}return new Result(!1)},Ve=wellKnownSymbol("iterator"),$e=!1;try{var Fe=0,Be={next:function(){return{done:!!Fe++}},return:function(){$e=!0}};Be[Ve]=function(){return this},Array.from(Be,(function(){throw 2}))}catch(h){}var Ue,ze,Ge,checkCorrectnessOfIteration=function(h,d){if(!d&&!$e)return!1;var g=!1;try{var x={};x[Ve]=function(){return{next:function(){return{done:g=!0}}}},h(x)}catch(h){}return g},He=wellKnownSymbol("species"),speciesConstructor=function(h,d){var g,x=anObject(h).constructor;return void 0===x||null==(g=anObject(x)[He])?d:aFunction$1(g)},qe=/(iphone|ipod|ipad).*applewebkit/i.test(jt),Xe="process"==classofRaw(g.process),Ye=g.location,We=g.setImmediate,Qe=g.clearImmediate,Ze=g.process,Ke=g.MessageChannel,Je=g.Dispatch,tr=0,er={},rr="onreadystatechange",run=function(h){if(er.hasOwnProperty(h)){var d=er[h];delete er[h],d()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){g.postMessage(h+"",Ye.protocol+"//"+Ye.host)};We&&Qe||(We=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return er[++tr]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},Ue(tr),tr},Qe=function clearImmediate(h){delete er[h]},Xe?Ue=function(h){Ze.nextTick(runner(h))}:Je&&Je.now?Ue=function(h){Je.now(runner(h))}:Ke&&!qe?(Ge=(ze=new Ke).port2,ze.port1.onmessage=listener,Ue=functionBindContext(Ge.postMessage,Ge,1)):g.addEventListener&&"function"==typeof postMessage&&!g.importScripts&&Ye&&"file:"!==Ye.protocol&&!fails(post)?(Ue=post,g.addEventListener("message",listener,!1)):Ue=rr in documentCreateElement("script")?function(h){Zt.appendChild(documentCreateElement("script")).onreadystatechange=function(){Zt.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)});var nr,ir,ar,or,ur,sr,cr,lr,fr={set:We,clear:Qe},hr=/web0s(?!.*chrome)/i.test(jt),pr=N.f,yr=fr.set,vr=g.MutationObserver||g.WebKitMutationObserver,dr=g.document,gr=g.process,mr=g.Promise,xr=pr(g,"queueMicrotask"),br=xr&&xr.value;br||(nr=function(){var h,d;for(Xe&&(h=gr.domain)&&h.exit();ir;){d=ir.fn,ir=ir.next;try{d()}catch(h){throw ir?or():ar=void 0,h}}ar=void 0,h&&h.enter()},qe||Xe||hr||!vr||!dr?mr&&mr.resolve?(cr=mr.resolve(void 0),lr=cr.then,or=function(){lr.call(cr,nr)}):or=Xe?function(){gr.nextTick(nr)}:function(){yr.call(g,nr)}:(ur=!0,sr=dr.createTextNode(""),new vr(nr).observe(sr,{characterData:!0}),or=function(){sr.data=ur=!ur}));var Sr,wr,Er,Ar,Pr=br||function(h){var d={fn:h,next:void 0};ar&&(ar.next=d),ir||(ir=d,or()),ar=d},PromiseCapability=function(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=aFunction$1(d),this.reject=aFunction$1(g)},Tr={f:function(h){return new PromiseCapability(h)}},promiseResolve=function(h,d){if(anObject(h),isObject(d)&&d.constructor===h)return d;var g=Tr.f(h);return(0,g.resolve)(d),g.promise},perform=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},_r=fr.set,kr=wellKnownSymbol("species"),Or="Promise",Cr=st.get,Rr=st.set,Mr=st.getterFor(Or),Nr=Ne,Ir=g.TypeError,Dr=g.document,Lr=g.process,jr=getBuiltIn("fetch"),Vr=Tr.f,$r=Vr,Fr=!!(Dr&&Dr.createEvent&&g.dispatchEvent),Br="function"==typeof PromiseRejectionEvent,Ur="unhandledrejection",zr=kt(Or,(function(){if(!(q(Nr)!==String(Nr))){if(66===Bt)return!0;if(!Xe&&!Br)return!0}if(Bt>=51&&/native code/.test(Nr))return!1;var h=Nr.resolve(1),FakePromise=function(h){h((function(){}),(function(){}))};return(h.constructor={})[kr]=FakePromise,!(h.then((function(){}))instanceof FakePromise)})),Gr=zr||!checkCorrectnessOfIteration((function(h){Nr.all(h).catch((function(){}))})),isThenable=function(h){var d;return!(!isObject(h)||"function"!=typeof(d=h.then))&&d},notify$1=function(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;Pr((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,A,P=g[S++],_=b?P.ok:P.fail,k=P.resolve,C=P.reject,R=P.domain;try{_?(b||(2===h.rejection&&onHandleUnhandled(h),h.rejection=1),!0===_?w=x:(R&&R.enter(),w=_(x),R&&(R.exit(),A=!0)),w===P.promise?C(Ir("Promise-chain cycle")):(E=isThenable(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!A&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&onUnhandled(h)}))}},dispatchEvent=function(h,d,x){var b,S;Fr?((b=Dr.createEvent("Event")).promise=d,b.reason=x,b.initEvent(h,!1,!0),g.dispatchEvent(b)):b={promise:d,reason:x},!Br&&(S=g["on"+h])?S(b):h===Ur&&function(h,d){var x=g.console;x&&x.error&&(1===arguments.length?x.error(h):x.error(h,d))}("Unhandled promise rejection",x)},onUnhandled=function(h){_r.call(g,(function(){var d,g=h.facade,x=h.value;if(isUnhandled(h)&&(d=perform((function(){Xe?Lr.emit("unhandledRejection",x,g):dispatchEvent(Ur,g,x)})),h.rejection=Xe||isUnhandled(h)?2:1,d.error))throw d.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h){_r.call(g,(function(){var d=h.facade;Xe?Lr.emit("rejectionHandled",d):dispatchEvent("rejectionhandled",d,h.value)}))},bind=function(h,d,g){return function(x){h(d,x,g)}},internalReject=function(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,notify$1(h,!0))},internalResolve=function(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw Ir("Promise can't be resolved itself");var x=isThenable(d);x?Pr((function(){var g={done:!1};try{x.call(d,bind(internalResolve,g,h),bind(internalReject,g,h))}catch(d){internalReject(g,d,h)}})):(h.value=d,h.state=1,notify$1(h,!1))}catch(d){internalReject({done:!1},d,h)}}};zr&&(Nr=function Promise(h){anInstance(this,Nr,Or),aFunction$1(h),Sr.call(this);var d=Cr(this);try{h(bind(internalResolve,d),bind(internalReject,d))}catch(h){internalReject(d,h)}},(Sr=function Promise(h){Rr(this,{type:Or,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Nr.prototype,{then:function then(h,d){var g=Mr(this),x=Vr(speciesConstructor(this,Nr));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=Xe?Lr.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&&notify$1(g,!1),x.promise},catch:function(h){return this.then(void 0,h)}}),wr=function(){var h=new Sr,d=Cr(h);this.promise=h,this.resolve=bind(internalResolve,d),this.reject=bind(internalReject,d)},Tr.f=Vr=function(h){return h===Nr||h===Er?new wr(h):$r(h)},"function"==typeof Ne&&(Ar=Ne.prototype.then,ct(Ne.prototype,"then",(function then(h,d){var g=this;return new Nr((function(h,d){Ar.call(g,h,d)})).then(h,d)}),{unsafe:!0}),"function"==typeof jr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve(Nr,jr.apply(g,arguments))}}))),_export({global:!0,wrap:!0,forced:zr},{Promise:Nr}),setToStringTag(Nr,Or,!1),setSpecies(Or),Er=getBuiltIn(Or),_export({target:Or,stat:!0,forced:zr},{reject:function reject(h){var d=Vr(this);return d.reject.call(void 0,h),d.promise}}),_export({target:Or,stat:!0,forced:zr},{resolve:function resolve(h){return promiseResolve(this,h)}}),_export({target:Or,stat:!0,forced:Gr},{all:function all(h){var d=this,g=Vr(d),x=g.resolve,b=g.reject,S=perform((function(){var g=aFunction$1(d.resolve),S=[],w=0,E=1;iterate(h,(function(h){var A=w++,P=!1;S.push(void 0),E++,g.call(d,h).then((function(h){P||(P=!0,S[A]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=Vr(d),x=g.reject,b=perform((function(){var b=aFunction$1(d.resolve);iterate(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}});var regexpFlags=function(){var h=anObject(this),d="";return h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.sticky&&(d+="y"),d};function RE(h,d){return RegExp(h,d)}var Hr={UNSUPPORTED_Y:fails((function(){var h=RE("a","y");return h.lastIndex=2,null!=h.exec("abcd")})),BROKEN_CARET:fails((function(){var h=RE("^r","gy");return h.lastIndex=2,null!=h.exec("str")}))},qr=RegExp.prototype.exec,Xr=String.prototype.replace,Yr=qr,Wr=function(){var h=/a/,d=/b*/g;return qr.call(h,"a"),qr.call(d,"a"),0!==h.lastIndex||0!==d.lastIndex}(),Qr=Hr.UNSUPPORTED_Y||Hr.BROKEN_CARET,Zr=void 0!==/()??/.exec("")[1];(Wr||Zr||Qr)&&(Yr=function exec(h){var d,g,x,b,S=this,w=Qr&&S.sticky,E=regexpFlags.call(S),A=S.source,P=0,_=h;return w&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),_=String(h).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h[S.lastIndex-1])&&(A="(?: "+A+")",_=" "+_,P++),g=new RegExp("^(?:"+A+")",E)),Zr&&(g=new RegExp("^"+A+"$(?!\\s)",E)),Wr&&(d=S.lastIndex),x=qr.call(w?g:S,_),w?x?(x.input=x.input.slice(P),x[0]=x[0].slice(P),x.index=S.lastIndex,S.lastIndex+=x[0].length):S.lastIndex=0:Wr&&x&&(S.lastIndex=S.global?x.index+x[0].length:d),Zr&&x&&x.length>1&&Xr.call(x[0],g,(function(){for(b=1;b<arguments.length-2;b++)void 0===arguments[b]&&(x[b]=void 0)})),x});var Kr=Yr;_export({target:"RegExp",proto:!0,forced:/./.exec!==Kr},{exec:Kr});var createMethod$1=function(h){return function(d,g){var x,b,S=String(requireObjectCoercible(d)),w=toInteger(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},Jr={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},tn=Jr.charAt,en="String Iterator",rn=st.set,nn=st.getterFor(en);defineIterator(String,"String",(function(h){rn(this,{type:en,string:String(h),index:0})}),(function next(){var h,d=nn(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=tn(g,x),d.index+=h.length,{value:h,done:!1})}));var an=wellKnownSymbol("species"),on=!fails((function(){var h=/./;return h.exec=function(){var h=[];return h.groups={a:"7"},h},"7"!=="".replace(h,"$<a>")})),un="$0"==="a".replace(/./,"$0"),sn=wellKnownSymbol("replace"),cn=!!/./[sn]&&""===/./[sn]("a","$0"),ln=!fails((function(){var h=/(?:)/,d=h.exec;h.exec=function(){return d.apply(this,arguments)};var g="ab".split(h);return 2!==g.length||"a"!==g[0]||"b"!==g[1]})),fixRegexpWellKnownSymbolLogic=function(h,d,g,x){var b=wellKnownSymbol(h),S=!fails((function(){var d={};return d[b]=function(){return 7},7!=""[h](d)})),w=S&&!fails((function(){var d=!1,g=/a/;return"split"===h&&((g={}).constructor={},g.constructor[an]=function(){return g},g.flags="",g[b]=/./[b]),g.exec=function(){return d=!0,null},g[b](""),!d}));if(!S||!w||"replace"===h&&(!on||!un||cn)||"split"===h&&!ln){var E=/./[b],A=g(b,""[h],(function(h,d,g,x,b){return d.exec===Kr?S&&!b?{done:!0,value:E.call(d,g,x)}:{done:!0,value:h.call(g,d,x)}:{done:!1}}),{REPLACE_KEEPS_$0:un,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:cn}),P=A[0],_=A[1];ct(String.prototype,h,P),ct(RegExp.prototype,b,2==d?function(h,d){return _.call(h,this,d)}:function(h){return _.call(h,this)})}x&&j(RegExp.prototype[b],"sham",!0)},fn=Jr.charAt,advanceStringIndex=function(h,d,g){return d+(g?fn(h,d).length:1)},hn=Math.floor,pn="".replace,yn=/\$([$&'`]|\d\d?|<[^>]*>)/g,vn=/\$([$&'`]|\d\d?)/g,getSubstitution=function(h,d,g,x,b,S){var w=g+h.length,E=x.length,A=vn;return void 0!==b&&(b=toObject(b),A=yn),pn.call(S,A,(function(S,A){var P;switch(A.charAt(0)){case"$":return"$";case"&":return h;case"`":return d.slice(0,g);case"'":return d.slice(w);case"<":P=b[A.slice(1,-1)];break;default:var _=+A;if(0===_)return S;if(_>E){var k=hn(_/10);return 0===k?S:k<=E?void 0===x[k-1]?A.charAt(1):x[k-1]+A.charAt(1):S}P=x[_-1]}return void 0===P?"":P}))},regexpExecAbstract=function(h,d){var g=h.exec;if("function"==typeof g){var x=g.call(h,d);if("object"!=typeof x)throw TypeError("RegExp exec method returned something other than an Object or null");return x}if("RegExp"!==classofRaw(h))throw TypeError("RegExp#exec called on incompatible receiver");return Kr.call(h,d)},dn=Math.max,gn=Math.min;fixRegexpWellKnownSymbolLogic("replace",2,(function(h,d,g,x){var b=x.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,S=x.REPLACE_KEEPS_$0,w=b?"$":"$0";return[function replace(g,x){var b=requireObjectCoercible(this),S=null==g?void 0:g[h];return void 0!==S?S.call(g,b,x):d.call(String(b),g,x)},function(h,x){if(!b&&S||"string"==typeof x&&-1===x.indexOf(w)){var E=g(d,h,this,x);if(E.done)return E.value}var A=anObject(h),P=String(this),_="function"==typeof x;_||(x=String(x));var k=A.global;if(k){var C=A.unicode;A.lastIndex=0}for(var R=[];;){var M=regexpExecAbstract(A,P);if(null===M)break;if(R.push(M),!k)break;""===String(M[0])&&(A.lastIndex=advanceStringIndex(P,toLength(A.lastIndex),C))}for(var N,D="",L=0,j=0;j<R.length;j++){M=R[j];for(var V=String(M[0]),$=dn(gn(toInteger(M.index),P.length),0),B=[],U=1;U<M.length;U++)B.push(void 0===(N=M[U])?N:String(N));var z=M.groups;if(_){var G=[V].concat(B,$,P);void 0!==z&&G.push(z);var q=String(x.apply(void 0,G))}else q=getSubstitution(V,P,$,B,z,x);$>=L&&(D+=P.slice(L,$)+q,L=$+V.length)}return D+P.slice(L)}]}));var mn={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},xn=wellKnownSymbol("iterator"),bn=wellKnownSymbol("toStringTag"),Sn=Te.values;for(var wn in mn){var En=g[wn],An=En&&En.prototype;if(An){if(An[xn]!==Sn)try{j(An,xn,Sn)}catch(h){An[xn]=Sn}if(An[bn]||j(An,bn,wn),mn[wn])for(var Pn in Te)if(An[Pn]!==Te[Pn])try{j(An,Pn,Te[Pn])}catch(h){An[Pn]=Te[Pn]}}}var Tn=wellKnownSymbol("iterator"),_n=!fails((function(){var h=new URL("b?a=1&b=2&c=3","http://a"),d=h.searchParams,g="";return h.pathname="c%20d",d.forEach((function(h,x){d.delete("b"),g+=x+h})),!d.sort||"http://a/c%20d?a=1&c=3"!==h.href||"3"!==d.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!d[Tn]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==g||"x"!==new URL("http://x",void 0).host})),kn=Object.assign,On=Object.defineProperty,Cn=!kn||fails((function(){if(x&&1!==kn({b:1},kn(On({},"a",{enumerable:!0,get:function(){On(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var h={},d={},g=Symbol(),b="abcdefghijklmnopqrst";return h[g]=7,b.split("").forEach((function(h){d[h]=h})),7!=kn({},h)[g]||Wt(kn({},d)).join("")!=b}))?function assign(h,d){for(var g=toObject(h),b=arguments.length,S=1,E=St.f,A=w.f;b>S;)for(var _,k=P(arguments[S++]),C=E?Wt(k).concat(E(k)):Wt(k),R=C.length,M=0;R>M;)_=C[M++],x&&!A.call(k,_)||(g[_]=k[_]);return g}:kn,callWithSafeIterationClosing=function(h,d,g,x){try{return x?d(anObject(g)[0],g[1]):d(g)}catch(d){throw iteratorClose(h),d}},Rn=function from(h){var d,g,x,b,S,w,E=toObject(h),A="function"==typeof this?this:Array,P=arguments.length,_=P>1?arguments[1]:void 0,k=void 0!==_,C=getIteratorMethod(E),R=0;if(k&&(_=functionBindContext(_,P>2?arguments[2]:void 0,2)),null==C||A==Array&&isArrayIteratorMethod(C))for(g=new A(d=toLength(E.length));d>R;R++)w=k?_(E[R],R):E[R],createProperty(g,R,w);else for(S=(b=C.call(E)).next,g=new A;!(x=S.call(b)).done;R++)w=k?callWithSafeIterationClosing(b,_,[x.value,R],!0):x.value,createProperty(g,R,w);return g.length=R,g},Mn=2147483647,Nn=/[^\0-\u007E]/,In=/[.\u3002\uFF0E\uFF61]/g,Dn="Overflow: input needs wider integers to process",Ln=Math.floor,jn=String.fromCharCode,digitToBasic=function(h){return h+22+75*(h<26)},adapt=function(h,d,g){var x=0;for(h=g?Ln(h/700):h>>1,h+=Ln(h/d);h>455;x+=36)h=Ln(h/35);return Ln(x+36*h/(h+38))},encode=function(h){var d,g,x=[],b=(h=function(h){for(var d=[],g=0,x=h.length;g<x;){var b=h.charCodeAt(g++);if(b>=55296&&b<=56319&&g<x){var S=h.charCodeAt(g++);56320==(64512&S)?d.push(((1023&b)<<10)+(1023&S)+65536):(d.push(b),g--)}else d.push(b)}return d}(h)).length,S=128,w=0,E=72;for(d=0;d<h.length;d++)(g=h[d])<128&&x.push(jn(g));var A=x.length,P=A;for(A&&x.push("-");P<b;){var _=Mn;for(d=0;d<h.length;d++)(g=h[d])>=S&&g<_&&(_=g);var k=P+1;if(_-S>Ln((Mn-w)/k))throw RangeError(Dn);for(w+=(_-S)*k,S=_,d=0;d<h.length;d++){if((g=h[d])<S&&++w>Mn)throw RangeError(Dn);if(g==S){for(var C=w,R=36;;R+=36){var M=R<=E?1:R>=E+26?26:R-E;if(C<M)break;var N=C-M,D=36-M;x.push(jn(digitToBasic(M+N%D))),C=Ln(N/D)}x.push(jn(digitToBasic(C))),E=adapt(w,k,P==A),w=0,++P}}++w,++S}return x.join("")},getIterator=function(h){var d=getIteratorMethod(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return anObject(d.call(h))},Vn=getBuiltIn("fetch"),$n=getBuiltIn("Headers"),Fn=wellKnownSymbol("iterator"),Bn="URLSearchParams",Un="URLSearchParamsIterator",zn=st.set,Gn=st.getterFor(Bn),Hn=st.getterFor(Un),qn=/\+/g,Xn=Array(4),percentSequence=function(h){return Xn[h-1]||(Xn[h-1]=RegExp("((?:%[\\da-f]{2}){"+h+"})","gi"))},percentDecode=function(h){try{return decodeURIComponent(h)}catch(d){return h}},deserialize=function(h){var d=h.replace(qn," "),g=4;try{return decodeURIComponent(d)}catch(h){for(;g;)d=d.replace(percentSequence(g--),percentDecode);return d}},Yn=/[!'()~]|%20/g,Wn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(h){return Wn[h]},serialize=function(h){return encodeURIComponent(h).replace(Yn,replacer)},parseSearchParams=function(h,d){if(d)for(var g,x,b=d.split("&"),S=0;S<b.length;)(g=b[S++]).length&&(x=g.split("="),h.push({key:deserialize(x.shift()),value:deserialize(x.join("="))}))},updateSearchParams=function(h){this.entries.length=0,parseSearchParams(this.entries,h)},validateArgumentsLength=function(h,d){if(h<d)throw TypeError("Not enough arguments")},Qn=createIteratorConstructor((function Iterator(h,d){zn(this,{type:Un,iterator:getIterator(Gn(h).entries),kind:d})}),"Iterator",(function next(){var h=Hn(this),d=h.kind,g=h.iterator.next(),x=g.value;return g.done||(g.value="keys"===d?x.key:"values"===d?x.value:[x.key,x.value]),g})),Zn=function URLSearchParams(){anInstance(this,Zn,Bn);var h,d,g,x,b,S,w,E,A,P=arguments.length>0?arguments[0]:void 0,_=this,k=[];if(zn(_,{type:Bn,entries:k,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==P)if(isObject(P))if("function"==typeof(h=getIteratorMethod(P)))for(g=(d=h.call(P)).next;!(x=g.call(d)).done;){if((w=(S=(b=getIterator(anObject(x.value))).next).call(b)).done||(E=S.call(b)).done||!S.call(b).done)throw TypeError("Expected sequence with length 2");k.push({key:w.value+"",value:E.value+""})}else for(A in P)has(P,A)&&k.push({key:A,value:P[A]+""});else parseSearchParams(k,"string"==typeof P?"?"===P.charAt(0)?P.slice(1):P:P+"")},Kn=Zn.prototype;redefineAll(Kn,{append:function append(h,d){validateArgumentsLength(arguments.length,2);var g=Gn(this);g.entries.push({key:h+"",value:d+""}),g.updateURL()},delete:function(h){validateArgumentsLength(arguments.length,1);for(var d=Gn(this),g=d.entries,x=h+"",b=0;b<g.length;)g[b].key===x?g.splice(b,1):b++;d.updateURL()},get:function get(h){validateArgumentsLength(arguments.length,1);for(var d=Gn(this).entries,g=h+"",x=0;x<d.length;x++)if(d[x].key===g)return d[x].value;return null},getAll:function getAll(h){validateArgumentsLength(arguments.length,1);for(var d=Gn(this).entries,g=h+"",x=[],b=0;b<d.length;b++)d[b].key===g&&x.push(d[b].value);return x},has:function has(h){validateArgumentsLength(arguments.length,1);for(var d=Gn(this).entries,g=h+"",x=0;x<d.length;)if(d[x++].key===g)return!0;return!1},set:function set(h,d){validateArgumentsLength(arguments.length,1);for(var g,x=Gn(this),b=x.entries,S=!1,w=h+"",E=d+"",A=0;A<b.length;A++)(g=b[A]).key===w&&(S?b.splice(A--,1):(S=!0,g.value=E));S||b.push({key:w,value:E}),x.updateURL()},sort:function sort(){var h,d,g,x=Gn(this),b=x.entries,S=b.slice();for(b.length=0,g=0;g<S.length;g++){for(h=S[g],d=0;d<g;d++)if(b[d].key>h.key){b.splice(d,0,h);break}d===g&&b.push(h)}x.updateURL()},forEach:function forEach(h){for(var d,g=Gn(this).entries,x=functionBindContext(h,arguments.length>1?arguments[1]:void 0,3),b=0;b<g.length;)x((d=g[b++]).value,d.key,this)},keys:function keys(){return new Qn(this,"keys")},values:function values(){return new Qn(this,"values")},entries:function entries(){return new Qn(this,"entries")}},{enumerable:!0}),ct(Kn,Fn,Kn.entries),ct(Kn,"toString",(function toString(){for(var h,d=Gn(this).entries,g=[],x=0;x<d.length;)h=d[x++],g.push(serialize(h.key)+"="+serialize(h.value));return g.join("&")}),{enumerable:!0}),setToStringTag(Zn,Bn),_export({global:!0,forced:!_n},{URLSearchParams:Zn}),_n||"function"!=typeof Vn||"function"!=typeof $n||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){var d,g,x,b=[h];return arguments.length>1&&(isObject(d=arguments[1])&&(g=d.body,Re(g)===Bn&&((x=d.headers?new $n(d.headers):new $n).has("content-type")||x.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),d=Jt(d,{body:createPropertyDescriptor(0,String(g)),headers:createPropertyDescriptor(0,x)}))),b.push(d)),Vn.apply(this,b)}});var Jn,ti={URLSearchParams:Zn,getState:Gn},ei=Jr.codeAt,ri=g.URL,ni=ti.URLSearchParams,ii=ti.getState,ai=st.set,oi=st.getterFor("URL"),ui=Math.floor,si=Math.pow,ci="Invalid scheme",li="Invalid host",fi="Invalid port",hi=/[A-Za-z]/,pi=/[\d+-.A-Za-z]/,yi=/\d/,vi=/^(0x|0X)/,di=/^[0-7]+$/,gi=/^\d+$/,mi=/^[\dA-Fa-f]+$/,xi=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,bi=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Si=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,wi=/[\u0009\u000A\u000D]/g,parseHost=function(h,d){var g,x,b;if("["==d.charAt(0)){if("]"!=d.charAt(d.length-1))return li;if(!(g=parseIPv6(d.slice(1,-1))))return li;h.host=g}else if(isSpecial(h)){if(d=function(h){var d,g,x=[],b=h.toLowerCase().replace(In,".").split(".");for(d=0;d<b.length;d++)g=b[d],x.push(Nn.test(g)?"xn--"+encode(g):g);return x.join(".")}(d),xi.test(d))return li;if(null===(g=parseIPv4(d)))return li;h.host=g}else{if(bi.test(d))return li;for(g="",x=Rn(d),b=0;b<x.length;b++)g+=percentEncode(x[b],Ei);h.host=g}},parseIPv4=function(h){var d,g,x,b,S,w,E,A=h.split(".");if(A.length&&""==A[A.length-1]&&A.pop(),(d=A.length)>4)return h;for(g=[],x=0;x<d;x++){if(""==(b=A[x]))return h;if(S=10,b.length>1&&"0"==b.charAt(0)&&(S=vi.test(b)?16:8,b=b.slice(8==S?1:2)),""===b)w=0;else{if(!(10==S?gi:8==S?di:mi).test(b))return h;w=parseInt(b,S)}g.push(w)}for(x=0;x<d;x++)if(w=g[x],x==d-1){if(w>=si(256,5-d))return null}else if(w>255)return null;for(E=g.pop(),x=0;x<g.length;x++)E+=g[x]*si(256,3-x);return E},parseIPv6=function(h){var d,g,x,b,S,w,E,A=[0,0,0,0,0,0,0,0],P=0,_=null,k=0,char=function(){return h.charAt(k)};if(":"==char()){if(":"!=h.charAt(1))return;k+=2,_=++P}for(;char();){if(8==P)return;if(":"!=char()){for(d=g=0;g<4&&mi.test(char());)d=16*d+parseInt(char(),16),k++,g++;if("."==char()){if(0==g)return;if(k-=g,P>6)return;for(x=0;char();){if(b=null,x>0){if(!("."==char()&&x<4))return;k++}if(!yi.test(char()))return;for(;yi.test(char());){if(S=parseInt(char(),10),null===b)b=S;else{if(0==b)return;b=10*b+S}if(b>255)return;k++}A[P]=256*A[P]+b,2!=++x&&4!=x||P++}if(4!=x)return;break}if(":"==char()){if(k++,!char())return}else if(char())return;A[P++]=d}else{if(null!==_)return;k++,_=++P}}if(null!==_)for(w=P-_,P=7;0!=P&&w>0;)E=A[P],A[P--]=A[_+w-1],A[_+--w]=E;else if(8!=P)return;return A},serializeHost=function(h){var d,g,x,b;if("number"==typeof h){for(d=[],g=0;g<4;g++)d.unshift(h%256),h=ui(h/256);return d.join(".")}if("object"==typeof h){for(d="",x=function(h){for(var d=null,g=1,x=null,b=0,S=0;S<8;S++)0!==h[S]?(b>g&&(d=x,g=b),x=null,b=0):(null===x&&(x=S),++b);return b>g&&(d=x,g=b),d}(h),g=0;g<8;g++)b&&0===h[g]||(b&&(b=!1),x===g?(d+=g?":":"::",b=!0):(d+=h[g].toString(16),g<7&&(d+=":")));return"["+d+"]"}return h},Ei={},Ai=Cn({},Ei,{" ":1,'"':1,"<":1,">":1,"`":1}),Pi=Cn({},Ai,{"#":1,"?":1,"{":1,"}":1}),Ti=Cn({},Pi,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(h,d){var g=ei(h,0);return g>32&&g<127&&!has(d,h)?h:encodeURIComponent(h)},_i={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(h){return has(_i,h.scheme)},includesCredentials=function(h){return""!=h.username||""!=h.password},cannotHaveUsernamePasswordPort=function(h){return!h.host||h.cannotBeABaseURL||"file"==h.scheme},isWindowsDriveLetter=function(h,d){var g;return 2==h.length&&hi.test(h.charAt(0))&&(":"==(g=h.charAt(1))||!d&&"|"==g)},startsWithWindowsDriveLetter=function(h){var d;return h.length>1&&isWindowsDriveLetter(h.slice(0,2))&&(2==h.length||"/"===(d=h.charAt(2))||"\\"===d||"?"===d||"#"===d)},shortenURLsPath=function(h){var d=h.path,g=d.length;!g||"file"==h.scheme&&1==g&&isWindowsDriveLetter(d[0],!0)||d.pop()},isSingleDot=function(h){return"."===h||"%2e"===h.toLowerCase()},ki={},Oi={},Ci={},Ri={},Mi={},Ni={},Ii={},Di={},Li={},ji={},Vi={},$i={},Fi={},Bi={},Ui={},zi={},Gi={},Hi={},qi={},Xi={},Yi={},parseURL=function(h,d,g,x){var b,S,w,E,A,P=g||ki,_=0,k="",C=!1,R=!1,M=!1;for(g||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,d=d.replace(Si,"")),d=d.replace(wi,""),b=Rn(d);_<=b.length;){switch(S=b[_],P){case ki:if(!S||!hi.test(S)){if(g)return ci;P=Ci;continue}k+=S.toLowerCase(),P=Oi;break;case Oi:if(S&&(pi.test(S)||"+"==S||"-"==S||"."==S))k+=S.toLowerCase();else{if(":"!=S){if(g)return ci;k="",P=Ci,_=0;continue}if(g&&(isSpecial(h)!=has(_i,k)||"file"==k&&(includesCredentials(h)||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=k,g)return void(isSpecial(h)&&_i[h.scheme]==h.port&&(h.port=null));k="","file"==h.scheme?P=Bi:isSpecial(h)&&x&&x.scheme==h.scheme?P=Ri:isSpecial(h)?P=Di:"/"==b[_+1]?(P=Mi,_++):(h.cannotBeABaseURL=!0,h.path.push(""),P=qi)}break;case Ci:if(!x||x.cannotBeABaseURL&&"#"!=S)return ci;if(x.cannotBeABaseURL&&"#"==S){h.scheme=x.scheme,h.path=x.path.slice(),h.query=x.query,h.fragment="",h.cannotBeABaseURL=!0,P=Yi;break}P="file"==x.scheme?Bi:Ni;continue;case Ri:if("/"!=S||"/"!=b[_+1]){P=Ni;continue}P=Li,_++;break;case Mi:if("/"==S){P=ji;break}P=Hi;continue;case Ni:if(h.scheme=x.scheme,S==Jn)h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query=x.query;else if("/"==S||"\\"==S&&isSpecial(h))P=Ii;else if("?"==S)h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query="",P=Xi;else{if("#"!=S){h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.path.pop(),P=Hi;continue}h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query=x.query,h.fragment="",P=Yi}break;case Ii:if(!isSpecial(h)||"/"!=S&&"\\"!=S){if("/"!=S){h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,P=Hi;continue}P=ji}else P=Li;break;case Di:if(P=Li,"/"!=S||"/"!=k.charAt(_+1))continue;_++;break;case Li:if("/"!=S&&"\\"!=S){P=ji;continue}break;case ji:if("@"==S){C&&(k="%40"+k),C=!0,w=Rn(k);for(var N=0;N<w.length;N++){var D=w[N];if(":"!=D||M){var L=percentEncode(D,Ti);M?h.password+=L:h.username+=L}else M=!0}k=""}else if(S==Jn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(C&&""==k)return"Invalid authority";_-=Rn(k).length+1,k="",P=Vi}else k+=S;break;case Vi:case $i:if(g&&"file"==h.scheme){P=zi;continue}if(":"!=S||R){if(S==Jn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(isSpecial(h)&&""==k)return li;if(g&&""==k&&(includesCredentials(h)||null!==h.port))return;if(E=parseHost(h,k))return E;if(k="",P=Gi,g)return;continue}"["==S?R=!0:"]"==S&&(R=!1),k+=S}else{if(""==k)return li;if(E=parseHost(h,k))return E;if(k="",P=Fi,g==$i)return}break;case Fi:if(!yi.test(S)){if(S==Jn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)||g){if(""!=k){var j=parseInt(k,10);if(j>65535)return fi;h.port=isSpecial(h)&&j===_i[h.scheme]?null:j,k=""}if(g)return;P=Gi;continue}return fi}k+=S;break;case Bi:if(h.scheme="file","/"==S||"\\"==S)P=Ui;else{if(!x||"file"!=x.scheme){P=Hi;continue}if(S==Jn)h.host=x.host,h.path=x.path.slice(),h.query=x.query;else if("?"==S)h.host=x.host,h.path=x.path.slice(),h.query="",P=Xi;else{if("#"!=S){startsWithWindowsDriveLetter(b.slice(_).join(""))||(h.host=x.host,h.path=x.path.slice(),shortenURLsPath(h)),P=Hi;continue}h.host=x.host,h.path=x.path.slice(),h.query=x.query,h.fragment="",P=Yi}}break;case Ui:if("/"==S||"\\"==S){P=zi;break}x&&"file"==x.scheme&&!startsWithWindowsDriveLetter(b.slice(_).join(""))&&(isWindowsDriveLetter(x.path[0],!0)?h.path.push(x.path[0]):h.host=x.host),P=Hi;continue;case zi:if(S==Jn||"/"==S||"\\"==S||"?"==S||"#"==S){if(!g&&isWindowsDriveLetter(k))P=Hi;else if(""==k){if(h.host="",g)return;P=Gi}else{if(E=parseHost(h,k))return E;if("localhost"==h.host&&(h.host=""),g)return;k="",P=Gi}continue}k+=S;break;case Gi:if(isSpecial(h)){if(P=Hi,"/"!=S&&"\\"!=S)continue}else if(g||"?"!=S)if(g||"#"!=S){if(S!=Jn&&(P=Hi,"/"!=S))continue}else h.fragment="",P=Yi;else h.query="",P=Xi;break;case Hi:if(S==Jn||"/"==S||"\\"==S&&isSpecial(h)||!g&&("?"==S||"#"==S)){if(".."===(A=(A=k).toLowerCase())||"%2e."===A||".%2e"===A||"%2e%2e"===A?(shortenURLsPath(h),"/"==S||"\\"==S&&isSpecial(h)||h.path.push("")):isSingleDot(k)?"/"==S||"\\"==S&&isSpecial(h)||h.path.push(""):("file"==h.scheme&&!h.path.length&&isWindowsDriveLetter(k)&&(h.host&&(h.host=""),k=k.charAt(0)+":"),h.path.push(k)),k="","file"==h.scheme&&(S==Jn||"?"==S||"#"==S))for(;h.path.length>1&&""===h.path[0];)h.path.shift();"?"==S?(h.query="",P=Xi):"#"==S&&(h.fragment="",P=Yi)}else k+=percentEncode(S,Pi);break;case qi:"?"==S?(h.query="",P=Xi):"#"==S?(h.fragment="",P=Yi):S!=Jn&&(h.path[0]+=percentEncode(S,Ei));break;case Xi:g||"#"!=S?S!=Jn&&("'"==S&&isSpecial(h)?h.query+="%27":h.query+="#"==S?"%23":percentEncode(S,Ei)):(h.fragment="",P=Yi);break;case Yi:S!=Jn&&(h.fragment+=percentEncode(S,Ai))}_++}},Wi=function URL(h){var d,g,b=anInstance(this,Wi,"URL"),S=arguments.length>1?arguments[1]:void 0,w=String(h),E=ai(b,{type:"URL"});if(void 0!==S)if(S instanceof Wi)d=oi(S);else if(g=parseURL(d={},String(S)))throw TypeError(g);if(g=parseURL(E,w,null,d))throw TypeError(g);var A=E.searchParams=new ni,P=ii(A);P.updateSearchParams(E.query),P.updateURL=function(){E.query=String(A)||null},x||(b.href=serializeURL.call(b),b.origin=getOrigin.call(b),b.protocol=getProtocol.call(b),b.username=getUsername.call(b),b.password=getPassword.call(b),b.host=getHost.call(b),b.hostname=getHostname.call(b),b.port=getPort.call(b),b.pathname=getPathname.call(b),b.search=getSearch.call(b),b.searchParams=getSearchParams.call(b),b.hash=getHash.call(b))},Qi=Wi.prototype,serializeURL=function(){var h=oi(this),d=h.scheme,g=h.username,x=h.password,b=h.host,S=h.port,w=h.path,E=h.query,A=h.fragment,P=d+":";return null!==b?(P+="//",includesCredentials(h)&&(P+=g+(x?":"+x:"")+"@"),P+=serializeHost(b),null!==S&&(P+=":"+S)):"file"==d&&(P+="//"),P+=h.cannotBeABaseURL?w[0]:w.length?"/"+w.join("/"):"",null!==E&&(P+="?"+E),null!==A&&(P+="#"+A),P},getOrigin=function(){var h=oi(this),d=h.scheme,g=h.port;if("blob"==d)try{return new URL(d.path[0]).origin}catch(h){return"null"}return"file"!=d&&isSpecial(h)?d+"://"+serializeHost(h.host)+(null!==g?":"+g:""):"null"},getProtocol=function(){return oi(this).scheme+":"},getUsername=function(){return oi(this).username},getPassword=function(){return oi(this).password},getHost=function(){var h=oi(this),d=h.host,g=h.port;return null===d?"":null===g?serializeHost(d):serializeHost(d)+":"+g},getHostname=function(){var h=oi(this).host;return null===h?"":serializeHost(h)},getPort=function(){var h=oi(this).port;return null===h?"":String(h)},getPathname=function(){var h=oi(this),d=h.path;return h.cannotBeABaseURL?d[0]:d.length?"/"+d.join("/"):""},getSearch=function(){var h=oi(this).query;return h?"?"+h:""},getSearchParams=function(){return oi(this).searchParams},getHash=function(){var h=oi(this).fragment;return h?"#"+h:""},accessorDescriptor=function(h,d){return{get:h,set:d,configurable:!0,enumerable:!0}};if(x&&Qt(Qi,{href:accessorDescriptor(serializeURL,(function(h){var d=oi(this),g=String(h),x=parseURL(d,g);if(x)throw TypeError(x);ii(d.searchParams).updateSearchParams(d.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(h){var d=oi(this);parseURL(d,String(h)+":",ki)})),username:accessorDescriptor(getUsername,(function(h){var d=oi(this),g=Rn(String(h));if(!cannotHaveUsernamePasswordPort(d)){d.username="";for(var x=0;x<g.length;x++)d.username+=percentEncode(g[x],Ti)}})),password:accessorDescriptor(getPassword,(function(h){var d=oi(this),g=Rn(String(h));if(!cannotHaveUsernamePasswordPort(d)){d.password="";for(var x=0;x<g.length;x++)d.password+=percentEncode(g[x],Ti)}})),host:accessorDescriptor(getHost,(function(h){var d=oi(this);d.cannotBeABaseURL||parseURL(d,String(h),Vi)})),hostname:accessorDescriptor(getHostname,(function(h){var d=oi(this);d.cannotBeABaseURL||parseURL(d,String(h),$i)})),port:accessorDescriptor(getPort,(function(h){var d=oi(this);cannotHaveUsernamePasswordPort(d)||(""==(h=String(h))?d.port=null:parseURL(d,h,Fi))})),pathname:accessorDescriptor(getPathname,(function(h){var d=oi(this);d.cannotBeABaseURL||(d.path=[],parseURL(d,h+"",Gi))})),search:accessorDescriptor(getSearch,(function(h){var d=oi(this);""==(h=String(h))?d.query=null:("?"==h.charAt(0)&&(h=h.slice(1)),d.query="",parseURL(d,h,Xi)),ii(d.searchParams).updateSearchParams(d.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(h){var d=oi(this);""!=(h=String(h))?("#"==h.charAt(0)&&(h=h.slice(1)),d.fragment="",parseURL(d,h,Yi)):d.fragment=null}))}),ct(Qi,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),ct(Qi,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),ri){var Zi=ri.createObjectURL,Ki=ri.revokeObjectURL;Zi&&ct(Wi,"createObjectURL",(function createObjectURL(h){return Zi.apply(ri,arguments)})),Ki&&ct(Wi,"revokeObjectURL",(function revokeObjectURL(h){return Ki.apply(ri,arguments)}))}setToStringTag(Wi,"URL"),_export({global:!0,forced:!_n,sham:!x},{URL:Wi});var Ji=bt.f,ta={}.toString,ea="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ra={f:function getOwnPropertyNames(h){return ea&&"[object Window]"==ta.call(h)?function(h){try{return Ji(h)}catch(h){return ea.slice()}}(h):Ji(toIndexedObject(h))}},na={f:wellKnownSymbol},ia=L.f,defineWellKnownSymbol=function(h){var d=lt.Symbol||(lt.Symbol={});has(d,h)||ia(d,h,{value:na.f(h)})},aa=[].push,createMethod$2=function(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=7==h,E=5==h||S;return function(A,_,k,C){for(var R,M,N=toObject(A),D=P(N),L=functionBindContext(_,k,3),j=toLength(D.length),V=0,$=C||arraySpeciesCreate,B=d?$(A,j):g||w?$(A,0):void 0;j>V;V++)if((E||V in D)&&(M=L(R=D[V],V,N),h))if(d)B[V]=M;else if(M)switch(h){case 3:return!0;case 5:return R;case 6:return V;case 2:aa.call(B,R)}else switch(h){case 4:return!1;case 7:aa.call(B,R)}return S?-1:x||b?b:B}},oa={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterOut:createMethod$2(7)},ua=oa.forEach,sa=sharedKey("hidden"),ca="Symbol",la=wellKnownSymbol("toPrimitive"),fa=st.set,ha=st.getterFor(ca),pa=Object.prototype,ya=g.Symbol,va=getBuiltIn("JSON","stringify"),da=N.f,ga=L.f,ma=ra.f,xa=w.f,ba=W("symbols"),Sa=W("op-symbols"),wa=W("string-to-symbol-registry"),Ea=W("symbol-to-string-registry"),Aa=W("wks"),Pa=g.QObject,Ta=!Pa||!Pa.prototype||!Pa.prototype.findChild,_a=x&&fails((function(){return 7!=Jt(ga({},"a",{get:function(){return ga(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=da(pa,d);x&&delete pa[d],ga(h,d,g),x&&h!==pa&&ga(pa,d,x)}:ga,wrap=function(h,d){var g=ba[h]=Jt(ya.prototype);return fa(g,{type:ca,tag:h,description:d}),x||(g.description=d),g},ka=Mt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof ya},Oa=function defineProperty(h,d,g){h===pa&&Oa(Sa,d,g),anObject(h);var x=toPrimitive(d,!0);return anObject(g),has(ba,x)?(g.enumerable?(has(h,sa)&&h[sa][x]&&(h[sa][x]=!1),g=Jt(g,{enumerable:createPropertyDescriptor(0,!1)})):(has(h,sa)||ga(h,sa,createPropertyDescriptor(1,{})),h[sa][x]=!0),_a(h,x,g)):ga(h,x,g)},Ca=function defineProperties(h,d){anObject(h);var g=toIndexedObject(d),b=Wt(g).concat(Ia(g));return ua(b,(function(d){x&&!Ra.call(g,d)||Oa(h,d,g[d])})),h},Ra=function propertyIsEnumerable(h){var d=toPrimitive(h,!0),g=xa.call(this,d);return!(this===pa&&has(ba,d)&&!has(Sa,d))&&(!(g||!has(this,d)||!has(ba,d)||has(this,sa)&&this[sa][d])||g)},Ma=function getOwnPropertyDescriptor(h,d){var g=toIndexedObject(h),x=toPrimitive(d,!0);if(g!==pa||!has(ba,x)||has(Sa,x)){var b=da(g,x);return!b||!has(ba,x)||has(g,sa)&&g[sa][x]||(b.enumerable=!0),b}},Na=function getOwnPropertyNames(h){var d=ma(toIndexedObject(h)),g=[];return ua(d,(function(h){has(ba,h)||has(J,h)||g.push(h)})),g},Ia=function getOwnPropertySymbols(h){var d=h===pa,g=ma(d?Sa:toIndexedObject(h)),x=[];return ua(g,(function(h){!has(ba,h)||d&&!has(pa,h)||x.push(ba[h])})),x};if(Rt||(ct((ya=function Symbol(){if(this instanceof ya)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=uid(h),setter=function(h){this===pa&&setter.call(Sa,h),has(this,sa)&&has(this[sa],d)&&(this[sa][d]=!1),_a(this,d,createPropertyDescriptor(1,h))};return x&&Ta&&_a(pa,d,{configurable:!0,set:setter}),wrap(d,h)}).prototype,"toString",(function toString(){return ha(this).tag})),ct(ya,"withoutSetter",(function(h){return wrap(uid(h),h)})),w.f=Ra,L.f=Oa,N.f=Ma,bt.f=ra.f=Na,St.f=Ia,na.f=function(h){return wrap(wellKnownSymbol(h),h)},x&&(ga(ya.prototype,"description",{configurable:!0,get:function description(){return ha(this).description}}),ct(pa,"propertyIsEnumerable",Ra,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Rt,sham:!Rt},{Symbol:ya}),ua(Wt(Aa),(function(h){defineWellKnownSymbol(h)})),_export({target:ca,stat:!0,forced:!Rt},{for:function(h){var d=String(h);if(has(wa,d))return wa[d];var g=ya(d);return wa[d]=g,Ea[g]=d,g},keyFor:function keyFor(h){if(!ka(h))throw TypeError(h+" is not a symbol");if(has(Ea,h))return Ea[h]},useSetter:function(){Ta=!0},useSimple:function(){Ta=!1}}),_export({target:"Object",stat:!0,forced:!Rt,sham:!x},{create:function create(h,d){return void 0===d?Jt(h):Ca(Jt(h),d)},defineProperty:Oa,defineProperties:Ca,getOwnPropertyDescriptor:Ma}),_export({target:"Object",stat:!0,forced:!Rt},{getOwnPropertyNames:Na,getOwnPropertySymbols:Ia}),_export({target:"Object",stat:!0,forced:fails((function(){St.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return St.f(toObject(h))}}),va){var Da=!Rt||fails((function(){var h=ya();return"[null]"!=va([h])||"{}"!=va({a:h})||"{}"!=va(Object(h))}));_export({target:"JSON",stat:!0,forced:Da},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(isObject(d)||void 0!==h)&&!ka(h))return Ct(d)||(d=function(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!ka(d))return d}),b[1]=d,va.apply(null,b)}})}ya.prototype[la]||j(ya.prototype,la,ya.prototype.valueOf),setToStringTag(ya,ca),J[sa]=!0;var La=L.f,ja=g.Symbol;if(x&&"function"==typeof ja&&(!("description"in ja.prototype)||void 0!==ja().description)){var Va={},$a=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),d=this instanceof $a?new ja(h):void 0===h?ja():ja(h);return""===h&&(Va[d]=!0),d};copyConstructorProperties($a,ja);var Fa=$a.prototype=ja.prototype;Fa.constructor=$a;var Ba=Fa.toString,Ua="Symbol(test)"==String(ja("test")),za=/^Symbol\((.*)\)[^)]+$/;La(Fa,"description",{configurable:!0,get:function description(){var h=isObject(this)?this.valueOf():this,d=Ba.call(h);if(has(Va,h))return"";var g=Ua?d.slice(7,-1):d.replace(za,"$1");return""===g?void 0:g}}),_export({global:!0,forced:!0},{Symbol:$a})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(h,d){var g=[][h];return!!g&&fails((function(){g.call(null,d||function(){throw 1},1)}))},Ga=Object.defineProperty,Ha={},thrower=function(h){throw h},arrayMethodUsesToLength=function(h,d){if(has(Ha,h))return Ha[h];d||(d={});var g=[][h],b=!!has(d,"ACCESSORS")&&d.ACCESSORS,S=has(d,0)?d[0]:thrower,w=has(d,1)?d[1]:void 0;return Ha[h]=!!g&&!fails((function(){if(b&&!x)return!0;var h={length:-1};b?Ga(h,1,{enumerable:!0,get:thrower}):h[1]=1,g.call(h,S,w)}))},qa=oa.forEach,Xa=arrayMethodIsStrict("forEach"),Ya=arrayMethodUsesToLength("forEach"),Wa=Xa&&Ya?[].forEach:function forEach(h){return qa(this,h,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Wa},{forEach:Wa});var Qa=[].reverse,Za=[1,2];_export({target:"Array",proto:!0,forced:String(Za)===String(Za.reverse())},{reverse:function reverse(){return Ct(this)&&(this.length=this.length),Qa.call(this)}});var Ka=arrayMethodHasSpeciesSupport("slice"),Ja=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),to=wellKnownSymbol("species"),eo=[].slice,ro=Math.max;_export({target:"Array",proto:!0,forced:!Ka||!Ja},{slice:function slice(h,d){var g,x,b,S=toIndexedObject(this),w=toLength(S.length),E=toAbsoluteIndex(h,w),A=toAbsoluteIndex(void 0===d?w:d,w);if(Ct(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!Ct(g.prototype)?isObject(g)&&null===(g=g[to])&&(g=void 0):g=void 0,g===Array||void 0===g))return eo.call(S,E,A);for(x=new(void 0===g?Array:g)(ro(A-E,0)),b=0;E<A;E++,b++)E in S&&createProperty(x,b,S[E]);return x.length=b,x}});var no=Date.prototype,io="Invalid Date",ao="toString",oo=no.toString,uo=no.getTime;new Date(NaN)+""!=io&&ct(no,ao,(function toString(){var h=uo.call(this);return h==h?oo.call(this):io}));var so=L.f,co=Function.prototype,lo=co.toString,fo=/^\s*function ([^ (]*)/,ho="name";x&&!(ho in co)&&so(co,ho,{configurable:!0,get:function(){try{return lo.call(this).match(fo)[1]}catch(h){return""}}}),setToStringTag(g.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!x},{create:Jt}),_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperty:L.f});var po=fails((function(){ce(1)}));_export({target:"Object",stat:!0,forced:po,sham:!oe},{getPrototypeOf:function getPrototypeOf(h){return ce(toObject(h))}}),_export({target:"Object",stat:!0},{setPrototypeOf:de});var yo="toString",vo=RegExp.prototype,go=vo.toString,mo=fails((function(){return"/a/b"!=go.call({source:"a",flags:"b"})})),xo=go.name!=yo;for(var bo in(mo||xo)&&ct(RegExp.prototype,yo,(function toString(){var h=anObject(this),d=String(h.source),g=h.flags;return"/"+d+"/"+String(void 0===g&&h instanceof RegExp&&!("flags"in vo)?regexpFlags.call(h):g)}),{unsafe:!0}),mn){var So=g[bo],wo=So&&So.prototype;if(wo&&wo.forEach!==Wa)try{j(wo,"forEach",Wa)}catch(h){wo.forEach=Wa}}function _typeof(h){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}function asyncGeneratorStep(h,d,g,x,b,S,w){try{var E=h[S](w),A=E.value}catch(h){return void g(h)}E.done?d(A):Promise.resolve(A).then(x,b)}function _asyncToGenerator(h){return function(){var d=this,g=arguments;return new Promise((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}}var Eo=createCommonjsModule((function(h){var d=function(h){var d,g=Object.prototype,x=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},S=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag";function define(h,d,g){return Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}),h[d]}try{define({},"")}catch(h){define=function define(h,d,g){return h[d]=g}}function wrap(h,d,g,x){var b=d&&d.prototype instanceof Generator?d:Generator,S=Object.create(b.prototype),w=new Context(x||[]);return S._invoke=function makeInvokeMethod(h,d,g){var x=A;return function invoke(b,S){if(x===_)throw new Error("Generator is already running");if(x===k){if("throw"===b)throw S;return doneResult()}for(g.method=b,g.arg=S;;){var w=g.delegate;if(w){var E=maybeInvokeDelegate(w,g);if(E){if(E===C)continue;return E}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if(x===A)throw x=k,g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);x=_;var R=tryCatch(h,d,g);if("normal"===R.type){if(x=g.done?k:P,R.arg===C)continue;return{value:R.arg,done:g.done}}"throw"===R.type&&(x=k,g.method="throw",g.arg=R.arg)}}}(h,g,w),S}function tryCatch(h,d,g){try{return{type:"normal",arg:h.call(d,g)}}catch(h){return{type:"throw",arg:h}}}h.wrap=wrap;var A="suspendedStart",P="suspendedYield",_="executing",k="completed",C={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var R={};R[S]=function(){return this};var M=Object.getPrototypeOf,N=M&&M(M(values([])));N&&N!==g&&x.call(N,S)&&(R=N);var D=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(R);function defineIteratorMethods(h){["next","throw","return"].forEach((function(d){define(h,d,(function(h){return this._invoke(d,h)}))}))}function AsyncIterator(h,d){var g;this._invoke=function enqueue(b,S){function callInvokeWithMethodAndArg(){return new d((function(g,w){!function invoke(g,b,S,w){var E=tryCatch(h[g],h,b);if("throw"!==E.type){var A=E.arg,P=A.value;return P&&"object"===_typeof(P)&&x.call(P,"__await")?d.resolve(P.__await).then((function(h){invoke("next",h,S,w)}),(function(h){invoke("throw",h,S,w)})):d.resolve(P).then((function(h){A.value=h,S(A)}),(function(h){return invoke("throw",h,S,w)}))}w(E.arg)}(b,S,g,w)}))}return g=g?g.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(h,g){var x=h.iterator[g.method];if(x===d){if(g.delegate=null,"throw"===g.method){if(h.iterator.return&&(g.method="return",g.arg=d,maybeInvokeDelegate(h,g),"throw"===g.method))return C;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var b=tryCatch(x,h.iterator,g.arg);if("throw"===b.type)return g.method="throw",g.arg=b.arg,g.delegate=null,C;var S=b.arg;return S?S.done?(g[h.resultName]=S.value,g.next=h.nextLoc,"return"!==g.method&&(g.method="next",g.arg=d),g.delegate=null,C):S:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,C)}function pushTryEntry(h){var d={tryLoc:h[0]};1 in h&&(d.catchLoc=h[1]),2 in h&&(d.finallyLoc=h[2],d.afterLoc=h[3]),this.tryEntries.push(d)}function resetTryEntry(h){var d=h.completion||{};d.type="normal",delete d.arg,h.completion=d}function Context(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(pushTryEntry,this),this.reset(!0)}function values(h){if(h){var g=h[S];if(g)return g.call(h);if("function"==typeof h.next)return h;if(!isNaN(h.length)){var b=-1,w=function next(){for(;++b<h.length;)if(x.call(h,b))return next.value=h[b],next.done=!1,next;return next.value=d,next.done=!0,next};return w.next=w}}return{next:doneResult}}function doneResult(){return{value:d,done:!0}}return GeneratorFunction.prototype=D.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),h.isGeneratorFunction=function(h){var d="function"==typeof h&&h.constructor;return!!d&&(d===GeneratorFunction||"GeneratorFunction"===(d.displayName||d.name))},h.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,GeneratorFunctionPrototype):(h.__proto__=GeneratorFunctionPrototype,define(h,E,"GeneratorFunction")),h.prototype=Object.create(D),h},h.awrap=function(h){return{__await:h}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[w]=function(){return this},h.AsyncIterator=AsyncIterator,h.async=function(d,g,x,b,S){void 0===S&&(S=Promise);var w=new AsyncIterator(wrap(d,g,x,b),S);return h.isGeneratorFunction(g)?w:w.next().then((function(h){return h.done?h.value:w.next()}))},defineIteratorMethods(D),define(D,E,"Generator"),D[S]=function(){return this},D.toString=function(){return"[object Generator]"},h.keys=function(h){var d=[];for(var g in h)d.push(g);return d.reverse(),function next(){for(;d.length;){var g=d.pop();if(g in h)return next.value=g,next.done=!1,next}return next.done=!0,next}},h.values=values,Context.prototype={constructor:Context,reset:function reset(h){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(resetTryEntry),!h)for(var g in this)"t"===g.charAt(0)&&x.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=d)},stop:function stop(){this.done=!0;var h=this.tryEntries[0].completion;if("throw"===h.type)throw h.arg;return this.rval},dispatchException:function dispatchException(h){if(this.done)throw h;var g=this;function handle(x,b){return w.type="throw",w.arg=h,g.next=x,b&&(g.method="next",g.arg=d),!!b}for(var b=this.tryEntries.length-1;b>=0;--b){var S=this.tryEntries[b],w=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var E=x.call(S,"catchLoc"),A=x.call(S,"finallyLoc");if(E&&A){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0);if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}else if(E){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function abrupt(h,d){for(var g=this.tryEntries.length-1;g>=0;--g){var b=this.tryEntries[g];if(b.tryLoc<=this.prev&&x.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var S=b;break}}S&&("break"===h||"continue"===h)&&S.tryLoc<=d&&d<=S.finallyLoc&&(S=null);var w=S?S.completion:{};return w.type=h,w.arg=d,S?(this.method="next",this.next=S.finallyLoc,C):this.complete(w)},complete:function complete(h,d){if("throw"===h.type)throw h.arg;return"break"===h.type||"continue"===h.type?this.next=h.arg:"return"===h.type?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):"normal"===h.type&&d&&(this.next=d),C},finish:function finish(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.finallyLoc===h)return this.complete(g.completion,g.afterLoc),resetTryEntry(g),C}},catch:function _catch(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.tryLoc===h){var x=g.completion;if("throw"===x.type){var b=x.arg;resetTryEntry(g)}return b}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(h,g,x){return this.delegate={iterator:values(h),resultName:g,nextLoc:x},"next"===this.method&&(this.arg=d),C}},h}(h.exports);try{regeneratorRuntime=d}catch(h){Function("r","regeneratorRuntime = r")(d)}})),Ao=void 0!==Ao?Ao:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var Po=defaultSetTimout,To=defaultClearTimeout;function runTimeout(h){if(Po===setTimeout)return setTimeout(h,0);if((Po===defaultSetTimout||!Po)&&setTimeout)return Po=setTimeout,setTimeout(h,0);try{return Po(h,0)}catch(d){try{return Po.call(null,h,0)}catch(d){return Po.call(this,h,0)}}}"function"==typeof Ao.setTimeout&&(Po=setTimeout),"function"==typeof Ao.clearTimeout&&(To=clearTimeout);var _o,ko=[],Oo=!1,Co=-1;function cleanUpNextTick(){Oo&&_o&&(Oo=!1,_o.length?ko=_o.concat(ko):Co=-1,ko.length&&drainQueue())}function drainQueue(){if(!Oo){var h=runTimeout(cleanUpNextTick);Oo=!0;for(var d=ko.length;d;){for(_o=ko,ko=[];++Co<d;)_o&&_o[Co].run();Co=-1,d=ko.length}_o=null,Oo=!1,function runClearTimeout(h){if(To===clearTimeout)return clearTimeout(h);if((To===defaultClearTimeout||!To)&&clearTimeout)return To=clearTimeout,clearTimeout(h);try{return To(h)}catch(d){try{return To.call(null,h)}catch(d){return To.call(this,h)}}}(h)}}function Item(h,d){this.fun=h,this.array=d}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var Ro=noop,Mo=noop,No=noop,Io=noop,Do=noop,Lo=noop,jo=noop;var Vo=Ao.performance||{},$o=Vo.now||Vo.mozNow||Vo.msNow||Vo.oNow||Vo.webkitNow||function(){return(new Date).getTime()};var Fo=new Date;var Bo={nextTick:function nextTick(h){var d=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)d[g-1]=arguments[g];ko.push(new Item(h,d)),1!==ko.length||Oo||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ro,addListener:Mo,once:No,off:Io,removeListener:Do,removeAllListeners:Lo,emit:jo,binding:function binding(h){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(h){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(h){var d=.001*$o.call(Vo),g=Math.floor(d),x=Math.floor(d%1*1e9);return h&&(g-=h[0],(x-=h[1])<0&&(g--,x+=1e9)),[g,x]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-Fo)/1e3}};_export({target:"Array",proto:!0},{fill:function fill(h){for(var d=toObject(this),g=toLength(d.length),x=arguments.length,b=toAbsoluteIndex(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:toAbsoluteIndex(S,g);w>b;)d[b++]=h;return d}}),addToUnscopables("fill");var Uo=[].join,zo=P!=Object,Go=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:zo||!Go},{join:function join(h){return Uo.call(toIndexedObject(this),void 0===h?",":h)}});var inheritIfRequired=function(h,d,g){var x,b;return de&&"function"==typeof(x=d.constructor)&&x!==g&&isObject(b=x.prototype)&&b!==g.prototype&&de(h,b),h},Ho="\t\n\v\f\r    \u2028\u2029\ufeff",qo="["+Ho+"]",Xo=RegExp("^"+qo+qo+"*"),Yo=RegExp(qo+qo+"*$"),createMethod$3=function(h){return function(d){var g=String(requireObjectCoercible(d));return 1&h&&(g=g.replace(Xo,"")),2&h&&(g=g.replace(Yo,"")),g}},Wo={start:createMethod$3(1),end:createMethod$3(2),trim:createMethod$3(3)},Qo=bt.f,Zo=N.f,Ko=L.f,Jo=Wo.trim,tu="Number",eu=g.Number,ru=eu.prototype,nu=classofRaw(Jt(ru))==tu,toNumber=function(h){var d,g,x,b,S,w,E,A,P=toPrimitive(h,!1);if("string"==typeof P&&P.length>2)if(43===(d=(P=Jo(P)).charCodeAt(0))||45===d){if(88===(g=P.charCodeAt(2))||120===g)return NaN}else if(48===d){switch(P.charCodeAt(1)){case 66:case 98:x=2,b=49;break;case 79:case 111:x=8,b=55;break;default:return+P}for(w=(S=P.slice(2)).length,E=0;E<w;E++)if((A=S.charCodeAt(E))<48||A>b)return NaN;return parseInt(S,x)}return+P};if(kt(tu,!eu(" 0o1")||!eu("0b1")||eu("+0x1"))){for(var iu,au=function Number(h){var d=arguments.length<1?0:h,g=this;return g instanceof au&&(nu?fails((function(){ru.valueOf.call(g)})):classofRaw(g)!=tu)?inheritIfRequired(new eu(toNumber(d)),g,au):toNumber(d)},ou=x?Qo(eu):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),uu=0;ou.length>uu;uu++)has(eu,iu=ou[uu])&&!has(au,iu)&&Ko(au,iu,Zo(eu,iu));au.prototype=ru,ru.constructor=au,ct(g,tu,au)}var su=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),cu=createCommonjsModule((function(h){var d=L.f,g=uid("meta"),x=0,b=Object.isExtensible||function(){return!0},setMetadata=function(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},S=h.exports={REQUIRED:!1,fastKey:function(h,d){if(!isObject(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has(h,g)){if(!b(h))return"F";if(!d)return"E";setMetadata(h)}return h[g].objectID},getWeakData:function(h,d){if(!has(h,g)){if(!b(h))return!0;if(!d)return!1;setMetadata(h)}return h[g].weakData},onFreeze:function(h){return su&&S.REQUIRED&&b(h)&&!has(h,g)&&setMetadata(h),h}};J[g]=!0})),lu=cu.onFreeze,fu=Object.freeze,hu=fails((function(){fu(1)}));_export({target:"Object",stat:!0,forced:hu,sham:!su},{freeze:function freeze(h){return fu&&isObject(h)?fu(lu(h)):h}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,d,g){return[function match(d){var g=requireObjectCoercible(this),x=null==d?void 0:d[h];return void 0!==x?x.call(d,g):new RegExp(d)[h](String(g))},function(h){var x=g(d,h,this);if(x.done)return x.value;var b=anObject(h),S=String(this);if(!b.global)return regexpExecAbstract(b,S);var w=b.unicode;b.lastIndex=0;for(var E,A=[],P=0;null!==(E=regexpExecAbstract(b,S));){var _=String(E[0]);A[P]=_,""===_&&(b.lastIndex=advanceStringIndex(S,toLength(b.lastIndex),w)),P++}return 0===P?null:A}]}));var pu=wellKnownSymbol("match"),isRegexp=function(h){var d;return isObject(h)&&(void 0!==(d=h[pu])?!!d:"RegExp"==classofRaw(h))},yu=[].push,vu=Math.min,du=4294967295,gu=!fails((function(){return!RegExp(du,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(h,d,g){var x;return x="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(h,g){var x=String(requireObjectCoercible(this)),b=void 0===g?du:g>>>0;if(0===b)return[];if(void 0===h)return[x];if(!isRegexp(h))return d.call(x,h,b);for(var S,w,E,A=[],P=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),_=0,k=new RegExp(h.source,P+"g");(S=Kr.call(k,x))&&!((w=k.lastIndex)>_&&(A.push(x.slice(_,S.index)),S.length>1&&S.index<x.length&&yu.apply(A,S.slice(1)),E=S[0].length,_=w,A.length>=b));)k.lastIndex===S.index&&k.lastIndex++;return _===x.length?!E&&k.test("")||A.push(""):A.push(x.slice(_)),A.length>b?A.slice(0,b):A}:"0".split(void 0,0).length?function(h,g){return void 0===h&&0===g?[]:d.call(this,h,g)}:d,[function split(d,g){var b=requireObjectCoercible(this),S=null==d?void 0:d[h];return void 0!==S?S.call(d,b,g):x.call(String(b),d,g)},function(h,b){var S=g(x,h,this,b,x!==d);if(S.done)return S.value;var w=anObject(h),E=String(this),A=speciesConstructor(w,RegExp),P=w.unicode,_=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(gu?"y":"g"),k=new A(gu?w:"^(?:"+w.source+")",_),C=void 0===b?du:b>>>0;if(0===C)return[];if(0===E.length)return null===regexpExecAbstract(k,E)?[E]:[];for(var R=0,M=0,N=[];M<E.length;){k.lastIndex=gu?M:0;var D,L=regexpExecAbstract(k,gu?E:E.slice(M));if(null===L||(D=vu(toLength(k.lastIndex+(gu?0:M)),E.length))===R)M=advanceStringIndex(E,M,P);else{if(N.push(E.slice(R,M)),N.length===C)return N;for(var j=1;j<=L.length-1;j++)if(N.push(L[j]),N.length===C)return N;M=R=D}}return N.push(E.slice(R)),N}]}),!gu);var mu,notARegexp=function(h){if(isRegexp(h))throw TypeError("The method doesn't accept regular expressions");return h},xu=wellKnownSymbol("match"),correctIsRegexpLogic=function(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[xu]=!1,"/./"[h](d)}catch(h){}}return!1},bu=N.f,Su="".startsWith,wu=Math.min,Eu=correctIsRegexpLogic("startsWith"),Au=!(Eu||(mu=bu(String.prototype,"startsWith"),!mu||mu.writable));_export({target:"String",proto:!0,forced:!Au&&!Eu},{startsWith:function startsWith(h){var d=String(requireObjectCoercible(this));notARegexp(h);var g=toLength(wu(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return Su?Su.call(d,x,g):d.slice(g,g+x.length)===x}});var Pu=[].slice,Tu={},construct=function(h,d,g){if(!(d in Tu)){for(var x=[],b=0;b<d;b++)x[b]="a["+b+"]";Tu[d]=Function("C,a","return new C("+x.join(",")+")")}return Tu[d](h,g)},_u=Function.bind||function bind(h){var d=aFunction$1(this),g=Pu.call(arguments,1),x=function bound(){var b=g.concat(Pu.call(arguments));return this instanceof x?construct(d,b.length,b):d.apply(h,b)};return isObject(d.prototype)&&(x.prototype=d.prototype),x};_export({target:"Function",proto:!0},{bind:_u}),_export({global:!0},{globalThis:g});var ku=function check(h){return h&&h.Math==Math&&h},Ou=ku("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||ku("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||ku("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||ku("object"==_typeof(d)&&d)||function(){return this}()||Function("return this")(),Cu=N.f,Ru=fails((function(){Cu(1)}));_export({target:"Object",stat:!0,forced:!x||Ru,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return Cu(toIndexedObject(h),d)}});var Mu=function fails(h){try{return!!h()}catch(h){return!0}},Nu=!Mu((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),Iu={}.propertyIsEnumerable,Du=Object.getOwnPropertyDescriptor,Lu={f:Du&&!Iu.call({1:2},1)?function propertyIsEnumerable(h){var d=Du(this,h);return!!d&&d.enumerable}:Iu},ju=function createPropertyDescriptor(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},Vu={}.toString,$u=function classofRaw(h){return Vu.call(h).slice(8,-1)},Fu="".split,Bu=Mu((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==$u(h)?Fu.call(h,""):Object(h)}:Object,Uu=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},zu=function toIndexedObject(h){return Bu(Uu(h))},Gu=function isObject(h){return"object"===_typeof(h)?null!==h:"function"==typeof h},Hu=function toPrimitive(h,d){if(!Gu(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!Gu(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!Gu(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!Gu(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},qu={}.hasOwnProperty,Xu=function has(h,d){return qu.call(h,d)},Yu=Ou.document,Wu=Gu(Yu)&&Gu(Yu.createElement),Qu=function documentCreateElement(h){return Wu?Yu.createElement(h):{}},Zu=!Nu&&!Mu((function(){return 7!=Object.defineProperty(Qu("div"),"a",{get:function get(){return 7}}).a})),Ku=Object.getOwnPropertyDescriptor,Ju={f:Nu?Ku:function getOwnPropertyDescriptor(h,d){if(h=zu(h),d=Hu(d,!0),Zu)try{return Ku(h,d)}catch(h){}if(Xu(h,d))return ju(!Lu.f.call(h,d),h[d])}},ts=/#|\.prototype\./,es=function isForced(h,d){var g=ns[rs(h)];return g==as||g!=is&&("function"==typeof d?Mu(d):!!d)},rs=es.normalize=function(h){return String(h).replace(ts,".").toLowerCase()},ns=es.data={},is=es.NATIVE="N",as=es.POLYFILL="P",os=es,us={},ss=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},cs=function functionBindContext(h,d,g){if(ss(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},ls=function anObject(h){if(!Gu(h))throw TypeError(String(h)+" is not an object");return h},fs=Object.defineProperty,hs={f:Nu?fs:function defineProperty(h,d,g){if(ls(h),d=Hu(d,!0),ls(g),Zu)try{return fs(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},ps=Nu?function(h,d,g){return hs.f(h,d,ju(1,g))}:function(h,d,g){return h[d]=g,h},ys=Ju.f,vs=function wrapConstructor(h){var d=function Wrapper(d,g,x){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(d);case 2:return new h(d,g)}return new h(d,g,x)}return h.apply(this,arguments)};return d.prototype=h.prototype,d},ds=function _export(h,d){var g,x,b,S,w,E,A,P,_=h.target,k=h.global,C=h.stat,R=h.proto,M=k?Ou:C?Ou[_]:(Ou[_]||{}).prototype,N=k?us:us[_]||(us[_]={}),D=N.prototype;for(b in d)g=!os(k?b:_+(C?".":"#")+b,h.forced)&&M&&Xu(M,b),w=N[b],g&&(E=h.noTargetGet?(P=ys(M,b))&&P.value:M[b]),S=g&&E?E:d[b],g&&_typeof(w)===_typeof(S)||(A=h.bind&&g?cs(S,Ou):h.wrap&&g?vs(S):R&&"function"==typeof S?cs(Function.call,S):S,(h.sham||S&&S.sham||w&&w.sham)&&ps(A,"sham",!0),N[b]=A,R&&(Xu(us,x=_+"Prototype")||ps(us,x,{}),us[x][b]=S,h.real&&D&&!D[b]&&ps(D,b,S)))},gs=Math.ceil,ms=Math.floor,xs=function toInteger(h){return isNaN(h=+h)?0:(h>0?ms:gs)(h)},bs=Math.min,Ss=function toLength(h){return h>0?bs(xs(h),9007199254740991):0},ws="__core-js_shared__",Es=Ou[ws]||function setGlobal(h,d){try{ps(Ou,h,d)}catch(g){Ou[h]=d}return d}(ws,{}),As=createCommonjsModule((function(h){(h.exports=function(h,d){return Es[h]||(Es[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ps=0,Ts=Math.random(),_s=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Ps+Ts).toString(36)},ks=!!Object.getOwnPropertySymbols&&!Mu((function(){return!String(Symbol())})),Os=ks&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),Cs=As("wks"),Rs=Ou.Symbol,Ms=Os?Rs:Rs&&Rs.withoutSetter||_s,Ns=function wellKnownSymbol(h){return Xu(Cs,h)||(ks&&Xu(Rs,h)?Cs[h]=Rs[h]:Cs[h]=Ms("Symbol."+h)),Cs[h]},Is=Ns("match"),Ds=function notARegexp(h){if(function isRegexp(h){var d;return Gu(h)&&(void 0!==(d=h[Is])?!!d:"RegExp"==$u(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},Ls=Ns("match"),js=function correctIsRegexpLogic(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[Ls]=!1,"/./"[h](d)}catch(h){}}return!1},Vs="".startsWith,$s=Math.min,Fs=js("startsWith");ds({target:"String",proto:!0,forced:!Fs},{startsWith:function startsWith(h){var d=String(Uu(this));Ds(h);var g=Ss($s(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return Vs?Vs.call(d,x,g):d.slice(g,g+x.length)===x}});var Bs=function entryVirtual(h){return us[h+"Prototype"]},Us=Bs("String").startsWith,zs=String.prototype,Gs=function startsWith_1(h){var d=h.startsWith;return"string"==typeof h||h===zs||h instanceof String&&d===zs.startsWith?Us:d},Hs=Wo.trim,qs=g.parseFloat,Xs=1/qs(Ho+"-0")!=-1/0?function parseFloat(h){var d=Hs(String(h)),g=qs(d);return 0===g&&"-"==d.charAt(0)?-0:g}:qs;_export({global:!0,forced:parseFloat!=Xs},{parseFloat:Xs});var Ys=Wo.trim;_export({target:"String",proto:!0,forced:function(h){return fails((function(){return!!Ho[h]()||"…"!="…"[h]()||Ho[h].name!==h}))}("trim")},{trim:function trim(){return Ys(this)}});var Ws=L.f,Qs=bt.f,Zs=st.set,Ks=wellKnownSymbol("match"),Js=g.RegExp,tc=Js.prototype,ec=/a/g,rc=/a/g,nc=new Js(ec)!==ec,ic=Hr.UNSUPPORTED_Y;if(x&&kt("RegExp",!nc||ic||fails((function(){return rc[Ks]=!1,Js(ec)!=ec||Js(rc)==rc||"/a/i"!=Js(ec,"i")})))){for(var ac=function RegExp(h,d){var g,x=this instanceof ac,b=isRegexp(h),S=void 0===d;if(!x&&b&&h.constructor===ac&&S)return h;nc?b&&!S&&(h=h.source):h instanceof ac&&(S&&(d=regexpFlags.call(h)),h=h.source),ic&&(g=!!d&&d.indexOf("y")>-1)&&(d=d.replace(/y/g,""));var w=inheritIfRequired(nc?new Js(h,d):Js(h,d),x?this:tc,ac);return ic&&g&&Zs(w,{sticky:g}),w},proxy=function(h){h in ac||Ws(ac,h,{configurable:!0,get:function(){return Js[h]},set:function(d){Js[h]=d}})},oc=Qs(Js),uc=0;oc.length>uc;)proxy(oc[uc++]);tc.constructor=ac,ac.prototype=tc,ct(g,"RegExp",ac)}setSpecies("RegExp");var sc="\t\n\v\f\r    \u2028\u2029\ufeff",cc="["+sc+"]",lc=RegExp("^"+cc+cc+"*"),fc=RegExp(cc+cc+"*$"),hc=function createMethod(h){return function(d){var g=String(Uu(d));return 1&h&&(g=g.replace(lc,"")),2&h&&(g=g.replace(fc,"")),g}},pc={start:hc(1),end:hc(2),trim:hc(3)},yc=pc.trim,vc=Ou.parseFloat,dc=1/vc(sc+"-0")!=-1/0?function parseFloat(h){var d=yc(String(h)),g=vc(d);return 0===g&&"-"==d.charAt(0)?-0:g}:vc;ds({global:!0,forced:parseFloat!=dc},{parseFloat:dc});var gc=us.parseFloat,mc=oa.map,xc=arrayMethodHasSpeciesSupport("map"),bc=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!xc||!bc},{map:function map(h){return mc(this,h,arguments.length>1?arguments[1]:void 0)}});var Sc=function toObject(h){return Object(Uu(h))};_export({target:"Array",stat:!0},{isArray:Ct});var wc,Ec,Ac=Array.isArray||function isArray(h){return"Array"==$u(h)},Pc=Ns("species"),Tc=function arraySpeciesCreate(h,d){var g;return Ac(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!Ac(g.prototype)?Gu(g)&&null===(g=g[Pc])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},_c=[].push,kc=function createMethod(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=5==h||S;return function(E,A,P,_){for(var k,C,R=Sc(E),M=Bu(R),N=cs(A,P,3),D=Ss(M.length),L=0,j=_||Tc,V=d?j(E,D):g?j(E,0):void 0;D>L;L++)if((w||L in M)&&(C=N(k=M[L],L,R),h))if(d)V[L]=C;else if(C)switch(h){case 3:return!0;case 5:return k;case 6:return L;case 2:_c.call(V,k)}else if(b)return!1;return S?-1:x||b?b:V}},Oc={forEach:kc(0),map:kc(1),filter:kc(2),some:kc(3),every:kc(4),find:kc(5),findIndex:kc(6)},Cc=function aFunction(h){return"function"==typeof h?h:void 0},Rc=function getBuiltIn(h,d){return arguments.length<2?Cc(us[h])||Cc(Ou[h]):us[h]&&us[h][d]||Ou[h]&&Ou[h][d]},Mc=Rc("navigator","userAgent")||"",Nc=Ou.process,Ic=Nc&&Nc.versions,Dc=Ic&&Ic.v8;Dc?Ec=(wc=Dc.split("."))[0]+wc[1]:Mc&&(!(wc=Mc.match(/Edge\/(\d+)/))||wc[1]>=74)&&(wc=Mc.match(/Chrome\/(\d+)/))&&(Ec=wc[1]);var Lc=Ec&&+Ec,jc=Ns("species"),Vc=function arrayMethodHasSpeciesSupport(h){return Lc>=51||!Mu((function(){var d=[];return(d.constructor={})[jc]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},$c=Object.defineProperty,Fc={},Bc=function thrower(h){throw h},Uc=function arrayMethodUsesToLength(h,d){if(Xu(Fc,h))return Fc[h];d||(d={});var g=[][h],x=!!Xu(d,"ACCESSORS")&&d.ACCESSORS,b=Xu(d,0)?d[0]:Bc,S=Xu(d,1)?d[1]:void 0;return Fc[h]=!!g&&!Mu((function(){if(x&&!Nu)return!0;var h={length:-1};x?$c(h,1,{enumerable:!0,get:Bc}):h[1]=1,g.call(h,b,S)}))},zc=Oc.map,Gc=Vc("map"),Hc=Uc("map");ds({target:"Array",proto:!0,forced:!Gc||!Hc},{map:function map(h){return zc(this,h,arguments.length>1?arguments[1]:void 0)}});var qc=Bs("Array").map,Xc=Array.prototype,Yc=function map_1(h){var d=h.map;return h===Xc||h instanceof Array&&d===Xc.map?qc:d};ds({target:"Array",stat:!0},{isArray:Ac});var Wc=us.Array.isArray,Qc=Wc;var Zc=function _arrayWithHoles(h){if(Qc(h))return h},Kc={},Jc=cu.getWeakData,tl=st.set,el=st.getterFor,rl=oa.find,nl=oa.findIndex,il=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,d){return rl(h.entries,(function(h){return h[0]===d}))};UncaughtFrozenStore.prototype={get:function(h){var d=findUncaughtFrozen(this,h);if(d)return d[1]},has:function(h){return!!findUncaughtFrozen(this,h)},set:function(h,d){var g=findUncaughtFrozen(this,h);g?g[1]=d:this.entries.push([h,d])},delete:function(h){var d=nl(this.entries,(function(d){return d[0]===h}));return~d&&this.entries.splice(d,1),!!~d}};var al={getConstructor:function(h,d,g,x){var b=h((function(h,S){anInstance(h,b,d),tl(h,{type:d,id:il++,frozen:void 0}),null!=S&&iterate(S,h[x],{that:h,AS_ENTRIES:g})})),S=el(d),define=function(h,d,g){var x=S(h),b=Jc(anObject(d),!0);return!0===b?uncaughtFrozenStore(x).set(d,g):b[x.id]=g,h};return redefineAll(b.prototype,{delete:function(h){var d=S(this);if(!isObject(h))return!1;var g=Jc(h);return!0===g?uncaughtFrozenStore(d).delete(h):g&&has(g,d.id)&&delete g[d.id]},has:function has$1(h){var d=S(this);if(!isObject(h))return!1;var g=Jc(h);return!0===g?uncaughtFrozenStore(d).has(h):g&&has(g,d.id)}}),redefineAll(b.prototype,g?{get:function get(h){var d=S(this);if(isObject(h)){var g=Jc(h);return!0===g?uncaughtFrozenStore(d).get(h):g?g[d.id]:void 0}},set:function set(h,d){return define(this,h,d)}}:{add:function add(h){return define(this,h,!0)}}),b}},ol=(createCommonjsModule((function(h){var d,x=st.enforce,b=!g.ActiveXObject&&"ActiveXObject"in g,S=Object.isExtensible,wrapper=function(h){return function WeakMap(){return h(this,arguments.length?arguments[0]:void 0)}},w=h.exports=function(h,d,x){var b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=g[h],A=E&&E.prototype,P=E,_={},fixMethod=function(h){var d=A[h];ct(A,h,"add"==h?function add(h){return d.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject(h)?void 0:d.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:function set(h,g){return d.call(this,0===h?0:h,g),this})};if(kt(h,"function"!=typeof E||!(S||A.forEach&&!fails((function(){(new E).entries().next()})))))P=x.getConstructor(d,h,b,w),cu.REQUIRED=!0;else if(kt(h,!0)){var k=new P,C=k[w](S?{}:-0,1)!=k,R=fails((function(){k.has(1)})),M=checkCorrectnessOfIteration((function(h){new E(h)})),N=!S&&fails((function(){for(var h=new E,d=5;d--;)h[w](d,d);return!h.has(-0)}));M||((P=d((function(d,g){anInstance(d,P,h);var x=inheritIfRequired(new E,d,P);return null!=g&&iterate(g,x[w],{that:x,AS_ENTRIES:b}),x}))).prototype=A,A.constructor=P),(R||N)&&(fixMethod("delete"),fixMethod("has"),b&&fixMethod("get")),(N||C)&&fixMethod(w),S&&A.clear&&delete A.clear}return _[h]=P,_export({global:!0,forced:P!=E},_),setToStringTag(P,h),S||x.setStrong(P,h,b),P}("WeakMap",wrapper,al);if(Y&&b){d=al.getConstructor(wrapper,"WeakMap",!0),cu.REQUIRED=!0;var E=w.prototype,A=E.delete,P=E.has,_=E.get,k=E.set;redefineAll(E,{delete:function(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),A.call(this,h)||g.frozen.delete(h)}return A.call(this,h)},has:function has(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),P.call(this,h)||g.frozen.has(h)}return P.call(this,h)},get:function get(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),P.call(this,h)?_.call(this,h):g.frozen.get(h)}return _.call(this,h)},set:function set(h,g){if(isObject(h)&&!S(h)){var b=x(this);b.frozen||(b.frozen=new d),P.call(this,h)?k.call(this,h,g):b.frozen.set(h,g)}else k.call(this,h,g);return this}})}})),Function.toString);"function"!=typeof Es.inspectSource&&(Es.inspectSource=function(h){return ol.call(h)});var ul,sl,cl,ll=Es.inspectSource,fl=Ou.WeakMap,hl="function"==typeof fl&&/native code/.test(ll(fl)),pl=As("keys"),yl=function sharedKey(h){return pl[h]||(pl[h]=_s(h))},vl={},dl=Ou.WeakMap;if(hl){var gl=Es.state||(Es.state=new dl),ml=gl.get,xl=gl.has,bl=gl.set;ul=function set(h,d){return d.facade=h,bl.call(gl,h,d),d},sl=function get(h){return ml.call(gl,h)||{}},cl=function has(h){return xl.call(gl,h)}}else{var Sl=yl("state");vl[Sl]=!0,ul=function set(h,d){return d.facade=h,ps(h,Sl,d),d},sl=function get(h){return Xu(h,Sl)?h[Sl]:{}},cl=function has(h){return Xu(h,Sl)}}var wl,El,Al,Pl={set:ul,get:sl,has:cl,enforce:function enforce(h){return cl(h)?sl(h):ul(h,{})},getterFor:function getterFor(h){return function(d){var g;if(!Gu(d)||(g=sl(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},Tl=!Mu((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),_l=yl("IE_PROTO"),kl=Object.prototype,Ol=Tl?Object.getPrototypeOf:function(h){return h=Sc(h),Xu(h,_l)?h[_l]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?kl:null},Cl=(Ns("iterator"),!1);[].keys&&("next"in(Al=[].keys())?(El=Ol(Ol(Al)))!==Object.prototype&&(wl=El):Cl=!0),null==wl&&(wl={});var Rl={IteratorPrototype:wl,BUGGY_SAFARI_ITERATORS:Cl};_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperties:Qt});var Ml=fails((function(){Wt(1)}));_export({target:"Object",stat:!0,forced:Ml},{keys:function keys(h){return Wt(toObject(h))}});var Nl=dt.indexOf,Il=[].indexOf,Dl=!!Il&&1/[1].indexOf(1,-0)<0,Ll=arrayMethodIsStrict("indexOf"),jl=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Dl||!Ll||!jl},{indexOf:function indexOf(h){return Dl?Il.apply(this,arguments)||0:Nl(this,h,arguments.length>1?arguments[1]:void 0)}});var Vl,$l=Math.max,Fl=Math.min,Bl=function toAbsoluteIndex(h,d){var g=xs(h);return g<0?$l(g+d,0):Fl(g,d)},Ul=function createMethod(h){return function(d,g,x){var b,S=zu(d),w=Ss(S.length),E=Bl(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},zl={includes:Ul(!0),indexOf:Ul(!1)},Gl=zl.indexOf,Hl=function objectKeysInternal(h,d){var g,x=zu(h),b=0,S=[];for(g in x)!Xu(vl,g)&&Xu(x,g)&&S.push(g);for(;d.length>b;)Xu(x,g=d[b++])&&(~Gl(S,g)||S.push(g));return S},ql=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xl=Object.keys||function keys(h){return Hl(h,ql)},Yl=Nu?Object.defineProperties:function defineProperties(h,d){ls(h);for(var g,x=Xl(d),b=x.length,S=0;b>S;)hs.f(h,g=x[S++],d[g]);return h},Wl=Rc("document","documentElement"),Ql=yl("IE_PROTO"),Zl=function EmptyConstructor(){},Kl=function scriptTag(h){return"<script>"+h+"</"+"script>"},Jl=function NullProtoObject(){try{Vl=document.domain&&new ActiveXObject("htmlfile")}catch(h){}Jl=Vl?function NullProtoObjectViaActiveX(h){h.write(Kl("")),h.close();var d=h.parentWindow.Object;return h=null,d}(Vl):function NullProtoObjectViaIFrame(){var h,d=Qu("iframe");return d.style.display="none",Wl.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(Kl("document.F=Object")),h.close(),h.F}();for(var h=ql.length;h--;)delete Jl.prototype[ql[h]];return Jl()};vl[Ql]=!0;var tf=Object.create||function create(h,d){var g;return null!==h?(Zl.prototype=ls(h),g=new Zl,Zl.prototype=null,g[Ql]=h):g=Jl(),void 0===d?g:Yl(g,d)},ef={};ef[Ns("toStringTag")]="z";var rf="[object z]"===String(ef),nf=Ns("toStringTag"),af="Arguments"==$u(function(){return arguments}()),of=rf?$u:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function tryGet(h,d){try{return h[d]}catch(h){}}(d=Object(h),nf))?g:af?$u(d):"Object"==(x=$u(d))&&"function"==typeof d.callee?"Arguments":x},uf=rf?{}.toString:function toString(){return"[object "+of(this)+"]"},sf=hs.f,cf=Ns("toStringTag"),lf=function setToStringTag(h,d,g,x){if(h){var b=g?h:h.prototype;Xu(b,cf)||sf(b,cf,{configurable:!0,value:d}),x&&!rf&&ps(b,"toString",uf)}},ff=Rl.IteratorPrototype,hf=function returnThis(){return this},pf=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return ls(g),function aPossiblePrototype(h){if(!Gu(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),yf=function redefine(h,d,g,x){x&&x.enumerable?h[d]=g:ps(h,d,g)},vf=Rl.IteratorPrototype,df=Rl.BUGGY_SAFARI_ITERATORS,gf=Ns("iterator"),mf="keys",xf="values",bf="entries",Sf=function returnThis(){return this},wf=function defineIterator(h,d,g,x,b,S,w){!function createIteratorConstructor(h,d,g){var x=d+" Iterator";h.prototype=tf(ff,{next:ju(1,g)}),lf(h,x,!1,!0),Kc[x]=hf}(g,d,x);var E,A,P,_=function getIterationMethod(h){if(h===b&&N)return N;if(!df&&h in R)return R[h];switch(h){case mf:return function keys(){return new g(this,h)};case xf:return function values(){return new g(this,h)};case bf:return function entries(){return new g(this,h)}}return function(){return new g(this)}},k=d+" Iterator",C=!1,R=h.prototype,M=R[gf]||R["@@iterator"]||b&&R[b],N=!df&&M||_(b),D="Array"==d&&R.entries||M;if(D&&(E=Ol(D.call(new h)),vf!==Object.prototype&&E.next&&(lf(E,k,!0,!0),Kc[k]=Sf)),b==xf&&M&&M.name!==xf&&(C=!0,N=function values(){return M.call(this)}),w&&R[gf]!==N&&ps(R,gf,N),Kc[d]=N,b)if(A={values:_(xf),keys:S?N:_(mf),entries:_(bf)},w)for(P in A)(df||C||!(P in R))&&yf(R,P,A[P]);else ds({target:d,proto:!0,forced:df||C},A);return A},Ef="Array Iterator",Af=Pl.set,Pf=Pl.getterFor(Ef);wf(Array,"Array",(function(h,d){Af(this,{type:Ef,target:zu(h),index:0,kind:d})}),(function(){var h=Pf(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values");Kc.Arguments=Kc.Array;var Tf=Ns("toStringTag");for(var _f in{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}){var kf=Ou[_f],Of=kf&&kf.prototype;Of&&of(Of)!==Tf&&ps(Of,Tf,_f),Kc[_f]=Kc.Array}var Cf=function createMethod(h){return function(d,g){var x,b,S=String(Uu(d)),w=xs(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},Rf={codeAt:Cf(!1),charAt:Cf(!0)}.charAt,Mf="String Iterator",Nf=Pl.set,If=Pl.getterFor(Mf);wf(String,"String",(function(h){Nf(this,{type:Mf,string:String(h),index:0})}),(function next(){var h,d=If(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=Rf(g,x),d.index+=h.length,{value:h,done:!1})}));var Df=Ns("iterator"),Lf=function getIteratorMethod(h){if(null!=h)return h[Df]||h["@@iterator"]||Kc[of(h)]},jf=function getIterator(h){var d=Lf(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return ls(d.call(h))},Vf=Ns("iterator"),$f=function isIterable(h){var d=Object(h);return void 0!==d[Vf]||"@@iterator"in d||Kc.hasOwnProperty(of(d))},Ff=function createProperty(h,d,g){var x=Hu(d);x in h?hs.f(h,x,ju(0,g)):h[x]=g},Bf=Ns("isConcatSpreadable"),Uf=9007199254740991,zf="Maximum allowed index exceeded",Gf=Lc>=51||!Mu((function(){var h=[];return h[Bf]=!1,h.concat()[0]!==h})),Hf=Vc("concat"),qf=function isConcatSpreadable(h){if(!Gu(h))return!1;var d=h[Bf];return void 0!==d?!!d:Ac(h)};ds({target:"Array",proto:!0,forced:!Gf||!Hf},{concat:function concat(h){var d,g,x,b,S,w=Sc(this),E=Tc(w,0),A=0;for(d=-1,x=arguments.length;d<x;d++)if(qf(S=-1===d?w:arguments[d])){if(A+(b=Ss(S.length))>Uf)throw TypeError(zf);for(g=0;g<b;g++,A++)g in S&&Ff(E,A,S[g])}else{if(A>=Uf)throw TypeError(zf);Ff(E,A++,S)}return E.length=A,E}});var Xf=ra.f,Yf=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Yf},{getOwnPropertyNames:Xf});var Wf=ql.concat("length","prototype"),Qf={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return Hl(h,Wf)}},Zf=Qf.f,Kf={}.toString,Jf="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],th={f:function getOwnPropertyNames(h){return Jf&&"[object Window]"==Kf.call(h)?function getWindowNames(h){try{return Zf(h)}catch(h){return Jf.slice()}}(h):Zf(zu(h))}},eh={f:Object.getOwnPropertySymbols},rh={f:Ns},nh=hs.f,ih=function defineWellKnownSymbol(h){var d=us.Symbol||(us.Symbol={});Xu(d,h)||nh(d,h,{value:rh.f(h)})},ah=Oc.forEach,oh=yl("hidden"),uh="Symbol",sh=Ns("toPrimitive"),ch=Pl.set,lh=Pl.getterFor(uh),fh=Object.prototype,hh=Ou.Symbol,ph=Rc("JSON","stringify"),yh=Ju.f,vh=hs.f,dh=th.f,gh=Lu.f,mh=As("symbols"),xh=As("op-symbols"),bh=As("string-to-symbol-registry"),Sh=As("symbol-to-string-registry"),wh=As("wks"),Eh=Ou.QObject,Ah=!Eh||!Eh.prototype||!Eh.prototype.findChild,Ph=Nu&&Mu((function(){return 7!=tf(vh({},"a",{get:function get(){return vh(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=yh(fh,d);x&&delete fh[d],vh(h,d,g),x&&h!==fh&&vh(fh,d,x)}:vh,Th=function wrap(h,d){var g=mh[h]=tf(hh.prototype);return ch(g,{type:uh,tag:h,description:d}),Nu||(g.description=d),g},_h=Os?function(h){return"symbol"==_typeof(h)}:function(h){return Object(h)instanceof hh},kh=function defineProperty(h,d,g){h===fh&&kh(xh,d,g),ls(h);var x=Hu(d,!0);return ls(g),Xu(mh,x)?(g.enumerable?(Xu(h,oh)&&h[oh][x]&&(h[oh][x]=!1),g=tf(g,{enumerable:ju(0,!1)})):(Xu(h,oh)||vh(h,oh,ju(1,{})),h[oh][x]=!0),Ph(h,x,g)):vh(h,x,g)},Oh=function defineProperties(h,d){ls(h);var g=zu(d),x=Xl(g).concat(Nh(g));return ah(x,(function(d){Nu&&!Ch.call(g,d)||kh(h,d,g[d])})),h},Ch=function propertyIsEnumerable(h){var d=Hu(h,!0),g=gh.call(this,d);return!(this===fh&&Xu(mh,d)&&!Xu(xh,d))&&(!(g||!Xu(this,d)||!Xu(mh,d)||Xu(this,oh)&&this[oh][d])||g)},Rh=function getOwnPropertyDescriptor(h,d){var g=zu(h),x=Hu(d,!0);if(g!==fh||!Xu(mh,x)||Xu(xh,x)){var b=yh(g,x);return!b||!Xu(mh,x)||Xu(g,oh)&&g[oh][x]||(b.enumerable=!0),b}},Mh=function getOwnPropertyNames(h){var d=dh(zu(h)),g=[];return ah(d,(function(h){Xu(mh,h)||Xu(vl,h)||g.push(h)})),g},Nh=function getOwnPropertySymbols(h){var d=h===fh,g=dh(d?xh:zu(h)),x=[];return ah(g,(function(h){!Xu(mh,h)||d&&!Xu(fh,h)||x.push(mh[h])})),x};if(ks||(yf((hh=function _Symbol(){if(this instanceof hh)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=_s(h),g=function setter(h){this===fh&&setter.call(xh,h),Xu(this,oh)&&Xu(this[oh],d)&&(this[oh][d]=!1),Ph(this,d,ju(1,h))};return Nu&&Ah&&Ph(fh,d,{configurable:!0,set:g}),Th(d,h)}).prototype,"toString",(function toString(){return lh(this).tag})),yf(hh,"withoutSetter",(function(h){return Th(_s(h),h)})),Lu.f=Ch,hs.f=kh,Ju.f=Rh,Qf.f=th.f=Mh,eh.f=Nh,rh.f=function(h){return Th(Ns(h),h)},Nu&&vh(hh.prototype,"description",{configurable:!0,get:function description(){return lh(this).description}})),ds({global:!0,wrap:!0,forced:!ks,sham:!ks},{Symbol:hh}),ah(Xl(wh),(function(h){ih(h)})),ds({target:uh,stat:!0,forced:!ks},{for:function _for(h){var d=String(h);if(Xu(bh,d))return bh[d];var g=hh(d);return bh[d]=g,Sh[g]=d,g},keyFor:function keyFor(h){if(!_h(h))throw TypeError(h+" is not a symbol");if(Xu(Sh,h))return Sh[h]},useSetter:function useSetter(){Ah=!0},useSimple:function useSimple(){Ah=!1}}),ds({target:"Object",stat:!0,forced:!ks,sham:!Nu},{create:function create(h,d){return void 0===d?tf(h):Oh(tf(h),d)},defineProperty:kh,defineProperties:Oh,getOwnPropertyDescriptor:Rh}),ds({target:"Object",stat:!0,forced:!ks},{getOwnPropertyNames:Mh,getOwnPropertySymbols:Nh}),ds({target:"Object",stat:!0,forced:Mu((function(){eh.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return eh.f(Sc(h))}}),ph){var Ih=!ks||Mu((function(){var h=hh();return"[null]"!=ph([h])||"{}"!=ph({a:h})||"{}"!=ph(Object(h))}));ds({target:"JSON",stat:!0,forced:Ih},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(Gu(d)||void 0!==h)&&!_h(h))return Ac(d)||(d=function replacer(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!_h(d))return d}),b[1]=d,ph.apply(null,b)}})}hh.prototype[sh]||ps(hh.prototype,sh,hh.prototype.valueOf),lf(hh,uh),vl[oh]=!0,ih("asyncIterator"),ih("hasInstance"),ih("isConcatSpreadable"),ih("iterator"),ih("match"),ih("matchAll"),ih("replace"),ih("search"),ih("species"),ih("split"),ih("toPrimitive"),ih("toStringTag"),ih("unscopables"),lf(Ou.JSON,"JSON",!0);var Dh=us.Symbol;ih("asyncDispose"),ih("dispose"),ih("observable"),ih("patternMatch"),ih("replaceAll");var Lh=Dh;var jh=function _iterableToArrayLimit(h,d){if(void 0!==Lh&&$f(Object(h))){var g=[],x=!0,b=!1,S=void 0;try{for(var w,E=jf(h);!(x=(w=E.next()).done)&&(g.push(w.value),!d||g.length!==d);x=!0);}catch(h){b=!0,S=h}finally{try{x||null==E.return||E.return()}finally{if(b)throw S}}return g}},Vh=!checkCorrectnessOfIteration((function(h){Array.from(h)}));_export({target:"Array",stat:!0,forced:Vh},{from:Rn});var $h=function iteratorClose(h){var d=h.return;if(void 0!==d)return ls(d.call(h)).value},Fh=function callWithSafeIterationClosing(h,d,g,x){try{return x?d(ls(g)[0],g[1]):d(g)}catch(d){throw $h(h),d}},Bh=Ns("iterator"),Uh=Array.prototype,zh=function isArrayIteratorMethod(h){return void 0!==h&&(Kc.Array===h||Uh[Bh]===h)},Gh=Ns("iterator"),Hh=!1;try{var qh=0,Xh={next:function next(){return{done:!!qh++}},return:function _return(){Hh=!0}};Xh[Gh]=function(){return this},Array.from(Xh,(function(){throw 2}))}catch(h){}var Yh=function checkCorrectnessOfIteration(h,d){if(!d&&!Hh)return!1;var g=!1;try{var x={};x[Gh]=function(){return{next:function next(){return{done:g=!0}}}},h(x)}catch(h){}return g},Wh=!Yh((function(h){Array.from(h)}));ds({target:"Array",stat:!0,forced:Wh},{from:function from(h){var d,g,x,b,S,w,E=Sc(h),A="function"==typeof this?this:Array,P=arguments.length,_=P>1?arguments[1]:void 0,k=void 0!==_,C=Lf(E),R=0;if(k&&(_=cs(_,P>2?arguments[2]:void 0,2)),null==C||A==Array&&zh(C))for(g=new A(d=Ss(E.length));d>R;R++)w=k?_(E[R],R):E[R],Ff(g,R,w);else for(S=(b=C.call(E)).next,g=new A;!(x=S.call(b)).done;R++)w=k?Fh(b,_,[x.value,R],!0):x.value,Ff(g,R,w);return g.length=R,g}});var Qh=us.Array.from,Zh=Qh,Kh=Vc("slice"),Jh=Uc("slice",{ACCESSORS:!0,0:0,1:2}),tp=Ns("species"),ep=[].slice,rp=Math.max;ds({target:"Array",proto:!0,forced:!Kh||!Jh},{slice:function slice(h,d){var g,x,b,S=zu(this),w=Ss(S.length),E=Bl(h,w),A=Bl(void 0===d?w:d,w);if(Ac(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!Ac(g.prototype)?Gu(g)&&null===(g=g[tp])&&(g=void 0):g=void 0,g===Array||void 0===g))return ep.call(S,E,A);for(x=new(void 0===g?Array:g)(rp(A-E,0)),b=0;E<A;E++,b++)E in S&&Ff(x,b,S[E]);return x.length=b,x}});var np=Bs("Array").slice,ip=Array.prototype,ap=function slice_1(h){var d=h.slice;return h===ip||h instanceof Array&&d===ip.slice?np:d},op=ap;var up=function _arrayLikeToArray(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x};var sp=function _unsupportedIterableToArray(h,d){var g;if(h){if("string"==typeof h)return up(h,d);var x=op(g=Object.prototype.toString.call(h)).call(g,8,-1);return"Object"===x&&h.constructor&&(x=h.constructor.name),"Map"===x||"Set"===x?Zh(h):"Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?up(h,d):void 0}};var cp=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var lp=function _slicedToArray(h,d){return Zc(h)||jh(h,d)||sp(h,d)||cp()};ds({target:"Object",stat:!0,forced:!Nu,sham:!Nu},{defineProperty:hs.f});var fp=createCommonjsModule((function(h){var d=us.Object,g=h.exports=function defineProperty(h,g,x){return d.defineProperty(h,g,x)};d.defineProperty.sham&&(g.sham=!0)})),hp=fp;ds({target:"Object",stat:!0,forced:!Nu,sham:!Nu},{defineProperties:Yl});var pp=createCommonjsModule((function(h){var d=us.Object,g=h.exports=function defineProperties(h,g){return d.defineProperties(h,g)};d.defineProperties.sham&&(g.sham=!0)})),yp=Rc("Reflect","ownKeys")||function ownKeys(h){var d=Qf.f(ls(h)),g=eh.f;return g?d.concat(g(h)):d};ds({target:"Object",stat:!0,sham:!Nu},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var d,g,x=zu(h),b=Ju.f,S=yp(x),w={},E=0;S.length>E;)void 0!==(g=b(x,d=S[E++]))&&Ff(w,d,g);return w}});var vp=us.Object.getOwnPropertyDescriptors,dp=function arrayMethodIsStrict(h,d){var g=[][h];return!!g&&Mu((function(){g.call(null,d||function(){throw 1},1)}))},gp=Oc.forEach,mp=dp("forEach"),xp=Uc("forEach"),bp=mp&&xp?[].forEach:function forEach(h){return gp(this,h,arguments.length>1?arguments[1]:void 0)};ds({target:"Array",proto:!0,forced:[].forEach!=bp},{forEach:bp});var Sp=Bs("Array").forEach,wp=Array.prototype,Ep={DOMTokenList:!0,NodeList:!0},Ap=function forEach_1(h){var d=h.forEach;return h===wp||h instanceof Array&&d===wp.forEach||Ep.hasOwnProperty(of(h))?Sp:d},Pp=Ju.f,Tp=Mu((function(){Pp(1)}));ds({target:"Object",stat:!0,forced:!Nu||Tp,sham:!Nu},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return Pp(zu(h),d)}});var _p=createCommonjsModule((function(h){var d=us.Object,g=h.exports=function getOwnPropertyDescriptor(h,g){return d.getOwnPropertyDescriptor(h,g)};d.getOwnPropertyDescriptor.sham&&(g.sham=!0)})),kp=_p,Op=oa.filter,Cp=arrayMethodHasSpeciesSupport("filter"),Rp=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!Cp||!Rp},{filter:function filter(h){return Op(this,h,arguments.length>1?arguments[1]:void 0)}});var Mp=Oc.filter,Np=Vc("filter"),Ip=Uc("filter");ds({target:"Array",proto:!0,forced:!Np||!Ip},{filter:function filter(h){return Mp(this,h,arguments.length>1?arguments[1]:void 0)}});var Dp=Bs("Array").filter,Lp=Array.prototype,jp=function filter_1(h){var d=h.filter;return h===Lp||h instanceof Array&&d===Lp.filter?Dp:d},Vp=us.Object.getOwnPropertySymbols,$p=Mu((function(){Xl(1)}));ds({target:"Object",stat:!0,forced:$p},{keys:function keys(h){return Xl(Sc(h))}});var Fp=us.Object.keys,Bp=Eo,Up=function Result(h,d){this.stopped=h,this.result=d},zp=function iterate(h,d,g){var x,b,S,w,E,A,P,_=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=cs(d,_,1+k+R),N=function stop(h){return x&&$h(x),new Up(!0,h)},D=function callFn(h){return k?(ls(h),R?M(h[0],h[1],N):M(h[0],h[1])):R?M(h,N):M(h)};if(C)x=h;else{if("function"!=typeof(b=Lf(h)))throw TypeError("Target is not iterable");if(zh(b)){for(S=0,w=Ss(h.length);w>S;S++)if((E=D(h[S]))&&E instanceof Up)return E;return new Up(!1)}x=b.call(h)}for(A=x.next;!(P=A.call(x)).done;){try{E=D(P.value)}catch(h){throw $h(x),h}if("object"==_typeof(E)&&E&&E instanceof Up)return E}return new Up(!1)},Gp=function AggregateError(h,d){var g=this;if(!(g instanceof Gp))return new Gp(h,d);pf&&(g=pf(new Error(void 0),Ol(g))),void 0!==d&&ps(g,"message",String(d));var x=[];return zp(h,x.push,{that:x}),ps(g,"errors",x),g};Gp.prototype=tf(Error.prototype,{constructor:ju(5,Gp),message:ju(5,""),name:ju(5,"AggregateError")}),ds({global:!0},{AggregateError:Gp});var Hp=!!Ne&&fails((function(){Ne.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Hp},{finally:function(h){var d=speciesConstructor(this,getBuiltIn("Promise")),g="function"==typeof h;return this.then(g?function(g){return promiseResolve(d,h()).then((function(){return g}))}:h,g?function(g){return promiseResolve(d,h()).then((function(){throw g}))}:h)}}),"function"!=typeof Ne||Ne.prototype.finally||ct(Ne.prototype,"finally",getBuiltIn("Promise").prototype.finally);var qp=Ou.Promise,Xp=function redefineAll(h,d,g){for(var x in d)g&&g.unsafe&&h[x]?h[x]=d[x]:yf(h,x,d[x],g);return h},Yp=Ns("species"),Wp=function setSpecies(h){var d=Rc(h),g=hs.f;Nu&&d&&!d[Yp]&&g(d,Yp,{configurable:!0,get:function get(){return this}})},Qp=function anInstance(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},Zp=Ns("species"),Kp=function speciesConstructor(h,d){var g,x=ls(h).constructor;return void 0===x||null==(g=ls(x)[Zp])?d:ss(g)},Jp=!g.setImmediate||!g.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Jp},{setImmediate:fr.set,clearImmediate:fr.clear});var ty,ey,ry,ny=/(iphone|ipod|ipad).*applewebkit/i.test(Mc),iy="process"==$u(Ou.process),ay=Ou.location,oy=Ou.setImmediate,uy=Ou.clearImmediate,sy=Ou.process,cy=Ou.MessageChannel,ly=Ou.Dispatch,fy=0,hy={},py="onreadystatechange",yy=function run(h){if(hy.hasOwnProperty(h)){var d=hy[h];delete hy[h],d()}},vy=function runner(h){return function(){yy(h)}},dy=function listener(h){yy(h.data)},gy=function post(h){Ou.postMessage(h+"",ay.protocol+"//"+ay.host)};oy&&uy||(oy=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return hy[++fy]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},ty(fy),fy},uy=function clearImmediate(h){delete hy[h]},iy?ty=function defer(h){sy.nextTick(vy(h))}:ly&&ly.now?ty=function defer(h){ly.now(vy(h))}:cy&&!ny?(ry=(ey=new cy).port2,ey.port1.onmessage=dy,ty=cs(ry.postMessage,ry,1)):Ou.addEventListener&&"function"==typeof postMessage&&!Ou.importScripts&&ay&&"file:"!==ay.protocol&&!Mu(gy)?(ty=gy,Ou.addEventListener("message",dy,!1)):ty=py in Qu("script")?function defer(h){Wl.appendChild(Qu("script")).onreadystatechange=function(){Wl.removeChild(this),yy(h)}}:function defer(h){setTimeout(vy(h),0)});var my,xy,by,Sy,wy,Ey,Ay,Py,Ty={set:oy,clear:uy},_y=Ju.f,ky=Ty.set,Oy=Ou.MutationObserver||Ou.WebKitMutationObserver,Cy=Ou.document,Ry=Ou.process,My=Ou.Promise,Ny=_y(Ou,"queueMicrotask"),Iy=Ny&&Ny.value;Iy||(my=function flush(){var h,d;for(iy&&(h=Ry.domain)&&h.exit();xy;){d=xy.fn,xy=xy.next;try{d()}catch(h){throw xy?Sy():by=void 0,h}}by=void 0,h&&h.enter()},!ny&&!iy&&Oy&&Cy?(wy=!0,Ey=Cy.createTextNode(""),new Oy(my).observe(Ey,{characterData:!0}),Sy=function notify(){Ey.data=wy=!wy}):My&&My.resolve?(Ay=My.resolve(void 0),Py=Ay.then,Sy=function notify(){Py.call(Ay,my)}):Sy=iy?function notify(){Ry.nextTick(my)}:function notify(){ky.call(Ou,my)});var Dy,Ly,jy,Vy=Iy||function(h){var d={fn:h,next:void 0};by&&(by.next=d),xy||(xy=d,Sy()),by=d},$y=function PromiseCapability(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=ss(d),this.reject=ss(g)},Fy={f:function f(h){return new $y(h)}},By=function promiseResolve(h,d){if(ls(h),Gu(d)&&d.constructor===h)return d;var g=Fy.f(h);return(0,g.resolve)(d),g.promise},Uy=function perform(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},zy=Ty.set,Gy=Ns("species"),Hy="Promise",qy=Pl.get,Xy=Pl.set,Yy=Pl.getterFor(Hy),Wy=qp,Qy=Ou.TypeError,Zy=Ou.document,Ky=Ou.process,Jy=(Rc("fetch"),Fy.f),tv=Jy,ev=!!(Zy&&Zy.createEvent&&Ou.dispatchEvent),rv="function"==typeof PromiseRejectionEvent,nv="unhandledrejection",iv=os(Hy,(function(){if(!(ll(Wy)!==String(Wy))){if(66===Lc)return!0;if(!iy&&!rv)return!0}if(!Wy.prototype.finally)return!0;if(Lc>=51&&/native code/.test(Wy))return!1;var h=Wy.resolve(1),d=function FakePromise(h){h((function(){}),(function(){}))};return(h.constructor={})[Gy]=d,!(h.then((function(){}))instanceof d)})),av=iv||!Yh((function(h){Wy.all(h).catch((function(){}))})),ov=function isThenable(h){var d;return!(!Gu(h)||"function"!=typeof(d=h.then))&&d},uv=function notify(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;Vy((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,A,P=g[S++],_=b?P.ok:P.fail,k=P.resolve,C=P.reject,R=P.domain;try{_?(b||(2===h.rejection&&fv(h),h.rejection=1),!0===_?w=x:(R&&R.enter(),w=_(x),R&&(R.exit(),A=!0)),w===P.promise?C(Qy("Promise-chain cycle")):(E=ov(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!A&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&cv(h)}))}},sv=function dispatchEvent(h,d,g){var x,b;ev?((x=Zy.createEvent("Event")).promise=d,x.reason=g,x.initEvent(h,!1,!0),Ou.dispatchEvent(x)):x={promise:d,reason:g},!rv&&(b=Ou["on"+h])?b(x):h===nv&&function hostReportErrors(h,d){var g=Ou.console;g&&g.error&&(1===arguments.length?g.error(h):g.error(h,d))}("Unhandled promise rejection",g)},cv=function onUnhandled(h){zy.call(Ou,(function(){var d,g=h.facade,x=h.value;if(lv(h)&&(d=Uy((function(){iy?Ky.emit("unhandledRejection",x,g):sv(nv,g,x)})),h.rejection=iy||lv(h)?2:1,d.error))throw d.value}))},lv=function isUnhandled(h){return 1!==h.rejection&&!h.parent},fv=function onHandleUnhandled(h){zy.call(Ou,(function(){var d=h.facade;iy?Ky.emit("rejectionHandled",d):sv("rejectionhandled",d,h.value)}))},hv=function bind(h,d,g){return function(x){h(d,x,g)}},pv=function internalReject(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,uv(h,!0))},yv=function internalResolve(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw Qy("Promise can't be resolved itself");var x=ov(d);x?Vy((function(){var g={done:!1};try{x.call(d,hv(internalResolve,g,h),hv(pv,g,h))}catch(d){pv(g,d,h)}})):(h.value=d,h.state=1,uv(h,!1))}catch(d){pv({done:!1},d,h)}}};iv&&(Wy=function Promise(h){Qp(this,Wy,Hy),ss(h),Dy.call(this);var d=qy(this);try{h(hv(yv,d),hv(pv,d))}catch(h){pv(d,h)}},(Dy=function Promise(h){Xy(this,{type:Hy,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xp(Wy.prototype,{then:function then(h,d){var g=Yy(this),x=Jy(Kp(this,Wy));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=iy?Ky.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&&uv(g,!1),x.promise},catch:function _catch(h){return this.then(void 0,h)}}),Ly=function OwnPromiseCapability(){var h=new Dy,d=qy(h);this.promise=h,this.resolve=hv(yv,d),this.reject=hv(pv,d)},Fy.f=Jy=function newPromiseCapability(h){return h===Wy||h===jy?new Ly(h):tv(h)}),ds({global:!0,wrap:!0,forced:iv},{Promise:Wy}),lf(Wy,Hy,!1,!0),Wp(Hy),jy=Rc(Hy),ds({target:Hy,stat:!0,forced:iv},{reject:function reject(h){var d=Jy(this);return d.reject.call(void 0,h),d.promise}}),ds({target:Hy,stat:!0,forced:!0},{resolve:function resolve(h){return By(this===jy?Wy:this,h)}}),ds({target:Hy,stat:!0,forced:av},{all:function all(h){var d=this,g=Jy(d),x=g.resolve,b=g.reject,S=Uy((function(){var g=ss(d.resolve),S=[],w=0,E=1;zp(h,(function(h){var A=w++,P=!1;S.push(void 0),E++,g.call(d,h).then((function(h){P||(P=!0,S[A]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=Jy(d),x=g.reject,b=Uy((function(){var b=ss(d.resolve);zp(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}}),ds({target:"Promise",stat:!0},{allSettled:function allSettled(h){var d=this,g=Fy.f(d),x=g.resolve,b=g.reject,S=Uy((function(){var g=ss(d.resolve),b=[],S=0,w=1;zp(h,(function(h){var E=S++,A=!1;b.push(void 0),w++,g.call(d,h).then((function(h){A||(A=!0,b[E]={status:"fulfilled",value:h},--w||x(b))}),(function(h){A||(A=!0,b[E]={status:"rejected",reason:h},--w||x(b))}))})),--w||x(b)}));return S.error&&b(S.value),g.promise}});var vv="No one promise resolved";ds({target:"Promise",stat:!0},{any:function any(h){var d=this,g=Fy.f(d),x=g.resolve,b=g.reject,S=Uy((function(){var g=ss(d.resolve),S=[],w=0,E=1,A=!1;zp(h,(function(h){var P=w++,_=!1;S.push(void 0),E++,g.call(d,h).then((function(h){_||A||(A=!0,x(h))}),(function(h){_||A||(_=!0,S[P]=h,--E||b(new(Rc("AggregateError"))(S,vv)))}))})),--E||b(new(Rc("AggregateError"))(S,vv))}));return S.error&&b(S.value),g.promise}});var dv=!!qp&&Mu((function(){qp.prototype.finally.call({then:function then(){}},(function(){}))}));ds({target:"Promise",proto:!0,real:!0,forced:dv},{finally:function _finally(h){var d=Kp(this,Rc("Promise")),g="function"==typeof h;return this.then(g?function(g){return By(d,h()).then((function(){return g}))}:h,g?function(g){return By(d,h()).then((function(){throw g}))}:h)}});var gv=us.Promise;ds({target:"Promise",stat:!0},{try:function _try(h){var d=Fy.f(this),g=Uy(h);return(g.error?d.reject:d.resolve)(g.value),d.promise}});var mv=gv;function asyncGeneratorStep$1(h,d,g,x,b,S,w){try{var E=h[S](w),A=E.value}catch(h){return void g(h)}E.done?d(A):mv.resolve(A).then(x,b)}var xv=function _asyncToGenerator$1(h){return function(){var d=this,g=arguments;return new mv((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}},bv=fp;var Sv=function _defineProperty(h,d,g){return d in h?bv(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h};var wv=function _classCallCheck(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")};function _defineProperties(h,d){for(var g=0;g<d.length;g++){var x=d[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),bv(h,x.key,x)}}var Ev=function _createClass(h,d,g){return d&&_defineProperties(h.prototype,d),g&&_defineProperties(h,g),h},Av=Bs("Array").concat,Pv=Array.prototype,Tv=function concat_1(h){var d=h.concat;return h===Pv||h instanceof Array&&d===Pv.concat?Av:d},createMethod$8=function(h){return function(d,g,x,b){aFunction$1(g);var S=toObject(d),w=P(S),E=toLength(S.length),A=h?E-1:0,_=h?-1:1;if(x<2)for(;;){if(A in w){b=w[A],A+=_;break}if(A+=_,h?A<0:E<=A)throw TypeError("Reduce of empty array with no initial value")}for(;h?A>=0:E>A;A+=_)A in w&&(b=g(b,w[A],A,S));return b}},_v={left:createMethod$8(!1),right:createMethod$8(!0)}.left,kv=arrayMethodIsStrict("reduce"),Ov=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!kv||!Ov||!Xe&&Bt>79&&Bt<83},{reduce:function reduce(h){return _v(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Cv=function createMethod(h){return function(d,g,x,b){ss(g);var S=Sc(d),w=Bu(S),E=Ss(S.length),A=h?E-1:0,P=h?-1:1;if(x<2)for(;;){if(A in w){b=w[A],A+=P;break}if(A+=P,h?A<0:E<=A)throw TypeError("Reduce of empty array with no initial value")}for(;h?A>=0:E>A;A+=P)A in w&&(b=g(b,w[A],A,S));return b}},Rv={left:Cv(!1),right:Cv(!0)}.left,Mv=dp("reduce"),Nv=Uc("reduce",{1:0});ds({target:"Array",proto:!0,forced:!Mv||!Nv||!iy&&Lc>79&&Lc<83},{reduce:function reduce(h){return Rv(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Iv=Bs("Array").reduce,Dv=Array.prototype,Lv=function reduce_1(h){var d=h.reduce;return h===Dv||h instanceof Array&&d===Dv.reduce?Iv:d};ds({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var jv=us.Date.now,Vv=oa.every,$v=arrayMethodIsStrict("every"),Fv=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!$v||!Fv},{every:function every(h){return Vv(this,h,arguments.length>1?arguments[1]:void 0)}});var Bv=Oc.every,Uv=dp("every"),zv=Uc("every");ds({target:"Array",proto:!0,forced:!Uv||!zv},{every:function every(h){return Bv(this,h,arguments.length>1?arguments[1]:void 0)}});var Gv=Bs("Array").every,Hv=Array.prototype,qv=function every_1(h){var d=h.every;return h===Hv||h instanceof Array&&d===Hv.every?Gv:d},Xv=gv,Yv=[].slice,Wv={},Qv=function construct(h,d,g){if(!(d in Wv)){for(var x=[],b=0;b<d;b++)x[b]="a["+b+"]";Wv[d]=Function("C,a","return new C("+x.join(",")+")")}return Wv[d](h,g)},Zv=Function.bind||function bind(h){var d=ss(this),g=Yv.call(arguments,1),x=function bound(){var b=g.concat(Yv.call(arguments));return this instanceof x?Qv(d,b.length,b):d.apply(h,b)};return Gu(d.prototype)&&(x.prototype=d.prototype),x};ds({target:"Function",proto:!0},{bind:Zv});var Kv=Bs("Function").bind,Jv=Function.prototype,td=function bind_1(h){var d=h.bind;return h===Jv||h instanceof Function&&d===Jv.bind?Kv:d};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var ed=createCommonjsModule((function(h){(function(){var d,g,x,b,S,w;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:null!=Bo&&Bo.hrtime?(h.exports=function(){return(d()-S)/1e6},g=Bo.hrtime,b=(d=function getNanoSeconds(){var h;return 1e9*(h=g())[0]+h[1]})(),w=1e9*Bo.uptime(),S=b-w):Date.now?(h.exports=function(){return Date.now()-x},x=Date.now()):(h.exports=function(){return(new Date).getTime()-x},x=(new Date).getTime())}).call(d)})),rd="undefined"==typeof window?d:window,nd=["moz","webkit"],id="AnimationFrame",ad=rd["request"+id],od=rd["cancel"+id]||rd["cancelRequest"+id],ud=0;!ad&&ud<nd.length;ud++)ad=rd[nd[ud]+"Request"+id],od=rd[nd[ud]+"Cancel"+id]||rd[nd[ud]+"CancelRequest"+id];if(!ad||!od){var sd=0,cd=0,ld=[];ad=function raf(h){if(0===ld.length){var d=ed(),g=Math.max(0,16.666666666666668-(d-sd));sd=g+d,setTimeout((function(){var h=ld.slice(0);ld.length=0;for(var d=0;d<h.length;d++)if(!h[d].cancelled)try{h[d].callback(sd)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(g))}return ld.push({handle:++cd,callback:h,cancelled:!1}),cd},od=function caf(h){for(var d=0;d<ld.length;d++)ld[d].handle===h&&(ld[d].cancelled=!0)}}var fd=function raf_1(h){return ad.call(rd,h)};fd.cancel=function cancel(){od.apply(rd,arguments)},fd.polyfill=function polyfill(h){h||(h=rd),h.requestAnimationFrame=ad,h.cancelAnimationFrame=od};var hd=pc.trim;ds({target:"String",proto:!0,forced:function stringTrimForced(h){return Mu((function(){return!!sc[h]()||"…"!="…"[h]()||sc[h].name!==h}))}("trim")},{trim:function trim(){return hd(this)}});var pd=Bs("String").trim,yd=String.prototype,vd=function trim_1(h){var d=h.trim;return"string"==typeof h||h===yd||h instanceof String&&d===yd.trim?pd:d},dd=Wo.trim,gd=g.parseInt,md=/^[+-]?0[Xx]/,xd=8!==gd(Ho+"08")||22!==gd(Ho+"0x16")?function parseInt(h,d){var g=dd(String(h));return gd(g,d>>>0||(md.test(g)?16:10))}:gd;_export({global:!0,forced:parseInt!=xd},{parseInt:xd});var bd=function rgbcolor(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};h=d[h]||h;for(var g=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],x=0;x<g.length;x++){var b=g[x].re,S=g[x].process,w=b.exec(h);if(w){var E=S(w);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var h=this.r.toString(16),d=this.g.toString(16),g=this.b.toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==g.length&&(g="0"+g),"#"+h+d+g},this.getHelpXML=function(){for(var h=new Array,x=0;x<g.length;x++)for(var b=g[x].example,S=0;S<b.length;S++)h[h.length]=b[S];for(var w in d)h[h.length]=w;var E=document.createElement("ul");E.setAttribute("id","rgbcolor-examples");for(x=0;x<h.length;x++)try{var A=document.createElement("li"),P=new RGBColor(h[x]),_=document.createElement("div");_.style.cssText="margin: 3px; border: 1px solid black; background:"+P.toHex()+"; color:"+P.toHex(),_.appendChild(document.createTextNode("test"));var k=document.createTextNode(" "+h[x]+" -> "+P.toRGB()+" -> "+P.toHex());A.appendChild(_),A.appendChild(k),E.appendChild(A)}catch(h){}return E}},Sd=Rc("Reflect","construct"),wd=Mu((function(){function F(){}return!(Sd((function(){}),[],F)instanceof F)})),Ed=!Mu((function(){Sd((function(){}))})),Ad=wd||Ed;ds({target:"Reflect",stat:!0,forced:Ad,sham:Ad},{construct:function construct(h,d){ss(h),ls(d);var g=arguments.length<3?h:ss(arguments[2]);if(Ed&&!wd)return Sd(h,d,g);if(h==g){switch(d.length){case 0:return new h;case 1:return new h(d[0]);case 2:return new h(d[0],d[1]);case 3:return new h(d[0],d[1],d[2]);case 4:return new h(d[0],d[1],d[2],d[3])}var x=[null];return x.push.apply(x,d),new(Zv.apply(h,x))}var b=g.prototype,S=tf(Gu(b)?b:Object.prototype),w=Function.apply.call(h,S,d);return Gu(w)?w:S}});var Pd=us.Reflect.construct;ds({target:"Object",stat:!0,sham:!Nu},{create:tf});var Td=us.Object,_d=function create(h,d){return Td.create(h,d)};ds({target:"Object",stat:!0},{setPrototypeOf:pf});var kd=us.Object.setPrototypeOf,Od=createCommonjsModule((function(h){function _setPrototypeOf(d,g){return h.exports=_setPrototypeOf=kd||function _setPrototypeOf(h,d){return h.__proto__=d,h},_setPrototypeOf(d,g)}h.exports=_setPrototypeOf}));var Cd=function _inherits(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");h.prototype=_d(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),d&&Od(h,d)},Rd=rh.f("iterator"),Md=createCommonjsModule((function(h){function _typeof(d){return h.exports=_typeof="function"==typeof Lh&&"symbol"==typeof Rd?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Lh&&h.constructor===Lh&&h!==Lh.prototype?"symbol":typeof h},_typeof(d)}h.exports=_typeof}));var Nd=function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h};var Id=function _possibleConstructorReturn(h,d){return!d||"object"!==Md(d)&&"function"!=typeof d?Nd(h):d},Dd=Mu((function(){Ol(1)}));ds({target:"Object",stat:!0,forced:Dd,sham:!Tl},{getPrototypeOf:function getPrototypeOf(h){return Ol(Sc(h))}});var Ld=us.Object.getPrototypeOf,jd=createCommonjsModule((function(h){function _getPrototypeOf(d){return h.exports=_getPrototypeOf=kd?Ld:function _getPrototypeOf(h){return h.__proto__||Ld(h)},_getPrototypeOf(d)}h.exports=_getPrototypeOf}));var Vd=function _arrayWithoutHoles(h){if(Qc(h))return up(h)};var $d=function _iterableToArray(h){if(void 0!==Lh&&$f(Object(h)))return Zh(h)};var Fd=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Bd=function _toConsumableArray(h){return Vd(h)||$d(h)||sp(h)||Fd()},Ud=oa.some,zd=arrayMethodIsStrict("some"),Gd=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!zd||!Gd},{some:function some(h){return Ud(this,h,arguments.length>1?arguments[1]:void 0)}});var Hd=Oc.some,qd=dp("some"),Xd=Uc("some");ds({target:"Array",proto:!0,forced:!qd||!Xd},{some:function some(h){return Hd(this,h,arguments.length>1?arguments[1]:void 0)}});var Yd=Bs("Array").some,Wd=Array.prototype,Qd=function some_1(h){var d=h.some;return h===Wd||h instanceof Array&&d===Wd.some?Yd:d},Zd=dt.includes,Kd=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Kd},{includes:function includes(h){return Zd(this,h,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes"),_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(h){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(h),arguments.length>1?arguments[1]:void 0)}});var Jd=zl.includes,tg=Uc("indexOf",{ACCESSORS:!0,1:0});ds({target:"Array",proto:!0,forced:!tg},{includes:function includes(h){return Jd(this,h,arguments.length>1?arguments[1]:void 0)}});var eg=Bs("Array").includes;ds({target:"String",proto:!0,forced:!js("includes")},{includes:function includes(h){return!!~String(Uu(this)).indexOf(Ds(h),arguments.length>1?arguments[1]:void 0)}});var rg=Bs("String").includes,ng=Array.prototype,ig=String.prototype,ag=function includes$2(h){var d=h.includes;return h===ng||h instanceof Array&&d===ng.includes?eg:"string"==typeof h||h===ig||h instanceof String&&d===ig.includes?rg:d},og=Qh,ug=[].reverse,sg=[1,2];ds({target:"Array",proto:!0,forced:String(sg)===String(sg.reverse())},{reverse:function reverse(){return Ac(this)&&(this.length=this.length),ug.call(this)}});var cg=Bs("Array").reverse,lg=Array.prototype,fg=function reverse_1(h){var d=h.reverse;return h===lg||h instanceof Array&&d===lg.reverse?cg:d},hg=zl.indexOf,pg=[].indexOf,yg=!!pg&&1/[1].indexOf(1,-0)<0,vg=dp("indexOf"),dg=Uc("indexOf",{ACCESSORS:!0,1:0});ds({target:"Array",proto:!0,forced:yg||!vg||!dg},{indexOf:function indexOf(h){return yg?pg.apply(this,arguments)||0:hg(this,h,arguments.length>1?arguments[1]:void 0)}});var gg=Bs("Array").indexOf,mg=Array.prototype,xg=function indexOf_1(h){var d=h.indexOf;return h===mg||h instanceof Array&&d===mg.indexOf?gg:d},bg=_p;ds({target:"Reflect",stat:!0},{get:function get$2(h,d){var g,x,b=arguments.length<3?h:arguments[2];return ls(h)===b?h[d]:(g=Ju.f(h,d))?Xu(g,"value")?g.value:void 0===g.get?void 0:g.get.call(b):Gu(x=Ol(h))?get$2(x,d,b):void 0}});var Sg=us.Reflect.get;var wg=function _superPropBase(h,d){for(;!Object.prototype.hasOwnProperty.call(h,d)&&null!==(h=jd(h)););return h},Eg=createCommonjsModule((function(h){function _get(d,g,x){return"undefined"!=typeof Reflect&&Sg?h.exports=_get=Sg:h.exports=_get=function _get(h,d,g){var x=wg(h,d);if(x){var b=bg(x,d);return b.get?b.get.call(g):b.value}},_get(d,g,x||d)}h.exports=_get}));ds({target:"Array",proto:!0},{fill:function fill(h){for(var d=Sc(this),g=Ss(d.length),x=arguments.length,b=Bl(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:Bl(S,g);w>b;)d[b++]=h;return d}});var Ag=Bs("Array").fill,Pg=Array.prototype,Tg=function fill_1(h){var d=h.fill;return h===Pg||h instanceof Array&&d===Pg.fill?Ag:d},_g=function t(h,d){return(_g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g])})(h,d)};function r(h,d){function i(){this.constructor=h}_g(h,d),h.prototype=null===d?Object.create(d):(i.prototype=d.prototype,new i)}function i$1(h,d){var g=h[0],x=h[1];return[g*Math.cos(d)-x*Math.sin(d),g*Math.sin(d)+x*Math.cos(d)]}function a(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];for(var g=0;g<h.length;g++)if("number"!=typeof h[g])throw new Error("assertNumbers arguments["+g+"] is not a number. "+_typeof(h[g])+" == typeof "+h[g]);return!0}var kg=Math.PI;function o(h,d,g){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var x=h.rX,b=h.rY,S=h.x,w=h.y;x=Math.abs(h.rX),b=Math.abs(h.rY);var E=i$1([(d-S)/2,(g-w)/2],-h.xRot/180*kg),A=E[0],P=E[1],_=Math.pow(A,2)/Math.pow(x,2)+Math.pow(P,2)/Math.pow(b,2);1<_&&(x*=Math.sqrt(_),b*=Math.sqrt(_)),h.rX=x,h.rY=b;var k=Math.pow(x,2)*Math.pow(P,2)+Math.pow(b,2)*Math.pow(A,2),C=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(x,2)*Math.pow(b,2)-k)/k)),R=x*P/b*C,M=-b*A/x*C,N=i$1([R,M],h.xRot/180*kg);h.cX=N[0]+(d+S)/2,h.cY=N[1]+(g+w)/2,h.phi1=Math.atan2((P-M)/b,(A-R)/x),h.phi2=Math.atan2((-P-M)/b,(-A-R)/x),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*kg),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*kg),h.phi1*=180/kg,h.phi2*=180/kg}function s(h,d,g){a(h,d,g);var x=h*h+d*d-g*g;if(0>x)return[];if(0===x)return[[h*g/(h*h+d*d),d*g/(h*h+d*d)]];var b=Math.sqrt(x);return[[(h*g+d*b)/(h*h+d*d),(d*g-h*b)/(h*h+d*d)],[(h*g-d*b)/(h*h+d*d),(d*g+h*b)/(h*h+d*d)]]}var Og,Cg=Math.PI/180;function c(h,d,g){return(1-g)*h+g*d}function y(h,d,g,x){return h+Math.cos(x/180*kg)*d+Math.sin(x/180*kg)*g}function p(h,d,g,x){var b=d-h,S=g-d,w=3*b+3*(x-g)-6*S,E=6*(S-b),A=3*b;return Math.abs(w)<1e-6?[-A/E]:function(h,d,g){void 0===g&&(g=1e-6);var x=h*h/4-d;if(x<-g)return[];if(x<=g)return[-h/2];var b=Math.sqrt(x);return[-h/2-b,-h/2+b]}(E/w,A/w,1e-6)}function m(h,d,g,x,b){var S=1-b;return h*(S*S*S)+d*(3*S*S*b)+g*(3*S*b*b)+x*(b*b*b)}!function(h){function r(){return u((function(h,d,g){return h.relative&&(void 0!==h.x1&&(h.x1+=d),void 0!==h.y1&&(h.y1+=g),void 0!==h.x2&&(h.x2+=d),void 0!==h.y2&&(h.y2+=g),void 0!==h.x&&(h.x+=d),void 0!==h.y&&(h.y+=g),h.relative=!1),h}))}function e(){var h=NaN,d=NaN,g=NaN,x=NaN;return u((function(b,S,w){return b.type&Lg.SMOOTH_CURVE_TO&&(b.type=Lg.CURVE_TO,h=isNaN(h)?S:h,d=isNaN(d)?w:d,b.x1=b.relative?S-h:2*S-h,b.y1=b.relative?w-d:2*w-d),b.type&Lg.CURVE_TO?(h=b.relative?S+b.x2:b.x2,d=b.relative?w+b.y2:b.y2):(h=NaN,d=NaN),b.type&Lg.SMOOTH_QUAD_TO&&(b.type=Lg.QUAD_TO,g=isNaN(g)?S:g,x=isNaN(x)?w:x,b.x1=b.relative?S-g:2*S-g,b.y1=b.relative?w-x:2*w-x),b.type&Lg.QUAD_TO?(g=b.relative?S+b.x1:b.x1,x=b.relative?w+b.y1:b.y1):(g=NaN,x=NaN),b}))}function n(){var h=NaN,d=NaN;return u((function(g,x,b){if(g.type&Lg.SMOOTH_QUAD_TO&&(g.type=Lg.QUAD_TO,h=isNaN(h)?x:h,d=isNaN(d)?b:d,g.x1=g.relative?x-h:2*x-h,g.y1=g.relative?b-d:2*b-d),g.type&Lg.QUAD_TO){h=g.relative?x+g.x1:g.x1,d=g.relative?b+g.y1:g.y1;var S=g.x1,w=g.y1;g.type=Lg.CURVE_TO,g.x1=((g.relative?0:x)+2*S)/3,g.y1=((g.relative?0:b)+2*w)/3,g.x2=(g.x+2*S)/3,g.y2=(g.y+2*w)/3}else h=NaN,d=NaN;return g}))}function u(h){var d=0,g=0,x=NaN,b=NaN;return function(S){if(isNaN(x)&&!(S.type&Lg.MOVE_TO))throw new Error("path must start with moveto");var w=h(S,d,g,x,b);return S.type&Lg.CLOSE_PATH&&(d=x,g=b),void 0!==S.x&&(d=S.relative?d+S.x:S.x),void 0!==S.y&&(g=S.relative?g+S.y:S.y),S.type&Lg.MOVE_TO&&(x=d,b=g),w}}function O(h,d,g,x,b,S){return a(h,d,g,x,b,S),u((function(w,E,A,P){var _=w.x1,k=w.x2,C=w.relative&&!isNaN(P),R=void 0!==w.x?w.x:C?0:E,M=void 0!==w.y?w.y:C?0:A;function T(h){return h*h}w.type&Lg.HORIZ_LINE_TO&&0!==d&&(w.type=Lg.LINE_TO,w.y=w.relative?0:A),w.type&Lg.VERT_LINE_TO&&0!==g&&(w.type=Lg.LINE_TO,w.x=w.relative?0:E),void 0!==w.x&&(w.x=w.x*h+M*g+(C?0:b)),void 0!==w.y&&(w.y=R*d+w.y*x+(C?0:S)),void 0!==w.x1&&(w.x1=w.x1*h+w.y1*g+(C?0:b)),void 0!==w.y1&&(w.y1=_*d+w.y1*x+(C?0:S)),void 0!==w.x2&&(w.x2=w.x2*h+w.y2*g+(C?0:b)),void 0!==w.y2&&(w.y2=k*d+w.y2*x+(C?0:S));var N=h*x-d*g;if(void 0!==w.xRot&&(1!==h||0!==d||0!==g||1!==x))if(0===N)delete w.rX,delete w.rY,delete w.xRot,delete w.lArcFlag,delete w.sweepFlag,w.type=Lg.LINE_TO;else{var D=w.xRot*Math.PI/180,L=Math.sin(D),j=Math.cos(D),V=1/T(w.rX),$=1/T(w.rY),B=T(j)*V+T(L)*$,U=2*L*j*(V-$),z=T(L)*V+T(j)*$,G=B*x*x-U*d*x+z*d*d,q=U*(h*x+d*g)-2*(B*g*x+z*h*d),X=B*g*g-U*h*g+z*h*h,Y=(Math.atan2(q,G-X)+Math.PI)%Math.PI/2,W=Math.sin(Y),Q=Math.cos(Y);w.rX=Math.abs(N)/Math.sqrt(G*T(Q)+q*W*Q+X*T(W)),w.rY=Math.abs(N)/Math.sqrt(G*T(W)-q*W*Q+X*T(Q)),w.xRot=180*Y/Math.PI}return void 0!==w.sweepFlag&&0>N&&(w.sweepFlag=+!w.sweepFlag),w}))}h.ROUND=function(h){function r(d){return Math.round(d*h)/h}return void 0===h&&(h=1e13),a(h),function(h){return void 0!==h.x1&&(h.x1=r(h.x1)),void 0!==h.y1&&(h.y1=r(h.y1)),void 0!==h.x2&&(h.x2=r(h.x2)),void 0!==h.y2&&(h.y2=r(h.y2)),void 0!==h.x&&(h.x=r(h.x)),void 0!==h.y&&(h.y=r(h.y)),void 0!==h.rX&&(h.rX=r(h.rX)),void 0!==h.rY&&(h.rY=r(h.rY)),h}},h.TO_ABS=r,h.TO_REL=function(){return u((function(h,d,g){return h.relative||(void 0!==h.x1&&(h.x1-=d),void 0!==h.y1&&(h.y1-=g),void 0!==h.x2&&(h.x2-=d),void 0!==h.y2&&(h.y2-=g),void 0!==h.x&&(h.x-=d),void 0!==h.y&&(h.y-=g),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,d,g){return void 0===h&&(h=!0),void 0===d&&(d=!0),void 0===g&&(g=!0),u((function(x,b,S,w,E){if(isNaN(w)&&!(x.type&Lg.MOVE_TO))throw new Error("path must start with moveto");return d&&x.type&Lg.HORIZ_LINE_TO&&(x.type=Lg.LINE_TO,x.y=x.relative?0:S),g&&x.type&Lg.VERT_LINE_TO&&(x.type=Lg.LINE_TO,x.x=x.relative?0:b),h&&x.type&Lg.CLOSE_PATH&&(x.type=Lg.LINE_TO,x.x=x.relative?w-b:w,x.y=x.relative?E-S:E),x.type&Lg.ARC&&(0===x.rX||0===x.rY)&&(x.type=Lg.LINE_TO,delete x.rX,delete x.rY,delete x.xRot,delete x.lArcFlag,delete x.sweepFlag),x}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var d=NaN,g=NaN,x=NaN,b=NaN;return u((function(S,w,E,A,P){var _=Math.abs,k=!1,C=0,R=0;if(S.type&Lg.SMOOTH_CURVE_TO&&(C=isNaN(d)?0:w-d,R=isNaN(g)?0:E-g),S.type&(Lg.CURVE_TO|Lg.SMOOTH_CURVE_TO)?(d=S.relative?w+S.x2:S.x2,g=S.relative?E+S.y2:S.y2):(d=NaN,g=NaN),S.type&Lg.SMOOTH_QUAD_TO?(x=isNaN(x)?w:2*w-x,b=isNaN(b)?E:2*E-b):S.type&Lg.QUAD_TO?(x=S.relative?w+S.x1:S.x1,b=S.relative?E+S.y1:S.y2):(x=NaN,b=NaN),S.type&Lg.LINE_COMMANDS||S.type&Lg.ARC&&(0===S.rX||0===S.rY||!S.lArcFlag)||S.type&Lg.CURVE_TO||S.type&Lg.SMOOTH_CURVE_TO||S.type&Lg.QUAD_TO||S.type&Lg.SMOOTH_QUAD_TO){var M=void 0===S.x?0:S.relative?S.x:S.x-w,N=void 0===S.y?0:S.relative?S.y:S.y-E;C=isNaN(x)?void 0===S.x1?C:S.relative?S.x:S.x1-w:x-w,R=isNaN(b)?void 0===S.y1?R:S.relative?S.y:S.y1-E:b-E;var D=void 0===S.x2?0:S.relative?S.x:S.x2-w,L=void 0===S.y2?0:S.relative?S.y:S.y2-E;_(M)<=h&&_(N)<=h&&_(C)<=h&&_(R)<=h&&_(D)<=h&&_(L)<=h&&(k=!0)}return S.type&Lg.CLOSE_PATH&&_(w-A)<=h&&_(E-P)<=h&&(k=!0),k?[]:S}))},h.MATRIX=O,h.ROTATE=function(h,d,g){void 0===d&&(d=0),void 0===g&&(g=0),a(h,d,g);var x=Math.sin(h),b=Math.cos(h);return O(b,x,-x,b,d-d*b+g*x,g-d*x-g*b)},h.TRANSLATE=function(h,d){return void 0===d&&(d=0),a(h,d),O(1,0,0,1,h,d)},h.SCALE=function(h,d){return void 0===d&&(d=h),a(h,d),O(h,0,0,d,0,0)},h.SKEW_X=function(h){return a(h),O(1,0,Math.atan(h),1,0,0)},h.SKEW_Y=function(h){return a(h),O(1,Math.atan(h),0,1,0,0)},h.X_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(-1,0,0,1,h,0)},h.Y_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(1,0,0,-1,0,h)},h.A_TO_C=function(){return u((function(h,d,g){return Lg.ARC===h.type?function(h,d,g){var x,b,S,w;h.cX||o(h,d,g);for(var E=Math.min(h.phi1,h.phi2),A=Math.max(h.phi1,h.phi2)-E,P=Math.ceil(A/90),_=new Array(P),k=d,C=g,R=0;R<P;R++){var M=c(h.phi1,h.phi2,R/P),N=c(h.phi1,h.phi2,(R+1)/P),D=N-M,L=4/3*Math.tan(D*Cg/4),j=[Math.cos(M*Cg)-L*Math.sin(M*Cg),Math.sin(M*Cg)+L*Math.cos(M*Cg)],V=j[0],$=j[1],B=[Math.cos(N*Cg),Math.sin(N*Cg)],U=B[0],z=B[1],G=[U+L*Math.sin(N*Cg),z-L*Math.cos(N*Cg)],q=G[0],X=G[1];_[R]={relative:h.relative,type:Lg.CURVE_TO};var Y=function H(d,g){var x=i$1([d*h.rX,g*h.rY],h.xRot),b=x[0],S=x[1];return[h.cX+b,h.cY+S]};x=Y(V,$),_[R].x1=x[0],_[R].y1=x[1],b=Y(q,X),_[R].x2=b[0],_[R].y2=b[1],S=Y(U,z),_[R].x=S[0],_[R].y=S[1],h.relative&&(_[R].x1-=k,_[R].y1-=C,_[R].x2-=k,_[R].y2-=C,_[R].x-=k,_[R].y-=C),k=(w=[_[R].x,_[R].y])[0],C=w[1]}return _}(h,h.relative?0:d,h.relative?0:g):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,d,g){return h.relative&&(d=0,g=0),Lg.ARC===h.type&&o(h,d,g),h}))},h.CLONE=function T(){return function(h){var d={};for(var g in h)d[g]=h[g];return d}},h.CALCULATE_BOUNDS=function(){var h=r(),d=n(),g=e(),x=u((function(b,S,w){var E=g(d(h(function t(h){var d={};for(var g in h)d[g]=h[g];return d}(b))));function O(h){h>x.maxX&&(x.maxX=h),h<x.minX&&(x.minX=h)}function T(h){h>x.maxY&&(x.maxY=h),h<x.minY&&(x.minY=h)}if(E.type&Lg.DRAWING_COMMANDS&&(O(S),T(w)),E.type&Lg.HORIZ_LINE_TO&&O(E.x),E.type&Lg.VERT_LINE_TO&&T(E.y),E.type&Lg.LINE_TO&&(O(E.x),T(E.y)),E.type&Lg.CURVE_TO){O(E.x),T(E.y);for(var A=0,P=p(S,E.x1,E.x2,E.x);A<P.length;A++)0<(q=P[A])&&1>q&&O(m(S,E.x1,E.x2,E.x,q));for(var _=0,k=p(w,E.y1,E.y2,E.y);_<k.length;_++)0<(q=k[_])&&1>q&&T(m(w,E.y1,E.y2,E.y,q))}if(E.type&Lg.ARC){O(E.x),T(E.y),o(E,S,w);for(var C=E.xRot/180*Math.PI,R=Math.cos(C)*E.rX,M=Math.sin(C)*E.rX,N=-Math.sin(C)*E.rY,D=Math.cos(C)*E.rY,L=E.phi1<E.phi2?[E.phi1,E.phi2]:-180>E.phi2?[E.phi2+360,E.phi1+360]:[E.phi2,E.phi1],j=L[0],V=L[1],$=function I(h){var d=h[0],g=h[1],x=180*Math.atan2(g,d)/Math.PI;return x<j?x+360:x},B=0,U=s(N,-R,0).map($);B<U.length;B++)(q=U[B])>j&&q<V&&O(y(E.cX,R,N,q));for(var z=0,G=s(D,-M,0).map($);z<G.length;z++){var q;(q=G[z])>j&&q<V&&T(y(E.cY,M,D,q))}}return b}));return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(Og||(Og={}));var Rg,Mg=function(){function t(){}return t.prototype.round=function(h){return this.transform(Og.ROUND(h))},t.prototype.toAbs=function(){return this.transform(Og.TO_ABS())},t.prototype.toRel=function(){return this.transform(Og.TO_REL())},t.prototype.normalizeHVZ=function(h,d,g){return this.transform(Og.NORMALIZE_HVZ(h,d,g))},t.prototype.normalizeST=function(){return this.transform(Og.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Og.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Og.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(Og.SANITIZE(h))},t.prototype.translate=function(h,d){return this.transform(Og.TRANSLATE(h,d))},t.prototype.scale=function(h,d){return this.transform(Og.SCALE(h,d))},t.prototype.rotate=function(h,d,g){return this.transform(Og.ROTATE(h,d,g))},t.prototype.matrix=function(h,d,g,x,b,S){return this.transform(Og.MATRIX(h,d,g,x,b,S))},t.prototype.skewX=function(h){return this.transform(Og.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(Og.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(Og.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(Og.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(Og.ANNOTATE_ARCS())},t}(),Ng=function v(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},Ig=function l(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},Dg=function(h){function e(){var d=h.call(this)||this;return d.curNumber="",d.curCommandType=-1,d.curCommandRelative=!1,d.canParseCommandOrComma=!0,d.curNumberHasExp=!1,d.curNumberHasExpDigits=!1,d.curNumberHasDecimal=!1,d.curArgs=[],d}return r(e,h),e.prototype.finish=function(h){if(void 0===h&&(h=[]),this.parse(" ",h),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return h},e.prototype.parse=function(h,d){var g=this;void 0===d&&(d=[]);for(var x=function i(h){d.push(h),g.curArgs.length=0,g.canParseCommandOrComma=!0},b=0;b<h.length;b++){var S=h[b],w=!(this.curCommandType!==Lg.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),E=Ig(S)&&("0"===this.curNumber&&"0"===S||w);if(!Ig(S)||E)if("e"!==S&&"E"!==S)if("-"!==S&&"+"!==S||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==S||this.curNumberHasExp||this.curNumberHasDecimal||w){if(this.curNumber&&-1!==this.curCommandType){var A=Number(this.curNumber);if(isNaN(A))throw new SyntaxError("Invalid number ending at "+b);if(this.curCommandType===Lg.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>A)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+b+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+b+'"');this.curArgs.push(A),this.curArgs.length===jg[this.curCommandType]&&(Lg.HORIZ_LINE_TO===this.curCommandType?x({type:Lg.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):Lg.VERT_LINE_TO===this.curCommandType?x({type:Lg.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===Lg.MOVE_TO||this.curCommandType===Lg.LINE_TO||this.curCommandType===Lg.SMOOTH_QUAD_TO?(x({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Lg.MOVE_TO===this.curCommandType&&(this.curCommandType=Lg.LINE_TO)):this.curCommandType===Lg.CURVE_TO?x({type:Lg.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Lg.SMOOTH_CURVE_TO?x({type:Lg.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Lg.QUAD_TO?x({type:Lg.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Lg.ARC&&x({type:Lg.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Ng(S))if(","===S&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==S&&"-"!==S&&"."!==S)if(E)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+b+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==S&&"Z"!==S)if("h"===S||"H"===S)this.curCommandType=Lg.HORIZ_LINE_TO,this.curCommandRelative="h"===S;else if("v"===S||"V"===S)this.curCommandType=Lg.VERT_LINE_TO,this.curCommandRelative="v"===S;else if("m"===S||"M"===S)this.curCommandType=Lg.MOVE_TO,this.curCommandRelative="m"===S;else if("l"===S||"L"===S)this.curCommandType=Lg.LINE_TO,this.curCommandRelative="l"===S;else if("c"===S||"C"===S)this.curCommandType=Lg.CURVE_TO,this.curCommandRelative="c"===S;else if("s"===S||"S"===S)this.curCommandType=Lg.SMOOTH_CURVE_TO,this.curCommandRelative="s"===S;else if("q"===S||"Q"===S)this.curCommandType=Lg.QUAD_TO,this.curCommandRelative="q"===S;else if("t"===S||"T"===S)this.curCommandType=Lg.SMOOTH_QUAD_TO,this.curCommandRelative="t"===S;else{if("a"!==S&&"A"!==S)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+".");this.curCommandType=Lg.ARC,this.curCommandRelative="a"===S}else d.push({type:Lg.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=S,this.curNumberHasDecimal="."===S}else this.curNumber+=S,this.curNumberHasDecimal=!0;else this.curNumber+=S;else this.curNumber+=S,this.curNumberHasExp=!0;else this.curNumber+=S,this.curNumberHasExpDigits=this.curNumberHasExp}return d},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function value(d,g){void 0===g&&(g=[]);for(var x=0,b=Object.getPrototypeOf(this).parse.call(this,d);x<b.length;x++){var S=b[x],w=h(S);Array.isArray(w)?g.push.apply(g,w):g.push(w)}return g}}})},e}(Mg),Lg=function(h){function i(d){var g=h.call(this)||this;return g.commands="string"==typeof d?i.parse(d):d,g}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=Og.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var d=[],g=0,x=this.commands;g<x.length;g++){var b=h(x[g]);Array.isArray(b)?d.push.apply(d,b):d.push(b)}return this.commands=d,this},i.encode=function(h){return function e(h){var d="";Array.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var x=h[g];if(x.type===Lg.CLOSE_PATH)d+="z";else if(x.type===Lg.HORIZ_LINE_TO)d+=(x.relative?"h":"H")+x.x;else if(x.type===Lg.VERT_LINE_TO)d+=(x.relative?"v":"V")+x.y;else if(x.type===Lg.MOVE_TO)d+=(x.relative?"m":"M")+x.x+" "+x.y;else if(x.type===Lg.LINE_TO)d+=(x.relative?"l":"L")+x.x+" "+x.y;else if(x.type===Lg.CURVE_TO)d+=(x.relative?"c":"C")+x.x1+" "+x.y1+" "+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Lg.SMOOTH_CURVE_TO)d+=(x.relative?"s":"S")+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Lg.QUAD_TO)d+=(x.relative?"q":"Q")+x.x1+" "+x.y1+" "+x.x+" "+x.y;else if(x.type===Lg.SMOOTH_QUAD_TO)d+=(x.relative?"t":"T")+x.x+" "+x.y;else{if(x.type!==Lg.ARC)throw new Error('Unexpected command type "'+x.type+'" at index '+g+".");d+=(x.relative?"a":"A")+x.rX+" "+x.rY+" "+x.xRot+" "+ +x.lArcFlag+" "+ +x.sweepFlag+" "+x.x+" "+x.y}}return d}(h)},i.parse=function(h){var d=new Dg,g=[];return d.parse(h,g),d.finish(g),g},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(Mg),jg=((Rg={})[Lg.MOVE_TO]=2,Rg[Lg.LINE_TO]=2,Rg[Lg.HORIZ_LINE_TO]=1,Rg[Lg.VERT_LINE_TO]=1,Rg[Lg.CLOSE_PATH]=0,Rg[Lg.QUAD_TO]=4,Rg[Lg.SMOOTH_QUAD_TO]=2,Rg[Lg.CURVE_TO]=6,Rg[Lg.SMOOTH_CURVE_TO]=4,Rg[Lg.ARC]=7,Rg),Vg=Ju.f;ds({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,d){var g=Vg(ls(h),d);return!(g&&!g.configurable)&&delete h[d]}});var $g=us.Reflect.deleteProperty,Fg=Bs("Array").values,Bg=Array.prototype,Ug={DOMTokenList:!0,NodeList:!0},zg=function values_1(h){var d=h.values;return h===Bg||h instanceof Array&&d===Bg.values||Ug.hasOwnProperty(of(h))?Fg:d},Gg=pc.trim,Hg=Ou.parseInt,qg=/^[+-]?0[Xx]/,Xg=8!==Hg(sc+"08")||22!==Hg(sc+"0x16")?function parseInt(h,d){var g=Gg(String(h));return Hg(g,d>>>0||(qg.test(g)?16:10))}:Hg;ds({global:!0,forced:parseInt!=Xg},{parseInt:Xg});var Yg=us.parseInt,Wg=Wc,Qg=Lf,Zg=Dh,Kg=ap,Jg=Object.isExtensible,tm=fails((function(){Jg(1)}));_export({target:"Object",stat:!0,forced:tm},{isExtensible:function isExtensible(h){return!!isObject(h)&&(!Jg||Jg(h))}});var em=cu.onFreeze,rm=Object.preventExtensions,nm=fails((function(){rm(1)}));_export({target:"Object",stat:!0,forced:nm,sham:!su},{preventExtensions:function preventExtensions(h){return rm&&isObject(h)?rm(em(h)):h}});var im=!Mu((function(){return Object.isExtensible(Object.preventExtensions({}))})),am=createCommonjsModule((function(h){var d=hs.f,g=_s("meta"),x=0,b=Object.isExtensible||function(){return!0},S=function setMetadata(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},w=h.exports={REQUIRED:!1,fastKey:function fastKey(h,d){if(!Gu(h))return"symbol"==_typeof(h)?h:("string"==typeof h?"S":"P")+h;if(!Xu(h,g)){if(!b(h))return"F";if(!d)return"E";S(h)}return h[g].objectID},getWeakData:function getWeakData(h,d){if(!Xu(h,g)){if(!b(h))return!0;if(!d)return!1;S(h)}return h[g].weakData},onFreeze:function onFreeze(h){return im&&w.REQUIRED&&b(h)&&!Xu(h,g)&&S(h),h}};vl[g]=!0})),om=hs.f,um=Oc.forEach,sm=Pl.set,cm=Pl.getterFor,lm=hs.f,fm=am.fastKey,hm=Pl.set,pm=Pl.getterFor,ym=(function collection(h,d,g){var x,b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=Ou[h],A=E&&E.prototype,P={};if(Nu&&"function"==typeof E&&(S||A.forEach&&!Mu((function(){(new E).entries().next()})))){x=d((function(d,g){sm(Qp(d,x,h),{type:h,collection:new E}),null!=g&&zp(g,d[w],{that:d,AS_ENTRIES:b})}));var _=cm(h);um(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var d="add"==h||"set"==h;!(h in A)||S&&"clear"==h||ps(x.prototype,h,(function(g,x){var b=_(this).collection;if(!d&&S&&!Gu(g))return"get"==h&&void 0;var w=b[h](0===g?0:g,x);return d?this:w}))})),S||om(x.prototype,"size",{configurable:!0,get:function get(){return _(this).collection.size}})}else x=g.getConstructor(d,h,b,w),am.REQUIRED=!0;lf(x,h,!1,!0),P[h]=x,ds({global:!0,forced:!0},P),S||g.setStrong(x,h,b)}("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(h,d,g,x){var b=h((function(h,S){Qp(h,b,d),hm(h,{type:d,index:tf(null),first:void 0,last:void 0,size:0}),Nu||(h.size=0),null!=S&&zp(S,h[x],{that:h,AS_ENTRIES:g})})),S=pm(d),w=function define(h,d,g){var x,b,w=S(h),A=E(h,d);return A?A.value=g:(w.last=A={index:b=fm(d,!0),key:d,value:g,previous:x=w.last,next:void 0,removed:!1},w.first||(w.first=A),x&&(x.next=A),Nu?w.size++:h.size++,"F"!==b&&(w.index[b]=A)),h},E=function getEntry(h,d){var g,x=S(h),b=fm(d);if("F"!==b)return x.index[b];for(g=x.first;g;g=g.next)if(g.key==d)return g};return Xp(b.prototype,{clear:function clear(){for(var h=S(this),d=h.index,g=h.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete d[g.index],g=g.next;h.first=h.last=void 0,Nu?h.size=0:this.size=0},delete:function _delete(h){var d=this,g=S(d),x=E(d,h);if(x){var b=x.next,w=x.previous;delete g.index[x.index],x.removed=!0,w&&(w.next=b),b&&(b.previous=w),g.first==x&&(g.first=b),g.last==x&&(g.last=w),Nu?g.size--:d.size--}return!!x},forEach:function forEach(h){for(var d,g=S(this),x=cs(h,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:g.first;)for(x(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function has(h){return!!E(this,h)}}),Xp(b.prototype,g?{get:function get(h){var d=E(this,h);return d&&d.value},set:function set(h,d){return w(this,0===h?0:h,d)}}:{add:function add(h){return w(this,h=0===h?0:h,h)}}),Nu&&lm(b.prototype,"size",{get:function get(){return S(this).size}}),b},setStrong:function setStrong(h,d,g){var x=d+" Iterator",b=pm(d),S=pm(x);wf(h,d,(function(h,d){hm(this,{type:x,target:h,state:b(h),kind:d,last:void 0})}),(function(){for(var h=S(this),d=h.kind,g=h.last;g&&g.removed;)g=g.previous;return h.target&&(h.last=g=g?g.next:h.state.first)?"keys"==d?{value:g.key,done:!1}:"values"==d?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),g?"entries":"values",!g,!0),Wp(d)}}),us.Map),vm=Rc("Reflect","apply"),dm=Function.apply,gm=!Mu((function(){vm((function(){}))}));ds({target:"Reflect",stat:!0,forced:gm},{apply:function apply(h,d,g){return ss(h),ls(g),vm?vm(h,d,g):dm.call(h,d,g)}});var mm=us.Reflect.apply;ds({target:"Reflect",stat:!0,sham:!Tl},{getPrototypeOf:function getPrototypeOf(h){return Ol(ls(h))}});var xm=us.Reflect.getPrototypeOf;function _typeof$1(h){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}var bm=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Sm=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(h,d,g,x,b,S){if(!(isNaN(S)||S<1)){S|=0;var w=function getImageDataFromCanvas(h,d,g,x,b){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof$1(h)||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var S=h.getContext("2d");try{return S.getImageData(d,g,x,b)}catch(h){throw new Error("unable to access image data: "+h)}}(h,d,g,x,b);w=function processImageDataRGBA(h,d,g,x,b,S){for(var w,E=h.data,A=2*S+1,P=x-1,_=b-1,k=S+1,C=k*(k+1)/2,R=new wm,M=R,N=1;N<A;N++)M=M.next=new wm,N===k&&(w=M);M.next=R;for(var D=null,L=null,j=0,V=0,$=bm[S],B=Sm[S],U=0;U<b;U++){M=R;for(var z=E[V],G=E[V+1],q=E[V+2],X=E[V+3],Y=0;Y<k;Y++)M.r=z,M.g=G,M.b=q,M.a=X,M=M.next;for(var W=0,Q=0,Z=0,K=0,J=k*z,tt=k*G,et=k*q,rt=k*X,nt=C*z,it=C*G,at=C*q,ot=C*X,ut=1;ut<k;ut++){var st=V+((P<ut?P:ut)<<2),ct=E[st],lt=E[st+1],ft=E[st+2],ht=E[st+3],pt=k-ut;nt+=(M.r=ct)*pt,it+=(M.g=lt)*pt,at+=(M.b=ft)*pt,ot+=(M.a=ht)*pt,W+=ct,Q+=lt,Z+=ft,K+=ht,M=M.next}D=R,L=w;for(var yt=0;yt<x;yt++){var vt=ot*$>>B;if(E[V+3]=vt,0!==vt){var dt=255/vt;E[V]=(nt*$>>B)*dt,E[V+1]=(it*$>>B)*dt,E[V+2]=(at*$>>B)*dt}else E[V]=E[V+1]=E[V+2]=0;nt-=J,it-=tt,at-=et,ot-=rt,J-=D.r,tt-=D.g,et-=D.b,rt-=D.a;var gt=yt+S+1;gt=j+(gt<P?gt:P)<<2,nt+=W+=D.r=E[gt],it+=Q+=D.g=E[gt+1],at+=Z+=D.b=E[gt+2],ot+=K+=D.a=E[gt+3],D=D.next;var mt=L,xt=mt.r,bt=mt.g,St=mt.b,wt=mt.a;J+=xt,tt+=bt,et+=St,rt+=wt,W-=xt,Q-=bt,Z-=St,K-=wt,L=L.next,V+=4}j+=x}for(var Et=0;Et<x;Et++){var At=E[V=Et<<2],Pt=E[V+1],Tt=E[V+2],_t=E[V+3],kt=k*At,Ot=k*Pt,Ct=k*Tt,Rt=k*_t,Mt=C*At,Nt=C*Pt,It=C*Tt,Dt=C*_t;M=R;for(var Lt=0;Lt<k;Lt++)M.r=At,M.g=Pt,M.b=Tt,M.a=_t,M=M.next;for(var jt=x,Vt=0,$t=0,Ft=0,Bt=0,Ut=1;Ut<=S;Ut++){V=jt+Et<<2;var zt=k-Ut;Mt+=(M.r=At=E[V])*zt,Nt+=(M.g=Pt=E[V+1])*zt,It+=(M.b=Tt=E[V+2])*zt,Dt+=(M.a=_t=E[V+3])*zt,Bt+=At,Vt+=Pt,$t+=Tt,Ft+=_t,M=M.next,Ut<_&&(jt+=x)}V=Et,D=R,L=w;for(var Gt=0;Gt<b;Gt++){var Ht=V<<2;E[Ht+3]=_t=Dt*$>>B,_t>0?(_t=255/_t,E[Ht]=(Mt*$>>B)*_t,E[Ht+1]=(Nt*$>>B)*_t,E[Ht+2]=(It*$>>B)*_t):E[Ht]=E[Ht+1]=E[Ht+2]=0,Mt-=kt,Nt-=Ot,It-=Ct,Dt-=Rt,kt-=D.r,Ot-=D.g,Ct-=D.b,Rt-=D.a,Ht=Et+((Ht=Gt+k)<_?Ht:_)*x<<2,Mt+=Bt+=D.r=E[Ht],Nt+=Vt+=D.g=E[Ht+1],It+=$t+=D.b=E[Ht+2],Dt+=Ft+=D.a=E[Ht+3],D=D.next,kt+=At=L.r,Ot+=Pt=L.g,Ct+=Tt=L.b,Rt+=_t=L.a,Bt-=At,Vt-=Pt,$t-=Tt,Ft-=_t,L=L.next,V+=x}}return h}(w,0,0,x,b,S),h.getContext("2d").putImageData(w,d,g)}}var wm=function BlurStack(){!function _classCallCheck$1(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(h){return h.replace(/(?!\u3000)\s+/gm," ")}function toNumbers(h){var d=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return Yc(d).call(d,gc)}var Em=/^[A-Z-]+$/;function normalizeAttributeName(h){return Em.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var d=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return d[2]||d[3]||d[4]}var Am=/(\[[^\]]+\])/g,Pm=/(#[^\s\+>~\.\[:]+)/g,Tm=/(\.[^\s\+>~\.\[:]+)/g,_m=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,km=/(:[\w-]+\([^\)]*\))/gi,Om=/(:[^\s\+>~\.\[:]+)/g,Cm=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,d){var g=h.match(d);return g?[h.replace(d," "),g.length]:[h,0]}var Rm=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,d){return(h[0]*d[0]+h[1]*d[1])/(vectorMagnitude(h)*vectorMagnitude(d))}function vectorsAngle(h,d){return(h[0]*d[1]<h[1]*d[0]?-1:1)*Math.acos(vectorsRatio(h,d))}function CB1(h){return h*h*h}function CB2(h){return 3*h*h*(1-h)}function CB3(h){return 3*h*(1-h)*(1-h)}function CB4(h){return(1-h)*(1-h)*(1-h)}function QB1(h){return h*h}function QB2(h){return 2*h*(1-h)}function QB3(h){return(1-h)*(1-h)}var Mm=function(){function Property(h,d,g){wv(this,Property),this.document=h,this.name=d,this.value=g,this.isNormalizedColor=!1}return Ev(Property,[{key:"split",value:function split(){var h,d,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",x=this.document,b=this.name;return Yc(h=vd(d=compressSpaces(this.getString())).call(d).split(g)).call(h,(function(h){return new Property(x,b,h)}))}},{key:"hasValue",value:function hasValue(h){var d=this.value;return null!==d&&""!==d&&(h||0!==d)&&void 0!==d}},{key:"isString",value:function isString(h){var d=this.value,g="string"==typeof d;return g&&h?h.test(d):g}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case/px$/.test(h):case/^[0-9]+$/.test(h):return!0;default:return!1}}},{key:"setValue",value:function setValue(h){return this.value=h,this}},{key:"getValue",value:function getValue(h){return void 0===h||this.hasValue()?this.value:h}},{key:"getNumber",value:function getNumber(h){if(!this.hasValue())return void 0===h?0:gc(h);var d=this.value,g=gc(d);return this.isString(/%$/)&&(g/=100),g}},{key:"getString",value:function getString(h){return void 0===h||this.hasValue()?void 0===this.value?"":String(this.value):String(h)}},{key:"getColor",value:function getColor(h){var d=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,d=function normalizeColor(h){if(!Gs(h).call(h,"rgb"))return h;var d=3;return h.replace(/\d+(\.\d+)?/g,(function(h,g){return d--&&g?String(Math.round(gc(h))):h}))}(d),this.value=d),d}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var g="boolean"==typeof h?[void 0,h]:[h],x=lp(g,2),b=x[0],S=x[1],w=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(w.computeSize("x"),w.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(w.computeSize("x"),w.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*w.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*w.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&S:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*w.computeSize(b);default:var E=this.getNumber();return d&&E<1?E*w.computeSize(b):E}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var h=this.getString(),d=h.match(/#([^\)'"]+)/);return d&&(d=d[1]),d||(d=h),this.document.definitions[d]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,d){var g=this.getDefinition();if(!g)return null;if("function"==typeof g.createGradient)return g.createGradient(this.document.ctx,h,d);if("function"==typeof g.createPattern){if(g.getHrefAttribute().hasValue()){var x=g.getAttribute("patternTransform");g=g.getHrefAttribute().getDefinition(),x.hasValue()&&g.getAttribute("patternTransform",!0).setValue(x.value)}return g.createPattern(this.document.ctx,h,d)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var d=this.getColor(),g=d.length,x=0,b=0;b<g&&(","===d[b]&&x++,3!==x);b++);if(h.hasValue()&&this.isString()&&3!==x){var S=new bd(d);S.ok&&(S.alpha=h.getNumber(),d=S.toRGBA())}return new Property(this.document,this.name,d)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();Mm.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var Nm=function(){function ViewPort(){wv(this,ViewPort),this.viewPorts=[]}return Ev(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,d){this.viewPorts.push({width:h,height:d})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var h=this.viewPorts;return h[h.length-1]}},{key:"computeSize",value:function computeSize(h){return"number"==typeof h?h:"x"===h?this.width:"y"===h?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),Im=function(){function Point(h,d){wv(this,Point),this.x=h,this.y=d}return Ev(Point,[{key:"angleTo",value:function angleTo(h){return Math.atan2(h.y-this.y,h.x-this.x)}},{key:"applyTransform",value:function applyTransform(h){var d=this.x,g=this.y,x=d*h[0]+g*h[2]+h[4],b=d*h[1]+g*h[3]+h[5];this.x=x,this.y=b}}],[{key:"parse",value:function parse(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=toNumbers(h),x=lp(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?d:w;return new Point(S,E)}},{key:"parseScale",value:function parseScale(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,g=toNumbers(h),x=lp(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?S:w;return new Point(S,E)}},{key:"parsePath",value:function parsePath(h){for(var d=toNumbers(h),g=d.length,x=[],b=0;b<g;b+=2)x.push(new Point(d[b],d[b+1]));return x}}]),Point}(),Dm=function(){function Mouse(h){var d,g;wv(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=td(d=this.onClick).call(d,this),this.onMouseMove=td(g=this.onMouseMove).call(g,this)}return Ev(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,d=this.onClick,g=this.onMouseMove,x=h.ctx.canvas;x.onclick=d,x.onmousemove=g,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var h=this.screen.ctx.canvas;this.working=!1,h.onclick=null,h.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var h=this.screen,d=this.events,g=this.eventElements,x=h.ctx.canvas.style;x&&(x.cursor=""),Ap(d).call(d,(function(h,d){for(var x=h.run,b=g[d];b;)x(b),b=b.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;Ap(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInPath&&d.isPointInPath(S,w)&&(x[b]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;Ap(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInBox(S,w)&&(x[b]=h)}))}}},{key:"mapXY",value:function mapXY(h,d){for(var g=this.screen,x=g.window,b=g.ctx,S=new Im(h,d),w=b.canvas;w;)S.x-=w.offsetLeft,S.y-=w.offsetTop,w=w.offsetParent;return x.scrollX&&(S.x+=x.scrollX),x.scrollY&&(S.y+=x.scrollY),S}},{key:"onClick",value:function onClick(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onclick",x:g,y:x,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onmousemove",x:g,y:x,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),Lm="undefined"!=typeof window?window:null,jm="undefined"!=typeof fetch?td(fetch).call(fetch,void 0):null,Vm=function(){function Screen(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=d.fetch,x=void 0===g?jm:g,b=d.window,S=void 0===b?Lm:b;wv(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Nm,this.mouse=new Dm(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=S,this.fetch=x}return Ev(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Xv.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var d=qv(h=this.waits).call(h,(function(h){return h()}));return d&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=d,d}},{key:"setDefaults",value:function setDefaults(h){h.strokeStyle="rgba(0,0,0,0)",h.lineCap="butt",h.lineJoin="miter",h.miterLimit=4}},{key:"setViewBox",value:function setViewBox(h){var d=h.document,g=h.ctx,x=h.aspectRatio,b=h.width,S=h.desiredWidth,w=h.height,E=h.desiredHeight,A=h.minX,P=void 0===A?0:A,_=h.minY,k=void 0===_?0:_,C=h.refX,R=h.refY,M=h.clip,N=void 0!==M&&M,D=h.clipX,L=void 0===D?0:D,j=h.clipY,V=void 0===j?0:j,$=compressSpaces(x).replace(/^defer\s/,"").split(" "),B=lp($,2),U=B[0]||"xMidYMid",z=B[1]||"meet",G=b/S,q=w/E,X=Math.min(G,q),Y=Math.max(G,q),W=S,Q=E;"meet"===z&&(W*=X,Q*=X),"slice"===z&&(W*=Y,Q*=Y);var Z=new Mm(d,"refX",C),K=new Mm(d,"refY",R),J=Z.hasValue()&&K.hasValue();if(J&&g.translate(-X*Z.getPixels("x"),-X*K.getPixels("y")),N){var tt=X*L,et=X*V;g.beginPath(),g.moveTo(tt,et),g.lineTo(b,et),g.lineTo(b,w),g.lineTo(tt,w),g.closePath(),g.clip()}if(!J){var rt="meet"===z&&X===q,nt="slice"===z&&Y===q,it="meet"===z&&X===G,at="slice"===z&&Y===G;/^xMid/.test(U)&&(rt||nt)&&g.translate(b/2-W/2,0),/YMid$/.test(U)&&(it||at)&&g.translate(0,w/2-Q/2),/^xMax/.test(U)&&(rt||nt)&&g.translate(b-W,0),/YMax$/.test(U)&&(it||at)&&g.translate(0,w-Q)}switch(!0){case"none"===U:g.scale(G,q);break;case"meet"===z:g.scale(X,X);break;case"slice"===z:g.scale(Y,Y)}g.translate(-P,-k)}},{key:"start",value:function start(h){var d=this,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=g.enableRedraw,b=void 0!==x&&x,S=g.ignoreMouse,w=void 0!==S&&S,E=g.ignoreAnimation,A=void 0!==E&&E,P=g.ignoreDimensions,_=void 0!==P&&P,k=g.ignoreClear,C=void 0!==k&&k,R=g.forceRedraw,M=g.scaleWidth,N=g.scaleHeight,D=g.offsetX,L=g.offsetY,j=this.FRAMERATE,V=this.mouse,$=1e3/j;if(this.frameDuration=$,this.readyPromise=new Xv((function(h){d.resolveReady=h})),this.isReady()&&this.render(h,_,C,M,N,D,L),b){var B=jv(),U=B,z=0,G=function tick(){B=jv(),(z=B-U)>=$&&(U=B-z%$,d.shouldUpdate(A,R)&&(d.render(h,_,C,M,N,D,L),V.runEvents())),d.intervalId=fd(tick)};w||V.start(),this.intervalId=fd(G)}}},{key:"stop",value:function stop(){this.intervalId&&(fd.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,d){if(!h){var g,x=this.frameDuration,shouldUpdate=Lv(g=this.animations).call(g,(function(h,d){return d.update(x)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof d||!d())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,d,g,x,b,S,w){var E=this.CLIENT_WIDTH,A=this.CLIENT_HEIGHT,P=this.viewPort,_=this.ctx,k=this.isFirstRender,C=_.canvas;P.clear(),C.width&&C.height?P.setCurrent(C.width,C.height):P.setCurrent(E,A);var R=h.getStyle("width"),M=h.getStyle("height");!d&&(k||"number"!=typeof x&&"number"!=typeof b)&&(R.hasValue()&&(C.width=R.getPixels("x"),C.style&&(C.style.width="".concat(C.width,"px"))),M.hasValue()&&(C.height=M.getPixels("y"),C.style&&(C.style.height="".concat(C.height,"px"))));var N=C.clientWidth||C.width,D=C.clientHeight||C.height;if(d&&R.hasValue()&&M.hasValue()&&(N=R.getPixels("x"),D=M.getPixels("y")),P.setCurrent(N,D),"number"==typeof S&&h.getAttribute("x",!0).setValue(S),"number"==typeof w&&h.getAttribute("y",!0).setValue(w),"number"==typeof x||"number"==typeof b){var L,j,V=toNumbers(h.getAttribute("viewBox").getString()),$=0,B=0;if("number"==typeof x){var U=h.getStyle("width");U.hasValue()?$=U.getPixels("x")/x:isNaN(V[2])||($=V[2]/x)}if("number"==typeof b){var z=h.getStyle("height");z.hasValue()?B=z.getPixels("y")/b:isNaN(V[3])||(B=V[3]/b)}$||($=B),B||(B=$),h.getAttribute("width",!0).setValue(x),h.getAttribute("height",!0).setValue(b);var G=h.getStyle("transform",!0,!0);G.setValue(Tv(L=Tv(j="".concat(G.getString()," scale(")).call(j,1/$,", ")).call(L,1/B,")"))}g||_.clearRect(0,0,N,D),h.render(_),k&&(this.isFirstRender=!1)}}]),Screen}();Vm.defaultWindow=Lm,Vm.defaultFetch=jm;var $m=Vm.defaultFetch,Fm="undefined"!=typeof DOMParser?DOMParser:null,Bm=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=h.fetch,g=void 0===d?$m:d,x=h.DOMParser,b=void 0===x?Fm:x;wv(this,Parser),this.fetch=g,this.DOMParser=b}var h,d;return Ev(Parser,[{key:"parse",value:(d=xv(Bp.mark((function _callee(h){return Bp.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!/^</.test(h)){d.next=2;break}return d.abrupt("return",this.parseFromString(h));case 2:return d.abrupt("return",this.load(h));case 3:case"end":return d.stop()}}),_callee,this)}))),function parse(h){return d.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var d=new this.DOMParser;try{return this.checkDocument(d.parseFromString(h,"image/svg+xml"))}catch(g){return this.checkDocument(d.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var d=h.getElementsByTagName("parsererror")[0];if(d)throw new Error(d.textContent);return h}},{key:"load",value:(h=xv(Bp.mark((function _callee2(h){var d,g;return Bp.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.fetch(h);case 2:return d=x.sent,x.next=5,d.text();case 5:return g=x.sent,x.abrupt("return",this.parseFromString(g));case 7:case"end":return x.stop()}}),_callee2,this)}))),function load(d){return h.apply(this,arguments)})}]),Parser}(),Um=function(){function Translate(h,d){wv(this,Translate),this.type="translate",this.point=null,this.point=Im.parse(d)}return Ev(Translate,[{key:"apply",value:function apply(h){var d=this.point,g=d.x,x=d.y;h.translate(g||0,x||0)}},{key:"unapply",value:function unapply(h){var d=this.point,g=d.x,x=d.y;h.translate(-1*g||0,-1*x||0)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.point,g=d.x,x=d.y;h.applyTransform([1,0,0,1,g||0,x||0])}}]),Translate}(),zm=function(){function Rotate(h,d,g){wv(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var x=toNumbers(d);this.angle=new Mm(h,"angle",x[0]),this.originX=g[0],this.originY=g[1],this.cx=x[1]||0,this.cy=x[2]||0}return Ev(Rotate,[{key:"apply",value:function apply(h){var d=this.cx,g=this.cy,x=this.originX,b=this.originY,S=this.angle,w=d+x.getPixels("x"),E=g+b.getPixels("y");h.translate(w,E),h.rotate(S.getRadians()),h.translate(-w,-E)}},{key:"unapply",value:function unapply(h){var d=this.cx,g=this.cy,x=this.angle;h.translate(d,g),h.rotate(-1*x.getRadians()),h.translate(-d,-g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.cx,g=this.cy,x=this.angle.getRadians();h.applyTransform([1,0,0,1,d||0,g||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-d||0,-g||0])}}]),Rotate}(),Gm=function(){function Scale(h,d){wv(this,Scale),this.type="scale",this.scale=null;var g=Im.parseScale(d);0!==g.x&&0!==g.y||(g.x=Rm,g.y=Rm),this.scale=g}return Ev(Scale,[{key:"apply",value:function apply(h){var d=this.scale,g=d.x,x=d.y;h.scale(g,x||g)}},{key:"unapply",value:function unapply(h){var d=this.scale,g=d.x,x=d.y;h.scale(1/g,1/x||g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.scale,g=d.x,x=d.y;h.applyTransform([g||0,0,0,x||0,0,0])}}]),Scale}(),Hm=function(){function Matrix(h,d){wv(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(d)}return Ev(Matrix,[{key:"apply",value:function apply(h){var d=this.matrix;h.transform(d[0],d[1],d[2],d[3],d[4],d[5])}},{key:"unapply",value:function unapply(h){var d=this.matrix,g=d[0],x=d[2],b=d[4],S=d[1],w=d[3],E=d[5],A=1/(g*(1*w-0*E)-x*(1*S-0*E)+b*(0*S-0*w));h.transform(A*(1*w-0*E),A*(0*E-1*S),A*(0*b-1*x),A*(1*g-0*b),A*(x*E-b*w),A*(b*S-g*E))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var d=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var qm=function(h){Cd(Skew,h);var d=_createSuper(Skew);function Skew(h,g){var x;return wv(this,Skew),(x=d.call(this,h,g)).type="skew",x.angle=null,x.angle=new Mm(h,"angle",g),x}return Skew}(Hm);function _createSuper$1(h){var d=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Xm=function(h){Cd(SkewX,h);var d=_createSuper$1(SkewX);function SkewX(h,g){var x;return wv(this,SkewX),(x=d.call(this,h,g)).type="skewX",x.matrix=[1,0,Math.tan(x.angle.getRadians()),1,0,0],x}return SkewX}(qm);function _createSuper$2(h){var d=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Ym=function(h){Cd(SkewY,h);var d=_createSuper$2(SkewY);function SkewY(h,g){var x;return wv(this,SkewY),(x=d.call(this,h,g)).type="skewY",x.matrix=[1,Math.tan(x.angle.getRadians()),0,1,0,0],x}return SkewY}(qm);var Wm=function(){function Transform(h,d,g){var x=this;wv(this,Transform),this.document=h,this.transforms=[];var b=function parseTransforms(h){var d;return vd(d=compressSpaces(h)).call(d).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(d);Ap(b).call(b,(function(h){if("none"!==h){var d=function parseTransform(h){var d=h.split("("),g=lp(d,2),x=g[0],b=g[1];return[vd(x).call(x),vd(b).call(b).replace(")","")]}(h),b=lp(d,2),S=b[0],w=b[1],E=Transform.transformTypes[S];void 0!==E&&x.transforms.push(new E(x.document,w,g))}}))}return Ev(Transform,[{key:"apply",value:function apply(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].apply(h)}},{key:"unapply",value:function unapply(h){for(var d=this.transforms,g=d.length-1;g>=0;g--)d[g].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,d){var g=d.getStyle("transform",!1,!0),x=d.getStyle("transform-origin",!1,!0).split(),b=lp(x,2),S=b[0],w=b[1],E=[S,void 0===w?S:w];return g.hasValue()?new Transform(h,g.getString(),E):null}}]),Transform}();Wm.transformTypes={translate:Um,rotate:zm,scale:Gm,matrix:Hm,skewX:Xm,skewY:Ym};var Qm=function(){function Element(h,d){var g,x,b=this,S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(wv(this,Element),this.document=h,this.node=d,this.captureTextNodes=S,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],d&&1===d.nodeType){if(Ap(g=og(d.attributes)).call(g,(function(d){var g=normalizeAttributeName(d.nodeName);b.attributes[g]=new Mm(h,g,d.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var w,E=Yc(w=this.getAttribute("style").getString().split(";")).call(w,(function(h){return vd(h).call(h)}));Ap(E).call(E,(function(d){var g;if(d){var x=Yc(g=d.split(":")).call(g,(function(h){return vd(h).call(h)})),S=lp(x,2),w=S[0],E=S[1];b.styles[w]=new Mm(h,w,E)}}))}var A=h.definitions,P=this.getAttribute("id");P.hasValue()&&(A[P.getValue()]||(A[P.getValue()]=this)),Ap(x=og(d.childNodes)).call(x,(function(d){if(1===d.nodeType)b.addChild(d);else if(S&&(3===d.nodeType||4===d.nodeType)){var g=h.createTextNode(d);g.getText().length>0&&b.addChild(g)}}))}}return Ev(Element,[{key:"getAttribute",value:function getAttribute(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.attributes[h];if(!g&&d){var x=new Mm(this.document,h,"");return this.attributes[h]=x,x}return g||Mm.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var h in this.attributes)if("href"===h||/:href$/.test(h))return this.attributes[h];return Mm.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.styles[h];if(x)return x;var b=this.getAttribute(h);if(b&&b.hasValue())return this.styles[h]=b,b;if(!g){var S=this.parent;if(S){var w=S.getStyle(h);if(w&&w.hasValue())return w}}if(d){var E=new Mm(this.document,h,"");return this.styles[h]=E,E}return x||Mm.empty(this.document)}},{key:"render",value:function render(h){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(h.save(),this.getStyle("mask").hasValue()){var d=this.getStyle("mask").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var g=this.getStyle("filter").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else this.setContext(h),this.renderChildren(h),this.clearContext(h);h.restore()}}},{key:"setContext",value:function setContext(h){}},{key:"applyEffects",value:function applyEffects(h){var d=Wm.fromElement(this.document,this);d&&d.apply(h);var g=this.getStyle("clip-path",!1,!0);if(g.hasValue()){var x=g.getDefinition();x&&x.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var d;Ap(d=this.children).call(d,(function(d){d.render(h)}))}},{key:"addChild",value:function addChild(h){var d,g=h instanceof Element?h:this.document.createElement(h);g.parent=this,ag(d=Element.ignoreChildTypes).call(d,g.type)||this.children.push(g)}},{key:"matchesSelector",value:function matchesSelector(h){var d,g=this.node;if("function"==typeof g.matches)return g.matches(h);var x=g.getAttribute("class");return!(!x||""===x)&&Qd(d=x.split(" ")).call(d,(function(d){if(".".concat(d)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,d=h.styles,g=h.stylesSpecificity;for(var x in d)if("@"!==x[0]&&this.matchesSelector(x)){var b=d[x],S=g[x];if(b)for(var w in b){var E=this.stylesSpecificity[w];void 0===E&&(E="000"),S>=E&&(this.styles[w]=b[w],this.stylesSpecificity[w]=S)}}}},{key:"removeStyles",value:function removeStyles(h,d){return Lv(d).call(d,(function(d,g){var x,b=h.getStyle(g);if(!b.hasValue())return d;var S=b.getString();return b.setValue(""),Tv(x=[]).call(x,Bd(d),[[g,S]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,d){Ap(d).call(d,(function(d){var g=lp(d,2),x=g[0],b=g[1];h.getStyle(x,!0).setValue(b)}))}}]),Element}();function _createSuper$3(h){var d=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}Qm.ignoreChildTypes=["title"];var Zm=function(h){Cd(UnknownElement,h);var d=_createSuper$3(UnknownElement);function UnknownElement(h,g,x){return wv(this,UnknownElement),d.call(this,h,g,x)}return UnknownElement}(Qm);function wrapFontFamily(h){var d=vd(h).call(h);return/^('|")/.test(d)?d:'"'.concat(d,'"')}function prepareFontStyle(h){if(!h)return"";var d=vd(h).call(h).toLowerCase();switch(d){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return d;default:return/^oblique\s+(-|)\d+deg$/.test(d)?d:""}}function prepareFontWeight(h){if(!h)return"";var d=vd(h).call(h).toLowerCase();switch(d){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return d;default:return/^[\d.]+$/.test(d)?d:""}}var Km=function(){function Font(h,d,g,x,b,S){wv(this,Font);var w=S?"string"==typeof S?Font.parse(S):S:{};this.fontFamily=b||w.fontFamily,this.fontSize=x||w.fontSize,this.fontStyle=h||w.fontStyle,this.fontWeight=g||w.fontWeight,this.fontVariant=d||w.fontVariant}return Ev(Font,[{key:"toString",value:function toString(){var h,d,g;return vd(h=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(d=this.fontFamily,void 0===Bo?d:Yc(g=vd(d).call(d).split(",")).call(g,wrapFontFamily).join(","))].join(" ")).call(h)}}],[{key:"parse",value:function parse(){var h,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",g=arguments.length>1?arguments[1]:void 0,x="",b="",S="",w="",E="",A=vd(h=compressSpaces(d)).call(h).split(" "),P={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Ap(A).call(A,(function(h){var d,g,A;switch(!0){case!P.fontStyle&&ag(d=Font.styles).call(d,h):"inherit"!==h&&(x=h),P.fontStyle=!0;break;case!P.fontVariant&&ag(g=Font.variants).call(g,h):"inherit"!==h&&(b=h),P.fontStyle=!0,P.fontVariant=!0;break;case!P.fontWeight&&ag(A=Font.weights).call(A,h):"inherit"!==h&&(S=h),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0;break;case!P.fontSize:if("inherit"!==h){var _=h.split("/"),k=lp(_,1);w=k[0]}P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0,P.fontSize=!0;break;default:"inherit"!==h&&(E+=h)}})),new Font(x,b,S,w,E,g)}}]),Font}();Km.styles="normal|italic|oblique|inherit",Km.variants="normal|small-caps|inherit",Km.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Jm=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;wv(this,BoundingBox),this.x1=h,this.y1=d,this.x2=g,this.y2=x,this.addPoint(h,d),this.addPoint(g,x)}return Ev(BoundingBox,[{key:"addPoint",value:function addPoint(h,d){void 0!==h&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=h,this.x2=h),h<this.x1&&(this.x1=h),h>this.x2&&(this.x2=h)),void 0!==d&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=d,this.y2=d),d<this.y1&&(this.y1=d),d>this.y2&&(this.y2=d))}},{key:"addX",value:function addX(h){this.addPoint(h,null)}},{key:"addY",value:function addY(h){this.addPoint(null,h)}},{key:"addBoundingBox",value:function addBoundingBox(h){if(h){var d=h.x1,g=h.y1,x=h.x2,b=h.y2;this.addPoint(d,g),this.addPoint(x,b)}}},{key:"sumCubic",value:function sumCubic(h,d,g,x,b){return Math.pow(1-h,3)*d+3*Math.pow(1-h,2)*h*g+3*(1-h)*Math.pow(h,2)*x+Math.pow(h,3)*b}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,d,g,x,b){var S=6*d-12*g+6*x,w=-3*d+9*g-9*x+3*b,E=3*g-3*d;if(0!==w){var A=Math.pow(S,2)-4*E*w;if(!(A<0)){var P=(-S+Math.sqrt(A))/(2*w);0<P&&P<1&&(h?this.addX(this.sumCubic(P,d,g,x,b)):this.addY(this.sumCubic(P,d,g,x,b)));var _=(-S-Math.sqrt(A))/(2*w);0<_&&_<1&&(h?this.addX(this.sumCubic(_,d,g,x,b)):this.addY(this.sumCubic(_,d,g,x,b)))}}else{if(0===S)return;var k=-E/S;0<k&&k<1&&(h?this.addX(this.sumCubic(k,d,g,x,b)):this.addY(this.sumCubic(k,d,g,x,b)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,d,g,x,b,S,w,E){this.addPoint(h,d),this.addPoint(w,E),this.bezierCurveAdd(!0,h,g,b,w),this.bezierCurveAdd(!1,d,x,S,E)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,d,g,x,b,S){var w=h+2/3*(g-h),E=d+2/3*(x-d),A=w+1/3*(b-h),P=E+1/3*(S-d);this.addBezierCurve(h,d,w,A,E,P,b,S)}},{key:"isPointInBox",value:function isPointInBox(h,d){var g=this.x1,x=this.y1,b=this.x2,S=this.y2;return g<=h&&h<=b&&x<=d&&d<=S}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(h){var d=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var tx=function(h){Cd(RenderedElement,h);var d=_createSuper$4(RenderedElement);function RenderedElement(){var h;return wv(this,RenderedElement),(h=d.apply(this,arguments)).modifiedEmSizeStack=!1,h}return Ev(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,d=this;d;){var g=d.getStyle("opacity",!1,!0);g.hasValue(!0)&&(h*=g.getNumber()),d=d.parent}return h}},{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d){var g=this.getStyle("fill"),x=this.getStyle("fill-opacity"),b=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(g.isUrlDefinition()){var w=g.getFillStyleDefinition(this,x);w&&(h.fillStyle=w)}else if(g.hasValue()){"currentColor"===g.getString()&&g.setValue(this.getStyle("color").getColor());var E=g.getColor();"inherit"!==E&&(h.fillStyle="none"===E?"rgba(0,0,0,0)":E)}if(x.hasValue()){var A=new Mm(this.document,"fill",h.fillStyle).addOpacity(x).getColor();h.fillStyle=A}if(b.isUrlDefinition()){var P=b.getFillStyleDefinition(this,S);P&&(h.strokeStyle=P)}else if(b.hasValue()){"currentColor"===b.getString()&&b.setValue(this.getStyle("color").getColor());var _=b.getString();"inherit"!==_&&(h.strokeStyle="none"===_?"rgba(0,0,0,0)":_)}if(S.hasValue()){var k=new Mm(this.document,"stroke",h.strokeStyle).addOpacity(S).getString();h.strokeStyle=k}var C=this.getStyle("stroke-width");if(C.hasValue()){var R=C.getPixels();h.lineWidth=R||Rm}var M=this.getStyle("stroke-linecap"),N=this.getStyle("stroke-linejoin"),D=this.getStyle("stroke-miterlimit"),L=this.getStyle("paint-order"),j=this.getStyle("stroke-dasharray"),V=this.getStyle("stroke-dashoffset");if(M.hasValue()&&(h.lineCap=M.getString()),N.hasValue()&&(h.lineJoin=N.getString()),D.hasValue()&&(h.miterLimit=D.getNumber()),L.hasValue()&&(h.paintOrder=L.getValue()),j.hasValue()&&"none"!==j.getString()){var $=toNumbers(j.getString());void 0!==h.setLineDash?h.setLineDash($):void 0!==h.webkitLineDash?h.webkitLineDash=$:void 0===h.mozDash||1===$.length&&0===$[0]||(h.mozDash=$);var B=V.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=B:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=B:void 0!==h.mozDashOffset&&(h.mozDashOffset=B)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var U=this.getStyle("font"),z=this.getStyle("font-style"),G=this.getStyle("font-variant"),q=this.getStyle("font-weight"),X=this.getStyle("font-size"),Y=this.getStyle("font-family"),W=new Km(z.getString(),G.getString(),q.getString(),X.hasValue()?"".concat(X.getPixels(!0),"px"):"",Y.getString(),Km.parse(U.getString(),h.font));z.setValue(W.fontStyle),G.setValue(W.fontVariant),q.setValue(W.fontWeight),X.setValue(W.fontSize),Y.setValue(W.fontFamily),h.font=W.toString(),X.isPixels()&&(this.document.emSize=X.getPixels(),this.modifiedEmSizeStack=!0)}d||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){Eg(jd(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(Qm);function _createSuper$5(h){var d=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var ex=function(h){Cd(TextElement,h);var d=_createSuper$5(TextElement);function TextElement(h,g,x){var b;return wv(this,TextElement),(b=d.call(this,h,g,(this instanceof TextElement?this.constructor:void 0)===TextElement||x)).type="text",b.x=0,b.y=0,b.measureCache=-1,b}return Ev(TextElement,[{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Eg(jd(TextElement.prototype),"setContext",this).call(this,h,d);var g=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();g&&(h.textBaseline=g)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var d=this.getAttribute("dx"),g=this.getAttribute("dy");d.hasValue()&&(this.x+=d.getPixels("x")),g.hasValue()&&(this.y+=g.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var x=null;return Ap(d=this.children).call(d,(function(d,b){var S=g.getChildBoundingBox(h,g,g,b);x?x.addBoundingBox(S):x=S})),x}},{key:"getFontSize",value:function getFontSize(){var h=this.document,d=this.parent,g=Km.parse(h.ctx.font).fontSize;return d.getStyle("font-size").getNumber(g)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var d=this.getFontSize();return new Jm(this.x,this.y-d,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,d,g){var x=d[g],b=null;if(h.isArabic){var S=d.length,w=d[g-1],E=d[g+1],A="isolated";(0===g||" "===w)&&g<S-2&&" "!==E&&(A="terminal"),g>0&&" "!==w&&g<S-2&&" "!==E&&(A="medial"),g>0&&" "!==w&&(g===S-1||" "===E)&&(A="initial"),void 0!==h.glyphs[x]&&((b=h.glyphs[x][A])||"glyph"!==h.glyphs[x].type||(b=h.glyphs[x]))}else b=h.glyphs[x];return b||(b=h.missingGlyph),b}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(h){var d=h||this.node,g=og(d.parentNode.childNodes),x=xg(g).call(g,d),b=g.length-1,S=compressSpaces(d.value||d.text||d.textContent||"");return 0===x&&(S=function trimLeft(h){return h.replace(/^[\n \t]+/,"")}(S)),x===b&&(S=function trimRight(h){return h.replace(/[\n \t]+$/,"")}(S)),S}},{key:"renderChildren",value:function renderChildren(h){var d,g=this;if("text"===this.type){this.initializeCoordinates(h),Ap(d=this.children).call(d,(function(d,x){g.renderChild(h,g,g,x)}));var x=this.document.screen.mouse;x.isWorking()&&x.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}},{key:"renderTElementChildren",value:function renderTElementChildren(h){var d=this.document,g=this.parent,x=this.getText(),b=g.getStyle("font-family").getDefinition();if(b)for(var S,w=b.fontFace.unitsPerEm,E=Km.parse(d.ctx.font),A=g.getStyle("font-size").getNumber(E.fontSize),P=g.getStyle("font-style").getString(E.fontStyle),_=A/w,k=b.isRTL?fg(S=x.split("")).call(S).join(""):x,C=toNumbers(g.getAttribute("dx").getString()),R=k.length,M=0;M<R;M++){var N=this.getGlyph(b,k,M);h.translate(this.x,this.y),h.scale(_,-_);var D=h.lineWidth;h.lineWidth=h.lineWidth*w/A,"italic"===P&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===P&&h.transform(1,0,-.4,1,0,0),h.lineWidth=D,h.scale(1/_,-1/_),h.translate(-this.x,-this.y),this.x+=A*(N.horizAdvX||b.horizAdvX)/w,void 0===C[M]||isNaN(C[M])||(this.x+=C[M])}else{var L=this.x,j=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(x,L,j),h.fillStyle&&h.fillText(x,L,j)):(h.fillStyle&&h.fillText(x,L,j),h.strokeStyle&&h.strokeText(x,L,j))}}},{key:"getAnchorDelta",value:function getAnchorDelta(h,d,g){var x=this.getStyle("text-anchor").getString("start");if("start"!==x){for(var b=d.children,S=b.length,w=null,E=0,A=g;A<S&&(w=b[A],!(A>g&&w.getAttribute("x").hasValue()||w.getAttribute("text-anchor").hasValue()));A++)E+=w.measureTextRecursive(h);return-1*("end"===x?E:E/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,d,g,x){var b=g.children[x];if("function"!=typeof b.measureText)return b;h.save(),b.setContext(h,!0);var S=b.getAttribute("x"),w=b.getAttribute("y"),E=b.getAttribute("dx"),A=b.getAttribute("dy"),P=b.getAttribute("text-anchor").getString("start");if(0===x&&"textNode"!==b.type&&(S.hasValue()||S.setValue(d.getAttribute("x").getValue("0")),w.hasValue()||w.setValue(d.getAttribute("y").getValue("0")),E.hasValue()||E.setValue(d.getAttribute("dx").getValue("0")),A.hasValue()||A.setValue(d.getAttribute("dy").getValue("0"))),S.hasValue()){if(b.x=S.getPixels("x")+d.getAnchorDelta(h,g,x),"start"!==P){var _=b.measureTextRecursive(h);b.x+=-1*("end"===P?_:_/2)}E.hasValue()&&(b.x+=E.getPixels("x"))}else{if("start"!==P){var k=b.measureTextRecursive(h);d.x+=-1*("end"===P?k:k/2)}E.hasValue()&&(d.x+=E.getPixels("x")),b.x=d.x}return d.x=b.x+b.measureText(h),w.hasValue()?(b.y=w.getPixels("y"),A.hasValue()&&(b.y+=A.getPixels("y"))):(A.hasValue()&&(d.y+=A.getPixels("y")),b.y=d.y),d.y=b.y,b.clearContext(h),h.restore(),b}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);if("function"!=typeof S.getBoundingBox)return null;var w=S.getBoundingBox(h);return w?(Ap(b=S.children).call(b,(function(g,x){var b=d.getChildBoundingBox(h,d,S,x);w.addBoundingBox(b)})),w):null}},{key:"renderChild",value:function renderChild(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);S.render(h),Ap(b=S.children).call(b,(function(g,x){d.renderChild(h,d,S,x)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var d;return Lv(d=this.children).call(d,(function(d,g){return d+g.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var d=this.measureCache;if(~d)return d;var g=this.getText(),x=this.measureTargetText(h,g);return this.measureCache=x,x}},{key:"measureTargetText",value:function measureTargetText(h,d){if(!d.length)return 0;var g=this.parent,x=g.getStyle("font-family").getDefinition();if(x){for(var b,S=this.getFontSize(),w=x.isRTL?fg(b=d.split("")).call(b).join(""):d,E=toNumbers(g.getAttribute("dx").getString()),A=w.length,P=0,_=0;_<A;_++){P+=(this.getGlyph(x,w,_).horizAdvX||x.horizAdvX)*S/x.fontFace.unitsPerEm,void 0===E[_]||isNaN(E[_])||(P+=E[_])}return P}if(!h.measureText)return 10*d.length;h.save(),this.setContext(h,!0);var k=h.measureText(d).width;return this.clearContext(h),h.restore(),k}}]),TextElement}(tx);function _createSuper$6(h){var d=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var rx=function(h){Cd(TSpanElement,h);var d=_createSuper$6(TSpanElement);function TSpanElement(h,g,x){var b;return wv(this,TSpanElement),(b=d.call(this,h,g,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||x)).type="tspan",b.text=b.children.length>0?"":b.getTextFromNode(),b}return Ev(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(ex);function _createSuper$7(h){var d=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var nx=function(h){Cd(TextNode,h);var d=_createSuper$7(TextNode);function TextNode(){var h;return wv(this,TextNode),(h=d.apply(this,arguments)).type="textNode",h}return TextNode}(rx);function _createSuper$8(h){var d=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var ix=function(h){Cd(PathParser,h);var d=_createSuper$8(PathParser);function PathParser(h){var g;return wv(this,PathParser),(g=d.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,g.start=null,g.current=null,g.command=null,g.commands=g.commands,g.i=-1,g.previousCommand=null,g.points=[],g.angles=[],g}return Ev(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Im(0,0),this.control=new Im(0,0),this.current=new Im(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var h=this.commands[++this.i];return this.previousCommand=this.command,this.command=h,h}},{key:"getPoint",value:function getPoint(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",g=new Im(this.command[h],this.command[d]);return this.makeAbsolute(g)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,d){var g=this.getPoint(h,d);return this.control=g,g}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,d){var g=this.getPoint(h,d);return this.current=g,g}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==Lg.CURVE_TO&&h!==Lg.SMOOTH_CURVE_TO&&h!==Lg.QUAD_TO&&h!==Lg.SMOOTH_QUAD_TO)return this.current;var d=this.current,g=d.x,x=d.y,b=this.control,S=b.x,w=b.y;return new Im(2*g-S,2*x-w)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var d=this.current,g=d.x,x=d.y;h.x+=g,h.y+=x}return h}},{key:"addMarker",value:function addMarker(h,d,g){var x=this.points,b=this.angles;g&&b.length>0&&!b[b.length-1]&&(b[b.length-1]=x[x.length-1].angleTo(g)),this.addMarkerAngle(h,d?d.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,d){this.points.push(h),this.angles.push(d)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,d=h.length,g=0;g<d;g++)if(!h[g])for(var x=g+1;x<d;x++)if(h[x]){h[g]=h[x];break}return h}}]),PathParser}(Lg);function _createSuper$9(h){var d=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var ax=function(h){Cd(PathElement,h);var d=_createSuper$9(PathElement);function PathElement(h,g,x){var b;return wv(this,PathElement),(b=d.call(this,h,g,x)).type="path",b.pathParser=null,b.pathParser=new ix(b.getAttribute("d").getString()),b}return Ev(PathElement,[{key:"path",value:function path(h){var d=this.pathParser,g=new Jm;for(d.reset(),h&&h.beginPath();!d.isEnd();)switch(d.next().type){case ix.MOVE_TO:this.pathM(h,g);break;case ix.LINE_TO:this.pathL(h,g);break;case ix.HORIZ_LINE_TO:this.pathH(h,g);break;case ix.VERT_LINE_TO:this.pathV(h,g);break;case ix.CURVE_TO:this.pathC(h,g);break;case ix.SMOOTH_CURVE_TO:this.pathS(h,g);break;case ix.QUAD_TO:this.pathQ(h,g);break;case ix.SMOOTH_QUAD_TO:this.pathT(h,g);break;case ix.ARC:this.pathA(h,g);break;case ix.CLOSE_PATH:this.pathZ(h,g)}return g}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,d=h.getMarkerPoints(),g=h.getMarkerAngles();return Yc(d).call(d,(function(h,d){return[h,g[d]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var d=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==d.getString("inherit")?Tg(h).call(h,d.getString()):Tg(h).call(h)),""!==h.strokeStyle&&h.stroke();var g=this.getMarkers();if(g){var x=g.length-1,b=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),w=this.getStyle("marker-end");if(b.isUrlDefinition()){var E=b.getDefinition(),A=lp(g[0],2),P=A[0],_=A[1];E.render(h,P,_)}if(S.isUrlDefinition())for(var k=S.getDefinition(),C=1;C<x;C++){var R=lp(g[C],2),M=R[0],N=R[1];k.render(h,M,N)}if(w.isUrlDefinition()){var D=w.getDefinition(),L=lp(g[x],2),j=L[0],V=L[1];D.render(h,j,V)}}}},{key:"pathM",value:function pathM(h,d){var g=this.pathParser,x=PathElement.pathM(g).point,b=x.x,S=x.y;g.addMarker(x),d.addPoint(b,S),h&&h.moveTo(b,S)}},{key:"pathL",value:function pathL(h,d){var g=this.pathParser,x=PathElement.pathL(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathH",value:function pathH(h,d){var g=this.pathParser,x=PathElement.pathH(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathV",value:function pathV(h,d){var g=this.pathParser,x=PathElement.pathV(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathC",value:function pathC(h,d){var g=this.pathParser,x=PathElement.pathC(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathS",value:function pathS(h,d){var g=this.pathParser,x=PathElement.pathS(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathQ",value:function pathQ(h,d){var g=this.pathParser,x=PathElement.pathQ(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathT",value:function pathT(h,d){var g=this.pathParser,x=PathElement.pathT(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathA",value:function pathA(h,d){var g=this.pathParser,x=PathElement.pathA(g),b=x.currentPoint,S=x.rX,w=x.rY,E=x.sweepFlag,A=x.xAxisRotation,P=x.centp,_=x.a1,k=x.ad,C=1-E?1:-1,R=_+C*(k/2),M=new Im(P.x+S*Math.cos(R),P.y+w*Math.sin(R));if(g.addMarkerAngle(M,R-C*Math.PI/2),g.addMarkerAngle(b,R-C*Math.PI),d.addPoint(b.x,b.y),h&&!isNaN(_)&&!isNaN(k)){var N=S>w?S:w,D=S>w?1:S/w,L=S>w?w/S:1;h.translate(P.x,P.y),h.rotate(A),h.scale(D,L),h.arc(0,0,N,_,_+k,Boolean(1-E)),h.scale(1/D,1/L),h.rotate(-A),h.translate(-P.x,-P.y)}}},{key:"pathZ",value:function pathZ(h,d){PathElement.pathZ(this.pathParser),h&&d.x1!==d.x2&&d.y1!==d.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var d=h.getAsCurrentPoint();return h.start=h.current,{point:d}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var d=h.current,g=h.command,x=new Im((g.relative?d.x:0)+g.x,d.y);return h.current=x,{current:d,point:x}}},{key:"pathV",value:function pathV(h){var d=h.current,g=h.command,x=new Im(d.x,(g.relative?d.y:0)+g.y);return h.current=x,{current:d,point:x}}},{key:"pathC",value:function pathC(h){return{current:h.current,point:h.getPoint("x1","y1"),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(h){return{current:h.current,point:h.getReflectedControlPoint(),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(h){return{current:h.current,controlPoint:h.getAsControlPoint("x1","y1"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(h){var d=h.current,g=h.getReflectedControlPoint();return h.control=g,{current:d,controlPoint:g,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var d=h.current,g=h.command,x=g.rX,b=g.rY,S=g.xRot,w=g.lArcFlag,E=g.sweepFlag,A=S*(Math.PI/180),P=h.getAsCurrentPoint(),_=new Im(Math.cos(A)*(d.x-P.x)/2+Math.sin(A)*(d.y-P.y)/2,-Math.sin(A)*(d.x-P.x)/2+Math.cos(A)*(d.y-P.y)/2),k=Math.pow(_.x,2)/Math.pow(x,2)+Math.pow(_.y,2)/Math.pow(b,2);k>1&&(x*=Math.sqrt(k),b*=Math.sqrt(k));var C=(w===E?-1:1)*Math.sqrt((Math.pow(x,2)*Math.pow(b,2)-Math.pow(x,2)*Math.pow(_.y,2)-Math.pow(b,2)*Math.pow(_.x,2))/(Math.pow(x,2)*Math.pow(_.y,2)+Math.pow(b,2)*Math.pow(_.x,2)));isNaN(C)&&(C=0);var R=new Im(C*x*_.y/b,C*-b*_.x/x),M=new Im((d.x+P.x)/2+Math.cos(A)*R.x-Math.sin(A)*R.y,(d.y+P.y)/2+Math.sin(A)*R.x+Math.cos(A)*R.y),N=vectorsAngle([1,0],[(_.x-R.x)/x,(_.y-R.y)/b]),D=[(_.x-R.x)/x,(_.y-R.y)/b],L=[(-_.x-R.x)/x,(-_.y-R.y)/b],j=vectorsAngle(D,L);return vectorsRatio(D,L)<=-1&&(j=Math.PI),vectorsRatio(D,L)>=1&&(j=0),{currentPoint:P,rX:x,rY:b,sweepFlag:E,xAxisRotation:A,centp:M,a1:N,ad:j}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(tx);function _createSuper$a(h){var d=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var ox=function(h){Cd(SVGElement,h);var d=_createSuper$a(SVGElement);function SVGElement(){var h;return wv(this,SVGElement),(h=d.apply(this,arguments)).type="svg",h.root=!1,h}return Ev(SVGElement,[{key:"setContext",value:function setContext(h){var d=this.document,g=d.screen,x=d.window,b=h.canvas;if(g.setDefaults(h),b.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(b).getPropertyValue("font");var S=new Mm(d,"fontSize",Km.parse(h.font).fontSize);S.hasValue()&&(d.rootEmSize=S.getPixels("y"),d.emSize=d.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var w=g.viewPort,E=w.width,A=w.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var P=this.getAttribute("refX"),_=this.getAttribute("refY"),k=this.getAttribute("viewBox"),C=k.hasValue()?toNumbers(k.getString()):null,R=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),M=0,N=0,D=0,L=0;C&&(M=C[0],N=C[1]),this.root||(E=this.getStyle("width").getPixels("x"),A=this.getStyle("height").getPixels("y"),"marker"===this.type&&(D=M,L=N,M=0,N=0)),g.viewPort.setCurrent(E,A),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Eg(jd(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),C&&(E=C[2],A=C[3]),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:g.viewPort.width,desiredWidth:E,height:g.viewPort.height,desiredHeight:A,minX:M,minY:N,refX:P.getValue(),refY:_.getValue(),clip:R,clipX:D,clipY:L}),C&&(g.viewPort.removeCurrent(),g.viewPort.setCurrent(E,A))}},{key:"clearContext",value:function clearContext(h){Eg(jd(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,x=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=this.getAttribute("width",!0),S=this.getAttribute("height",!0),w=this.getAttribute("viewBox"),E=this.getAttribute("style"),A=b.getNumber(0),P=S.getNumber(0);if(x)if("string"==typeof x)this.getAttribute("preserveAspectRatio",!0).setValue(x);else{var _=this.getAttribute("preserveAspectRatio");_.hasValue()&&_.setValue(_.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(b.setValue(h),S.setValue(g),w.hasValue())||w.setValue(Tv(d="0 0 ".concat(A||h," ")).call(d,P||g));if(E.hasValue()){var k=this.getStyle("width"),C=this.getStyle("height");k.hasValue()&&k.setValue("".concat(h,"px")),C.hasValue()&&C.setValue("".concat(g,"px"))}}}]),SVGElement}(tx);function _createSuper$b(h){var d=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var ux=function(h){Cd(RectElement,h);var d=_createSuper$b(RectElement);function RectElement(){var h;return wv(this,RectElement),(h=d.apply(this,arguments)).type="rect",h}return Ev(RectElement,[{key:"path",value:function path(h){var d=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),x=this.getStyle("width",!1,!0).getPixels("x"),b=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),w=this.getAttribute("ry"),E=S.getPixels("x"),A=w.getPixels("y");if(S.hasValue()&&!w.hasValue()&&(A=E),w.hasValue()&&!S.hasValue()&&(E=A),E=Math.min(E,x/2),A=Math.min(A,b/2),h){var P=(Math.sqrt(2)-1)/3*4;h.beginPath(),b>0&&x>0&&(h.moveTo(d+E,g),h.lineTo(d+x-E,g),h.bezierCurveTo(d+x-E+P*E,g,d+x,g+A-P*A,d+x,g+A),h.lineTo(d+x,g+b-A),h.bezierCurveTo(d+x,g+b-A+P*A,d+x-E+P*E,g+b,d+x-E,g+b),h.lineTo(d+E,g+b),h.bezierCurveTo(d+E-P*E,g+b,d,g+b-A+P*A,d,g+b-A),h.lineTo(d,g+A),h.bezierCurveTo(d,g+A-P*A,d+E-P*E,g,d+E,g),h.closePath())}return new Jm(d,g,d+x,g+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(ax);function _createSuper$c(h){var d=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var sx=function(h){Cd(CircleElement,h);var d=_createSuper$c(CircleElement);function CircleElement(){var h;return wv(this,CircleElement),(h=d.apply(this,arguments)).type="circle",h}return Ev(CircleElement,[{key:"path",value:function path(h){var d=this.getAttribute("cx").getPixels("x"),g=this.getAttribute("cy").getPixels("y"),x=this.getAttribute("r").getPixels();return h&&x>0&&(h.beginPath(),h.arc(d,g,x,0,2*Math.PI,!1),h.closePath()),new Jm(d-x,g-x,d+x,g+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(ax);function _createSuper$d(h){var d=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var cx=function(h){Cd(EllipseElement,h);var d=_createSuper$d(EllipseElement);function EllipseElement(){var h;return wv(this,EllipseElement),(h=d.apply(this,arguments)).type="ellipse",h}return Ev(EllipseElement,[{key:"path",value:function path(h){var d=(Math.sqrt(2)-1)/3*4,g=this.getAttribute("rx").getPixels("x"),x=this.getAttribute("ry").getPixels("y"),b=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return h&&g>0&&x>0&&(h.beginPath(),h.moveTo(b+g,S),h.bezierCurveTo(b+g,S+d*x,b+d*g,S+x,b,S+x),h.bezierCurveTo(b-d*g,S+x,b-g,S+d*x,b-g,S),h.bezierCurveTo(b-g,S-d*x,b-d*g,S-x,b,S-x),h.bezierCurveTo(b+d*g,S-x,b+g,S-d*x,b+g,S),h.closePath()),new Jm(b-g,S-x,b+g,S+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(ax);function _createSuper$e(h){var d=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var lx=function(h){Cd(LineElement,h);var d=_createSuper$e(LineElement);function LineElement(){var h;return wv(this,LineElement),(h=d.apply(this,arguments)).type="line",h}return Ev(LineElement,[{key:"getPoints",value:function getPoints(){return[new Im(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Im(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var d=this.getPoints(),g=lp(d,2),x=g[0],b=x.x,S=x.y,w=g[1],E=w.x,A=w.y;return h&&(h.beginPath(),h.moveTo(b,S),h.lineTo(E,A)),new Jm(b,S,E,A)}},{key:"getMarkers",value:function getMarkers(){var h=this.getPoints(),d=lp(h,2),g=d[0],x=d[1],b=g.angleTo(x);return[[g,b],[x,b]]}}]),LineElement}(ax);function _createSuper$f(h){var d=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var fx=function(h){Cd(PolylineElement,h);var d=_createSuper$f(PolylineElement);function PolylineElement(h,g,x){var b;return wv(this,PolylineElement),(b=d.call(this,h,g,x)).type="polyline",b.points=[],b.points=Im.parsePath(b.getAttribute("points").getString()),b}return Ev(PolylineElement,[{key:"path",value:function path(h){var d=this.points,g=lp(d,1)[0],x=g.x,b=g.y,S=new Jm(x,b);return h&&(h.beginPath(),h.moveTo(x,b)),Ap(d).call(d,(function(d){var g=d.x,x=d.y;S.addPoint(g,x),h&&h.lineTo(g,x)})),S}},{key:"getMarkers",value:function getMarkers(){var h=this.points,d=h.length-1,g=[];return Ap(h).call(h,(function(x,b){b!==d&&g.push([x,x.angleTo(h[b+1])])})),g.length>0&&g.push([h[h.length-1],g[g.length-1][1]]),g}}]),PolylineElement}(ax);function _createSuper$g(h){var d=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var hx=function(h){Cd(PolygonElement,h);var d=_createSuper$g(PolygonElement);function PolygonElement(){var h;return wv(this,PolygonElement),(h=d.apply(this,arguments)).type="polygon",h}return Ev(PolygonElement,[{key:"path",value:function path(h){var d=Eg(jd(PolygonElement.prototype),"path",this).call(this,h),g=lp(this.points,1)[0],x=g.x,b=g.y;return h&&(h.lineTo(x,b),h.closePath()),d}}]),PolygonElement}(fx);function _createSuper$h(h){var d=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var px=function(h){Cd(PatternElement,h);var d=_createSuper$h(PatternElement);function PatternElement(){var h;return wv(this,PatternElement),(h=d.apply(this,arguments)).type="pattern",h}return Ev(PatternElement,[{key:"createPattern",value:function createPattern(h,d,g){var x=this.getStyle("width").getPixels("x",!0),b=this.getStyle("height").getPixels("y",!0),S=new ox(this.document,null);S.attributes.viewBox=new Mm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new Mm(this.document,"width","".concat(x,"px")),S.attributes.height=new Mm(this.document,"height","".concat(b,"px")),S.attributes.transform=new Mm(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;var w=this.document.createCanvas(x,b),E=w.getContext("2d"),A=this.getAttribute("x"),P=this.getAttribute("y");A.hasValue()&&P.hasValue()&&E.translate(A.getPixels("x",!0),P.getPixels("y",!0)),g.hasValue()?this.styles["fill-opacity"]=g:$g(this.styles,"fill-opacity");for(var _=-1;_<=1;_++)for(var k=-1;k<=1;k++)E.save(),S.attributes.x=new Mm(this.document,"x",_*w.width),S.attributes.y=new Mm(this.document,"y",k*w.height),S.render(E),E.restore();return h.createPattern(w,"repeat")}}]),PatternElement}(Qm);function _createSuper$i(h){var d=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var yx=function(h){Cd(MarkerElement,h);var d=_createSuper$i(MarkerElement);function MarkerElement(){var h;return wv(this,MarkerElement),(h=d.apply(this,arguments)).type="marker",h}return Ev(MarkerElement,[{key:"render",value:function render(h,d,g){if(d){var x=d.x,b=d.y,S=this.getAttribute("orient").getValue("auto"),w=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(x,b),"auto"===S&&h.rotate(g),"strokeWidth"===w&&h.scale(h.lineWidth,h.lineWidth),h.save();var E=new ox(this.document,null);E.type=this.type,E.attributes.viewBox=new Mm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Mm(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Mm(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Mm(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Mm(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Mm(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Mm(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Mm(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(h),h.restore(),"strokeWidth"===w&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===S&&h.rotate(-g),h.translate(-x,-b)}}}]),MarkerElement}(Qm);function _createSuper$j(h){var d=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var vx=function(h){Cd(DefsElement,h);var d=_createSuper$j(DefsElement);function DefsElement(){var h;return wv(this,DefsElement),(h=d.apply(this,arguments)).type="defs",h}return Ev(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(Qm);function _createSuper$k(h){var d=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var dx=function(h){Cd(GElement,h);var d=_createSuper$k(GElement);function GElement(){var h;return wv(this,GElement),(h=d.apply(this,arguments)).type="g",h}return Ev(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=new Jm;return Ap(d=this.children).call(d,(function(d){g.addBoundingBox(d.getBoundingBox(h))})),g}}]),GElement}(tx);function _createSuper$l(h){var d=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var gx=function(h){Cd(GradientElement,h);var d=_createSuper$l(GradientElement);function GradientElement(h,g,x){var b;wv(this,GradientElement),(b=d.call(this,h,g,x)).attributesToInherit=["gradientUnits"],b.stops=[];var S=Nd(b),w=S.stops,E=S.children;return Ap(E).call(E,(function(h){"stop"===h.type&&w.push(h)})),b}return Ev(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,d,g){var x=this,b=this;this.getHrefAttribute().hasValue()&&(b=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(b));var S=b.stops,w=this.getGradient(h,d);if(!w)return this.addParentOpacity(g,S[S.length-1].color);if(Ap(S).call(S,(function(h){w.addColorStop(h.offset,x.addParentOpacity(g,h.color))})),this.getAttribute("gradientTransform").hasValue()){var E=this.document,A=E.screen,P=A.MAX_VIRTUAL_PIXELS,_=A.viewPort,k=lp(_.viewPorts,1)[0],C=new ux(E,null);C.attributes.x=new Mm(E,"x",-P/3),C.attributes.y=new Mm(E,"y",-P/3),C.attributes.width=new Mm(E,"width",P),C.attributes.height=new Mm(E,"height",P);var R=new dx(E,null);R.attributes.transform=new Mm(E,"transform",this.getAttribute("gradientTransform").getValue()),R.children=[C];var M=new ox(E,null);M.attributes.x=new Mm(E,"x",0),M.attributes.y=new Mm(E,"y",0),M.attributes.width=new Mm(E,"width",k.width),M.attributes.height=new Mm(E,"height",k.height),M.children=[R];var N=E.createCanvas(k.width,k.height),D=N.getContext("2d");return D.fillStyle=w,M.render(D),D.createPattern(N,"no-repeat")}return w}},{key:"inheritStopContainer",value:function inheritStopContainer(h){var d,g=this;Ap(d=this.attributesToInherit).call(d,(function(d){!g.getAttribute(d).hasValue()&&h.getAttribute(d).hasValue()&&g.getAttribute(d,!0).setValue(h.getAttribute(d).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,d){return h.hasValue()?new Mm(this.document,"color",d).addOpacity(h).getColor():d}}]),GradientElement}(Qm);function _createSuper$m(h){var d=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var mx=function(h){Cd(LinearGradientElement,h);var d=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,g,x){var b;return wv(this,LinearGradientElement),(b=d.call(this,h,g,x)).type="linearGradient",b.attributesToInherit.push("x1","y1","x2","y2"),b}return Ev(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=g?d.getBoundingBox(h):null;if(g&&!x)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var b=g?x.x+x.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=g?x.y+x.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),w=g?x.x+x.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=g?x.y+x.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return b===w&&S===E?null:h.createLinearGradient(b,S,w,E)}}]),LinearGradientElement}(gx);function _createSuper$n(h){var d=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var xx=function(h){Cd(RadialGradientElement,h);var d=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,g,x){var b;return wv(this,RadialGradientElement),(b=d.call(this,h,g,x)).type="radialGradient",b.attributesToInherit.push("cx","cy","r","fx","fy","fr"),b}return Ev(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=d.getBoundingBox(h);if(g&&!x)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var b=g?x.x+x.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=g?x.y+x.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),w=b,E=S;this.getAttribute("fx").hasValue()&&(w=g?x.x+x.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=g?x.y+x.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var A=g?(x.width+x.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),P=this.getAttribute("fr").getPixels();return h.createRadialGradient(w,E,P,b,S,A)}}]),RadialGradientElement}(gx);function _createSuper$o(h){var d=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var bx=function(h){Cd(StopElement,h);var d=_createSuper$o(StopElement);function StopElement(h,g,x){var b;wv(this,StopElement),(b=d.call(this,h,g,x)).type="stop";var S=Math.max(0,Math.min(1,b.getAttribute("offset").getNumber())),w=b.getStyle("stop-opacity"),E=b.getStyle("stop-color",!0);return""===E.getString()&&E.setValue("#000"),w.hasValue()&&(E=E.addOpacity(w)),b.offset=S,b.color=E.getColor(),b}return StopElement}(Qm);function _createSuper$p(h){var d=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Sx=function(h){Cd(AnimateElement,h);var d=_createSuper$p(AnimateElement);function AnimateElement(h,g,x){var b;return wv(this,AnimateElement),(b=d.call(this,h,g,x)).type="animate",b.duration=0,b.initialValue=null,b.initialUnits="",b.removed=!1,b.frozen=!1,h.screen.animations.push(Nd(b)),b.begin=b.getAttribute("begin").getMilliseconds(),b.maxDuration=b.begin+b.getAttribute("dur").getMilliseconds(),b.from=b.getAttribute("from"),b.to=b.getAttribute("to"),b.values=b.getAttribute("values"),zg(b).hasValue()&&zg(b).setValue(zg(b).getString().split(";")),b}return Ev(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),d=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(d,!0):this.parent.getAttribute(d,!0)}},{key:"calcValue",value:function calcValue(){var h,d=this.initialUnits,g=this.getProgress(),x=g.progress,b=g.from,S=g.to,w=b.getNumber()+(S.getNumber()-b.getNumber())*x;return"%"===d&&(w*=100),Tv(h="".concat(w)).call(h,d)}},{key:"update",value:function update(h){var d=this.parent,g=this.getProperty();if(this.initialValue||(this.initialValue=g.getString(),this.initialUnits=g.getUnits()),this.duration>this.maxDuration){var x=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==x||this.frozen){if("remove"===x&&!this.removed)return this.removed=!0,g.setValue(d.animationFrozen?d.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,d.animationFrozen=!0,d.animationFrozenValue=g.getString();return!1}this.duration+=h;var b=!1;if(this.begin<this.duration){var S=this.calcValue(),w=this.getAttribute("type");if(w.hasValue()){var E,A=w.getString();S=Tv(E="".concat(A,"(")).call(E,S,")")}g.setValue(S),b=!0}return b}},{key:"getProgress",value:function getProgress(){var h=this.document,d=zg(this),g={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(d.hasValue()){var x=g.progress*(d.getValue().length-1),b=Math.floor(x),S=Math.ceil(x);g.from=new Mm(h,"from",gc(d.getValue()[b])),g.to=new Mm(h,"to",gc(d.getValue()[S])),g.progress=(x-b)/(S-b)}else g.from=this.from,g.to=this.to;return g}}]),AnimateElement}(Qm);function _createSuper$q(h){var d=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var wx=function(h){Cd(AnimateColorElement,h);var d=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return wv(this,AnimateColorElement),(h=d.apply(this,arguments)).type="animateColor",h}return Ev(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=new bd(g.getColor()),S=new bd(x.getColor());if(b.ok&&S.ok){var w,E,A=b.r+(S.r-b.r)*d,P=b.g+(S.g-b.g)*d,_=b.b+(S.b-b.b)*d;return Tv(w=Tv(E="rgb(".concat(Yg(A,10),", ")).call(E,Yg(P,10),", ")).call(w,Yg(_,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(Sx);function _createSuper$r(h){var d=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Ex=function(h){Cd(AnimateTransformElement,h);var d=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return wv(this,AnimateTransformElement),(h=d.apply(this,arguments)).type="animateTransform",h}return Ev(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=toNumbers(g.getString()),S=toNumbers(x.getString());return Yc(b).call(b,(function(h,g){return h+(S[g]-h)*d})).join(" ")}}]),AnimateTransformElement}(Sx);function _createForOfIteratorHelper(h,d){var g;if(void 0===Zg||null==Qg(h)){if(Wg(h)||(g=function _unsupportedIterableToArray$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,d);var x=Kg(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return og(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,w=!0,E=!1;return{s:function s(){g=jf(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function _createSuper$s(h){var d=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Ax=function(h){Cd(FontElement,h);var d=_createSuper$s(FontElement);function FontElement(h,g,x){var b;wv(this,FontElement),(b=d.call(this,h,g,x)).type="font",b.glyphs={},b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber();var S,w=h.definitions,E=_createForOfIteratorHelper(Nd(b).children);try{for(E.s();!(S=E.n()).done;){var A=S.value;switch(A.type){case"font-face":b.fontFace=A;var P=A.getStyle("font-family");P.hasValue()&&(w[P.getString()]=Nd(b));break;case"missing-glyph":b.missingGlyph=A;break;case"glyph":var _=A;_.arabicForm?(b.isRTL=!0,b.isArabic=!0,void 0===b.glyphs[_.unicode]&&(b.glyphs[_.unicode]={}),b.glyphs[_.unicode][_.arabicForm]=_):b.glyphs[_.unicode]=_}}}catch(h){E.e(h)}finally{E.f()}return b}return Ev(FontElement,[{key:"render",value:function render(){}}]),FontElement}(Qm);function _createSuper$t(h){var d=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Px=function(h){Cd(FontFaceElement,h);var d=_createSuper$t(FontFaceElement);function FontFaceElement(h,g,x){var b;return wv(this,FontFaceElement),(b=d.call(this,h,g,x)).type="font-face",b.ascent=b.getAttribute("ascent").getNumber(),b.descent=b.getAttribute("descent").getNumber(),b.unitsPerEm=b.getAttribute("units-per-em").getNumber(),b}return FontFaceElement}(Qm);function _createSuper$u(h){var d=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Tx=function(h){Cd(MissingGlyphElement,h);var d=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return wv(this,MissingGlyphElement),(h=d.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}(ax);function _createSuper$v(h){var d=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var _x=function(h){Cd(GlyphElement,h);var d=_createSuper$v(GlyphElement);function GlyphElement(h,g,x){var b;return wv(this,GlyphElement),(b=d.call(this,h,g,x)).type="glyph",b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber(),b.unicode=b.getAttribute("unicode").getString(),b.arabicForm=b.getAttribute("arabic-form").getString(),b}return GlyphElement}(ax);function _createSuper$w(h){var d=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var kx=function(h){Cd(TRefElement,h);var d=_createSuper$w(TRefElement);function TRefElement(){var h;return wv(this,TRefElement),(h=d.apply(this,arguments)).type="tref",h}return Ev(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var d=h.children[0];if(d)return d.getText()}return""}}]),TRefElement}(ex);function _createSuper$x(h){var d=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Ox=function(h){Cd(AElement,h);var d=_createSuper$x(AElement);function AElement(h,g,x){var b,S;wv(this,AElement),(S=d.call(this,h,g,x)).type="a";var w=g.childNodes,E=w[0],A=w.length>0&&qv(b=og(w)).call(b,(function(h){return 3===h.nodeType}));return S.hasText=A,S.text=A?S.getTextFromNode(E):"",S}return Ev(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){Eg(jd(AElement.prototype),"renderChildren",this).call(this,h);var d=this.document,g=this.x,x=this.y,b=d.screen.mouse,S=new Mm(d,"fontSize",Km.parse(d.ctx.font).fontSize);b.isWorking()&&b.checkBoundingBox(this,new Jm(g,x-S.getPixels("y"),g+this.measureText(h),x))}else if(this.children.length>0){var w=new dx(this.document,null);w.children=this.children,w.parent=this,w.render(h)}}},{key:"onClick",value:function onClick(){var h=this.document.window;h&&h.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}(ex);function _createForOfIteratorHelper$1(h,d){var g;if(void 0===Zg||null==Qg(h)){if(Wg(h)||(g=function _unsupportedIterableToArray$1$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1$1(h,d);var x=Kg(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return og(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,w=!0,E=!1;return{s:function s(){g=jf(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function ownKeys$2(h,d){var g=Fp(h);if(Vp){var x=Vp(h);d&&(x=jp(x).call(x,(function(d){return kp(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ap(g=ownKeys$2(Object(x),!0)).call(g,(function(d){Sv(h,d,x[d])}));else if(vp)pp(h,vp(x));else{var b;Ap(b=ownKeys$2(Object(x))).call(b,(function(d){hp(h,d,kp(x,d))}))}}return h}function _createSuper$y(h){var d=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Cx=function(h){Cd(TextPathElement,h);var d=_createSuper$y(TextPathElement);function TextPathElement(h,g,x){var b;wv(this,TextPathElement),(b=d.call(this,h,g,x)).type="textPath",b.textWidth=0,b.textHeight=0,b.pathLength=-1,b.glyphInfo=null,b.letterSpacingCache=[],b.measuresCache=new ym([["",0]]);var S=b.getHrefAttribute().getDefinition();return b.text=b.getTextFromNode(),b.dataArray=b.parsePathData(S),b}return Ev(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var d=this.dataArray;h&&h.beginPath(),Ap(d).call(d,(function(d){var g=d.type,x=d.points;switch(g){case ix.LINE_TO:h&&h.lineTo(x[0],x[1]);break;case ix.MOVE_TO:h&&h.moveTo(x[0],x[1]);break;case ix.CURVE_TO:h&&h.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case ix.QUAD_TO:h&&h.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case ix.ARC:var b=lp(x,8),S=b[0],w=b[1],E=b[2],A=b[3],P=b[4],_=b[5],k=b[6],C=b[7],R=E>A?E:A,M=E>A?1:E/A,N=E>A?A/E:1;h&&(h.translate(S,w),h.rotate(k),h.scale(M,N),h.arc(0,0,R,P,P+_,Boolean(1-C)),h.scale(1/M,1/N),h.rotate(-k),h.translate(-S,-w));break;case ix.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var d=this.parent.getStyle("text-decoration").getString(),g=this.getFontSize(),x=this.glyphInfo,b=h.fillStyle;"underline"===d&&h.beginPath(),Ap(x).call(x,(function(x,b){var S=x.p0,w=x.p1,E=x.rotation,A=x.text;h.save(),h.translate(S.x,S.y),h.rotate(E),h.fillStyle&&h.fillText(A,0,0),h.strokeStyle&&h.strokeText(A,0,0),h.restore(),"underline"===d&&(0===b&&h.moveTo(S.x,S.y+g/8),h.lineTo(w.x,w.y+g/5))})),"underline"===d&&(h.lineWidth=g/20,h.strokeStyle=b,h.stroke(),h.closePath()),h.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[h]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(h,d,g,x,b,S,w,E,A){var P=S,_=this.measureText(h,E);" "===E&&"justify"===d&&g<x&&(_+=(x-g)/b),A>-1&&(P+=this.getLetterSpacingAt(A));var k=this.textHeight/20,C=this.getEquidistantPointOnPath(P,k,0),R=this.getEquidistantPointOnPath(P+_,k,0),M={p0:C,p1:R},N=C&&R?Math.atan2(R.y-C.y,R.x-C.x):0;if(w){var D=Math.cos(Math.PI/2+N)*w,L=Math.cos(-N)*w;M.p0=_objectSpread(_objectSpread({},C),{},{x:C.x+D,y:C.y+L}),M.p1=_objectSpread(_objectSpread({},R),{},{x:R.x+D,y:R.y+L})}return{offset:P+=_,segment:M,rotation:N}}},{key:"measureText",value:function measureText(h,d){var g=this.measuresCache,x=d||this.getText();if(g.has(x))return g.get(x);var b=this.measureTargetText(h,x);return g.set(x,b),b}},{key:"setTextData",value:function setTextData(h){var d,g=this;if(!this.glyphInfo){var x=this.getText(),b=x.split(""),S=x.split(" ").length-1,w=Yc(d=this.parent.getAttribute("dx").split()).call(d,(function(h){return h.getPixels("x")})),E=this.parent.getAttribute("dy").getPixels("y"),A=this.parent.getStyle("text-anchor").getString("start"),P=this.getStyle("letter-spacing"),_=this.parent.getStyle("letter-spacing"),k=0;P.hasValue()&&"inherit"!==P.getValue()?P.hasValue()&&"initial"!==P.getValue()&&"unset"!==P.getValue()&&(k=P.getPixels()):k=_.getPixels();var C=[],R=x.length;this.letterSpacingCache=C;for(var M=0;M<R;M++)C.push(void 0!==w[M]?w[M]:k);var N=Lv(C).call(C,(function(h,d,g){return 0===g?0:h+d||0}),0),D=this.measureText(h),L=Math.max(D+N,0);this.textWidth=D,this.textHeight=this.getFontSize(),this.glyphInfo=[];var j=this.getPathLength(),V=this.getStyle("startOffset").getNumber(0)*j,$=0;"middle"!==A&&"center"!==A||($=-L/2),"end"!==A&&"right"!==A||($=-L),$+=V,Ap(b).call(b,(function(d,x){var w=g.findSegmentToFitChar(h,A,L,j,S,$,E,d,x),P=w.offset,_=w.segment,k=w.rotation;$=P,_.p0&&_.p1&&g.glyphInfo.push({text:b[x],p0:_.p0,p1:_.p1,rotation:k})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var d=[],g=h.pathParser;for(g.reset();!g.isEnd();){var x=g.current,b=x?x.x:0,S=x?x.y:0,w=g.next(),E=w.type,A=[];switch(w.type){case ix.MOVE_TO:this.pathM(g,A);break;case ix.LINE_TO:E=this.pathL(g,A);break;case ix.HORIZ_LINE_TO:E=this.pathH(g,A);break;case ix.VERT_LINE_TO:E=this.pathV(g,A);break;case ix.CURVE_TO:this.pathC(g,A);break;case ix.SMOOTH_CURVE_TO:E=this.pathS(g,A);break;case ix.QUAD_TO:this.pathQ(g,A);break;case ix.SMOOTH_QUAD_TO:E=this.pathT(g,A);break;case ix.ARC:A=this.pathA(g);break;case ix.CLOSE_PATH:ax.pathZ(g)}w.type!==ix.CLOSE_PATH?d.push({type:E,points:A,start:{x:b,y:S},pathLength:this.calcLength(b,S,E,A)}):d.push({type:ix.CLOSE_PATH,points:[],pathLength:0})}return d}},{key:"pathM",value:function pathM(h,d){var g=ax.pathM(h).point,x=g.x,b=g.y;d.push(x,b)}},{key:"pathL",value:function pathL(h,d){var g=ax.pathL(h).point,x=g.x,b=g.y;return d.push(x,b),ix.LINE_TO}},{key:"pathH",value:function pathH(h,d){var g=ax.pathH(h).point,x=g.x,b=g.y;return d.push(x,b),ix.LINE_TO}},{key:"pathV",value:function pathV(h,d){var g=ax.pathV(h).point,x=g.x,b=g.y;return d.push(x,b),ix.LINE_TO}},{key:"pathC",value:function pathC(h,d){var g=ax.pathC(h),x=g.point,b=g.controlPoint,S=g.currentPoint;d.push(x.x,x.y,b.x,b.y,S.x,S.y)}},{key:"pathS",value:function pathS(h,d){var g=ax.pathS(h),x=g.point,b=g.controlPoint,S=g.currentPoint;return d.push(x.x,x.y,b.x,b.y,S.x,S.y),ix.CURVE_TO}},{key:"pathQ",value:function pathQ(h,d){var g=ax.pathQ(h),x=g.controlPoint,b=g.currentPoint;d.push(x.x,x.y,b.x,b.y)}},{key:"pathT",value:function pathT(h,d){var g=ax.pathT(h),x=g.controlPoint,b=g.currentPoint;return d.push(x.x,x.y,b.x,b.y),ix.QUAD_TO}},{key:"pathA",value:function pathA(h){var d=ax.pathA(h),g=d.rX,x=d.rY,b=d.sweepFlag,S=d.xAxisRotation,w=d.centp,E=d.a1,A=d.ad;return 0===b&&A>0&&(A-=2*Math.PI),1===b&&A<0&&(A+=2*Math.PI),[w.x,w.y,g,x,E,A,S,b]}},{key:"calcLength",value:function calcLength(h,d,g,x){var b=0,S=null,w=null,E=0;switch(g){case ix.LINE_TO:return this.getLineLength(h,d,x[0],x[1]);case ix.CURVE_TO:for(b=0,S=this.getPointOnCubicBezier(0,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),E=.01;E<=1;E+=.01)w=this.getPointOnCubicBezier(E,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case ix.QUAD_TO:for(b=0,S=this.getPointOnQuadraticBezier(0,h,d,x[0],x[1],x[2],x[3]),E=.01;E<=1;E+=.01)w=this.getPointOnQuadraticBezier(E,h,d,x[0],x[1],x[2],x[3]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case ix.ARC:b=0;var A=x[4],P=x[5],_=x[4]+P,k=Math.PI/180;if(Math.abs(A-_)<k&&(k=Math.abs(A-_)),S=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],A,0),P<0)for(E=A-k;E>_;E-=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;else for(E=A+k;E<_;E+=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],_,0),b+=this.getLineLength(S.x,S.y,w.x,w.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,d,g,x,b){var S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d,w=arguments.length>6&&void 0!==arguments[6]?arguments[6]:g,E=(b-g)/(x-d+Rm),A=Math.sqrt(h*h/(1+E*E));x<d&&(A*=-1);var P=E*A,_=null;if(x===d)_={x:S,y:w+P};else if((w-g)/(S-d+Rm)===E)_={x:S+A,y:w+P};else{var k=0,C=0,R=this.getLineLength(d,g,x,b);if(R<Rm)return null;var M=(S-d)*(x-d)+(w-g)*(b-g);k=d+(M/=R*R)*(x-d),C=g+M*(b-g);var N=this.getLineLength(S,w,k,C),D=Math.sqrt(h*h-N*N);A=Math.sqrt(D*D/(1+E*E)),x<d&&(A*=-1),_={x:k+A,y:C+(P=E*A)}}return _}},{key:"getPointOnPath",value:function getPointOnPath(h){var d=this.getPathLength(),g=0,x=null;if(h<-5e-5||h-5e-5>d)return null;var b,S=_createForOfIteratorHelper$1(this.dataArray);try{for(S.s();!(b=S.n()).done;){var w=b.value;if(!w||!(w.pathLength<5e-5||g+w.pathLength+5e-5<h)){var E=h-g,A=0;switch(w.type){case ix.LINE_TO:x=this.getPointOnLine(E,w.start.x,w.start.y,w.points[0],w.points[1],w.start.x,w.start.y);break;case ix.ARC:var P=w.points[4],_=w.points[5],k=w.points[4]+_;if(A=P+E/w.pathLength*_,_<0&&A<k||_>=0&&A>k)break;x=this.getPointOnEllipticalArc(w.points[0],w.points[1],w.points[2],w.points[3],A,w.points[6]);break;case ix.CURVE_TO:(A=E/w.pathLength)>1&&(A=1),x=this.getPointOnCubicBezier(A,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3],w.points[4],w.points[5]);break;case ix.QUAD_TO:(A=E/w.pathLength)>1&&(A=1),x=this.getPointOnQuadraticBezier(A,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3])}if(x)return x;break}g+=w.pathLength}}catch(h){S.e(h)}finally{S.f()}return null}},{key:"getLineLength",value:function getLineLength(h,d,g,x){return Math.sqrt((g-h)*(g-h)+(x-d)*(x-d))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=Lv(h=this.dataArray).call(h,(function(h,d){return d.pathLength>0?h+d.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,d,g,x,b,S,w,E,A){return{x:E*CB1(h)+S*CB2(h)+x*CB3(h)+d*CB4(h),y:A*CB1(h)+w*CB2(h)+b*CB3(h)+g*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,d,g,x,b,S,w){return{x:S*QB1(h)+x*QB2(h)+d*QB3(h),y:w*QB1(h)+b*QB2(h)+g*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,d,g,x,b,S){var w=Math.cos(S),E=Math.sin(S),A=g*Math.cos(b),P=x*Math.sin(b);return{x:h+(A*w-P*E),y:d+(A*E+P*w)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,d){var g=this.getPathLength(),x=d||.25,b=h||g/100;if(!this.equidistantCache||this.equidistantCache.step!==b||this.equidistantCache.precision!==x){this.equidistantCache={step:b,precision:x,points:[]};for(var S=0,w=0;w<=g;w+=x){var E=this.getPointOnPath(w),A=this.getPointOnPath(w+x);E&&A&&((S+=this.getLineLength(E.x,E.y,A.x,A.y))>=b&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:w}),S-=b))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,d,g){if(this.buildEquidistantCache(d,g),h<0||h-this.getPathLength()>5e-5)return null;var x=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[x]||null}}]),TextPathElement}(ex);function _createSuper$z(h){var d=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Rx=function(h){Cd(ImageElement,h);var d,g,x=_createSuper$z(ImageElement);function ImageElement(h,d,g){var b;wv(this,ImageElement),(b=x.call(this,h,d,g)).type="image",b.loaded=!1;var S=b.getHrefAttribute().getString();if(!S)return Id(b);var w=/\.svg$/.test(S);return h.images.push(Nd(b)),w?b.loadSvg(S):b.loadImage(S),b.isSvg=w,b}return Ev(ImageElement,[{key:"loadImage",value:(g=xv(Bp.mark((function _callee(h){var d;return Bp.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,this.document.createImage(h);case 3:d=g.sent,this.image=d,g.next=10;break;case 7:g.prev=7,g.t0=g.catch(0),console.error('Error while loading image "'.concat(h,'":'),g.t0);case 10:this.loaded=!0;case 11:case"end":return g.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return g.apply(this,arguments)})},{key:"loadSvg",value:(d=xv(Bp.mark((function _callee2(h){var d,g;return Bp.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,this.document.fetch(h);case 3:return d=x.sent,x.next=6,d.text();case 6:g=x.sent,this.image=g,x.next=13;break;case 10:x.prev=10,x.t0=x.catch(0),console.error('Error while loading image "'.concat(h,'":'),x.t0);case 13:this.loaded=!0;case 14:case"end":return x.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(h){return d.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.image,x=this.loaded,b=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),w=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(x&&g&&w&&E){if(h.save(),this.isSvg)d.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:b,offsetY:S,scaleWidth:w,scaleHeight:E}).render();else{var A=this.image;h.translate(b,S),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w,desiredWidth:A.width,height:E,desiredHeight:A.height}),this.loaded&&(void 0===A.complete||A.complete)&&h.drawImage(A,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),g=this.getStyle("width").getPixels("x"),x=this.getStyle("height").getPixels("y");return new Jm(h,d,h+g,d+x)}}]),ImageElement}(tx);function _createSuper$A(h){var d=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Mx=function(h){Cd(SymbolElement,h);var d=_createSuper$A(SymbolElement);function SymbolElement(){var h;return wv(this,SymbolElement),(h=d.apply(this,arguments)).type="symbol",h}return Ev(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(tx),Nx=function(){function SVGFontLoader(h){wv(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return Ev(SVGFontLoader,[{key:"load",value:(h=xv(Bp.mark((function _callee(h,d){var g,x,b,S;return Bp.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,x=this.document,w.next=4,x.canvg.parser.load(d);case 4:b=w.sent,S=b.getElementsByTagName("font"),Ap(g=og(S)).call(g,(function(d){var g=x.createElement(d);x.definitions[h]=g})),w.next=12;break;case 9:w.prev=9,w.t0=w.catch(0),console.error('Error while loading font "'.concat(d,'":'),w.t0);case 12:this.loaded=!0;case 13:case"end":return w.stop()}}),_callee,this,[[0,9]])}))),function load(d,g){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var d=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Ix=function(h){Cd(StyleElement,h);var d=_createSuper$B(StyleElement);function StyleElement(h,g,x){var b,S;wv(this,StyleElement),(S=d.call(this,h,g,x)).type="style";var w=compressSpaces(Yc(b=og(g.childNodes)).call(b,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Ap(w).call(w,(function(d){var g=vd(d).call(d);if(g){var x=g.split("{"),b=x[0].split(","),S=x[1].split(";");Ap(b).call(b,(function(d){var g=vd(d).call(d);if(g){var x=h.styles[g]||{};if(Ap(S).call(S,(function(d){var g,b,S=xg(d).call(d,":"),w=vd(g=d.substr(0,S)).call(g),E=vd(b=d.substr(S+1,d.length-S)).call(b);w&&E&&(x[w]=new Mm(h,w,E))})),h.styles[g]=x,h.stylesSpecificity[g]=function getSelectorSpecificity(h){var d=[0,0,0],g=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),x=0,b=findSelectorMatch(g,Am),S=lp(b,2);g=S[0],x=S[1],d[1]+=x;var w=findSelectorMatch(g,Pm),E=lp(w,2);g=E[0],x=E[1],d[0]+=x;var A=findSelectorMatch(g,Tm),P=lp(A,2);g=P[0],x=P[1],d[1]+=x;var _=findSelectorMatch(g,_m),k=lp(_,2);g=k[0],x=k[1],d[2]+=x;var C=findSelectorMatch(g,km),R=lp(C,2);g=R[0],x=R[1],d[1]+=x;var M=findSelectorMatch(g,Om),N=lp(M,2);g=N[0],x=N[1],d[1]+=x;var D=findSelectorMatch(g=g.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Cm),L=lp(D,2);return g=L[0],x=L[1],d[2]+=x,d.join("")}(g),"@font-face"===g){var b=x["font-family"].getString().replace(/"|'/g,""),w=x.src.getString().split(",");Ap(w).call(w,(function(d){if(xg(d).call(d,'format("svg")')>0){var g=parseExternalUrl(d);g&&new Nx(h).load(b,g)}}))}}}))}})),S}return StyleElement}(Qm);function _createSuper$C(h){var d=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}Ix.parseExternalUrl=parseExternalUrl;var Dx=function(h){Cd(UseElement,h);var d=_createSuper$C(UseElement);function UseElement(){var h;return wv(this,UseElement),(h=d.apply(this,arguments)).type="use",h}return Ev(UseElement,[{key:"setContext",value:function setContext(h){Eg(jd(UseElement.prototype),"setContext",this).call(this,h);var d=this.getAttribute("x"),g=this.getAttribute("y");d.hasValue()&&h.translate(d.getPixels("x"),0),g.hasValue()&&h.translate(0,g.getPixels("y"))}},{key:"path",value:function path(h){var d=this.element;d&&d.path(h)}},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.element;if(g){var x=g;if("symbol"===g.type&&((x=new ox(d,null)).attributes.viewBox=new Mm(d,"viewBox",g.getAttribute("viewBox").getString()),x.attributes.preserveAspectRatio=new Mm(d,"preserveAspectRatio",g.getAttribute("preserveAspectRatio").getString()),x.attributes.overflow=new Mm(d,"overflow",g.getAttribute("overflow").getString()),x.children=g.children,g.styles.opacity=new Mm(d,"opacity",this.calculateOpacity())),"svg"===x.type){var b=this.getStyle("width",!1,!0),S=this.getStyle("height",!1,!0);b.hasValue()&&(x.attributes.width=new Mm(d,"width",b.getString())),S.hasValue()&&(x.attributes.height=new Mm(d,"height",S.getString()))}var w=x.parent;x.parent=this,x.render(h),x.parent=w}}},{key:"getBoundingBox",value:function getBoundingBox(h){var d=this.element;return d?d.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,d=this.element;return Wm.fromElement(h,d)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(tx);function _createSuper$D(h){var d=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function imGet(h,d,g,x,b,S){return h[g*x*4+4*d+S]}function imSet(h,d,g,x,b,S,w){h[g*x*4+4*d+S]=w}function m$1(h,d,g){return h[d]*g}function c$1(h,d,g,x){return d+Math.cos(h)*g+Math.sin(h)*x}var Lx=function(h){Cd(FeColorMatrixElement,h);var d=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,g,x){var b;wv(this,FeColorMatrixElement),(b=d.call(this,h,g,x)).type="feColorMatrix";var S=toNumbers(b.getAttribute("values").getString());switch(b.getAttribute("type").getString("matrix")){case"saturate":var w=S[0];S=[.213+.787*w,.715-.715*w,.072-.072*w,0,0,.213-.213*w,.715+.285*w,.072-.072*w,0,0,.213-.213*w,.715-.715*w,.072+.928*w,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var E=S[0]*Math.PI/180;S=[c$1(E,.213,.787,-.213),c$1(E,.715,-.715,-.715),c$1(E,.072,-.072,.928),0,0,c$1(E,.213,-.213,.143),c$1(E,.715,.285,.14),c$1(E,.072,-.072,-.283),0,0,c$1(E,.213,-.213,-.787),c$1(E,.715,-.715,.715),c$1(E,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return b.matrix=S,b.includeOpacity=b.getAttribute("includeOpacity").hasValue(),b}return Ev(FeColorMatrixElement,[{key:"apply",value:function apply(h,d,g,x,b){for(var S=this.includeOpacity,w=this.matrix,E=h.getImageData(0,0,x,b),A=0;A<b;A++)for(var P=0;P<x;P++){var _=imGet(E.data,P,A,x,0,0),k=imGet(E.data,P,A,x,0,1),C=imGet(E.data,P,A,x,0,2),R=imGet(E.data,P,A,x,0,3),M=m$1(w,0,_)+m$1(w,1,k)+m$1(w,2,C)+m$1(w,3,R)+m$1(w,4,1),N=m$1(w,5,_)+m$1(w,6,k)+m$1(w,7,C)+m$1(w,8,R)+m$1(w,9,1),D=m$1(w,10,_)+m$1(w,11,k)+m$1(w,12,C)+m$1(w,13,R)+m$1(w,14,1),L=m$1(w,15,_)+m$1(w,16,k)+m$1(w,17,C)+m$1(w,18,R)+m$1(w,19,1);S&&(M=N=D=0,L*=R/255),imSet(E.data,P,A,x,0,0,M),imSet(E.data,P,A,x,0,1,N),imSet(E.data,P,A,x,0,2,D),imSet(E.data,P,A,x,0,3,L)}h.clearRect(0,0,x,b),h.putImageData(E,0,0)}}]),FeColorMatrixElement}(Qm);function _createSuper$E(h){var d=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var jx=function(h){Cd(MaskElement,h);var d=_createSuper$E(MaskElement);function MaskElement(){var h;return wv(this,MaskElement),(h=d.apply(this,arguments)).type="mask",h}return Ev(MaskElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),S=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");if(!S&&!w){var E,A=new Jm;Ap(E=this.children).call(E,(function(d){A.addBoundingBox(d.getBoundingBox(h))})),x=Math.floor(A.x1),b=Math.floor(A.y1),S=Math.floor(A.width),w=Math.floor(A.height)}var P=this.removeStyles(d,MaskElement.ignoreStyles),_=g.createCanvas(x+S,b+w),k=_.getContext("2d");g.screen.setDefaults(k),this.renderChildren(k),new Lx(g,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,x+S,b+w);var C=g.createCanvas(x+S,b+w),R=C.getContext("2d");g.screen.setDefaults(R),d.render(R),R.globalCompositeOperation="destination-in",R.fillStyle=k.createPattern(_,"no-repeat"),R.fillRect(0,0,x+S,b+w),h.fillStyle=R.createPattern(C,"no-repeat"),h.fillRect(0,0,x+S,b+w),this.restoreStyles(d,P)}},{key:"render",value:function render(h){}}]),MaskElement}(Qm);function _createSuper$F(h){var d=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}jx.ignoreStyles=["mask","transform","clip-path"];var Vx=function noop(){},$x=function(h){Cd(ClipPathElement,h);var d=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return wv(this,ClipPathElement),(h=d.apply(this,arguments)).type="clipPath",h}return Ev(ClipPathElement,[{key:"apply",value:function apply(h){var d,g=this.document,x=xm(h),b=h.beginPath,S=h.closePath;x&&(x.beginPath=Vx,x.closePath=Vx),mm(b,h,[]),Ap(d=this.children).call(d,(function(d){if(void 0!==d.path){var b=void 0!==d.elementTransform?d.elementTransform():null;b||(b=Wm.fromElement(g,d)),b&&b.apply(h),d.path(h),x&&(x.closePath=S),b&&b.unapply(h)}})),mm(S,h,[]),h.clip(),x&&(x.beginPath=b,x.closePath=S)}},{key:"render",value:function render(h){}}]),ClipPathElement}(Qm);function _createSuper$G(h){var d=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}var Fx=function(h){Cd(FilterElement,h);var d=_createSuper$G(FilterElement);function FilterElement(){var h;return wv(this,FilterElement),(h=d.apply(this,arguments)).type="filter",h}return Ev(FilterElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.children,b=d.getBoundingBox(h);if(b){var S=0,w=0;Ap(x).call(x,(function(h){var d=h.extraFilterDistance||0;S=Math.max(S,d),w=Math.max(w,d)}));var E=Math.floor(b.width),A=Math.floor(b.height),P=E+2*S,_=A+2*w;if(!(P<1||_<1)){var k=Math.floor(b.x),C=Math.floor(b.y),R=this.removeStyles(d,FilterElement.ignoreStyles),M=g.createCanvas(P,_),N=M.getContext("2d");g.screen.setDefaults(N),N.translate(-k+S,-C+w),d.render(N),Ap(x).call(x,(function(h){"function"==typeof h.apply&&h.apply(N,0,0,P,_)})),h.drawImage(M,0,0,P,_,k-S,C-w,P,_),this.restoreStyles(d,R)}}}},{key:"render",value:function render(h){}}]),FilterElement}(Qm);function _createSuper$H(h){var d=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function _createSuper$I(h){var d=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function _createSuper$J(h){var d=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function _createSuper$K(h){var d=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function _createSuper$L(h){var d=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}function _createSuper$M(h){var d=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!Pd)return!1;if(Pd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pd(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=jd(h);if(d){var b=jd(this).constructor;g=Pd(x,arguments,b)}else g=x.apply(this,arguments);return Id(this,g)}}Fx.ignoreStyles=["filter","transform","clip-path"];var Bx={svg:ox,rect:ux,circle:sx,ellipse:cx,line:lx,polyline:fx,polygon:hx,path:ax,pattern:px,marker:yx,defs:vx,linearGradient:mx,radialGradient:xx,stop:bx,animate:Sx,animateColor:wx,animateTransform:Ex,font:Ax,"font-face":Px,"missing-glyph":Tx,glyph:_x,text:ex,tspan:rx,tref:kx,a:Ox,textPath:Cx,image:Rx,g:dx,symbol:Mx,style:Ix,use:Dx,mask:jx,clipPath:$x,filter:Fx,feDropShadow:function(h){Cd(FeDropShadowElement,h);var d=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,g,x){var b;return wv(this,FeDropShadowElement),(b=d.call(this,h,g,x)).type="feDropShadow",b.addStylesFromStyleDefinition(),b}return Ev(FeDropShadowElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeDropShadowElement}(Qm),feMorphology:function(h){Cd(FeMorphologyElement,h);var d=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return wv(this,FeMorphologyElement),(h=d.apply(this,arguments)).type="feMorphology",h}return Ev(FeMorphologyElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeMorphologyElement}(Qm),feComposite:function(h){Cd(FeCompositeElement,h);var d=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return wv(this,FeCompositeElement),(h=d.apply(this,arguments)).type="feComposite",h}return Ev(FeCompositeElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeCompositeElement}(Qm),feColorMatrix:Lx,feGaussianBlur:function(h){Cd(FeGaussianBlurElement,h);var d=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,g,x){var b;return wv(this,FeGaussianBlurElement),(b=d.call(this,h,g,x)).type="feGaussianBlur",b.blurRadius=Math.floor(b.getAttribute("stdDeviation").getNumber()),b.extraFilterDistance=b.blurRadius,b}return Ev(FeGaussianBlurElement,[{key:"apply",value:function apply(h,d,g,x,b){var S=this.document,w=this.blurRadius,E=S.window?S.window.document.body:null,A=h.canvas;A.id=S.getUniqueId(),E&&(A.style.display="none",E.appendChild(A)),processCanvasRGBA(A,d,g,x,b,w),E&&E.removeChild(A)}}]),FeGaussianBlurElement}(Qm),title:function(h){Cd(TitleElement,h);var d=_createSuper$L(TitleElement);function TitleElement(){var h;return wv(this,TitleElement),(h=d.apply(this,arguments)).type="title",h}return TitleElement}(Qm),desc:function(h){Cd(DescElement,h);var d=_createSuper$M(DescElement);function DescElement(){var h;return wv(this,DescElement),(h=d.apply(this,arguments)).type="desc",h}return DescElement}(Qm)};function ownKeys$1$1(h,d){var g=Fp(h);if(Vp){var x=Vp(h);d&&(x=jp(x).call(x,(function(d){return kp(h,d).enumerable}))),g.push.apply(g,x)}return g}function _createImage(){return(_createImage=xv(Bp.mark((function _callee(h){var d,g,x=arguments;return Bp.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return d=x.length>1&&void 0!==x[1]&&x[1],g=document.createElement("img"),d&&(g.crossOrigin="Anonymous"),b.abrupt("return",new Xv((function(d,x){g.onload=function(){d(g)},g.onerror=function(){x()},g.src=h})));case 4:case"end":return b.stop()}}),_callee)})))).apply(this,arguments)}var Ux=function(){function Document(h){var d,g,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=x.rootEmSize,S=void 0===b?12:b,w=x.emSize,E=void 0===w?12:w,A=x.createCanvas,P=void 0===A?Document.createCanvas:A,_=x.createImage,k=void 0===_?Document.createImage:_,C=x.anonymousCrossOrigin;wv(this,Document),this.canvg=h,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=h.screen,this.rootEmSize=S,this.emSize=E,this.createCanvas=P,this.createImage=this.bindCreateImage(k,C),this.screen.wait(td(d=this.isImagesLoaded).call(d,this)),this.screen.wait(td(g=this.isFontsLoaded).call(g,this))}return Ev(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,d){return"boolean"==typeof d?function(g,x){return h(g,"boolean"==typeof x?x:d)}:h}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var h;return qv(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return qv(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var d=this.createElement(h.documentElement);return d.root=!0,d.addStylesFromStyleDefinition(),this.documentElement=d,d}},{key:"createElement",value:function createElement(h){var d=h.nodeName.replace(/^[^:]+:/,""),g=Document.elementTypes[d];return void 0!==g?new g(this,h):new Zm(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new nx(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ap(g=ownKeys$1$1(Object(x),!0)).call(g,(function(d){Sv(h,d,x[d])}));else if(vp)pp(h,vp(x));else{var b;Ap(b=ownKeys$1$1(Object(x))).call(b,(function(d){hp(h,d,kp(x,d))}))}}return h}({document:this},h))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var h=this.emSizeStack;return h[h.length-1]},set:function set(h){this.emSizeStack.push(h)}}]),Document}();function ownKeys$2$1(h,d){var g=Fp(h);if(Vp){var x=Vp(h);d&&(x=jp(x).call(x,(function(d){return kp(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread$2(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ap(g=ownKeys$2$1(Object(x),!0)).call(g,(function(d){Sv(h,d,x[d])}));else if(vp)pp(h,vp(x));else{var b;Ap(b=ownKeys$2$1(Object(x))).call(b,(function(d){hp(h,d,kp(x,d))}))}}return h}Ux.createCanvas=function createCanvas(h,d){var g=document.createElement("canvas");return g.width=h,g.height=d,g},Ux.createImage=function createImage(h){return _createImage.apply(this,arguments)},Ux.elementTypes=Bx;var zx=function(){function Canvg(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};wv(this,Canvg),this.parser=new Bm(g),this.screen=new Vm(h,g),this.options=g;var x=new Ux(this,g),b=x.createDocumentElement(d);this.document=x,this.documentElement=b}var h,d;return Ev(Canvg,[{key:"fork",value:function fork(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"forkString",value:function forkString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(d=xv(Bp.mark((function _callee(){var h,d=arguments;return Bp.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return h=d.length>0&&void 0!==d[0]?d[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),g.next=4,this.ready();case 4:this.stop();case 5:case"end":return g.stop()}}),_callee,this)}))),function render(){return d.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=this.documentElement,g=this.screen,x=this.options;g.start(d,_objectSpread$2(_objectSpread$2({enableRedraw:!0},x),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,d,g)}}],[{key:"from",value:(h=xv(Bp.mark((function _callee2(h,d){var g,x,b,S=arguments;return Bp.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return g=S.length>2&&void 0!==S[2]?S[2]:{},x=new Bm(g),w.next=4,x.parse(d);case 4:return b=w.sent,w.abrupt("return",new Canvg(h,b,g));case 6:case"end":return w.stop()}}),_callee2)}))),function from(d,g){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=new Bm(g),b=x.parseFromString(d);return new Canvg(h,b,g)}}]),Canvg}();function __variableDynamicImportRuntime0__(h){switch(h){case"./locale/en.js":return Promise.resolve().then((function(){return Hx}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return qx}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+h))}}var Gx=function(){var h=_asyncToGenerator(regeneratorRuntime.mark((function _callee(h){var d;return regeneratorRuntime.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(h),".js"));case 3:d=g.sent,g.next=12;break;case 6:return g.prev=6,g.t0=g.catch(0),console.error("Missing translation (".concat(h,") - using 'en'")),g.next=11,Promise.resolve().then((function(){return Hx}));case 11:d=g.sent;case 12:return g.abrupt("return",d.default);case 13:case"end":return g.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(d){return h.apply(this,arguments)}}(),Hx=(h("default",{name:"server_moinsave",init:function init(h){var d=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var g,x,b,S,w;return regeneratorRuntime.wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:return g=h.$,x=h.encode64,h.importLocale,b=d,E.next=4,Gx(b.configObj.pref("lang"));case 4:S=E.sent,w=b.svgCanvas,"/+modify",g('<iframe name="output_frame" title="'.concat(S.hiddenframe,'"\n style="width: 0; height: 0;" src="data:text/html;base64,PGh0bWw+PC9odG1sPg=="/>')).appendTo("body"),b.setCustomHandlers({save:function save(h,d){return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var h,b,E,A,P,_,k,C;return regeneratorRuntime.wrap((function _callee2$(R){for(;;)switch(R.prev=R.next){case 0:return h='<?xml version="1.0"?>\n'+d,b=new URL(location),E=b.pathname,A=E.replace(/\/+get\//,""),P=x(h),g("#export_canvas").length||g("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(_=g("#export_canvas")[0]).width=w.contentW,_.height=w.contentH,R.next=10,zx(_,h);case 10:k=_.toDataURL("image/png"),C=x(k),g("<form>").attr({method:"post",action:"/+modify/"+A,target:"output_frame"}).append('\n <input type="hidden" name="png_data" value="'.concat(C,'">\n <input type="hidden" name="filepath" value="').concat(P,'">\n <input type="hidden" name="filename" value="drawing.svg">\n <input type="hidden" name="contenttype" value="application/x-svgdraw">\n ')).appendTo("body").submit().remove(),alert(S.saved),top.window.location="/"+A;case 15:case"end":return R.stop()}}),_callee2)})))()}});case 9:case"end":return E.stop()}}),_callee3)})))()}}),Object.freeze({__proto__:null,default:{saved:"Saved! Return to Item View!",hiddenframe:"Moinsave frame to store hidden values"}})),qx=Object.freeze({__proto__:null,default:{saved:"已保存! 返回视图!",hiddenframe:"Moinsave frame to store hidden values"}})}}}));