@offshorly/chatbot-frontend-package
Version:
AI chatbot frontend package of Offshorly
1 lines • 145 kB
JavaScript
var t=require("./index-53fbeac0.js");require("react"),require("react-dom");var e,r,i=function(t){return t&&t.Math===Math&&t},n=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t.commonjsGlobal&&t.commonjsGlobal)||i("object"==typeof t.commonjsGlobal&&t.commonjsGlobal)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},s=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),o=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),h=Function.prototype.call,u=o?h.bind(h):function(){return h.apply(h,arguments)},l={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f=c&&!l.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:l,g={f:f},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d=Function.prototype,y=d.call,v=o&&d.bind.bind(y,y),m=o?v:function(t){return function(){return y.apply(t,arguments)}},x=m({}.toString),b=m("".slice),w=function(t){return b(x(t),8,-1)},S=Object,T=m("".split),O=a(function(){return!S("z").propertyIsEnumerable(0)})?function(t){return"String"===w(t)?T(t,""):S(t)}:S,A=function(t){return null==t},C=TypeError,P=function(t){if(A(t))throw new C("Can't call method on "+t);return t},E=function(t){return O(P(t))},M="object"==typeof document&&document.all,N=void 0===M&&void 0!==M?function(t){return"function"==typeof t||t===M}:function(t){return"function"==typeof t},R=function(t){return"object"==typeof t?null!==t:N(t)},_=function(t,e){return arguments.length<2?N(r=n[t])?r:void 0:n[t]&&n[t][e];var r},V=m({}.isPrototypeOf),I="undefined"!=typeof navigator&&String(navigator.userAgent)||"",k=n.process,L=n.Deno,D=k&&k.versions||L&&L.version,j=D&&D.v8;j&&(r=(e=j.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&I&&(!(e=I.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=I.match(/Chrome\/(\d+)/))&&(r=+e[1]);var B=r,F=n.String,z=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!F(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41}),U=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,X=U?function(t){return"symbol"==typeof t}:function(t){var e=_("Symbol");return N(e)&&V(e.prototype,H(t))},Y=String,q=function(t){try{return Y(t)}catch(t){return"Object"}},G=TypeError,W=function(t){if(N(t))return t;throw new G(q(t)+" is not a function")},Q=function(t,e){var r=t[e];return A(r)?void 0:W(r)},$=TypeError,Z=Object.defineProperty,K=function(t,e){try{Z(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e},J=t.createCommonjsModule(function(t){var e="__core-js_shared__",r=t.exports=n[e]||K(e,{});(r.versions||(r.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),tt=function(t,e){return J[t]||(J[t]=e||{})},et=Object,rt=function(t){return et(P(t))},it=m({}.hasOwnProperty),nt=Object.hasOwn||function(t,e){return it(rt(t),e)},at=0,st=Math.random(),ot=m(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ot(++at+st,36)},ut=n.Symbol,lt=tt("wks"),ct=U?ut.for||ut:ut&&ut.withoutSetter||ht,ft=function(t){return nt(lt,t)||(lt[t]=z&&nt(ut,t)?ut[t]:ct("Symbol."+t)),lt[t]},gt=TypeError,pt=ft("toPrimitive"),dt=function(t){var e=function(t,e){if(!R(t)||X(t))return t;var r,i=Q(t,pt);if(i){if(void 0===e&&(e="default"),r=u(i,t,e),!R(r)||X(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,i;if("string"===e&&N(r=t.toString)&&!R(i=u(r,t)))return i;if(N(r=t.valueOf)&&!R(i=u(r,t)))return i;if("string"!==e&&N(r=t.toString)&&!R(i=u(r,t)))return i;throw new $("Can't convert object to primitive value")}(t,e)}(t,"string");return X(e)?e:e+""},yt=n.document,vt=R(yt)&&R(yt.createElement),mt=function(t){return vt?yt.createElement(t):{}},xt=!s&&!a(function(){return 7!==Object.defineProperty(mt("div"),"a",{get:function(){return 7}}).a}),bt=Object.getOwnPropertyDescriptor,wt=s?bt:function(t,e){if(t=E(t),e=dt(e),xt)try{return bt(t,e)}catch(t){}if(nt(t,e))return p(!u(g.f,t,e),t[e])},St={f:wt},Tt=s&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ot=String,At=TypeError,Ct=function(t){if(R(t))return t;throw new At(Ot(t)+" is not an object")},Pt=TypeError,Et=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Nt="enumerable",Rt="configurable",_t="writable",Vt=s?Tt?function(t,e,r){if(Ct(t),e=dt(e),Ct(r),"function"==typeof t&&"prototype"===e&&"value"in r&&_t in r&&!r[_t]){var i=Mt(t,e);i&&i[_t]&&(t[e]=r.value,r={configurable:Rt in r?r[Rt]:i[Rt],enumerable:Nt in r?r[Nt]:i[Nt],writable:!1})}return Et(t,e,r)}:Et:function(t,e,r){if(Ct(t),e=dt(e),Ct(r),xt)try{return Et(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Pt("Accessors not supported");return"value"in r&&(t[e]=r.value),t},It={f:Vt},kt=s?function(t,e,r){return It.f(t,e,p(1,r))}:function(t,e,r){return t[e]=r,t},Lt=Function.prototype,Dt=s&&Object.getOwnPropertyDescriptor,jt=nt(Lt,"name"),Bt={EXISTS:jt,PROPER:jt&&"something"===function(){}.name,CONFIGURABLE:jt&&(!s||s&&Dt(Lt,"name").configurable)},Ft=m(Function.toString);N(J.inspectSource)||(J.inspectSource=function(t){return Ft(t)});var zt,Ut,Ht,Xt=J.inspectSource,Yt=n.WeakMap,qt=N(Yt)&&/native code/.test(String(Yt)),Gt=tt("keys"),Wt=function(t){return Gt[t]||(Gt[t]=ht(t))},Qt={},$t="Object already initialized",Zt=n.TypeError;if(qt||J.state){var Kt=J.state||(J.state=new(0,n.WeakMap));Kt.get=Kt.get,Kt.has=Kt.has,Kt.set=Kt.set,zt=function(t,e){if(Kt.has(t))throw new Zt($t);return e.facade=t,Kt.set(t,e),e},Ut=function(t){return Kt.get(t)||{}},Ht=function(t){return Kt.has(t)}}else{var Jt=Wt("state");Qt[Jt]=!0,zt=function(t,e){if(nt(t,Jt))throw new Zt($t);return e.facade=t,kt(t,Jt,e),e},Ut=function(t){return nt(t,Jt)?t[Jt]:{}},Ht=function(t){return nt(t,Jt)}}var te={set:zt,get:Ut,has:Ht,enforce:function(t){return Ht(t)?Ut(t):zt(t,{})},getterFor:function(t){return function(e){var r;if(!R(e)||(r=Ut(e)).type!==t)throw new Zt("Incompatible receiver, "+t+" required");return r}}},ee=t.createCommonjsModule(function(t){var e=Bt.CONFIGURABLE,r=te.enforce,i=te.get,n=String,o=Object.defineProperty,h=m("".slice),u=m("".replace),l=m([].join),c=s&&!a(function(){return 8!==o(function(){},"length",{value:8}).length}),f=String(String).split("String"),g=t.exports=function(t,i,a){"Symbol("===h(n(i),0,7)&&(i="["+u(n(i),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),a&&a.getter&&(i="get "+i),a&&a.setter&&(i="set "+i),(!nt(t,"name")||e&&t.name!==i)&&(s?o(t,"name",{value:i,configurable:!0}):t.name=i),c&&a&&nt(a,"arity")&&t.length!==a.arity&&o(t,"length",{value:a.arity});try{a&&nt(a,"constructor")&&a.constructor?s&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var g=r(t);return nt(g,"source")||(g.source=l(f,"string"==typeof i?i:"")),t};Function.prototype.toString=g(function(){return N(this)&&i(this).source||Xt(this)},"toString")}),re=function(t,e,r,i){i||(i={});var n=i.enumerable,a=void 0!==i.name?i.name:e;if(N(r)&&ee(r,a,i),i.global)n?t[e]=r:K(e,r);else{try{i.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=r:It.f(t,e,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},ie=Math.ceil,ne=Math.floor,ae=Math.trunc||function(t){var e=+t;return(e>0?ne:ie)(e)},se=function(t){var e=+t;return e!=e||0===e?0:ae(e)},oe=Math.max,he=Math.min,ue=Math.min,le=function(t){var e=se(t);return e>0?ue(e,9007199254740991):0},ce=function(t){return le(t.length)},fe=function(t){return function(e,r,i){var n=E(e),a=ce(n);if(0===a)return!t&&-1;var s,o=function(t,e){var r=se(t);return r<0?oe(r+e,0):he(r,e)}(i,a);if(t&&r!=r){for(;a>o;)if((s=n[o++])!=s)return!0}else for(;a>o;o++)if((t||o in n)&&n[o]===r)return t||o||0;return!t&&-1}},ge={includes:fe(!0),indexOf:fe(!1)},pe=ge.indexOf,de=m([].push),ye=function(t,e){var r,i=E(t),n=0,a=[];for(r in i)!nt(Qt,r)&&nt(i,r)&&de(a,r);for(;e.length>n;)nt(i,r=e[n++])&&(~pe(a,r)||de(a,r));return a},ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=ve.concat("length","prototype"),xe=Object.getOwnPropertyNames||function(t){return ye(t,me)},be={f:xe},we={f:Object.getOwnPropertySymbols},Se=m([].concat),Te=_("Reflect","ownKeys")||function(t){var e=be.f(Ct(t)),r=we.f;return r?Se(e,r(t)):e},Oe=function(t,e,r){for(var i=Te(e),n=It.f,a=St.f,s=0;s<i.length;s++){var o=i[s];nt(t,o)||r&&nt(r,o)||n(t,o,a(e,o))}},Ae=/#|\.prototype\./,Ce=function(t,e){var r=Ee[Pe(t)];return r===Ne||r!==Me&&(N(e)?a(e):!!e)},Pe=Ce.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},Ee=Ce.data={},Me=Ce.NATIVE="N",Ne=Ce.POLYFILL="P",Re=Ce,_e=St.f,Ve=function(t,e){var r,i,a,s,o,h=t.target,u=t.global,l=t.stat;if(r=u?n:l?n[h]||K(h,{}):n[h]&&n[h].prototype)for(i in e){if(s=e[i],a=t.dontCallGetSet?(o=_e(r,i))&&o.value:r[i],!Re(u?i:h+(l?".":"#")+i,t.forced)&&void 0!==a){if(typeof s==typeof a)continue;Oe(s,a)}(t.sham||a&&a.sham)&&kt(s,"sham",!0),re(r,i,s,t)}},Ie="process"===w(n.process),ke=String,Le=TypeError,De=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return m(W(Object.getOwnPropertyDescriptor(t,"__proto__").set))}catch(t){}}(Object.prototype))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return Ct(r),function(t){if(function(t){return R(t)||null===t}(t))return t;throw new Le("Can't set "+ke(t)+" as a prototype")}(i),e?t(r,i):r.__proto__=i,r}}():void 0),je=It.f,Be=ft("toStringTag"),Fe=function(t,e,r){t&&!r&&(t=t.prototype),t&&!nt(t,Be)&&je(t,Be,{configurable:!0,value:e})},ze=ft("species"),Ue=TypeError,He={};He[ft("toStringTag")]="z";var Xe="[object z]"===String(He),Ye=ft("toStringTag"),qe=Object,Ge="Arguments"===w(function(){return arguments}()),We=Xe?w:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Ye))?r:Ge?w(e):"Object"===(i=w(e))&&N(e.callee)?"Arguments":i},Qe=function(){},$e=_("Reflect","construct"),Ze=/^\s*(?:class|function)\b/,Ke=m(Ze.exec),Je=!Ze.test(Qe),tr=function(t){if(!N(t))return!1;try{return $e(Qe,[],t),!0}catch(t){return!1}},er=function(t){if(!N(t))return!1;switch(We(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Je||!!Ke(Ze,Xt(t))}catch(t){return!0}};er.sham=!0;var rr,ir,nr,ar,sr=!$e||a(function(){var t;return tr(tr.call)||!tr(Object)||!tr(function(){t=!0})||t})?er:tr,or=TypeError,hr=ft("species"),ur=function(t,e){var r,i=Ct(t).constructor;return void 0===i||A(r=Ct(i)[hr])?e:function(t){if(sr(t))return t;throw new or(q(t)+" is not a constructor")}(r)},lr=Function.prototype,cr=lr.apply,fr=lr.call,gr="object"==typeof Reflect&&Reflect.apply||(o?fr.bind(cr):function(){return fr.apply(cr,arguments)}),pr=function(t){if("Function"===w(t))return m(t)},dr=pr(pr.bind),yr=function(t,e){return W(t),void 0===e?t:o?dr(t,e):function(){return t.apply(e,arguments)}},vr=_("document","documentElement"),mr=m([].slice),xr=TypeError,br=/(?:ipad|iphone|ipod).*applewebkit/i.test(I),wr=n.setImmediate,Sr=n.clearImmediate,Tr=n.process,Or=n.Dispatch,Ar=n.Function,Cr=n.MessageChannel,Pr=n.String,Er=0,Mr={},Nr="onreadystatechange";a(function(){rr=n.location});var Rr=function(t){if(nt(Mr,t)){var e=Mr[t];delete Mr[t],e()}},_r=function(t){return function(){Rr(t)}},Vr=function(t){Rr(t.data)},Ir=function(t){n.postMessage(Pr(t),rr.protocol+"//"+rr.host)};wr&&Sr||(wr=function(t){!function(t,e){if(t<1)throw new xr("Not enough arguments")}(arguments.length);var e=N(t)?t:Ar(t),r=mr(arguments,1);return Mr[++Er]=function(){gr(e,void 0,r)},ir(Er),Er},Sr=function(t){delete Mr[t]},Ie?ir=function(t){Tr.nextTick(_r(t))}:Or&&Or.now?ir=function(t){Or.now(_r(t))}:Cr&&!br?(ar=(nr=new Cr).port2,nr.port1.onmessage=Vr,ir=yr(ar.postMessage,ar)):n.addEventListener&&N(n.postMessage)&&!n.importScripts&&rr&&"file:"!==rr.protocol&&!a(Ir)?(ir=Ir,n.addEventListener("message",Vr,!1)):ir=Nr in mt("script")?function(t){vr.appendChild(mt("script"))[Nr]=function(){vr.removeChild(this),Rr(t)}}:function(t){setTimeout(_r(t),0)});var kr={set:wr,clear:Sr},Lr=Object.getOwnPropertyDescriptor,Dr=function(){this.head=null,this.tail=null};Dr.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var jr,Br,Fr,zr,Ur,Hr=Dr,Xr=/ipad|iphone|ipod/i.test(I)&&"undefined"!=typeof Pebble,Yr=/web0s(?!.*chrome)/i.test(I),qr=kr.set,Gr=n.MutationObserver||n.WebKitMutationObserver,Wr=n.document,Qr=n.process,$r=n.Promise,Zr=function(t){if(!s)return n[t];var e=Lr(n,t);return e&&e.value}("queueMicrotask");if(!Zr){var Kr=new Hr,Jr=function(){var t,e;for(Ie&&(t=Qr.domain)&&t.exit();e=Kr.get();)try{e()}catch(t){throw Kr.head&&jr(),t}t&&t.enter()};br||Ie||Yr||!Gr||!Wr?!Xr&&$r&&$r.resolve?((zr=$r.resolve(void 0)).constructor=$r,Ur=yr(zr.then,zr),jr=function(){Ur(Jr)}):Ie?jr=function(){Qr.nextTick(Jr)}:(qr=yr(qr,n),jr=function(){qr(Jr)}):(Br=!0,Fr=Wr.createTextNode(""),new Gr(Jr).observe(Fr,{characterData:!0}),jr=function(){Fr.data=Br=!Br}),Zr=function(t){Kr.head||jr(),Kr.add(t)}}var ti,ei,ri,ii,ni,ai,si,oi=Zr,hi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ui=n.Promise,li="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ci=!li&&!Ie&&"object"==typeof window&&"object"==typeof document,fi=ft("species"),gi=!1,pi=N(n.PromiseRejectionEvent),di=Re("Promise",function(){var t=Xt(ui),e=t!==String(ui);if(!e&&66===B)return!0;if(!B||B<51||!/native code/.test(t)){var r=new ui(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((r.constructor={})[fi]=i,!(gi=r.then(function(){})instanceof i))return!0}return!e&&(ci||li)&&!pi}),yi={CONSTRUCTOR:di,REJECTION_EVENT:pi,SUBCLASSING:gi},vi=TypeError,mi=function(t){var e,r;this.promise=new t(function(t,i){if(void 0!==e||void 0!==r)throw new vi("Bad Promise constructor");e=t,r=i}),this.resolve=W(e),this.reject=W(r)},xi={f:function(t){return new mi(t)}},bi=kr.set,wi="Promise",Si=yi.CONSTRUCTOR,Ti=yi.REJECTION_EVENT,Oi=yi.SUBCLASSING,Ai=te.getterFor(wi),Ci=te.set,Pi=ui&&ui.prototype,Ei=ui,Mi=Pi,Ni=n.TypeError,Ri=n.document,_i=n.process,Vi=xi.f,Ii=Vi,ki=!!(Ri&&Ri.createEvent&&n.dispatchEvent),Li="unhandledrejection",Di=function(t){var e;return!(!R(t)||!N(e=t.then))&&e},ji=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,h=t.resolve,l=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&Hi(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?l(new Ni("Promise-chain cycle")):(i=Di(r))?u(i,r,h,l):h(r)):l(a)}catch(t){c&&!n&&c.exit(),l(t)}},Bi=function(t,e){t.notified||(t.notified=!0,oi(function(){for(var r,i=t.reactions;r=i.get();)ji(r,t);t.notified=!1,e&&!t.rejection&&zi(t)}))},Fi=function(t,e,r){var i,a;ki?((i=Ri.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),n.dispatchEvent(i)):i={promise:e,reason:r},!Ti&&(a=n["on"+t])?a(i):t===Li&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},zi=function(t){u(bi,n,function(){var e,r=t.facade,i=t.value;if(Ui(t)&&(e=hi(function(){Ie?_i.emit("unhandledRejection",i,r):Fi(Li,r,i)}),t.rejection=Ie||Ui(t)?2:1,e.error))throw e.value})},Ui=function(t){return 1!==t.rejection&&!t.parent},Hi=function(t){u(bi,n,function(){var e=t.facade;Ie?_i.emit("rejectionHandled",e):Fi("rejectionhandled",e,t.value)})},Xi=function(t,e,r){return function(i){t(e,i,r)}},Yi=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Bi(t,!0))},qi=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new Ni("Promise can't be resolved itself");var i=Di(e);i?oi(function(){var r={done:!1};try{u(i,e,Xi(qi,r,t),Xi(Yi,r,t))}catch(e){Yi(r,e,t)}}):(t.value=e,t.state=1,Bi(t,!1))}catch(e){Yi({done:!1},e,t)}}};if(Si&&(Ei=function(t){!function(t,e){if(V(Mi,t))return t;throw new Ue("Incorrect invocation")}(this),W(t),u(ti,this);var e=Ai(this);try{t(Xi(qi,e),Xi(Yi,e))}catch(t){Yi(e,t)}},(ti=function(t){Ci(this,{type:wi,done:!1,notified:!1,parent:!1,reactions:new Hr,rejection:!1,state:0,value:void 0})}).prototype=re(Mi=Ei.prototype,"then",function(t,e){var r=Ai(this),i=Vi(ur(this,Ei));return r.parent=!0,i.ok=!N(t)||t,i.fail=N(e)&&e,i.domain=Ie?_i.domain:void 0,0===r.state?r.reactions.add(i):oi(function(){ji(i,r)}),i.promise}),ei=function(){var t=new ti,e=Ai(t);this.promise=t,this.resolve=Xi(qi,e),this.reject=Xi(Yi,e)},xi.f=Vi=function(t){return t===Ei||void 0===t?new ei(t):Ii(t)},N(ui)&&Pi!==Object.prototype)){ri=Pi.then,Oi||re(Pi,"then",function(t,e){var r=this;return new Ei(function(t,e){u(ri,r,t,e)}).then(t,e)},{unsafe:!0});try{delete Pi.constructor}catch(t){}De&&De(Pi,Mi)}Ve({global:!0,constructor:!0,wrap:!0,forced:Si},{Promise:Ei}),Fe(Ei,wi,!1),si=_(wi),s&&si&&!si[ze]&&(ii=si,ni=ze,(ai={configurable:!0,get:function(){return this}}).get&&ee(ai.get,ni,{getter:!0}),ai.set&&ee(ai.set,ni,{setter:!0}),It.f(ii,ni,ai));var Gi={},Wi=ft("iterator"),Qi=Array.prototype,$i=ft("iterator"),Zi=function(t){if(!A(t))return Q(t,$i)||Q(t,"@@iterator")||Gi[We(t)]},Ki=TypeError,Ji=function(t,e,r){var i,n;Ct(t);try{if(!(i=Q(t,"return"))){if("throw"===e)throw r;return r}i=u(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw r;if(n)throw i;return Ct(i),r},tn=TypeError,en=function(t,e){this.stopped=t,this.result=e},rn=en.prototype,nn=function(t,e,r){var i,n,a,s,o,h,l,c,f=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),y=yr(e,r&&r.that),v=function(t){return i&&Ji(i,"normal",t),new en(!0,t)},m=function(t){return f?(Ct(t),d?y(t[0],t[1],v):y(t[0],t[1])):d?y(t,v):y(t)};if(g)i=t.iterator;else if(p)i=t;else{if(!(n=Zi(t)))throw new tn(q(t)+" is not iterable");if(void 0!==(c=n)&&(Gi.Array===c||Qi[Wi]===c)){for(a=0,s=ce(t);s>a;a++)if((o=m(t[a]))&&V(rn,o))return o;return new en(!1)}i=function(t,e){var r=arguments.length<2?Zi(t):e;if(W(r))return Ct(u(r,t));throw new Ki(q(t)+" is not iterable")}(t,n)}for(h=g?t.next:i.next;!(l=u(h,i)).done;){try{o=m(l.value)}catch(t){Ji(i,"throw",t)}if("object"==typeof o&&o&&V(rn,o))return o}return new en(!1)},an=ft("iterator"),sn=!1;try{var on=0,hn={next:function(){return{done:!!on++}},return:function(){sn=!0}};hn[an]=function(){return this},Array.from(hn,function(){throw 2})}catch(t){}var un=yi.CONSTRUCTOR||!function(t,e){try{if(!sn)return!1}catch(t){return!1}var r=!1;try{var i={};i[an]=function(){return{next:function(){return{done:r=!0}}}},ui.all(i).then(void 0,function(){})}catch(t){}return r}();Ve({target:"Promise",stat:!0,forced:un},{all:function(t){var e=this,r=xi.f(e),i=r.resolve,n=r.reject,a=hi(function(){var r=W(e.resolve),a=[],s=0,o=1;nn(t,function(t){var h=s++,l=!1;o++,u(r,e,t).then(function(t){l||(l=!0,a[h]=t,--o||i(a))},n)}),--o||i(a)});return a.error&&n(a.value),r.promise}});var ln=ui&&ui.prototype;if(Ve({target:"Promise",proto:!0,forced:yi.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),N(ui)){var cn=_("Promise").prototype.catch;ln.catch!==cn&&re(ln,"catch",cn,{unsafe:!0})}function fn(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function gn(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){fn(a,i,n,s,o,"next",t)}function o(t){fn(a,i,n,s,o,"throw",t)}s(void 0)})}}Ve({target:"Promise",stat:!0,forced:un},{race:function(t){var e=this,r=xi.f(e),i=r.reject,n=hi(function(){var n=W(e.resolve);nn(t,function(t){u(n,e,t).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}}),Ve({target:"Promise",stat:!0,forced:yi.CONSTRUCTOR},{reject:function(t){var e=xi.f(this);return(0,e.reject)(t),e.promise}}),Ve({target:"Promise",stat:!0,forced:yi.CONSTRUCTOR},{resolve:function(t){return function(t,e){if(Ct(t),R(e)&&e.constructor===t)return e;var r=xi.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var pn,dn=String,yn=function(t){if("Symbol"===We(t))throw new TypeError("Cannot convert a Symbol value to a string");return dn(t)},vn=function(){var t=Ct(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},mn=n.RegExp,xn=a(function(){var t=mn("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),bn=xn||a(function(){return!mn("a","y").sticky}),wn={BROKEN_CARET:xn||a(function(){var t=mn("^r","gy");return t.lastIndex=2,null!==t.exec("str")}),MISSED_STICKY:bn,UNSUPPORTED_Y:xn},Sn=Object.keys||function(t){return ye(t,ve)},Tn=s&&!Tt?Object.defineProperties:function(t,e){Ct(t);for(var r,i=E(e),n=Sn(e),a=n.length,s=0;a>s;)It.f(t,r=n[s++],i[r]);return t},On={f:Tn},An="prototype",Cn="script",Pn=Wt("IE_PROTO"),En=function(){},Mn=function(t){return"<"+Cn+">"+t+"</"+Cn+">"},Nn=function(t){t.write(Mn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Rn=function(){try{pn=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Rn="undefined"!=typeof document?document.domain&&pn?Nn(pn):(e=mt("iframe"),r="java"+Cn+":",e.style.display="none",vr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Mn("document.F=Object")),t.close(),t.F):Nn(pn);for(var i=ve.length;i--;)delete Rn[An][ve[i]];return Rn()};Qt[Pn]=!0;var _n,Vn,In=Object.create||function(t,e){var r;return null!==t?(En[An]=Ct(t),r=new En,En[An]=null,r[Pn]=t):r=Rn(),void 0===e?r:On.f(r,e)},kn=n.RegExp,Ln=a(function(){var t=kn(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}),Dn=n.RegExp,jn=a(function(){var t=Dn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),Bn=te.get,Fn=tt("native-string-replace",String.prototype.replace),zn=RegExp.prototype.exec,Un=zn,Hn=m("".charAt),Xn=m("".indexOf),Yn=m("".replace),qn=m("".slice),Gn=(Vn=/b*/g,u(zn,_n=/a/,"a"),u(zn,Vn,"a"),0!==_n.lastIndex||0!==Vn.lastIndex),Wn=wn.BROKEN_CARET,Qn=void 0!==/()??/.exec("")[1];(Gn||Qn||Wn||Ln||jn)&&(Un=function(t){var e,r,i,n,a,s,o,h=this,l=Bn(h),c=yn(t),f=l.raw;if(f)return f.lastIndex=h.lastIndex,e=u(Un,f,c),h.lastIndex=f.lastIndex,e;var g=l.groups,p=Wn&&h.sticky,d=u(vn,h),y=h.source,v=0,m=c;if(p&&(d=Yn(d,"y",""),-1===Xn(d,"g")&&(d+="g"),m=qn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Hn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,v++),r=new RegExp("^(?:"+y+")",d)),Qn&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Gn&&(i=h.lastIndex),n=u(zn,p?r:h,m),p?n?(n.input=qn(n.input,v),n[0]=qn(n[0],v),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Gn&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Qn&&n&&n.length>1&&u(Fn,n[0],r,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)}),n&&g)for(n.groups=s=In(null),a=0;a<g.length;a++)s[(o=g[a])[0]]=n[o[1]];return n});var $n=Un;Ve({target:"RegExp",proto:!0,forced:/./.exec!==$n},{exec:$n});var Zn=ft("species"),Kn=RegExp.prototype,Jn=function(t,e,r,i){var n=ft(t),s=!a(function(){var e={};return e[n]=function(){return 7},7!==""[t](e)}),o=s&&!a(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Zn]=function(){return r},r.flags="",r[n]=/./[n]),r.exec=function(){return e=!0,null},r[n](""),!e});if(!s||!o||r){var h=/./[n],l=e(n,""[t],function(t,e,r,i,n){var a=e.exec;return a===$n||a===Kn.exec?s&&!n?{done:!0,value:u(h,e,r,i)}:{done:!0,value:u(t,r,e,i)}:{done:!1}});re(String.prototype,t,l[0]),re(Kn,n,l[1])}i&&kt(Kn[n],"sham",!0)},ta=m("".charAt),ea=m("".charCodeAt),ra=m("".slice),ia=function(t){return function(e,r){var i,n,a=yn(P(e)),s=se(r),o=a.length;return s<0||s>=o?t?"":void 0:(i=ea(a,s))<55296||i>56319||s+1===o||(n=ea(a,s+1))<56320||n>57343?t?ta(a,s):i:t?ra(a,s,s+2):n-56320+(i-55296<<10)+65536}},na=(ia(!1),ia(!0)),aa=function(t,e,r){return e+(r?na(t,e).length:1)},sa=TypeError,oa=function(t,e){var r=t.exec;if(N(r)){var i=u(r,t,e);return null!==i&&Ct(i),i}if("RegExp"===w(t))return u($n,t,e);throw new sa("RegExp#exec called on incompatible receiver")};Jn("match",function(t,e,r){return[function(e){var r=P(this),i=A(e)?void 0:Q(e,t);return i?u(i,e,r):new RegExp(e)[t](yn(r))},function(t){var i=Ct(this),n=yn(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return oa(i,n);var s=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=oa(i,n));){var l=yn(o[0]);h[u]=l,""===l&&(i.lastIndex=aa(n,le(i.lastIndex),s)),u++}return 0===u?null:h}]});var ha=Math.floor,ua=m("".charAt),la=m("".replace),ca=m("".slice),fa=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ga=/\$([$&'`]|\d{1,2})/g,pa=function(t,e,r,i,n,a){var s=r+t.length,o=i.length,h=ga;return void 0!==n&&(n=rt(n),h=fa),la(a,h,function(a,h){var u;switch(ua(h,0)){case"$":return"$";case"&":return t;case"`":return ca(e,0,r);case"'":return ca(e,s);case"<":u=n[ca(h,1,-1)];break;default:var l=+h;if(0===l)return a;if(l>o){var c=ha(l/10);return 0===c?a:c<=o?void 0===i[c-1]?ua(h,1):i[c-1]+ua(h,1):a}u=i[l-1]}return void 0===u?"":u})},da=ft("replace"),ya=Math.max,va=Math.min,ma=m([].concat),xa=m([].push),ba=m("".indexOf),wa=m("".slice),Sa="$0"==="a".replace(/./,"$0"),Ta=!!/./[da]&&""===/./[da]("a","$0");Jn("replace",function(t,e,r){var i=Ta?"$":"$0";return[function(t,r){var i=P(this),n=A(t)?void 0:Q(t,da);return n?u(n,t,i,r):u(e,yn(i),t,r)},function(t,n){var a=Ct(this),s=yn(t);if("string"==typeof n&&-1===ba(n,i)&&-1===ba(n,"$<")){var o=r(e,a,s,n);if(o.done)return o.value}var h=N(n);h||(n=yn(n));var u,l=a.global;l&&(u=a.unicode,a.lastIndex=0);for(var c,f=[];null!==(c=oa(a,s))&&(xa(f,c),l);)""===yn(c[0])&&(a.lastIndex=aa(s,le(a.lastIndex),u));for(var g,p="",d=0,y=0;y<f.length;y++){for(var v,m=yn((c=f[y])[0]),x=ya(va(se(c.index),s.length),0),b=[],w=1;w<c.length;w++)xa(b,void 0===(g=c[w])?g:String(g));var S=c.groups;if(h){var T=ma([m],b,x,s);void 0!==S&&xa(T,S),v=yn(gr(n,void 0,T))}else v=pa(m,s,x,b,S,n);x>=d&&(p+=wa(s,d,x)+v,d=x+m.length)}return p+wa(s,d)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!Sa||Ta);var Oa=ft("match"),Aa=TypeError,Ca=function(t){if(function(t){var e;return R(t)&&(void 0!==(e=t[Oa])?!!e:"RegExp"===w(t))}(t))throw new Aa("The method doesn't accept regular expressions");return t},Pa=ft("match"),Ea=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Pa]=!1,"/./"[t](e)}catch(t){}}return!1},Ma=St.f,Na=pr("".slice),Ra=Math.min,_a=Ea("startsWith"),Va=!_a&&!!function(){var t=Ma(String.prototype,"startsWith");return t&&!t.writable}();Ve({target:"String",proto:!0,forced:!Va&&!_a},{startsWith:function(t){var e=yn(P(this));Ca(t);var r=le(Ra(arguments.length>1?arguments[1]:void 0,e.length)),i=yn(t);return Na(e,r,r+i.length)===i}});var Ia=It.f,ka=ft("unscopables"),La=Array.prototype;void 0===La[ka]&&Ia(La,ka,{configurable:!0,value:In(null)});var Da,ja,Ba,Fa=function(t){La[ka][t]=!0},za=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ua=Wt("IE_PROTO"),Ha=Object,Xa=Ha.prototype,Ya=za?Ha.getPrototypeOf:function(t){var e=rt(t);if(nt(e,Ua))return e[Ua];var r=e.constructor;return N(r)&&e instanceof r?r.prototype:e instanceof Ha?Xa:null},qa=ft("iterator"),Ga=!1;[].keys&&("next"in(Ba=[].keys())?(ja=Ya(Ya(Ba)))!==Object.prototype&&(Da=ja):Ga=!0);var Wa=!R(Da)||a(function(){var t={};return Da[qa].call(t)!==t});Wa&&(Da={}),N(Da[qa])||re(Da,qa,function(){return this});var Qa={IteratorPrototype:Da,BUGGY_SAFARI_ITERATORS:Ga},$a=Qa.IteratorPrototype,Za=function(){return this},Ka=Bt.PROPER,Ja=Bt.CONFIGURABLE,ts=Qa.IteratorPrototype,es=Qa.BUGGY_SAFARI_ITERATORS,rs=ft("iterator"),is="keys",ns="values",as="entries",ss=function(){return this},os=function(t,e){return{value:t,done:e}},hs=It.f,us="Array Iterator",ls=te.set,cs=te.getterFor(us),fs=function(t,e,r,i,n,a,s){!function(t,e,r,i){var n=e+" Iterator";t.prototype=In($a,{next:p(1,function(){var t=cs(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,os(void 0,!0);switch(t.kind){case"keys":return os(r,!1);case"values":return os(e[r],!1)}return os([r,e[r]],!1)})}),Fe(t,n,!1),Gi[n]=Za}(r,e);var o,h,l,c=function(t){if(t===n&&v)return v;if(!es&&t&&t in d)return d[t];switch(t){case is:case ns:case as:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",g=!1,d=t.prototype,y=d[rs]||d["@@iterator"]||n&&d[n],v=!es&&y||c(n),m=d.entries||y;if(m&&(o=Ya(m.call(new t)))!==Object.prototype&&o.next&&(Ya(o)!==ts&&(De?De(o,ts):N(o[rs])||re(o,rs,ss)),Fe(o,f,!0)),Ka&&y&&y.name!==ns&&(Ja?kt(d,"name",ns):(g=!0,v=function(){return u(y,this)})),n)if(void(h={values:c(ns),keys:c(is),entries:c(as)}))for(l in h)(es||g||!(l in d))&&re(d,l,h[l]);else Ve({target:e,proto:!0,forced:es||g},h);return d[rs]!==v&&re(d,rs,v,{name:n}),Gi[e]=v,h}(Array,"Array",function(t,e){ls(this,{type:us,target:E(t),index:0,kind:e})},0,"values"),gs=Gi.Arguments=Gi.Array;if(Fa("keys"),Fa("values"),Fa("entries"),s&&"values"!==gs.name)try{hs(gs,"name",{value:"values"})}catch(t){}var ps={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},ds=mt("span").classList,ys=ds&&ds.constructor&&ds.constructor.prototype,vs=ys===Object.prototype?void 0:ys,ms=ft("iterator"),xs=fs.values,bs=function(t,e){if(t){if(t[ms]!==xs)try{kt(t,ms,xs)}catch(e){t[ms]=xs}if(Fe(t,e,!0),ps[e])for(var r in fs)if(t[r]!==fs[r])try{kt(t,r,fs[r])}catch(e){t[r]=fs[r]}}};for(var ws in ps)bs(n[ws]&&n[ws].prototype,ws);function Ss(e,r,i){return(r=function(e){var r=function(e,r){if("object"!=t._typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=t._typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t._typeof(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}bs(vs,"DOMTokenList");var Ts=TypeError,Os="Reduce of empty array with no initial value",As=function(t){return function(e,r,i,n){var a=rt(e),s=O(a),o=ce(a);if(W(r),0===o&&i<2)throw new Ts(Os);var h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in s){n=s[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw new Ts(Os)}for(;t?h>=0:o>h;h+=u)h in s&&(n=r(n,s[h],h,a));return n}},Cs=function(t,e){var r=[][t];return!!r&&a(function(){r.call(null,e||function(){return 1},1)})},Ps=[As(!1),As(!0)][0],Es=!Ie&&B>79&&B<83||!Cs("reduce");Ve({target:"Array",proto:!0,forced:Es},{reduce:function(t){var e=arguments.length;return Ps(this,t,e,e>1?arguments[1]:void 0)}});var Ms=St.f,Ns=pr("".slice),Rs=Math.min,_s=Ea("endsWith"),Vs=!_s&&!!function(){var t=Ms(String.prototype,"endsWith");return t&&!t.writable}();Ve({target:"String",proto:!0,forced:!Vs&&!_s},{endsWith:function(t){var e=yn(P(this));Ca(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:Rs(le(r),i),a=yn(t);return Ns(e,n-a.length,n)===a}});var Is=wn.UNSUPPORTED_Y,ks=Math.min,Ls=m([].push),Ds=m("".slice),js=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Bs="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;Jn("split",function(t,e,r){var i="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:u(e,this,t,r)}:e;return[function(e,r){var n=P(this),a=A(e)?void 0:Q(e,t);return a?u(a,e,n,r):u(i,yn(n),e,r)},function(t,n){var a=Ct(this),s=yn(t);if(!Bs){var o=r(i,a,s,n,i!==e);if(o.done)return o.value}var h=ur(a,RegExp),u=a.unicode,l=new h(Is?"^(?:"+a.source+")":a,(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Is?"g":"y")),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(0===s.length)return null===oa(l,s)?[s]:[];for(var f=0,g=0,p=[];g<s.length;){l.lastIndex=Is?0:g;var d,y=oa(l,Is?Ds(s,g):s);if(null===y||(d=ks(le(l.lastIndex+(Is?g:0)),s.length))===f)g=aa(s,g,u);else{if(Ls(p,Ds(s,f,g)),p.length===c)return p;for(var v=1;v<=y.length-1;v++)if(Ls(p,y[v]),p.length===c)return p;g=f=d}}return Ls(p,Ds(s,f)),p}]},Bs||!js,Is);for(var Fs=t.createCommonjsModule(function(e){(function(){var t,r,i,n,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},r=process.hrtime,n=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),a=n-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t.commonjsGlobal)}),zs="undefined"==typeof window?t.commonjsGlobal:window,Us=["moz","webkit"],Hs="AnimationFrame",Xs=zs["request"+Hs],Ys=zs["cancel"+Hs]||zs["cancelRequest"+Hs],qs=0;!Xs&&qs<Us.length;qs++)Xs=zs[Us[qs]+"Request"+Hs],Ys=zs[Us[qs]+"Cancel"+Hs]||zs[Us[qs]+"CancelRequest"+Hs];if(!Xs||!Ys){var Gs=0,Ws=0,Qs=[];Xs=function(t){if(0===Qs.length){var e=Fs(),r=Math.max(0,16.666666666666668-(e-Gs));Gs=r+e,setTimeout(function(){var t=Qs.slice(0);Qs.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(Gs)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))}return Qs.push({handle:++Ws,callback:t,cancelled:!1}),Ws},Ys=function(t){for(var e=0;e<Qs.length;e++)Qs[e].handle===t&&(Qs[e].cancelled=!0)}}var $s=function(t){return Xs.call(zs,t)};$s.cancel=function(){Ys.apply(zs,arguments)},$s.polyfill=function(t){t||(t=zs),t.requestAnimationFrame=Xs,t.cancelAnimationFrame=Ys};var Zs,Ks="\t\n\v\f\r \u2028\u2029\ufeff",Js=m("".replace),to=RegExp("^["+Ks+"]+"),eo=RegExp("(^|[^"+Ks+"])["+Ks+"]+$"),ro=function(t){return function(e){var r=yn(P(e));return 1&t&&(r=Js(r,to,"")),2&t&&(r=Js(r,eo,"$1")),r}},io={start:ro(1),end:ro(2),trim:ro(3)},no=Bt.PROPER,ao=io.trim;Ve({target:"String",proto:!0,forced:(Zs="trim",a(function(){return!!Ks[Zs]()||"
"!=="
"[Zs]()||no&&Ks[Zs].name!==Zs}))},{trim:function(){return ao(this)}});var so=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={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"};t=e[t]||t;for(var r=[{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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].process,a=r[i].re.exec(t);if(a){var s=n(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(t){}return o}},oo=ge.indexOf,ho=pr([].indexOf),uo=!!ho&&1/ho([1],1,-0)<0,lo=uo||!Cs("indexOf");Ve({target:"Array",proto:!0,forced:lo},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return uo?ho(this,t,e)||0:oo(this,t,e)}});var co=m("".indexOf);Ve({target:"String",proto:!0,forced:!Ea("includes")},{includes:function(t){return!!~co(yn(P(this)),yn(Ca(t)),arguments.length>1?arguments[1]:void 0)}});var fo=Array.isArray||function(t){return"Array"===w(t)},go=m([].reverse),po=[1,2];Ve({target:"Array",proto:!0,forced:String(po)===String(po.reverse())},{reverse:function(){return fo(this)&&(this.length=this.length),go(this)}});var yo=function(t,e){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function vo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function mo(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function xo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var bo=Math.PI;function wo(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=mo([(e-a)/2,(r-s)/2],-t.xRot/180*bo),h=o[0],u=o[1],l=Math.pow(h,2)/Math.pow(i,2)+Math.pow(u,2)/Math.pow(n,2);1<l&&(i*=Math.sqrt(l),n*=Math.sqrt(l)),t.rX=i,t.rY=n;var c=Math.pow(i,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(h,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-c)/c)),g=i*u/n*f,p=-n*h/i*f,d=mo([g,p],t.xRot/180*bo);t.cX=d[0]+(e+a)/2,t.cY=d[1]+(r+s)/2,t.phi1=Math.atan2((u-p)/n,(h-g)/i),t.phi2=Math.atan2((-u-p)/n,(-h-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*bo),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*bo),t.phi1*=180/bo,t.phi2*=180/bo}function So(t,e,r){xo(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var To,Oo=Math.PI/180;function Ao(t,e,r){return(1-r)*t+r*e}function Co(t,e,r,i){return t+Math.cos(i/180*bo)*e+Math.sin(i/180*bo)*r}function Po(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,h=6*(s-a),u=3*a;return Math.abs(o)<n?[-u/h]:function(t,e,r){void 0===r&&(r=1e-6);var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(h/o,u/o,n)}function Eo(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n(function(n,a,s){return n.type&Io.SMOOTH_CURVE_TO&&(n.type=Io.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&Io.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&Io.SMOOTH_QUAD_TO&&(n.type=Io.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&Io.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n})}function i(){var t=NaN,e=NaN;return n(function(r,i,n){if(r.type&Io.SMOOTH_QUAD_TO&&(r.type=Io.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&Io.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=Io.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r})}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&Io.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&Io.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&Io.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return xo(t,e,r,i,a,s),n(function(n,o,h,u){var l=n.x1,c=n.x2,f=n.relative&&!isNaN(u),g=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:h;function d(t){return t*t}n.type&Io.HORIZ_LINE_TO&&0!==e&&(n.type=Io.LINE_TO,n.y=n.relative?0:h),n.type&Io.VERT_LINE_TO&&0!==r&&(n.type=Io.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=g*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=l*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=c*e+n.y2*i+(f?0:s));var y=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===y)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Io.LINE_TO;else{var v=n.xRot*Math.PI/180,m=Math.sin(v),x=Math.cos(v),b=1/d(n.rX),w=1/d(n.rY),S=d(x)*b+d(m)*w,T=2*m*x*(b-w),O=d(m)*b+d(x)*w,A=S*i*i-T*e*i+O*e*e,C=T*(t*i+e*r)-2*(S*r*i+O*t*e),P=S*r*r-T*t*r+O*t*t,E=(Math.atan2(C,A-P)+Math.PI)%Math.PI/2,M=Math.sin(E),N=Math.cos(E);n.rX=Math.abs(y)/Math.sqrt(A*d(N)+C*M*N+P*d(M)),n.rY=Math.abs(y)/Math.sqrt(A*d(M)-C*M*N+P*d(N)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>y&&(n.sweepFlag=+!n.sweepFlag),n})}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),xo(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n(function(i,n,a,s,o){if(isNaN(s)&&!(i.type&Io.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&Io.HORIZ_LINE_TO&&(i.type=Io.LINE_TO,i.y=i.relative?0:a),r&&i.type&Io.VERT_LINE_TO&&(i.type=Io.LINE_TO,i.x=i.relative?0:n),t&&i.type&Io.CLOSE_PATH&&(i.type=Io.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&Io.ARC&&(0===i.rX||0===i.rY)&&(i.type=Io.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i})},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),xo(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n(function(n,s,o,h,u){var l=Math.abs,c=!1,f=0,g=0;if(n.type&Io.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),n.type&(Io.CURVE_TO|Io.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&Io.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&Io.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&Io.LINE_COMMANDS||n.type&Io.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Io.CURVE_TO||n.type&Io.SMOOTH_CURVE_TO||n.type&Io.QUAD_TO||n.type&Io.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,g=isNaN(a)?void 0===n.y1?g:n.relative?n.y:n.y1-o:a-o;var y=void 0===n.x2?0:n.relative?n.x:n.x2-s,v=void 0===n.y2?0:n.relative?n.y:n.y2-o;l(p)<=t&&l(d)<=t&&l(f)<=t&&l(g)<=t&&l(y)<=t&&l(v)<=t&&(c=!0)}return n.type&Io.CLOSE_PATH&&l(s-h)<=t&&l(o-u)<=t&&(c=!0),c?[]:n})},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),xo(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),xo(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),xo(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return xo(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return xo(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),xo(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),xo(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n(function(t,e,r){return Io.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||wo(t,e,r);for(var o=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-o,u=Math.ceil(h/90),l=new Array(u),c=e,f=r,g=0;g<u;g++){var p=Ao(t.phi1,t.phi2,g/u),d=Ao(t.phi1,t.phi2,(g+1)/u),y=4/3*Math.tan((d-p)*Oo/4),v=[Math.cos(p*Oo)-y*Math.sin(p*Oo),Math.sin(p*Oo)+y*Math.cos(p*Oo)],m=v[0],x=v[1],b=[Math.cos(d*Oo),Math.sin(d*Oo)],w=b[0],S=b[1],T=[w+y*Math.sin(d*Oo),S-y*Math.cos(d*Oo)],O=T[0],A=T[1];l[g]={relative:t.relative,type:Io.CURVE_TO};var C=function(e,r){var i=mo([e*t.rX,r*t.rY],t.xRot);return[t.cX+i[0],t.cY+i[1]]};i=C(m,x),l[g].x1=i[0],l[g].y1=i[1],n=C(O,A),l[g].x2=n[0],l[g].y2=n[1],a=C(w,S),l[g].x=a[0],l[g].y=a[1],t.relative&&(l[g].x1-=c,l[g].y1-=f,l[g].x2-=c,l[g].y2-=f,l[g].x-=c,l[g].y-=f),c=(s=[l[g].x,l[g].y])[0],f=s[1]}return l}(t,t.relative?0:e,t.relative?0:r):t})},t.ANNOTATE_ARCS=function(){return n(function(t,e,r){return t.relative&&(e=0,r=0),Io.ARC===t.type&&wo(t,e,r),t})},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n(function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function h(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function u(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&Io.DRAWING_COMMANDS&&(h(r),u(i)),n.type&Io.HORIZ_LINE_TO&&h(n.x),n.type&Io.VERT_LINE_TO&&u(n.y),n.type&Io.LINE_TO&&(h(n.x),u(n.y)),n.type&Io.CURVE_TO){h(n.x),u(n.y);for(var l=0,c=Po(r,n.x1,n.x2,n.x);l<c.length;l++)0<(P=c[l])&&1>P&&h(Eo(r,n.x1,n.x2,n.x,P));for(var f=0,g=Po(i,n.y1,n.y2,n.y);f<g.length;f++)0<(P=g[f])&&1>P&&u(Eo(i,n.y1,n.y2,n.y,P))}if(n.type&Io.ARC){h(n.x),u(n.y),wo(n,r,i);for(var p=n.xRot/180*Math.PI,d=Math.cos(p)*n.rX,y=Math.sin(p)*n.rX,v=-Math.sin(p)*n.rY,m=Math.cos(p)*n.rY,x=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],b=x[0],w=x[1],S=function(t){var e=180*Math.atan2(t[1],t[0])/Math.PI;return e<b?e+360:e},T=0,O=So(v,-d,0).map(S);T<O.length;T++)(P=O[T])>b&&P<w&&h(Co(n.cX,d,v,P));for(var A=0,C=So(m,-y,0).map(S);A<C.length;A++){var P;(P=C[A])>b&&P<w&&u(Co(n.cY,y,m,P))}}return e});return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.max